• Home
  • Raw
  • Download

Lines Matching refs:bsize

19 	unsigned int bsize = crypto_skcipher_blocksize(tfm);  in crypto_cbc_encrypt_segment()  local
26 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
28 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
30 src += bsize; in crypto_cbc_encrypt_segment()
31 dst += bsize; in crypto_cbc_encrypt_segment()
32 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
41 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_inplace() local
47 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
51 src += bsize; in crypto_cbc_encrypt_inplace()
52 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
54 memcpy(walk->iv, iv, bsize); in crypto_cbc_encrypt_inplace()
84 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_decrypt_segment() local
92 crypto_xor(dst, iv, bsize); in crypto_cbc_decrypt_segment()
95 src += bsize; in crypto_cbc_decrypt_segment()
96 dst += bsize; in crypto_cbc_decrypt_segment()
97 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment()
99 memcpy(walk->iv, iv, bsize); in crypto_cbc_decrypt_segment()
108 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_decrypt_inplace() local
114 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
115 memcpy(last_iv, src, bsize); in crypto_cbc_decrypt_inplace()
119 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
121 crypto_xor(src, src - bsize, bsize); in crypto_cbc_decrypt_inplace()
122 src -= bsize; in crypto_cbc_decrypt_inplace()
125 crypto_xor(src, walk->iv, bsize); in crypto_cbc_decrypt_inplace()
126 memcpy(walk->iv, last_iv, bsize); in crypto_cbc_decrypt_inplace()