Home
last modified time | relevance | path

Searched refs:src_len (Results 1 – 4 of 4) sorted by relevance

/lib/crypto/
A Dchacha20poly1305.c75 poly1305_update(&poly1305_state, dst, src_len); in __chacha20poly1305_encrypt()
76 if (src_len & 0xf) in __chacha20poly1305_encrypt()
80 b.lens[1] = cpu_to_le64(src_len); in __chacha20poly1305_encrypt()
83 poly1305_final(&poly1305_state, dst + src_len); in __chacha20poly1305_encrypt()
140 if (unlikely(src_len < POLY1305_DIGEST_SIZE)) in __chacha20poly1305_decrypt()
150 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt()
211 const size_t src_len, in chacha20poly1305_crypt_sg_inplace() argument
238 if (WARN_ON(src_len > INT_MAX)) in chacha20poly1305_crypt_sg_inplace()
299 if (src_len & 0xf) in chacha20poly1305_crypt_sg_inplace()
303 b.lens[1] = cpu_to_le64(src_len); in chacha20poly1305_crypt_sg_inplace()
[all …]
A Daesgcm.c88 static void aesgcm_mac(const struct aesgcm_ctx *ctx, const u8 *src, int src_len, in aesgcm_mac() argument
91 be128 tail = { cpu_to_be64(assoc_len * 8), cpu_to_be64(src_len * 8) }; in aesgcm_mac()
96 aesgcm_ghash(&ghash, &ctx->ghash_key, src, src_len); in aesgcm_mac()
A Dchacha20poly1305-selftest.c8828 chacha20poly1305_encrypt_bignonce(u8 *dst, const u8 *src, const size_t src_len, in chacha20poly1305_encrypt_bignonce() argument
8852 chacha20_crypt(&chacha20_state, dst, src, src_len); in chacha20poly1305_encrypt_bignonce()
8853 poly1305_update(&poly1305_state, dst, src_len); in chacha20poly1305_encrypt_bignonce()
8854 poly1305_update(&poly1305_state, pad0, (0x10 - src_len) & 0xf); in chacha20poly1305_encrypt_bignonce()
8856 b.lens[1] = cpu_to_le64(src_len); in chacha20poly1305_encrypt_bignonce()
8858 poly1305_final(&poly1305_state, dst + src_len); in chacha20poly1305_encrypt_bignonce()
8862 chacha20poly1305_selftest_encrypt(u8 *dst, const u8 *src, const size_t src_len, in chacha20poly1305_selftest_encrypt() argument
8868 chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, in chacha20poly1305_selftest_encrypt()
8871 chacha20poly1305_encrypt_bignonce(dst, src, src_len, ad, in chacha20poly1305_selftest_encrypt()
/lib/
A Ddecompress_unlzo.c105 u32 src_len, dst_len; in unlzo() local
207 src_len = get_unaligned_be32(in_buf); in unlzo()
211 if (src_len <= 0 || src_len > dst_len) { in unlzo()
217 if (fill && in_len < src_len) { in unlzo()
218 skip = fill(in_buf + in_len, src_len - in_len); in unlzo()
222 if (in_len < src_len) { in unlzo()
231 if (unlikely(dst_len == src_len)) in unlzo()
232 memcpy(out_buf, in_buf, src_len); in unlzo()
248 *posp += src_len + 12; in unlzo()
250 in_buf += src_len; in unlzo()
[all …]

Completed in 21 milliseconds