Home
last modified time | relevance | path

Searched refs:srclen (Results 1 – 25 of 46) sorted by relevance

12

/linux/crypto/
A Dpoly1305_generic.c41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
50 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
54 return srclen; in crypto_poly1305_setdesckey()
58 unsigned int srclen) in poly1305_blocks() argument
64 src += srclen - datalen; in poly1305_blocks()
65 srclen = datalen; in poly1305_blocks()
82 srclen -= bytes; in crypto_poly1305_update()
94 src += srclen - (srclen % POLY1305_BLOCK_SIZE); in crypto_poly1305_update()
95 srclen %= POLY1305_BLOCK_SIZE; in crypto_poly1305_update()
98 if (unlikely(srclen)) { in crypto_poly1305_update()
[all …]
A Dnhpoly1305.c111 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units()
121 srclen -= bytes; in nhpoly1305_units()
122 } while (srclen); in nhpoly1305_units()
156 const u8 *src, unsigned int srclen, in crypto_nhpoly1305_update_helper() argument
173 srclen -= bytes; in crypto_nhpoly1305_update_helper()
176 if (srclen >= NH_MESSAGE_UNIT) { in crypto_nhpoly1305_update_helper()
180 srclen -= bytes; in crypto_nhpoly1305_update_helper()
183 if (srclen) { in crypto_nhpoly1305_update_helper()
184 memcpy(state->buffer, src, srclen); in crypto_nhpoly1305_update_helper()
185 state->buflen = srclen; in crypto_nhpoly1305_update_helper()
[all …]
A Dghash-generic.c79 const u8 *src, unsigned int srclen) in ghash_update() argument
86 int n = min(srclen, dctx->bytes); in ghash_update()
90 srclen -= n; in ghash_update()
99 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update()
103 srclen -= GHASH_BLOCK_SIZE; in ghash_update()
106 if (srclen) { in ghash_update()
107 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
108 while (srclen--) in ghash_update()
/linux/fs/hfs/
A Dtrans.c42 srclen = in->len; in hfs_mac2asc()
44 srclen = HFS_NAMELEN; in hfs_mac2asc()
50 while (srclen > 0) { in hfs_mac2asc()
58 srclen -= size; in hfs_mac2asc()
61 srclen--; in hfs_mac2asc()
78 while (--srclen >= 0) in hfs_mac2asc()
106 srclen = in->len; in hfs_asc2mac()
112 while (srclen > 0) { in hfs_asc2mac()
119 srclen -= size; in hfs_asc2mac()
140 if (dstlen > srclen) in hfs_asc2mac()
[all …]
/linux/drivers/crypto/vmx/
A Dghash.c95 const u8 *src, unsigned int srclen) in __ghash_blocks() argument
102 src, srclen); in __ghash_blocks()
107 while (srclen >= GHASH_BLOCK_SIZE) { in __ghash_blocks()
110 srclen -= GHASH_BLOCK_SIZE; in __ghash_blocks()
117 const u8 *src, unsigned int srclen) in p8_ghash_update() argument
126 srclen); in p8_ghash_update()
127 dctx->bytes += srclen; in p8_ghash_update()
143 srclen -= len; in p8_ghash_update()
145 if (srclen) { in p8_ghash_update()
146 memcpy(dctx->buffer, src, srclen); in p8_ghash_update()
[all …]
/linux/net/core/
A Dutils.c129 if (srclen < 0) in in4_pton()
130 srclen = strlen(src); in in4_pton()
161 srclen--; in in4_pton()
200 if (srclen < 0) in in6_pton()
201 srclen = strlen(src); in in6_pton()
278 srclen--; in in6_pton()
305 int srclen = strlen(src); in inet4_pton() local
307 if (srclen > INET_ADDRSTRLEN) in inet4_pton()
325 int srclen = strlen(src); in inet6_pton() local
327 if (srclen > INET6_ADDRSTRLEN) in inet6_pton()
[all …]
/linux/arch/s390/crypto/
A Dghash_s390.c55 const u8 *src, unsigned int srclen) in ghash_update() argument
64 n = min(srclen, dctx->bytes); in ghash_update()
66 srclen -= n; in ghash_update()
77 n = srclen & ~(GHASH_BLOCK_SIZE - 1); in ghash_update()
81 srclen -= n; in ghash_update()
84 if (srclen) { in ghash_update()
85 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
86 memcpy(buf, src, srclen); in ghash_update()
/linux/arch/x86/crypto/
A Dnhpoly1305-avx2-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_avx2_update() argument
29 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_avx2_update()
30 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_avx2_update()
33 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_avx2_update()
39 srclen -= n; in nhpoly1305_avx2_update()
40 } while (srclen); in nhpoly1305_avx2_update()
A Dnhpoly1305-sse2-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_sse2_update() argument
29 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_sse2_update()
30 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_sse2_update()
33 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_sse2_update()
39 srclen -= n; in nhpoly1305_sse2_update()
40 } while (srclen); in nhpoly1305_sse2_update()
A Dpoly1305_glue.c169 unsigned int srclen) in poly1305_update_arch() argument
174 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
177 srclen -= bytes; in poly1305_update_arch()
187 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in poly1305_update_arch()
188 bytes = round_down(srclen, POLY1305_BLOCK_SIZE); in poly1305_update_arch()
189 srclen -= bytes; in poly1305_update_arch()
196 if (unlikely(srclen)) { in poly1305_update_arch()
197 dctx->buflen = srclen; in poly1305_update_arch()
198 memcpy(dctx->buf, src, srclen); in poly1305_update_arch()
226 const u8 *src, unsigned int srclen) in crypto_poly1305_update() argument
[all …]
A Dghash-clmulni-intel_glue.c28 void clmul_ghash_update(char *dst, const char *src, unsigned int srclen,
77 const u8 *src, unsigned int srclen) in ghash_update() argument
85 int n = min(srclen, dctx->bytes); in ghash_update()
89 srclen -= n; in ghash_update()
98 clmul_ghash_update(dst, src, srclen, &ctx->shash); in ghash_update()
101 if (srclen & 0xf) { in ghash_update()
102 src += srclen - (srclen & 0xf); in ghash_update()
103 srclen &= 0xf; in ghash_update()
104 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
105 while (srclen--) in ghash_update()
/linux/arch/arm64/crypto/
A Dnhpoly1305-neon-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update() argument
29 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_neon_update()
30 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_neon_update()
33 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_neon_update()
39 srclen -= n; in nhpoly1305_neon_update()
40 } while (srclen); in nhpoly1305_neon_update()
/linux/arch/arm/crypto/
A Dnhpoly1305-neon-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update() argument
29 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_neon_update()
30 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_neon_update()
33 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_neon_update()
39 srclen -= n; in nhpoly1305_neon_update()
40 } while (srclen); in nhpoly1305_neon_update()
A Dpoly1305-glue.c116 const u8 *src, unsigned int srclen) in arm_poly1305_update() argument
120 arm_poly1305_do_update(dctx, src, srclen, false); in arm_poly1305_update()
126 unsigned int srclen) in arm_poly1305_update_neon() argument
129 bool do_neon = crypto_simd_usable() && srclen > 128; in arm_poly1305_update_neon()
133 arm_poly1305_do_update(dctx, src, srclen, do_neon); in arm_poly1305_update_neon()
/linux/tools/testing/selftests/powerpc/nx-gzip/
A Dgzfht_test.c79 static int compress_fht_sample(char *src, uint32_t srclen, char *dst, in compress_fht_sample() argument
110 put32(cmdp->crb.source_dde, ddebc, srclen); in compress_fht_sample()
240 uint32_t srclen, dstlen; in compress_file() local
300 srclen = NX_MIN(chunk, inlen); in compress_file()
302 dstlen = NX_MIN(2*srclen, outlen); in compress_file()
313 nxu_touch_pages(srcbuf, srclen, pagelen, 0); in compress_file()
317 srcbuf, srclen, in compress_file()
345 inlen = inlen - srclen; in compress_file()
346 srcbuf = srcbuf + srclen; in compress_file()
347 srctotlen = srctotlen + srclen; in compress_file()
[all …]
/linux/lib/
A Dnlattr.c727 size_t srclen = nla_len(nla); in nla_strscpy() local
735 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strscpy()
736 srclen--; in nla_strscpy()
738 if (srclen >= dstsize) { in nla_strscpy()
742 len = srclen; in nla_strscpy()
763 size_t srclen = nla_len(nla); in nla_strdup() local
766 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strdup()
767 srclen--; in nla_strdup()
769 dst = kmalloc(srclen + 1, flags); in nla_strdup()
771 memcpy(dst, src, srclen); in nla_strdup()
[all …]
/linux/fs/btrfs/
A Dzlib.c285 size_t srclen = cb->compressed_len; in zlib_decompress_bio() local
286 unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); in zlib_decompress_bio()
292 workspace->strm.avail_in = min_t(size_t, srclen, PAGE_SIZE); in zlib_decompress_bio()
301 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in zlib_decompress_bio()
315 while (workspace->strm.total_in < srclen) { in zlib_decompress_bio()
347 tmp = srclen - workspace->strm.total_in; in zlib_decompress_bio()
365 struct page *dest_page, unsigned long start_byte, size_t srclen, in zlib_decompress() argument
379 workspace->strm.avail_in = srclen; in zlib_decompress()
387 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in zlib_decompress()
A Dcompression.h88 unsigned long start_byte, size_t srclen, size_t destlen);
151 struct page *dest_page, unsigned long start_byte, size_t srclen,
162 struct page *dest_page, unsigned long start_byte, size_t srclen,
172 struct page *dest_page, unsigned long start_byte, size_t srclen,
A Dzstd.c550 size_t srclen = cb->compressed_len; in zstd_decompress_bio() local
554 unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); in zstd_decompress_bio()
568 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
594 if (workspace->in_buf.pos >= srclen) in zstd_decompress_bio()
608 srclen -= PAGE_SIZE; in zstd_decompress_bio()
611 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
623 struct page *dest_page, unsigned long start_byte, size_t srclen, in zstd_decompress() argument
645 workspace->in_buf.size = srclen; in zstd_decompress()
/linux/fs/cramfs/
A Duncompress.c31 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument
36 stream.avail_in = srclen; in cramfs_uncompress_block()
55 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
/linux/drivers/crypto/cavium/nitrox/
A Dnitrox_aead.c176 rctx->srclen); in nitrox_set_creq()
229 rctx->srclen = areq->assoclen + areq->cryptlen; in nitrox_aes_gcm_enc()
230 rctx->dstlen = rctx->srclen + aead->authsize; in nitrox_aes_gcm_enc()
263 rctx->srclen = areq->cryptlen + areq->assoclen; in nitrox_aes_gcm_dec()
264 rctx->dstlen = rctx->srclen - aead->authsize; in nitrox_aes_gcm_dec()
451 aead_rctx->srclen = aead_rctx->assoclen + aead_rctx->cryptlen; in nitrox_rfc4106_enc()
452 aead_rctx->dstlen = aead_rctx->srclen + aead->authsize; in nitrox_rfc4106_enc()
483 aead_rctx->srclen = in nitrox_rfc4106_dec()
485 aead_rctx->dstlen = aead_rctx->srclen - aead->authsize; in nitrox_rfc4106_dec()
/linux/fs/ksmbd/
A Dunicode.c321 int smbConvertToUTF16(__le16 *target, const char *source, int srclen, in smbConvertToUTF16() argument
330 return smb_strtoUTF16(target, source, srclen, cp); in smbConvertToUTF16()
332 for (i = 0, j = 0; i < srclen; j++) { in smbConvertToUTF16()
363 charlen = cp->char2uni(source + i, srclen - i, &tmp); in smbConvertToUTF16()
/linux/include/linux/
A Dsw842.h7 int sw842_compress(const u8 *src, unsigned int srclen,
10 int sw842_decompress(const u8 *src, unsigned int srclen,
A Dinet.h53 extern int in4_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
54 extern int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
/linux/fs/jffs2/
A Dcompr_zlib.c143 uint32_t srclen, uint32_t destlen) in jffs2_zlib_decompress() argument
151 inf_strm.avail_in = srclen; in jffs2_zlib_decompress()
160 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in jffs2_zlib_decompress()

Completed in 37 milliseconds

12