Home
last modified time | relevance | path

Searched refs:mac_len (Results 1 – 5 of 5) sorted by relevance

/hostap-3.7.0/src/crypto/
Dcrypto_linux.c60 u8 *mac, size_t mac_len) in linux_af_alg_hash_vector() argument
102 res = recv(t, mac, mac_len, 0); in linux_af_alg_hash_vector()
109 if ((size_t) res < mac_len) { in linux_af_alg_hash_vector()
112 __func__, (int) res, (int) mac_len); in linux_af_alg_hash_vector()
234 size_t mac_len; member
252 ctx->mac_len = MD5_MAC_LEN; in crypto_hash_init()
256 ctx->mac_len = SHA1_MAC_LEN; in crypto_hash_init()
260 ctx->mac_len = MD5_MAC_LEN; in crypto_hash_init()
264 ctx->mac_len = SHA1_MAC_LEN; in crypto_hash_init()
268 ctx->mac_len = SHA256_MAC_LEN; in crypto_hash_init()
[all …]
Dcrypto_mbedtls_alt.c467 const size_t mac_len = mbedtls_md_get_size(md_info); in hmac_kdf_expand() local
469 if (okm_len > ((mac_len << 8) - mac_len)) in hmac_kdf_expand()
485 for (; okm_len >= mac_len; okm_len -= mac_len, ++iter) in hmac_kdf_expand()
492 okm += mac_len; in hmac_kdf_expand()
493 len[0] = mac_len; /*(include digest in subsequent rounds)*/ in hmac_kdf_expand()
503 forced_memzero(hash, mac_len); in hmac_kdf_expand()
557 const size_t mac_len = mbedtls_md_get_size(md_info); in hmac_prf_bits() local
559 for (ctr = 1; buf_len >= mac_len; buf_len -= mac_len, ++ctr) in hmac_prf_bits()
568 buf += mac_len; in hmac_prf_bits()
585 forced_memzero(hash, mac_len); in hmac_prf_bits()
Dcrypto_openssl.c211 unsigned int mac_len; in openssl_digest_vector() local
234 if (!EVP_DigestFinal(ctx, mac, &mac_len)) { in openssl_digest_vector()
/hostap-3.7.0/src/eap_common/
Deap_eke_common.c93 int mac_len; in eap_eke_pnonce_len() local
96 mac_len = SHA1_MAC_LEN; in eap_eke_pnonce_len()
98 mac_len = SHA256_MAC_LEN; in eap_eke_pnonce_len()
102 return AES_BLOCK_SIZE + 16 + mac_len; in eap_eke_pnonce_len()
108 int mac_len; in eap_eke_pnonce_ps_len() local
111 mac_len = SHA1_MAC_LEN; in eap_eke_pnonce_ps_len()
113 mac_len = SHA256_MAC_LEN; in eap_eke_pnonce_ps_len()
117 return AES_BLOCK_SIZE + 2 * 16 + mac_len; in eap_eke_pnonce_ps_len()
Deap_teap_common.c319 u8 *mac, size_t mac_len) in eap_teap_tls_mac() argument
325 os_memset(mac, 0, mac_len); in eap_teap_tls_mac()
349 if (mac_len > sizeof(tmp)) in eap_teap_tls_mac()
350 mac_len = sizeof(tmp); in eap_teap_tls_mac()
351 os_memcpy(mac, tmp, mac_len); in eap_teap_tls_mac()