Home
last modified time | relevance | path

Searched refs:alignbuffer (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/crypto/
Dcipher.c25 u8 *buffer, *alignbuffer; in setkey_unaligned() local
33 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
34 memcpy(alignbuffer, key, keylen); in setkey_unaligned()
35 ret = cia->cia_setkey(crypto_cipher_tfm(tfm), alignbuffer, keylen); in setkey_unaligned()
36 memset(alignbuffer, 0, keylen); in setkey_unaligned()
Daead.c27 u8 *buffer, *alignbuffer; in setkey_unaligned() local
35 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
36 memcpy(alignbuffer, key, keylen); in setkey_unaligned()
37 ret = crypto_aead_alg(tfm)->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
38 memset(alignbuffer, 0, keylen); in setkey_unaligned()
Dahash.c142 u8 *buffer, *alignbuffer; in ahash_setkey_unaligned() local
150 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in ahash_setkey_unaligned()
151 memcpy(alignbuffer, key, keylen); in ahash_setkey_unaligned()
152 ret = tfm->setkey(tfm, alignbuffer, keylen); in ahash_setkey_unaligned()
Dshash.c48 u8 *buffer, *alignbuffer; in shash_setkey_unaligned() local
56 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in shash_setkey_unaligned()
57 memcpy(alignbuffer, key, keylen); in shash_setkey_unaligned()
58 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
Dskcipher.c583 u8 *buffer, *alignbuffer; in skcipher_setkey_unaligned() local
592 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in skcipher_setkey_unaligned()
593 memcpy(alignbuffer, key, keylen); in skcipher_setkey_unaligned()
594 ret = cipher->setkey(tfm, alignbuffer, keylen); in skcipher_setkey_unaligned()