Home
last modified time | relevance | path

Searched refs:mac_alg (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/crypto/
Dccm.c465 struct crypto_alg *mac_alg; in crypto_ccm_create_common() local
477 mac_alg = crypto_find_alg(mac_name, &crypto_ahash_type, in crypto_ccm_create_common()
481 if (IS_ERR(mac_alg)) in crypto_ccm_create_common()
482 return PTR_ERR(mac_alg); in crypto_ccm_create_common()
484 mac = __crypto_hash_alg_common(mac_alg); in crypto_ccm_create_common()
550 crypto_mod_put(mac_alg); in crypto_ccm_create_common()
/Linux-v4.19/drivers/md/
Ddm-crypt.c2362 char *start, *end, *mac_alg = NULL; in crypt_ctr_auth_cipher() local
2373 mac_alg = kzalloc(end - start + 1, GFP_KERNEL); in crypt_ctr_auth_cipher()
2374 if (!mac_alg) in crypt_ctr_auth_cipher()
2376 strncpy(mac_alg, start, end - start); in crypt_ctr_auth_cipher()
2378 mac = crypto_alloc_ahash(mac_alg, 0, 0); in crypt_ctr_auth_cipher()
2379 kfree(mac_alg); in crypt_ctr_auth_cipher()