/external/wpa_supplicant_8/src/crypto/ |
D | aes-siv.c | 64 static int aes_s2v(const u8 *key, size_t num_elem, const u8 *addr[], in aes_s2v() argument 72 if (!num_elem) { in aes_s2v() 82 for (i = 0; i < num_elem - 1; i++) { in aes_s2v() 111 size_t pwlen, size_t num_elem, in aes_siv_encrypt() argument 121 if (num_elem > ARRAY_SIZE(_addr) - 1) in aes_siv_encrypt() 124 for (i = 0; i < num_elem; i++) { in aes_siv_encrypt() 128 _addr[num_elem] = pw; in aes_siv_encrypt() 129 _len[num_elem] = pwlen; in aes_siv_encrypt() 131 if (aes_s2v(k1, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt() 148 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_decrypt() argument [all …]
|
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 | 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 | 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()
|
D | crypto_openssl.c | 104 static int openssl_digest_vector(const EVP_MD *type, size_t num_elem, in openssl_digest_vector() argument 123 for (i = 0; i < num_elem; i++) { in openssl_digest_vector() 145 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 147 return openssl_digest_vector(EVP_md4(), num_elem, addr, len, mac); in md4_vector() 215 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 217 return openssl_digest_vector(EVP_md5(), num_elem, addr, len, mac); in md5_vector() 222 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 224 return openssl_digest_vector(EVP_sha1(), num_elem, addr, len, mac); in sha1_vector() 229 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument 232 return openssl_digest_vector(EVP_sha256(), num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto.h | 32 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); 42 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); 53 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, 79 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, 90 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, 101 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len,
|
D | crypto_gnutls.c | 15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 23 for (i = 0; i < num_elem; i++) in md4_vector() 55 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() 73 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 81 for (i = 0; i < num_elem; i++) in sha1_vector()
|
D | aes_siv.h | 13 size_t pwlen, size_t num_elem, 16 size_t num_elem, const u8 *addr[], const size_t *len,
|
D | sha384-internal.c | 24 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha384_vector() argument 31 for (i = 0; i < num_elem; i++) in sha384_vector()
|
D | crypto_libtomcrypt.c | 25 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 31 for (i = 0; i < num_elem; i++) in md4_vector() 59 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 65 for (i = 0; i < num_elem; i++) in md5_vector() 72 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 78 for (i = 0; i < num_elem; i++) in sha1_vector()
|
D | aes_wrap.h | 26 size_t num_elem, const u8 *addr[], 28 int __must_check omac1_aes_128_vector(const u8 *key, size_t num_elem,
|
D | crypto_none.c | 15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
|
D | md5.h | 14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha384.h | 14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha256-internal.c | 25 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument 35 for (i = 0; i < num_elem; i++) in sha256_vector()
|
D | sha256.h | 14 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha1.h | 14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha512-internal.c | 24 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha512_vector() argument 31 for (i = 0; i < num_elem; i++) in sha512_vector()
|
D | md4-internal.c | 29 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 38 for (i = 0; i < num_elem; i++) in md4_vector()
|
D | md5-internal.c | 31 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 40 for (i = 0; i < num_elem; i++) in md5_vector()
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.c | 218 size_t i, num_elem = 0; in wpa_ft_mic() local 227 addr[num_elem] = sta_addr; in wpa_ft_mic() 228 len[num_elem] = ETH_ALEN; in wpa_ft_mic() 229 num_elem++; in wpa_ft_mic() 231 addr[num_elem] = ap_addr; in wpa_ft_mic() 232 len[num_elem] = ETH_ALEN; in wpa_ft_mic() 233 num_elem++; in wpa_ft_mic() 235 addr[num_elem] = &transaction_seqnum; in wpa_ft_mic() 236 len[num_elem] = 1; in wpa_ft_mic() 237 num_elem++; in wpa_ft_mic() [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 212 size_t num_elem = 1; in eap_eke_prf() local 217 num_elem++; in eap_eke_prf() 223 return hmac_sha1_vector(key, key_len, num_elem, addr, len, res); in eap_eke_prf() 225 return hmac_sha256_vector(key, key_len, num_elem, addr, len, in eap_eke_prf()
|
D | ikev2_common.c | 98 size_t num_elem, const u8 *addr[], const size_t *len, in ikev2_prf_hash() argument 103 return hmac_sha1_vector(key, key_len, num_elem, addr, len, in ikev2_prf_hash() 106 return hmac_md5_vector(key, key_len, num_elem, addr, len, hash); in ikev2_prf_hash()
|
/external/libpcap/ |
D | pcap-dos.c | 1389 if (!q || !q->num_elem || !q->buf_start) in pktq_check() 1395 for (i = 0; i < q->num_elem; i++) in pktq_check() 1410 q->num_elem = num; in pktq_init() 1441 if (q->out_index >= q->num_elem) in pktq_inc_out() 1454 if (index >= q->num_elem) in pktq_in_index()
|