Lines Matching refs:alignmask
98 addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); in skcipher_done_slow()
194 data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1); in skcipher_walk_complete()
228 unsigned alignmask = walk->alignmask; in skcipher_next_slow() local
254 n += alignmask & ~a; in skcipher_next_slow()
257 n += (bsize - 1) & ~(alignmask | a); in skcipher_next_slow()
274 walk->dst.virt.addr = PTR_ALIGN(buffer, alignmask + 1); in skcipher_next_slow()
367 if (unlikely((walk->in.offset | walk->out.offset) & walk->alignmask)) { in skcipher_walk_next()
400 unsigned alignmask = walk->alignmask; in skcipher_copy_iv() local
407 aligned_bs = ALIGN(bs, alignmask + 1); in skcipher_copy_iv()
410 size = alignmask & ~a; in skcipher_copy_iv()
418 size += (bs - 1) & ~(alignmask | a); in skcipher_copy_iv()
425 iv = PTR_ALIGN(walk->buffer, alignmask + 1); in skcipher_copy_iv()
438 if (unlikely(((unsigned long)walk->iv & walk->alignmask))) { in skcipher_walk_first()
472 walk->alignmask = crypto_skcipher_alignmask(tfm); in skcipher_walk_skcipher()
537 walk->alignmask = crypto_aead_alignmask(tfm); in skcipher_walk_aead_common()
576 unsigned long alignmask = crypto_skcipher_alignmask(tfm); in skcipher_setkey_unaligned() local
582 absize = keylen + alignmask; in skcipher_setkey_unaligned()
587 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in skcipher_setkey_unaligned()
598 unsigned long alignmask = crypto_skcipher_alignmask(tfm); in crypto_skcipher_setkey() local
604 if ((unsigned long)key & alignmask) in crypto_skcipher_setkey()