Home
last modified time | relevance | path

Searched refs:nonce_len (Results 1 – 21 of 21) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Daes-eax.c28 int aes_128_eax_encrypt(const u8 *key, const u8 *nonce, size_t nonce_len, in aes_128_eax_encrypt() argument
38 if (nonce_len > data_len) in aes_128_eax_encrypt()
39 buf_len = nonce_len; in aes_128_eax_encrypt()
53 os_memcpy(buf + 16, nonce, nonce_len); in aes_128_eax_encrypt()
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) in aes_128_eax_encrypt()
92 int aes_128_eax_decrypt(const u8 *key, const u8 *nonce, size_t nonce_len, in aes_128_eax_decrypt() argument
102 if (nonce_len > data_len) in aes_128_eax_decrypt()
103 buf_len = nonce_len; in aes_128_eax_decrypt()
117 os_memcpy(buf + 16, nonce, nonce_len); in aes_128_eax_decrypt()
118 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) { in aes_128_eax_decrypt()
Daes_wrap.h30 const u8 *nonce, size_t nonce_len,
34 const u8 *nonce, size_t nonce_len,
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Daes_wrap.c345 int aes_128_eax_encrypt(const u8 *key, const u8 *nonce, size_t nonce_len, in aes_128_eax_encrypt() argument
354 if (nonce_len > data_len) in aes_128_eax_encrypt()
355 buf_len = nonce_len; in aes_128_eax_encrypt()
369 os_memcpy(buf + 16, nonce, nonce_len); in aes_128_eax_encrypt()
370 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) in aes_128_eax_encrypt()
408 int aes_128_eax_decrypt(const u8 *key, const u8 *nonce, size_t nonce_len, in aes_128_eax_decrypt() argument
417 if (nonce_len > data_len) in aes_128_eax_decrypt()
418 buf_len = nonce_len; in aes_128_eax_decrypt()
432 os_memcpy(buf + 16, nonce, nonce_len); in aes_128_eax_decrypt()
433 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) { in aes_128_eax_decrypt()
Daes_wrap.h36 const u8 *nonce, size_t nonce_len,
40 const u8 *nonce, size_t nonce_len,
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/
Dwpa_ie.h32 size_t nonce_len; member
Dwpa_ie.c452 ie->nonce_len = pos[1] - RSN_SELECTOR_LEN; in wpa_parse_generic()
Dpeerkey.c547 kde.nonce == NULL || kde.nonce_len < WPA_NONCE_LEN || in wpa_supplicant_process_smk_m45()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ie.h26 size_t nonce_len; member
Dpeerkey_auth.c270 kde.nonce == NULL || kde.nonce_len < WPA_NONCE_LEN) { in wpa_smk_m3()
Dwpa_auth_ie.c725 ie->nonce_len = pos[1] - RSN_SELECTOR_LEN; in wpa_parse_generic()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ie.h28 size_t nonce_len; member
Dwpa_ie.c320 ie->nonce_len = pos[1] - RSN_SELECTOR_LEN; in wpa_parse_generic()
Dpeerkey.c542 kde.nonce == NULL || kde.nonce_len < WPA_NONCE_LEN || in wpa_supplicant_process_smk_m45()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Dikev2_common.c385 payloads->nonce_len = pdatalen; in ikev2_parse_payloads()
440 const u8 *nonce, size_t nonce_len, in ikev2_derive_auth_data() argument
469 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; in ikev2_derive_auth_data()
476 os_memcpy(pos, nonce, nonce_len); in ikev2_derive_auth_data()
477 pos += nonce_len; in ikev2_derive_auth_data()
Dikev2_common.h300 const u8 *nonce, size_t nonce_len,
319 size_t nonce_len; member
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.c380 payloads->nonce_len = pdatalen; in ikev2_parse_payloads()
435 const u8 *nonce, size_t nonce_len, in ikev2_derive_auth_data() argument
464 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; in ikev2_derive_auth_data()
471 os_memcpy(pos, nonce, nonce_len); in ikev2_derive_auth_data()
472 pos += nonce_len; in ikev2_derive_auth_data()
Dikev2_common.h294 const u8 *nonce, size_t nonce_len,
313 size_t nonce_len; member
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Dikev2.c492 ikev2_process_nr(data, pl->nonce, pl->nonce_len) < 0) in ikev2_process_sa_init()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c487 ikev2_process_nr(data, pl->nonce, pl->nonce_len) < 0) in ikev2_process_sa_init()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Dikev2.c487 ikev2_process_ni(data, pl->nonce, pl->nonce_len) < 0) in ikev2_process_sa_init()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c482 ikev2_process_ni(data, pl->nonce, pl->nonce_len) < 0) in ikev2_process_sa_init()