Lines Matching refs:bsize

51 	int bsize = crypto_cipher_blocksize(tfm);  in crypto_pcbc_encrypt_segment()  local
58 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment()
60 memcpy(iv, dst, bsize); in crypto_pcbc_encrypt_segment()
61 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment()
63 src += bsize; in crypto_pcbc_encrypt_segment()
64 dst += bsize; in crypto_pcbc_encrypt_segment()
65 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_segment()
76 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_inplace() local
80 u8 tmpbuf[bsize]; in crypto_pcbc_encrypt_inplace()
83 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace()
84 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_inplace()
86 memcpy(iv, tmpbuf, bsize); in crypto_pcbc_encrypt_inplace()
87 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_inplace()
89 src += bsize; in crypto_pcbc_encrypt_inplace()
90 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_inplace()
92 memcpy(walk->iv, iv, bsize); in crypto_pcbc_encrypt_inplace()
129 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_decrypt_segment() local
137 crypto_xor(dst, iv, bsize); in crypto_pcbc_decrypt_segment()
138 memcpy(iv, src, bsize); in crypto_pcbc_decrypt_segment()
139 crypto_xor(iv, dst, bsize); in crypto_pcbc_decrypt_segment()
141 src += bsize; in crypto_pcbc_decrypt_segment()
142 dst += bsize; in crypto_pcbc_decrypt_segment()
143 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_decrypt_segment()
145 memcpy(walk->iv, iv, bsize); in crypto_pcbc_decrypt_segment()
156 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_decrypt_inplace() local
160 u8 tmpbuf[bsize]; in crypto_pcbc_decrypt_inplace()
163 memcpy(tmpbuf, src, bsize); in crypto_pcbc_decrypt_inplace()
165 crypto_xor(src, iv, bsize); in crypto_pcbc_decrypt_inplace()
166 memcpy(iv, tmpbuf, bsize); in crypto_pcbc_decrypt_inplace()
167 crypto_xor(iv, src, bsize); in crypto_pcbc_decrypt_inplace()
169 src += bsize; in crypto_pcbc_decrypt_inplace()
170 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_decrypt_inplace()
172 memcpy(walk->iv, iv, bsize); in crypto_pcbc_decrypt_inplace()