Lines Matching full:src
16 const u8 *src, u8 *dst, unsigned nbytes, in crypto_cbc_encrypt_segment() argument
21 for (; nbytes >= bsize; src += bsize, dst += bsize, nbytes -= bsize) { in crypto_cbc_encrypt_segment()
22 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
31 u8 *src, unsigned nbytes, u8 *oiv) in crypto_cbc_encrypt_inplace() argument
40 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
41 crypto_lskcipher_encrypt(tfm, src, src, bsize, NULL); in crypto_cbc_encrypt_inplace()
42 iv = src; in crypto_cbc_encrypt_inplace()
44 src += bsize; in crypto_cbc_encrypt_inplace()
53 static int crypto_cbc_encrypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_cbc_encrypt() argument
61 if (src == dst) in crypto_cbc_encrypt()
64 rem = crypto_cbc_encrypt_segment(cipher, src, dst, len, iv); in crypto_cbc_encrypt()
70 const u8 *src, u8 *dst, unsigned nbytes, in crypto_cbc_decrypt_segment() argument
80 crypto_lskcipher_decrypt(tfm, src, dst, bsize, NULL); in crypto_cbc_decrypt_segment()
82 iv = src; in crypto_cbc_decrypt_segment()
84 src += bsize; in crypto_cbc_decrypt_segment()
95 u8 *src, unsigned nbytes, u8 *iv) in crypto_cbc_decrypt_inplace() argument
104 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
105 memcpy(last_iv, src, bsize); in crypto_cbc_decrypt_inplace()
108 crypto_lskcipher_decrypt(tfm, src, src, bsize, NULL); in crypto_cbc_decrypt_inplace()
111 crypto_xor(src, src - bsize, bsize); in crypto_cbc_decrypt_inplace()
112 src -= bsize; in crypto_cbc_decrypt_inplace()
115 crypto_xor(src, iv, bsize); in crypto_cbc_decrypt_inplace()
122 static int crypto_cbc_decrypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_cbc_decrypt() argument
130 if (src == dst) in crypto_cbc_decrypt()
133 rem = crypto_cbc_decrypt_segment(cipher, src, dst, len, iv); in crypto_cbc_decrypt()