Lines Matching refs:bsize

48 	int bsize = crypto_cipher_blocksize(tfm);  in crypto_cbc_encrypt_segment()  local
55 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
57 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
59 src += bsize; in crypto_cbc_encrypt_segment()
60 dst += bsize; in crypto_cbc_encrypt_segment()
61 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
72 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_encrypt_inplace() local
78 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
82 src += bsize; in crypto_cbc_encrypt_inplace()
83 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
85 memcpy(walk->iv, iv, bsize); in crypto_cbc_encrypt_inplace()
120 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_decrypt_segment() local
128 crypto_xor(dst, iv, bsize); in crypto_cbc_decrypt_segment()
131 src += bsize; in crypto_cbc_decrypt_segment()
132 dst += bsize; in crypto_cbc_decrypt_segment()
133 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment()
135 memcpy(walk->iv, iv, bsize); in crypto_cbc_decrypt_segment()
146 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_decrypt_inplace() local
149 u8 last_iv[bsize]; in crypto_cbc_decrypt_inplace()
152 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
153 memcpy(last_iv, src, bsize); in crypto_cbc_decrypt_inplace()
157 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
159 crypto_xor(src, src - bsize, bsize); in crypto_cbc_decrypt_inplace()
160 src -= bsize; in crypto_cbc_decrypt_inplace()
163 crypto_xor(src, walk->iv, bsize); in crypto_cbc_decrypt_inplace()
164 memcpy(walk->iv, last_iv, bsize); in crypto_cbc_decrypt_inplace()