Lines Matching refs:alignmask
76 unsigned int alignmask = crypto_blkcipher_alignmask(tfm); in blkcipher_done_slow() local
78 addr = (u8 *)ALIGN((unsigned long)walk->buffer, alignmask + 1); in blkcipher_done_slow()
150 unsigned int alignmask) in blkcipher_next_slow() argument
153 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in blkcipher_next_slow()
162 n = aligned_bsize * 3 - (alignmask + 1) + in blkcipher_next_slow()
163 (alignmask & ~(crypto_tfm_ctx_alignment() - 1)); in blkcipher_next_slow()
170 alignmask + 1); in blkcipher_next_slow()
228 unsigned int alignmask = crypto_blkcipher_alignmask(tfm); in blkcipher_walk_next() local
241 if (!scatterwalk_aligned(&walk->in, alignmask) || in blkcipher_walk_next()
242 !scatterwalk_aligned(&walk->out, alignmask)) { in blkcipher_walk_next()
256 err = blkcipher_next_slow(desc, walk, bsize, alignmask); in blkcipher_walk_next()
280 unsigned int alignmask) in blkcipher_copy_iv() argument
284 unsigned aligned_bs = ALIGN(bs, alignmask + 1); in blkcipher_copy_iv()
286 (alignmask + 1); in blkcipher_copy_iv()
289 size += alignmask & ~(crypto_tfm_ctx_alignment() - 1); in blkcipher_copy_iv()
294 iv = (u8 *)ALIGN((unsigned long)walk->buffer, alignmask + 1); in blkcipher_copy_iv()
325 unsigned int alignmask = crypto_blkcipher_alignmask(tfm); in blkcipher_walk_first() local
336 if (unlikely(((unsigned long)walk->iv & alignmask))) { in blkcipher_walk_first()
337 int err = blkcipher_copy_iv(walk, tfm, alignmask); in blkcipher_walk_first()
363 unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); in setkey_unaligned() local
368 absize = keylen + alignmask; in setkey_unaligned()
373 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
384 unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); in setkey() local
391 if ((unsigned long)key & alignmask) in setkey()