Home
last modified time | relevance | path

Searched refs:num_elem (Results 1 – 25 of 29) sorted by relevance

12

/external/wpa_supplicant_8/src/crypto/
Daes-siv.c64 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 …]
Dsha256.c26 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()
Dsha1.c26 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()
Dmd5.c26 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()
Daes-omac1.c43 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()
Dcrypto_openssl.c104 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 …]
Dcrypto.h32 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,
Dcrypto_gnutls.c15 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()
Daes_siv.h13 size_t pwlen, size_t num_elem,
16 size_t num_elem, const u8 *addr[], const size_t *len,
Dsha384-internal.c24 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()
Dcrypto_libtomcrypt.c25 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()
Daes_wrap.h26 size_t num_elem, const u8 *addr[],
28 int __must_check omac1_aes_128_vector(const u8 *key, size_t num_elem,
Dcrypto_none.c15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
Dmd5.h14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha384.h14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha256-internal.c25 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()
Dsha256.h14 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha1.h14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha512-internal.c24 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()
Dmd4-internal.c29 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()
Dmd5-internal.c31 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/
Dwpa_common.c218 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/
Deap_eke_common.c212 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()
Dikev2_common.c98 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/
Dpcap-dos.c1389 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()

12