Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/crypto/
Dcrypto_nss.c25 size_t num_elem, const u8 *addr[], const size_t *len, in nss_hash() argument
37 for (i = 0; i < num_elem; i++) in nss_hash()
119 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
121 return nss_hash(HASH_AlgMD5, 16, num_elem, addr, len, mac); in md5_vector()
125 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
127 return nss_hash(HASH_AlgSHA1, 20, num_elem, addr, len, mac); in sha1_vector()
131 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument
134 return nss_hash(HASH_AlgSHA256, 32, num_elem, addr, len, mac); in sha256_vector()
Dsha1.c26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument
34 if (num_elem > 5) { in hmac_sha1_vector()
69 for (i = 0; i < num_elem; i++) { in hmac_sha1_vector()
73 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
34 if (num_elem > 5) { in hmac_md5_vector()
70 for (i = 0; i < num_elem; i++) { in hmac_md5_vector()
74 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector()
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()
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()
Dcrypto_openssl.c81 static int openssl_digest_vector(const EVP_MD *type, size_t num_elem, in openssl_digest_vector() argument
94 for (i = 0; i < num_elem; i++) { in openssl_digest_vector()
112 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
114 return openssl_digest_vector(EVP_md4(), num_elem, addr, len, mac); in md4_vector()
176 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
178 return openssl_digest_vector(EVP_md5(), num_elem, addr, len, mac); in md5_vector()
182 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
184 return openssl_digest_vector(EVP_sha1(), num_elem, addr, len, mac); in sha1_vector()
189 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument
192 return openssl_digest_vector(EVP_sha256(), num_elem, addr, len, mac); in sha256_vector()
[all …]
Dcrypto_cryptoapi.c106 int cryptoapi_hash_vector(ALG_ID alg, size_t hash_len, size_t num_elem, in cryptoapi_hash_vector() argument
126 for (i = 0; i < num_elem; i++) { in cryptoapi_hash_vector()
147 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
149 return cryptoapi_hash_vector(CALG_MD4, 16, num_elem, addr, len, mac); in md4_vector()
218 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
220 return cryptoapi_hash_vector(CALG_MD5, 16, num_elem, addr, len, mac); in md5_vector()
224 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
226 return cryptoapi_hash_vector(CALG_SHA, 20, num_elem, addr, len, mac); in sha1_vector()
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,
Daes-omac1.c42 int omac1_aes_128_vector(const u8 *key, size_t num_elem, in omac1_aes_128_vector() argument
56 for (e = 0; e < num_elem; e++) in omac1_aes_128_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()
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,
Dsha256-internal.c25 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument
32 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,
Dmd4-internal.c29 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
35 for (i = 0; i < num_elem; i++) in md4_vector()
Daes_wrap.h25 int __must_check omac1_aes_128_vector(const u8 *key, size_t num_elem,
Dmd5-internal.c31 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
37 for (i = 0; i < num_elem; i++) in md5_vector()
/external/bluetooth/bluedroid/stack/sdp/
Dsdp_db.c219 static int sdp_compose_proto_list( UINT8 *p, UINT16 num_elem, in sdp_compose_proto_list() argument
231 for (xx = 0; xx < num_elem; xx++, p_elem_list++) in sdp_compose_proto_list()
536 BOOLEAN SDP_AddSequence (UINT32 handle, UINT16 attr_id, UINT16 num_elem, in SDP_AddSequence() argument
554 for (xx = 0; xx < num_elem; xx++) in SDP_AddSequence()
594 SDP_TRACE_ERROR ("SDP_AddSequence - too long, add %d elements of %d", xx, num_elem); in SDP_AddSequence()
669 BOOLEAN SDP_AddProtocolList (UINT32 handle, UINT16 num_elem, in SDP_AddProtocolList() argument
683 offset = sdp_compose_proto_list(p_buff, num_elem, p_elem_list); in SDP_AddProtocolList()
705 BOOLEAN SDP_AddAdditionProtoLists (UINT32 handle, UINT16 num_elem, in SDP_AddAdditionProtoLists() argument
724 for (xx = 0; xx < num_elem; xx++, p_proto_list++) in SDP_AddAdditionProtoLists()
/external/bluetooth/bluedroid/stack/include/
Dsdp_api.h503 UINT16 num_elem, UINT8 type[],
535 SDP_API extern BOOLEAN SDP_AddProtocolList (UINT32 handle, UINT16 num_elem,
551 SDP_API extern BOOLEAN SDP_AddAdditionProtoLists (UINT32 handle, UINT16 num_elem,
/external/bluetooth/bluedroid/bta/hl/
Dbta_hl_sdp.c95 int bta_hl_compose_supported_feature_list( UINT8 *p, UINT16 num_elem, in bta_hl_compose_supported_feature_list() argument
101 for (xx = 0; xx < num_elem; xx++, p_elem_list++) in bta_hl_compose_supported_feature_list()
144 BOOLEAN bta_hl_add_sup_feature_list (UINT32 handle, UINT16 num_elem, in bta_hl_add_sup_feature_list() argument
153 offset = bta_hl_compose_supported_feature_list(p_buf, num_elem, p_elem_list); in bta_hl_add_sup_feature_list()
/external/bluetooth/bluedroid/btif/src/
Dbtif_gatt_multi_adv_util.c369 p_prop->num_elem = 0; in btif_gattc_copy_datacb()
371 p_prop->num_elem = 1; in btif_gattc_copy_datacb()
372 p_prop->p_elem = GKI_getbuf(sizeof(tBTA_BLE_PROP_ELEM) * p_prop->num_elem); in btif_gattc_copy_datacb()
549 while (i++ != p_multi_inst_cb->data.p_proprietary->num_elem in btif_gattc_cleanup_multi_inst_cb()
/external/wpa_supplicant_8/src/eap_common/
Deap_eke_common.c217 size_t num_elem = 1; in eap_eke_prf() local
222 num_elem++; in eap_eke_prf()
228 return hmac_sha1_vector(key, key_len, num_elem, addr, len, res); in eap_eke_prf()
230 return hmac_sha256_vector(key, key_len, num_elem, addr, len, in eap_eke_prf()
Dikev2_common.c96 size_t num_elem, const u8 *addr[], const size_t *len, in ikev2_prf_hash() argument
101 hmac_sha1_vector(key, key_len, num_elem, addr, len, hash); in ikev2_prf_hash()
104 hmac_md5_vector(key, key_len, num_elem, addr, len, hash); in ikev2_prf_hash()
/external/libpcap/
Dpcap-dos.c1391 if (!q || !q->num_elem || !q->buf_start) in pktq_check()
1397 for (i = 0; i < q->num_elem; i++) in pktq_check()
1412 q->num_elem = num; in pktq_init()
1443 if (q->out_index >= q->num_elem) in pktq_inc_out()
1456 if (index >= q->num_elem) in pktq_in_index()

12