Lines Matching refs:src

55 __chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len,  in __chacha20poly1305_encrypt()  argument
73 chacha20_crypt(chacha_state, dst, src, src_len); in __chacha20poly1305_encrypt()
89 void chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in chacha20poly1305_encrypt() argument
104 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, in chacha20poly1305_encrypt()
112 void xchacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in xchacha20poly1305_encrypt() argument
120 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, in xchacha20poly1305_encrypt()
126 __chacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, in __chacha20poly1305_decrypt() argument
151 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt()
161 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt()
163 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()
170 bool chacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, in chacha20poly1305_decrypt() argument
186 ret = __chacha20poly1305_decrypt(dst, src, src_len, ad, ad_len, in chacha20poly1305_decrypt()
196 bool xchacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, in xchacha20poly1305_decrypt() argument
204 return __chacha20poly1305_decrypt(dst, src, src_len, ad, ad_len, in xchacha20poly1305_decrypt()
210 bool chacha20poly1305_crypt_sg_inplace(struct scatterlist *src, in chacha20poly1305_crypt_sg_inplace() argument
258 sg_miter_start(&miter, src, sg_nents(src), flags); in chacha20poly1305_crypt_sg_inplace()
323 sg_copy_buffer(src, sg_nents(src), b.mac[encrypt], in chacha20poly1305_crypt_sg_inplace()
335 bool chacha20poly1305_encrypt_sg_inplace(struct scatterlist *src, size_t src_len, in chacha20poly1305_encrypt_sg_inplace() argument
340 return chacha20poly1305_crypt_sg_inplace(src, src_len, ad, ad_len, in chacha20poly1305_encrypt_sg_inplace()
345 bool chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len, in chacha20poly1305_decrypt_sg_inplace() argument
353 return chacha20poly1305_crypt_sg_inplace(src, in chacha20poly1305_decrypt_sg_inplace()