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

/linux-master/crypto/
H A Dcipher.c24 unsigned long alignmask = crypto_cipher_alignmask(tfm); local
29 absize = keylen + alignmask;
34 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1);
46 unsigned long alignmask = crypto_cipher_alignmask(tfm); local
51 if ((unsigned long)key & alignmask)
61 unsigned long alignmask = crypto_cipher_alignmask(tfm); local
66 if (unlikely(((unsigned long)dst | (unsigned long)src) & alignmask)) {
69 u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1);
H A Dskcipher.c96 addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1);
192 data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1);
226 unsigned alignmask = walk->alignmask; local
251 /* Minimum size to align p->buffer by alignmask. */
252 n += alignmask & ~a;
255 n += (bsize - 1) & ~(alignmask | a);
272 walk->dst.virt.addr = PTR_ALIGN(buffer, alignmask + 1);
365 if (unlikely((walk->in.offset | walk->out.offset) & walk->alignmask)) {
398 unsigned alignmask local
579 unsigned long alignmask = crypto_skcipher_alignmask(tfm); local
601 unsigned long alignmask = crypto_skcipher_alignmask(tfm); local
[all...]
H A Daead.c26 unsigned long alignmask = crypto_aead_alignmask(tfm); local
31 absize = keylen + alignmask;
36 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1);
46 unsigned long alignmask = crypto_aead_alignmask(tfm); local
49 if ((unsigned long)key & alignmask)
H A Dlskcipher.c35 unsigned long alignmask = crypto_lskcipher_alignmask(tfm); local
41 absize = keylen + alignmask;
46 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1);
56 unsigned long alignmask = crypto_lskcipher_alignmask(tfm); local
62 if ((unsigned long)key & alignmask)
130 unsigned long alignmask = crypto_lskcipher_alignmask(tfm); local
133 alignmask)
471 * alignmask, and priority are set from the underlying cipher but can be
H A Dctr.c32 unsigned long alignmask = crypto_cipher_alignmask(tfm); local
35 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1);
78 unsigned long alignmask = crypto_cipher_alignmask(tfm); local
83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1);
H A Dxctr.c79 unsigned long alignmask = crypto_cipher_alignmask(tfm); local
83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1);
H A Ddrbg.c1748 unsigned int alignmask; local
1786 alignmask = crypto_skcipher_alignmask(sk_tfm);
1787 drbg->outscratchpadbuf = kmalloc(DRBG_OUTSCRATCHLEN + alignmask,
1794 alignmask + 1);
1799 return alignmask;
H A Dtestmgr.c261 * @offset_relative_to_alignmask: if true, add the algorithm's alignmask to the
289 * @iv_offset_relative_to_alignmask: if true, add the algorithm's alignmask to
292 * @key_offset_relative_to_alignmask: if true, add the algorithm's alignmask to
341 .name = "buffer aligned only to alignmask",
567 * @alignmask: the algorithm's alignmask
581 const unsigned int alignmask,
627 offset += alignmask;
766 unsigned int alignmask,
776 err = build_test_sglist(&tsgls->src, cfg->src_divs, alignmask,
579 build_test_sglist(struct test_sglist *tsgl, const struct test_sg_division *divs, const unsigned int alignmask, const unsigned int total_len, struct iov_iter *data, const struct test_sg_division *out_divs[XBUFSIZE]) argument
764 build_cipher_test_sglists(struct cipher_test_sglists *tsgls, const struct testvec_config *cfg, unsigned int alignmask, unsigned int src_total_len, unsigned int dst_total_len, const struct kvec *inputs, unsigned int nr_inputs) argument
822 prepare_keybuf(const u8 *key, unsigned int ksize, const struct testvec_config *cfg, unsigned int alignmask, const u8 **keybuf_ret, const u8 **keyptr_ret) argument
1221 build_hash_sglist(struct test_sglist *tsgl, const struct hash_testvec *vec, const struct testvec_config *cfg, unsigned int alignmask, const struct test_sg_division *divs[XBUFSIZE]) argument
2032 const unsigned int alignmask = crypto_aead_alignmask(tfm); local
2811 const unsigned int alignmask = crypto_skcipher_alignmask(tfm); local
[all...]
/linux-master/include/crypto/internal/
H A Dskcipher.h89 unsigned int alignmask; member in struct:skcipher_walk
/linux-master/drivers/crypto/caam/
H A Dcaamalg_qi2.c4941 unsigned int alignmask; local
4952 alignmask = DPAA2_CSCN_ALIGN - 1;
4953 alignmask |= dma_get_cache_alignment() - 1;
4954 priv->cscn_mem = kzalloc(ALIGN(DPAA2_CSCN_SIZE, alignmask + 1),

Completed in 158 milliseconds