/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | aes-siv.c | 65 size_t num_elem, const u8 *addr[], size_t *len, u8 *mac) in aes_s2v() argument 74 if (!num_elem) { in aes_s2v() 88 for (i = 0; i < num_elem - 1; i++) { in aes_s2v() 121 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_encrypt() argument 131 if (num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_encrypt() 139 for (i = 0; i < num_elem; i++) { in aes_siv_encrypt() 143 _addr[num_elem] = pw; in aes_siv_encrypt() 144 _len[num_elem] = pwlen; in aes_siv_encrypt() 146 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt() 164 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_decrypt() argument [all …]
|
D | crypto_nettle.c | 51 static int nettle_digest_vector(const struct nettle_hash *alg, size_t num_elem, in nettle_digest_vector() argument 64 for (i = 0; i < num_elem; i++) in nettle_digest_vector() 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 74 return nettle_digest_vector(&nettle_md4, num_elem, addr, len, mac); in md4_vector() 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 80 return nettle_digest_vector(&nettle_md5, num_elem, addr, len, mac); in md5_vector() 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 86 return nettle_digest_vector(&nettle_sha1, num_elem, addr, len, mac); in sha1_vector() 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 92 return nettle_digest_vector(&nettle_sha256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_gnutls.c | 20 static int gnutls_digest_vector(int algo, size_t num_elem, in gnutls_digest_vector() argument 32 for (i = 0; i < num_elem; i++) in gnutls_digest_vector() 42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 return gnutls_digest_vector(GCRY_MD_MD4, num_elem, addr, len, mac); in md4_vector() 71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 73 return gnutls_digest_vector(GCRY_MD_MD5, num_elem, addr, len, mac); in md5_vector() 77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 79 return gnutls_digest_vector(GCRY_MD_SHA1, num_elem, addr, len, mac); in sha1_vector() 83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 85 return gnutls_digest_vector(GCRY_MD_SHA256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_linux.c | 58 size_t key_len, size_t num_elem, in linux_af_alg_hash_vector() argument 86 for (i = 0; i < num_elem; i++) { in linux_af_alg_hash_vector() 87 res = send(t, addr[i], len[i], i + 1 < num_elem ? MSG_MORE : 0); in linux_af_alg_hash_vector() 125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 127 return linux_af_alg_hash_vector("md4", NULL, 0, num_elem, addr, len, in md4_vector() 132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 134 return linux_af_alg_hash_vector("md5", NULL, 0, num_elem, addr, len, in md5_vector() 139 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha1_vector() argument 142 return linux_af_alg_hash_vector("sha1", NULL, 0, num_elem, addr, len, in sha1_vector() 147 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument [all …]
|
D | sha512.c | 26 int hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha512_vector() argument 34 if (num_elem > 5) { in hmac_sha512_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha512_vector() 73 if (sha512_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha512_vector()
|
D | sha256.c | 26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha256_vector() argument 34 if (num_elem > 5) { in hmac_sha256_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha256_vector() 73 if (sha256_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha256_vector()
|
D | sha384.c | 26 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha384_vector() argument 34 if (num_elem > 5) { in hmac_sha384_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha384_vector() 73 if (sha384_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha384_vector()
|
D | sha1.c | 26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument 35 if (num_elem > 5) { in hmac_sha1_vector() 70 for (i = 0; i < num_elem; i++) { in hmac_sha1_vector() 74 if (sha1_vector(1 + num_elem, _addr, _len, mac)) in hmac_sha1_vector()
|
D | md5.c | 26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_md5_vector() argument 35 if (num_elem > 5) { in hmac_md5_vector() 71 for (i = 0; i < num_elem; i++) { in hmac_md5_vector() 75 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector()
|
D | crypto_wolfssl.c | 34 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 for (i = 0; i < num_elem; i++) in md4_vector() 53 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 63 for (i = 0; i < num_elem; i++) in md5_vector() 74 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 84 for (i = 0; i < num_elem; i++) in sha1_vector() 94 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument 105 for (i = 0; i < num_elem; i++) in sha256_vector() 116 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha384_vector() argument 127 for (i = 0; i < num_elem; i++) in sha384_vector() [all …]
|
D | aes-omac1.c | 43 int omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, in omac1_aes_vector() argument 60 for (e = 0; e < num_elem; e++) in omac1_aes_vector() 133 int omac1_aes_128_vector(const u8 *key, size_t num_elem, in omac1_aes_128_vector() argument 136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | aes-siv.c | 65 size_t num_elem, const u8 *addr[], size_t *len, u8 *mac) in aes_s2v() argument 74 if (!num_elem) { in aes_s2v() 88 for (i = 0; i < num_elem - 1; i++) { in aes_s2v() 121 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_encrypt() argument 131 if (num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_encrypt() 139 for (i = 0; i < num_elem; i++) { in aes_siv_encrypt() 143 _addr[num_elem] = pw; in aes_siv_encrypt() 144 _len[num_elem] = pwlen; in aes_siv_encrypt() 146 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt() 164 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_decrypt() argument [all …]
|
D | crypto_nettle.c | 51 static int nettle_digest_vector(const struct nettle_hash *alg, size_t num_elem, in nettle_digest_vector() argument 64 for (i = 0; i < num_elem; i++) in nettle_digest_vector() 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 74 return nettle_digest_vector(&nettle_md4, num_elem, addr, len, mac); in md4_vector() 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 80 return nettle_digest_vector(&nettle_md5, num_elem, addr, len, mac); in md5_vector() 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 86 return nettle_digest_vector(&nettle_sha1, num_elem, addr, len, mac); in sha1_vector() 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 92 return nettle_digest_vector(&nettle_sha256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_gnutls.c | 20 static int gnutls_digest_vector(int algo, size_t num_elem, in gnutls_digest_vector() argument 32 for (i = 0; i < num_elem; i++) in gnutls_digest_vector() 42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 return gnutls_digest_vector(GCRY_MD_MD4, num_elem, addr, len, mac); in md4_vector() 71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 73 return gnutls_digest_vector(GCRY_MD_MD5, num_elem, addr, len, mac); in md5_vector() 77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 79 return gnutls_digest_vector(GCRY_MD_SHA1, num_elem, addr, len, mac); in sha1_vector() 83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 85 return gnutls_digest_vector(GCRY_MD_SHA256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_linux.c | 58 size_t key_len, size_t num_elem, in linux_af_alg_hash_vector() argument 86 for (i = 0; i < num_elem; i++) { in linux_af_alg_hash_vector() 87 res = send(t, addr[i], len[i], i + 1 < num_elem ? MSG_MORE : 0); in linux_af_alg_hash_vector() 125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 127 return linux_af_alg_hash_vector("md4", NULL, 0, num_elem, addr, len, in md4_vector() 132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 134 return linux_af_alg_hash_vector("md5", NULL, 0, num_elem, addr, len, in md5_vector() 139 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha1_vector() argument 142 return linux_af_alg_hash_vector("sha1", NULL, 0, num_elem, addr, len, in sha1_vector() 147 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument [all …]
|
D | sha512.c | 26 int hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha512_vector() argument 34 if (num_elem > 10) { in hmac_sha512_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha512_vector() 73 if (sha512_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha512_vector()
|
D | sha384.c | 26 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha384_vector() argument 34 if (num_elem > 10) { in hmac_sha384_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha384_vector() 73 if (sha384_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha384_vector()
|
D | sha256.c | 26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha256_vector() argument 34 if (num_elem > 10) { in hmac_sha256_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha256_vector() 73 if (sha256_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha256_vector()
|
D | sha1.c | 26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument 35 if (num_elem > 5) { in hmac_sha1_vector() 70 for (i = 0; i < num_elem; i++) { in hmac_sha1_vector() 74 if (sha1_vector(1 + num_elem, _addr, _len, mac)) in hmac_sha1_vector()
|
D | md5.c | 26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_md5_vector() argument 35 if (num_elem > 5) { in hmac_md5_vector() 71 for (i = 0; i < num_elem; i++) { in hmac_md5_vector() 75 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector()
|
D | crypto_wolfssl.c | 34 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 for (i = 0; i < num_elem; i++) in md4_vector() 53 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 63 for (i = 0; i < num_elem; i++) in md5_vector() 74 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 84 for (i = 0; i < num_elem; i++) in sha1_vector() 94 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument 105 for (i = 0; i < num_elem; i++) in sha256_vector() 116 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha384_vector() argument 127 for (i = 0; i < num_elem; i++) in sha384_vector() [all …]
|
D | aes-omac1.c | 43 int omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, in omac1_aes_vector() argument 60 for (e = 0; e < num_elem; e++) in omac1_aes_vector() 133 int omac1_aes_128_vector(const u8 *key, size_t num_elem, in omac1_aes_128_vector() argument 136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | dpp_pkex.c | 705 size_t num_elem; in dpp_pkex_rx_exchange_resp() local 836 num_elem = 0; in dpp_pkex_rx_exchange_resp() 838 addr[num_elem] = pkex->own_mac; in dpp_pkex_rx_exchange_resp() 839 len[num_elem] = ETH_ALEN; in dpp_pkex_rx_exchange_resp() 840 num_elem++; in dpp_pkex_rx_exchange_resp() 842 addr[num_elem] = wpabuf_head(A_pub); in dpp_pkex_rx_exchange_resp() 843 len[num_elem] = wpabuf_len(A_pub) / 2; in dpp_pkex_rx_exchange_resp() 844 num_elem++; in dpp_pkex_rx_exchange_resp() 845 addr[num_elem] = wpabuf_head(Y_pub); in dpp_pkex_rx_exchange_resp() 846 len[num_elem] = wpabuf_len(Y_pub) / 2; in dpp_pkex_rx_exchange_resp() [all …]
|
D | dpp_crypto.c | 100 size_t num_elem, const u8 *addr[], const size_t *len, in dpp_hash_vector() argument 104 return sha256_vector(num_elem, addr, len, mac); in dpp_hash_vector() 106 return sha384_vector(num_elem, addr, len, mac); in dpp_hash_vector() 108 return sha512_vector(num_elem, addr, len, mac); in dpp_hash_vector() 133 size_t num_elem, const u8 *addr[], const size_t *len, in dpp_hmac_vector() argument 137 return hmac_sha256_vector(key, key_len, num_elem, addr, len, in dpp_hmac_vector() 140 return hmac_sha384_vector(key, key_len, num_elem, addr, len, in dpp_hmac_vector() 143 return hmac_sha512_vector(key, key_len, num_elem, addr, len, in dpp_hmac_vector() 432 size_t num_elem = 0; in dpp_derive_bk_ke() local 443 addr[num_elem] = auth->Mx; in dpp_derive_bk_ke() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | wpa_common.c | 484 size_t num_elem; in fils_rmsk_to_pmk() local 506 num_elem = 1; in fils_rmsk_to_pmk() 510 num_elem++; in fils_rmsk_to_pmk() 513 res = hmac_sha384_vector(nonces, 2 * FILS_NONCE_LEN, num_elem, in fils_rmsk_to_pmk() 516 res = hmac_sha256_vector(nonces, 2 * FILS_NONCE_LEN, num_elem, in fils_rmsk_to_pmk() 671 size_t num_elem = 4; in fils_key_auth_sk() local 700 num_elem = 6; in fils_key_auth_sk() 705 res = hmac_sha384_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk() 709 res = hmac_sha256_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk() 734 res = hmac_sha384_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk() [all …]
|