Home
last modified time | relevance | path

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

/crypto/
Dcipher.c26 u8 *buffer, *alignbuffer; in setkey_unaligned() local
34 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
35 memcpy(alignbuffer, key, keylen); in setkey_unaligned()
36 ret = cia->cia_setkey(crypto_cipher_tfm(tfm), alignbuffer, keylen); in setkey_unaligned()
37 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.c578 u8 *buffer, *alignbuffer; in skcipher_setkey_unaligned() local
587 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in skcipher_setkey_unaligned()
588 memcpy(alignbuffer, key, keylen); in skcipher_setkey_unaligned()
589 ret = cipher->setkey(tfm, alignbuffer, keylen); in skcipher_setkey_unaligned()