Lines Matching refs:bsize
19 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_segment() local
33 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
35 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
37 src += bsize; in crypto_cbc_encrypt_segment()
38 dst += bsize; in crypto_cbc_encrypt_segment()
39 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
47 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_inplace() local
60 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
64 src += bsize; in crypto_cbc_encrypt_inplace()
65 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
67 memcpy(walk->iv, iv, bsize); in crypto_cbc_encrypt_inplace()
94 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_decrypt_segment() local
109 crypto_xor(dst, iv, bsize); in crypto_cbc_decrypt_segment()
112 src += bsize; in crypto_cbc_decrypt_segment()
113 dst += bsize; in crypto_cbc_decrypt_segment()
114 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment()
116 memcpy(walk->iv, iv, bsize); in crypto_cbc_decrypt_segment()
124 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_decrypt_inplace() local
137 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
138 memcpy(last_iv, src, bsize); in crypto_cbc_decrypt_inplace()
142 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
144 crypto_xor(src, src - bsize, bsize); in crypto_cbc_decrypt_inplace()
145 src -= bsize; in crypto_cbc_decrypt_inplace()
148 crypto_xor(src, walk->iv, bsize); in crypto_cbc_decrypt_inplace()
149 memcpy(walk->iv, last_iv, bsize); in crypto_cbc_decrypt_inplace()