Lines Matching refs:bsize
24 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_segment() local
31 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
33 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
35 src += bsize; in crypto_cbc_encrypt_segment()
36 dst += bsize; in crypto_cbc_encrypt_segment()
37 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
46 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_inplace() local
52 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
56 src += bsize; in crypto_cbc_encrypt_inplace()
57 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
59 memcpy(walk->iv, iv, bsize); in crypto_cbc_encrypt_inplace()
89 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_decrypt_segment() local
97 crypto_xor(dst, iv, bsize); in crypto_cbc_decrypt_segment()
100 src += bsize; in crypto_cbc_decrypt_segment()
101 dst += bsize; in crypto_cbc_decrypt_segment()
102 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment()
104 memcpy(walk->iv, iv, bsize); in crypto_cbc_decrypt_segment()
113 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_decrypt_inplace() local
116 u8 last_iv[bsize]; in crypto_cbc_decrypt_inplace()
119 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
120 memcpy(last_iv, src, bsize); in crypto_cbc_decrypt_inplace()
124 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
126 crypto_xor(src, src - bsize, bsize); in crypto_cbc_decrypt_inplace()
127 src -= bsize; in crypto_cbc_decrypt_inplace()
130 crypto_xor(src, walk->iv, bsize); in crypto_cbc_decrypt_inplace()
131 memcpy(walk->iv, last_iv, bsize); in crypto_cbc_decrypt_inplace()