Lines Matching refs:bsize

20 	unsigned int bsize = crypto_skcipher_blocksize(skcipher);  in crypto_cbc_encrypt_segment()  local
34 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
36 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
38 src += bsize; in crypto_cbc_encrypt_segment()
39 dst += bsize; in crypto_cbc_encrypt_segment()
40 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
48 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_inplace() local
61 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
65 src += bsize; in crypto_cbc_encrypt_inplace()
66 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
68 memcpy(walk->iv, iv, bsize); in crypto_cbc_encrypt_inplace()
95 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_decrypt_segment() local
110 crypto_xor(dst, iv, bsize); in crypto_cbc_decrypt_segment()
113 src += bsize; in crypto_cbc_decrypt_segment()
114 dst += bsize; in crypto_cbc_decrypt_segment()
115 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment()
117 memcpy(walk->iv, iv, bsize); in crypto_cbc_decrypt_segment()
125 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_decrypt_inplace() local
138 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
139 memcpy(last_iv, src, bsize); in crypto_cbc_decrypt_inplace()
143 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
145 crypto_xor(src, src - bsize, bsize); in crypto_cbc_decrypt_inplace()
146 src -= bsize; in crypto_cbc_decrypt_inplace()
149 crypto_xor(src, walk->iv, bsize); in crypto_cbc_decrypt_inplace()
150 memcpy(walk->iv, last_iv, bsize); in crypto_cbc_decrypt_inplace()