Lines Matching refs:bsize

50 	int bsize = crypto_cipher_blocksize(tfm);  in crypto_pcbc_encrypt_segment()  local
57 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment()
59 crypto_xor_cpy(iv, dst, src, bsize); in crypto_pcbc_encrypt_segment()
61 src += bsize; in crypto_pcbc_encrypt_segment()
62 dst += bsize; in crypto_pcbc_encrypt_segment()
63 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_segment()
72 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_inplace() local
79 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace()
80 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_inplace()
82 crypto_xor_cpy(iv, tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace()
84 src += bsize; in crypto_pcbc_encrypt_inplace()
85 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_inplace()
87 memcpy(walk->iv, iv, bsize); in crypto_pcbc_encrypt_inplace()
120 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_decrypt_segment() local
128 crypto_xor(dst, iv, bsize); in crypto_pcbc_decrypt_segment()
129 crypto_xor_cpy(iv, dst, src, bsize); in crypto_pcbc_decrypt_segment()
131 src += bsize; in crypto_pcbc_decrypt_segment()
132 dst += bsize; in crypto_pcbc_decrypt_segment()
133 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_decrypt_segment()
135 memcpy(walk->iv, iv, bsize); in crypto_pcbc_decrypt_segment()
144 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_decrypt_inplace() local
151 memcpy(tmpbuf, src, bsize); in crypto_pcbc_decrypt_inplace()
153 crypto_xor(src, iv, bsize); in crypto_pcbc_decrypt_inplace()
154 crypto_xor_cpy(iv, src, tmpbuf, bsize); in crypto_pcbc_decrypt_inplace()
156 src += bsize; in crypto_pcbc_decrypt_inplace()
157 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_decrypt_inplace()
159 memcpy(walk->iv, iv, bsize); in crypto_pcbc_decrypt_inplace()