Home
last modified time | relevance | path

Searched refs:keydup (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/crypto/inside-secure/
Dsafexcel_hash.c931 u8 *keydup; in safexcel_hmac_init_pad() local
936 keydup = kmemdup(key, keylen, GFP_KERNEL); in safexcel_hmac_init_pad()
937 if (!keydup) in safexcel_hmac_init_pad()
942 sg_init_one(&sg, keydup, keylen); in safexcel_hmac_init_pad()
953 memzero_explicit(keydup, keylen); in safexcel_hmac_init_pad()
954 kfree(keydup); in safexcel_hmac_init_pad()
/Linux-v5.4/drivers/crypto/marvell/
Dhash.c1132 u8 *keydup = kmemdup(key, keylen, GFP_KERNEL); in mv_cesa_ahmac_pad_init() local
1134 if (!keydup) in mv_cesa_ahmac_pad_init()
1140 sg_init_one(&sg, keydup, keylen); in mv_cesa_ahmac_pad_init()
1151 kzfree(keydup); in mv_cesa_ahmac_pad_init()
/Linux-v5.4/drivers/crypto/
Datmel-sha.c1680 u8 *keydup; member
1690 kfree(hkey->keydup); in atmel_sha_hmac_key_release()
1701 hkey->keydup = kmemdup(key, keylen, GFP_KERNEL); in atmel_sha_hmac_key_set()
1702 if (!hkey->keydup) in atmel_sha_hmac_key_set()
1722 *key = (hkey->keydup) ? hkey->keydup : hkey->buffer; in atmel_sha_hmac_key_get()