Searched refs:shash (Results 1 – 2 of 2) sorted by relevance
/net/ipv6/ |
D | seg6_hmac.c | 124 struct shash_desc *shash; in __do_hmac() local 146 shash = *this_cpu_ptr(algo->shashs); in __do_hmac() 147 shash->tfm = tfm; in __do_hmac() 149 ret = crypto_shash_digest(shash, text, psize, output); in __do_hmac() 356 struct shash_desc *shash; in seg6_hmac_init_algo() local 381 shsize = sizeof(*shash) + crypto_shash_descsize(tfm); in seg6_hmac_init_algo() 388 shash = kzalloc_node(shsize, GFP_KERNEL, in seg6_hmac_init_algo() 390 if (!shash) in seg6_hmac_init_algo() 392 *per_cpu_ptr(algo->shashs, cpu) = shash; in seg6_hmac_init_algo() 423 struct shash_desc *shash; in seg6_hmac_exit() local [all …]
|
/net/bluetooth/ |
D | amp.c | 131 struct shash_desc *shash; in hmac_sha256() local 149 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm), in hmac_sha256() 151 if (!shash) { in hmac_sha256() 156 shash->tfm = tfm; in hmac_sha256() 158 ret = crypto_shash_digest(shash, plaintext, psize, output); in hmac_sha256() 160 kfree(shash); in hmac_sha256()
|