Home
last modified time | relevance | path

Searched refs:alignmask (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/crypto/
Dcipher.c24 unsigned long alignmask = crypto_cipher_alignmask(tfm); in setkey_unaligned() local
29 absize = keylen + alignmask; in setkey_unaligned()
34 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
46 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_cipher_setkey() local
51 if ((unsigned long)key & alignmask) in crypto_cipher_setkey()
61 unsigned long alignmask = crypto_cipher_alignmask(tfm); in cipher_crypt_one() local
66 if (unlikely(((unsigned long)dst | (unsigned long)src) & alignmask)) { in cipher_crypt_one()
69 u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in cipher_crypt_one()
Dskcipher.c96 addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); in skcipher_done_slow()
192 data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1); in skcipher_walk_complete()
226 unsigned alignmask = walk->alignmask; in skcipher_next_slow() local
252 n += alignmask & ~a; in skcipher_next_slow()
255 n += (bsize - 1) & ~(alignmask | a); in skcipher_next_slow()
272 walk->dst.virt.addr = PTR_ALIGN(buffer, alignmask + 1); in skcipher_next_slow()
365 if (unlikely((walk->in.offset | walk->out.offset) & walk->alignmask)) { in skcipher_walk_next()
398 unsigned alignmask = walk->alignmask; in skcipher_copy_iv() local
405 aligned_bs = ALIGN(bs, alignmask + 1); in skcipher_copy_iv()
408 size = alignmask & ~a; in skcipher_copy_iv()
[all …]
Daead.c26 unsigned long alignmask = crypto_aead_alignmask(tfm); in setkey_unaligned() local
31 absize = keylen + alignmask; in setkey_unaligned()
36 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
46 unsigned long alignmask = crypto_aead_alignmask(tfm); in crypto_aead_setkey() local
49 if ((unsigned long)key & alignmask) in crypto_aead_setkey()
Dlskcipher.c35 unsigned long alignmask = crypto_lskcipher_alignmask(tfm); in lskcipher_setkey_unaligned() local
41 absize = keylen + alignmask; in lskcipher_setkey_unaligned()
46 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in lskcipher_setkey_unaligned()
56 unsigned long alignmask = crypto_lskcipher_alignmask(tfm); in crypto_lskcipher_setkey() local
62 if ((unsigned long)key & alignmask) in crypto_lskcipher_setkey()
130 unsigned long alignmask = crypto_lskcipher_alignmask(tfm); in crypto_lskcipher_crypt() local
133 alignmask) in crypto_lskcipher_crypt()
Dctr.c32 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_ctr_crypt_final() local
35 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_final()
78 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_ctr_crypt_inplace() local
83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_inplace()
Dxctr.c79 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_xctr_crypt_inplace() local
83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_xctr_crypt_inplace()
Dtestmgr.c587 const unsigned int alignmask, in build_test_sglist() argument
633 offset += alignmask; in build_test_sglist()
772 unsigned int alignmask, in build_cipher_test_sglists() argument
782 err = build_test_sglist(&tsgls->src, cfg->src_divs, alignmask, in build_cipher_test_sglists()
819 alignmask, dst_total_len, NULL, NULL); in build_cipher_test_sglists()
830 unsigned int alignmask, in prepare_keybuf() argument
838 key_offset += alignmask; in prepare_keybuf()
854 #define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \ argument
859 err = prepare_keybuf((key), (ksize), (cfg), (alignmask), \
1251 unsigned int alignmask, in build_hash_sglist() argument
[all …]
Ddrbg.c1748 unsigned int alignmask; in drbg_init_sym_kernel() local
1786 alignmask = crypto_skcipher_alignmask(sk_tfm); in drbg_init_sym_kernel()
1787 drbg->outscratchpadbuf = kmalloc(DRBG_OUTSCRATCHLEN + alignmask, in drbg_init_sym_kernel()
1794 alignmask + 1); in drbg_init_sym_kernel()
1799 return alignmask; in drbg_init_sym_kernel()
/linux-6.12.1/include/crypto/internal/
Dskcipher.h89 unsigned int alignmask; member
/linux-6.12.1/drivers/crypto/caam/
Dcaamalg_qi2.c4941 unsigned int alignmask; in dpaa2_dpseci_congestion_setup() local
4952 alignmask = DPAA2_CSCN_ALIGN - 1; in dpaa2_dpseci_congestion_setup()
4953 alignmask |= dma_get_cache_alignment() - 1; in dpaa2_dpseci_congestion_setup()
4954 priv->cscn_mem = kzalloc(ALIGN(DPAA2_CSCN_SIZE, alignmask + 1), in dpaa2_dpseci_congestion_setup()