Home
last modified time | relevance | path

Searched refs:hmac_name (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/drivers/nvme/common/
Dauth.c127 u8 nvme_auth_hmac_id(const char *hmac_name) in nvme_auth_hmac_id() argument
131 if (!hmac_name || !strlen(hmac_name)) in nvme_auth_hmac_id()
137 if (!strncmp(hash_map[i].hmac, hmac_name, in nvme_auth_hmac_id()
234 const char *hmac_name; in nvme_auth_transform_key() local
248 hmac_name = nvme_auth_hmac_name(key->hash); in nvme_auth_transform_key()
249 if (!hmac_name) { in nvme_auth_transform_key()
254 key_tfm = crypto_alloc_shash(hmac_name, 0, 0); in nvme_auth_transform_key()
336 const char *hmac_name; in nvme_auth_augmented_challenge() local
348 hmac_name = nvme_auth_hmac_name(hmac_id); in nvme_auth_augmented_challenge()
349 if (!hmac_name) { in nvme_auth_augmented_challenge()
[all …]
/linux-6.6.21/fs/ubifs/
Dauth.c261 char hmac_name[CRYPTO_MAX_ALG_NAME]; in ubifs_init_authentication() local
276 snprintf(hmac_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)", in ubifs_init_authentication()
318 c->hmac_tfm = crypto_alloc_shash(hmac_name, 0, 0); in ubifs_init_authentication()
321 ubifs_err(c, "Can not allocate %s: %d", hmac_name, err); in ubifs_init_authentication()
328 hmac_name, c->hmac_desc_len, UBIFS_HMAC_ARR_SZ); in ubifs_init_authentication()
/linux-6.6.21/net/sctp/
Dauth.c29 .hmac_name = "hmac(sha1)",
39 .hmac_name = "hmac(sha256)",
477 if (!sctp_hmac_list[id].hmac_name) in sctp_auth_init_hmacs()
485 tfm = crypto_alloc_shash(sctp_hmac_list[id].hmac_name, 0, 0); in sctp_auth_init_hmacs()
554 !sctp_hmac_list[id].hmac_name) { in sctp_auth_asoc_get_hmac()
797 if (!sctp_hmac_list[id].hmac_name) in sctp_auth_ep_set_hmacs()
/linux-6.6.21/drivers/nvme/host/
Dauth.c159 const char *hmac_name, *kpp_name; in nvme_auth_process_dhchap_challenge() local
166 hmac_name = nvme_auth_hmac_name(data->hashid); in nvme_auth_process_dhchap_challenge()
167 if (!hmac_name) { in nvme_auth_process_dhchap_challenge()
176 !strcmp(crypto_shash_alg_name(chap->shash_tfm), hmac_name) && in nvme_auth_process_dhchap_challenge()
180 chap->qid, hmac_name); in nvme_auth_process_dhchap_challenge()
190 chap->shash_tfm = crypto_alloc_shash(hmac_name, 0, in nvme_auth_process_dhchap_challenge()
195 chap->qid, hmac_name, PTR_ERR(chap->shash_tfm)); in nvme_auth_process_dhchap_challenge()
214 chap->qid, hmac_name); in nvme_auth_process_dhchap_challenge()
/linux-6.6.21/include/linux/
Dnvme-auth.h25 u8 nvme_auth_hmac_id(const char *hmac_name);
/linux-6.6.21/drivers/crypto/caam/
Dcaamhash.c1577 char hmac_name[CRYPTO_MAX_ALG_NAME]; member
1589 .hmac_name = "hmac(sha1)",
1610 .hmac_name = "hmac(sha224)",
1631 .hmac_name = "hmac(sha256)",
1652 .hmac_name = "hmac(sha384)",
1673 .hmac_name = "hmac(sha512)",
1694 .hmac_name = "hmac(md5)",
1713 .hmac_name = "xcbc(aes)",
1732 .hmac_name = "cmac(aes)",
1915 template->hmac_name); in caam_hash_alloc()
Dcaamalg_qi2.c4406 char hmac_name[CRYPTO_MAX_ALG_NAME]; member
4418 .hmac_name = "hmac(sha1)",
4439 .hmac_name = "hmac(sha224)",
4460 .hmac_name = "hmac(sha256)",
4481 .hmac_name = "hmac(sha384)",
4502 .hmac_name = "hmac(sha512)",
4523 .hmac_name = "hmac(md5)",
4646 template->hmac_name); in caam_hash_alloc()
/linux-6.6.21/include/net/sctp/
Dauth.h33 char *hmac_name; /* name for loading */ member
/linux-6.6.21/drivers/block/drbd/
Ddrbd_nl.c2329 char hmac_name[CRYPTO_MAX_ALG_NAME]; in alloc_crypto() local
2345 snprintf(hmac_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)", in alloc_crypto()
2348 rv = alloc_shash(&crypto->cram_hmac_tfm, hmac_name, in alloc_crypto()