Home
last modified time | relevance | path

Searched refs:dst_len (Results 1 – 2 of 2) sorted by relevance

/lib/
Ddecompress_unlzo.c105 u32 src_len, dst_len; in unlzo() local
181 dst_len = get_unaligned_be32(in_buf); in unlzo()
186 if (dst_len == 0) { in unlzo()
192 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
211 if (src_len <= 0 || src_len > dst_len) { in unlzo()
226 tmp = dst_len; in unlzo()
231 if (unlikely(dst_len == src_len)) in unlzo()
237 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
243 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
246 out_buf += dst_len; in unlzo()
/lib/crypto/
Dchacha20poly1305.c130 size_t dst_len; in __chacha20poly1305_decrypt() local
148 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt()
149 poly1305_update(&poly1305_state, src, dst_len); in __chacha20poly1305_decrypt()
150 if (dst_len & 0xf) in __chacha20poly1305_decrypt()
151 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf)); in __chacha20poly1305_decrypt()
154 b.lens[1] = cpu_to_le64(dst_len); in __chacha20poly1305_decrypt()
159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt()
161 chacha20_crypt(chacha_state, dst, src, dst_len); in __chacha20poly1305_decrypt()