Searched refs:src_len (Results 1 – 3 of 3) sorted by relevance
/lib/crypto/ |
D | chacha20poly1305.c | 57 __chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in __chacha20poly1305_encrypt() argument 74 chacha20_crypt(chacha_state, dst, src, src_len); in __chacha20poly1305_encrypt() 76 poly1305_update(&poly1305_state, dst, src_len); in __chacha20poly1305_encrypt() 77 if (src_len & 0xf) in __chacha20poly1305_encrypt() 78 poly1305_update(&poly1305_state, pad0, 0x10 - (src_len & 0xf)); in __chacha20poly1305_encrypt() 81 b.lens[1] = cpu_to_le64(src_len); in __chacha20poly1305_encrypt() 84 poly1305_final(&poly1305_state, dst + src_len); in __chacha20poly1305_encrypt() 90 void chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in chacha20poly1305_encrypt() argument 105 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state); in chacha20poly1305_encrypt() 112 void xchacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, in xchacha20poly1305_encrypt() argument [all …]
|
D | chacha20poly1305-selftest.c | 8828 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/ |
D | decompress_unlzo.c | 105 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() 234 r = lzo1x_decompress_safe((u8 *) in_buf, src_len, in unlzo() 248 *posp += src_len + 12; in unlzo() [all …]
|