Home
last modified time | relevance | path

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

/Linux-v5.4/crypto/
Dccm.c462 struct crypto_alg *mac_alg; in crypto_ccm_create_common() local
474 mac_alg = crypto_find_alg(mac_name, &crypto_ahash_type, in crypto_ccm_create_common()
478 if (IS_ERR(mac_alg)) in crypto_ccm_create_common()
479 return PTR_ERR(mac_alg); in crypto_ccm_create_common()
481 mac = __crypto_hash_alg_common(mac_alg); in crypto_ccm_create_common()
552 crypto_mod_put(mac_alg); in crypto_ccm_create_common()
/Linux-v5.4/drivers/md/
Ddm-crypt.c2229 char *start, *end, *mac_alg = NULL; in crypt_ctr_auth_cipher() local
2240 mac_alg = kzalloc(end - start + 1, GFP_KERNEL); in crypt_ctr_auth_cipher()
2241 if (!mac_alg) in crypt_ctr_auth_cipher()
2243 strncpy(mac_alg, start, end - start); in crypt_ctr_auth_cipher()
2245 mac = crypto_alloc_ahash(mac_alg, 0, 0); in crypt_ctr_auth_cipher()
2246 kfree(mac_alg); in crypt_ctr_auth_cipher()