Home
last modified time | relevance | path

Searched refs:dec (Results 1 – 6 of 6) sorted by relevance

/hostap-latest/src/crypto/
Dcrypto_gnutls.c398 gcry_cipher_hd_t dec; member
420 gcry_cipher_open(&ctx->dec, a, GCRY_CIPHER_MODE_STREAM, 0); in crypto_cipher_init()
430 gcry_cipher_open(&ctx->dec, a, GCRY_CIPHER_MODE_CBC, 0); in crypto_cipher_init()
435 gcry_cipher_open(&ctx->dec, a, GCRY_CIPHER_MODE_CBC, 0); in crypto_cipher_init()
440 gcry_cipher_open(&ctx->dec, a, GCRY_CIPHER_MODE_CBC, 0); in crypto_cipher_init()
448 gcry_cipher_open(&ctx->dec, a, GCRY_CIPHER_MODE_CBC, 0); in crypto_cipher_init()
461 gcry_cipher_setkey(ctx->dec, key, key_len) != GPG_ERR_NO_ERROR) { in crypto_cipher_init()
463 gcry_cipher_close(ctx->dec); in crypto_cipher_init()
470 gcry_cipher_setiv(ctx->dec, iv, ivlen) != GPG_ERR_NO_ERROR) { in crypto_cipher_init()
472 gcry_cipher_close(ctx->dec); in crypto_cipher_init()
[all …]
DMakefile18 aes-internal-dec.o \
Dcrypto_wolfssl.c769 union wolfssl_cipher dec; member
787 wc_Arc4SetKey(&ctx->dec.arc4, key, key_len); in crypto_cipher_init()
804 wc_AesSetKey(&ctx->dec.aes, key, key_len, iv, in crypto_cipher_init()
815 wc_Des3_SetKey(&ctx->dec.des3, key, iv, DES_DECRYPTION)) { in crypto_cipher_init()
871 wc_Arc4Process(&ctx->dec.arc4, plain, crypt, len); in crypto_cipher_decrypt()
877 if (wc_AesCbcDecrypt(&ctx->dec.aes, plain, crypt, len) != 0) in crypto_cipher_decrypt()
883 if (wc_Des3_CbcDecrypt(&ctx->dec.des3, plain, crypt, len) != 0) in crypto_cipher_decrypt()
Dcrypto_openssl.c850 EVP_CIPHER_CTX *dec; member
922 if (!(ctx->dec = EVP_CIPHER_CTX_new()) || in crypto_cipher_init()
923 !EVP_DecryptInit_ex(ctx->dec, cipher, NULL, NULL, NULL) || in crypto_cipher_init()
924 !EVP_CIPHER_CTX_set_padding(ctx->dec, 0) || in crypto_cipher_init()
925 !EVP_CIPHER_CTX_set_key_length(ctx->dec, key_len) || in crypto_cipher_init()
926 !EVP_DecryptInit_ex(ctx->dec, NULL, NULL, key, iv)) { in crypto_cipher_init()
928 if (ctx->dec) in crypto_cipher_init()
929 EVP_CIPHER_CTX_free(ctx->dec); in crypto_cipher_init()
953 if (!EVP_DecryptUpdate(ctx->dec, plain, &outl, crypt, len)) in crypto_cipher_decrypt()
962 EVP_CIPHER_CTX_free(ctx->dec); in crypto_cipher_deinit()
/hostap-latest/src/eap_server/
Deap_server_sim.c575 struct wpabuf *enc, *dec; in eap_sim_process_start() local
609 dec = crypto_rsa_oaep_sha256_decrypt(sm->cfg->imsi_privacy_key, in eap_sim_process_start()
612 if (!dec) { in eap_sim_process_start()
618 wpabuf_head(dec), wpabuf_len(dec)); in eap_sim_process_start()
619 username = sim_get_username(wpabuf_head(dec), wpabuf_len(dec)); in eap_sim_process_start()
621 wpabuf_free(dec); in eap_sim_process_start()
624 new_id = os_memdup(wpabuf_head(dec), wpabuf_len(dec)); in eap_sim_process_start()
626 wpabuf_free(dec); in eap_sim_process_start()
631 sm->identity_len = wpabuf_len(dec); in eap_sim_process_start()
632 wpabuf_free(dec); in eap_sim_process_start()
Deap_server_aka.c831 struct wpabuf *enc, *dec; in eap_aka_determine_identity() local
865 dec = crypto_rsa_oaep_sha256_decrypt(sm->cfg->imsi_privacy_key, in eap_aka_determine_identity()
868 if (!dec) { in eap_aka_determine_identity()
874 wpabuf_head(dec), wpabuf_len(dec)); in eap_aka_determine_identity()
875 username = sim_get_username(wpabuf_head(dec), wpabuf_len(dec)); in eap_aka_determine_identity()
877 wpabuf_free(dec); in eap_aka_determine_identity()
880 new_id = os_memdup(wpabuf_head(dec), wpabuf_len(dec)); in eap_aka_determine_identity()
882 wpabuf_free(dec); in eap_aka_determine_identity()
887 sm->identity_len = wpabuf_len(dec); in eap_aka_determine_identity()
888 wpabuf_free(dec); in eap_aka_determine_identity()