Searched refs:alignbuffer (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/crypto/ |
D | cipher.c | 30 u8 *buffer, *alignbuffer; in setkey_unaligned() local 38 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned() 39 memcpy(alignbuffer, key, keylen); in setkey_unaligned() 40 ret = cia->cia_setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 41 memset(alignbuffer, 0, keylen); in setkey_unaligned()
|
D | aead.c | 37 u8 *buffer, *alignbuffer; in setkey_unaligned() local 45 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned() 46 memcpy(alignbuffer, key, keylen); in setkey_unaligned() 47 ret = crypto_aead_alg(tfm)->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 48 memset(alignbuffer, 0, keylen); in setkey_unaligned()
|
D | ablkcipher.c | 306 u8 *buffer, *alignbuffer; in setkey_unaligned() local 314 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned() 315 memcpy(alignbuffer, key, keylen); in setkey_unaligned() 316 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 317 memset(alignbuffer, 0, keylen); in setkey_unaligned()
|
D | blkcipher.c | 379 u8 *buffer, *alignbuffer; in setkey_unaligned() local 387 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned() 388 memcpy(alignbuffer, key, keylen); in setkey_unaligned() 389 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 390 memset(alignbuffer, 0, keylen); in setkey_unaligned()
|
D | ahash.c | 178 u8 *buffer, *alignbuffer; in ahash_setkey_unaligned() local 186 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in ahash_setkey_unaligned() 187 memcpy(alignbuffer, key, keylen); in ahash_setkey_unaligned() 188 ret = tfm->setkey(tfm, alignbuffer, keylen); in ahash_setkey_unaligned()
|
D | shash.c | 53 u8 *buffer, *alignbuffer; in shash_setkey_unaligned() local 61 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in shash_setkey_unaligned() 62 memcpy(alignbuffer, key, keylen); in shash_setkey_unaligned() 63 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
|
D | skcipher.c | 806 u8 *buffer, *alignbuffer; in skcipher_setkey_unaligned() local 815 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in skcipher_setkey_unaligned() 816 memcpy(alignbuffer, key, keylen); in skcipher_setkey_unaligned() 817 ret = cipher->setkey(tfm, alignbuffer, keylen); in skcipher_setkey_unaligned()
|