Lines Matching refs:mac
66 const u8 *addr[], const size_t *len, u8 *mac) in openssl_digest_vector() argument
86 if (!EVP_DigestFinal(&ctx, mac, &mac_len)) { in openssl_digest_vector()
96 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
98 return openssl_digest_vector(EVP_md4(), num_elem, addr, len, mac); in md4_vector()
160 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
162 return openssl_digest_vector(EVP_md5(), num_elem, addr, len, mac); in md5_vector()
166 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
168 return openssl_digest_vector(EVP_sha1(), num_elem, addr, len, mac); in sha1_vector()
174 u8 *mac) in sha256_vector() argument
176 return openssl_digest_vector(EVP_sha256(), num_elem, addr, len, mac); in sha256_vector()
719 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) in crypto_hash_finish() argument
727 if (mac == NULL || len == NULL) { in crypto_hash_finish()
734 HMAC_Final(&ctx->ctx, mac, &mdlen); in crypto_hash_finish()
737 res = HMAC_Final(&ctx->ctx, mac, &mdlen); in crypto_hash_finish()
753 const u8 *addr[], const size_t *len, u8 *mac, in openssl_hmac_vector() argument
772 HMAC_Final(&ctx, mac, &mdlen); in openssl_hmac_vector()
775 res = HMAC_Final(&ctx, mac, &mdlen); in openssl_hmac_vector()
786 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector() argument
789 mac, 16); in hmac_md5_vector()
794 u8 *mac) in hmac_md5() argument
796 return hmac_md5_vector(key, key_len, 1, &data, &data_len, mac); in hmac_md5()
813 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector() argument
816 len, mac, 20); in hmac_sha1_vector()
821 u8 *mac) in hmac_sha1() argument
823 return hmac_sha1_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha1()
830 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha256_vector() argument
833 len, mac, 32); in hmac_sha256_vector()
838 size_t data_len, u8 *mac) in hmac_sha256() argument
840 return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha256()
849 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha384_vector() argument
852 len, mac, 32); in hmac_sha384_vector()
857 size_t data_len, u8 *mac) in hmac_sha384() argument
859 return hmac_sha384_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha384()
875 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_vector() argument
898 if (!CMAC_Final(ctx, mac, &outlen) || outlen != 16) in omac1_aes_vector()
909 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_128_vector() argument
911 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector()
915 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_128() argument
917 return omac1_aes_128_vector(key, 1, &data, &data_len, mac); in omac1_aes_128()
921 int omac1_aes_256(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_256() argument
923 return omac1_aes_vector(key, 32, 1, &data, &data_len, mac); in omac1_aes_256()