| /Linux-v5.4/arch/x86/crypto/ |
| D | poly1305_glue.c | 64 const u8 *src, unsigned int srclen) in poly1305_simd_blocks() argument 73 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_simd_blocks() 74 src += srclen - datalen; in poly1305_simd_blocks() 75 srclen = datalen; in poly1305_simd_blocks() 79 if (poly1305_use_avx2 && srclen >= POLY1305_BLOCK_SIZE * 4) { in poly1305_simd_blocks() 92 blocks = srclen / (POLY1305_BLOCK_SIZE * 4); in poly1305_simd_blocks() 96 srclen -= POLY1305_BLOCK_SIZE * 4 * blocks; in poly1305_simd_blocks() 99 if (likely(srclen >= POLY1305_BLOCK_SIZE * 2)) { in poly1305_simd_blocks() 105 blocks = srclen / (POLY1305_BLOCK_SIZE * 2); in poly1305_simd_blocks() 109 srclen -= POLY1305_BLOCK_SIZE * 2 * blocks; in poly1305_simd_blocks() [all …]
|
| D | nhpoly1305-avx2-glue.c | 26 const u8 *src, unsigned int srclen) in nhpoly1305_avx2_update() argument 28 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_avx2_update() 29 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_avx2_update() 32 unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); in nhpoly1305_avx2_update() 38 srclen -= n; in nhpoly1305_avx2_update() 39 } while (srclen); in nhpoly1305_avx2_update()
|
| D | nhpoly1305-sse2-glue.c | 26 const u8 *src, unsigned int srclen) in nhpoly1305_sse2_update() argument 28 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_sse2_update() 29 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_sse2_update() 32 unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); in nhpoly1305_sse2_update() 38 srclen -= n; in nhpoly1305_sse2_update() 39 } while (srclen); in nhpoly1305_sse2_update()
|
| D | ghash-clmulni-intel_glue.c | 28 void clmul_ghash_update(char *dst, const char *src, unsigned int srclen, 79 const u8 *src, unsigned int srclen) in ghash_update() argument 87 int n = min(srclen, dctx->bytes); in ghash_update() 91 srclen -= n; in ghash_update() 100 clmul_ghash_update(dst, src, srclen, &ctx->shash); in ghash_update() 103 if (srclen & 0xf) { in ghash_update() 104 src += srclen - (srclen & 0xf); in ghash_update() 105 srclen &= 0xf; in ghash_update() 106 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() 107 while (srclen--) in ghash_update()
|
| /Linux-v5.4/fs/hfs/ |
| D | trans.c | 39 int srclen, dstlen, size; in hfs_mac2asc() local 42 srclen = in->len; in hfs_mac2asc() 43 if (srclen > HFS_NAMELEN) in hfs_mac2asc() 44 srclen = HFS_NAMELEN; in hfs_mac2asc() 50 while (srclen > 0) { in hfs_mac2asc() 52 size = nls_disk->char2uni(src, srclen, &ch); in hfs_mac2asc() 58 srclen -= size; in hfs_mac2asc() 61 srclen--; in hfs_mac2asc() 78 while (--srclen >= 0) in hfs_mac2asc() 103 int srclen, dstlen, size; in hfs_asc2mac() local [all …]
|
| /Linux-v5.4/drivers/crypto/vmx/ |
| D | ghash.c | 95 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 124 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update() 126 srclen); in p8_ghash_update() 127 dctx->bytes += srclen; in p8_ghash_update() 136 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update() 139 len = srclen & ~(GHASH_DIGEST_SIZE - 1); in p8_ghash_update() [all …]
|
| /Linux-v5.4/crypto/ |
| D | poly1305_generic.c | 67 const u8 *src, unsigned int srclen) in crypto_poly1305_setdesckey() argument 70 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey() 73 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey() 76 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey() 82 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey() 86 return srclen; in crypto_poly1305_setdesckey() 167 const u8 *src, unsigned int srclen, u32 hibit) in poly1305_blocks() argument 172 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_blocks() 173 src += srclen - datalen; in poly1305_blocks() 174 srclen = datalen; in poly1305_blocks() [all …]
|
| D | nhpoly1305.c | 93 const u8 *src, unsigned int srclen, nh_t nh_fn) in nhpoly1305_units() argument 100 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units() 110 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units() 120 srclen -= bytes; in nhpoly1305_units() 121 } while (srclen); in nhpoly1305_units() 155 const u8 *src, unsigned int srclen, in crypto_nhpoly1305_update_helper() argument 163 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper() 172 srclen -= bytes; in crypto_nhpoly1305_update_helper() 175 if (srclen >= NH_MESSAGE_UNIT) { in crypto_nhpoly1305_update_helper() 176 bytes = round_down(srclen, NH_MESSAGE_UNIT); in crypto_nhpoly1305_update_helper() [all …]
|
| D | ghash-generic.c | 81 const u8 *src, unsigned int srclen) in ghash_update() argument 88 int n = min(srclen, dctx->bytes); in ghash_update() 92 srclen -= n; in ghash_update() 101 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update() 105 srclen -= GHASH_BLOCK_SIZE; in ghash_update() 108 if (srclen) { in ghash_update() 109 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() 110 while (srclen--) in ghash_update()
|
| /Linux-v5.4/net/core/ |
| D | utils.c | 118 int in4_pton(const char *src, int srclen, in in4_pton() argument 129 if (srclen < 0) in in4_pton() 130 srclen = strlen(src); in in4_pton() 136 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton() 161 srclen--; in in4_pton() 184 int in6_pton(const char *src, int srclen, in in6_pton() argument 200 if (srclen < 0) in in6_pton() 201 srclen = strlen(src); in in6_pton() 206 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in6_pton() 249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton() [all …]
|
| /Linux-v5.4/arch/arm/crypto/ |
| D | nhpoly1305-neon-glue.c | 27 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, PAGE_SIZE); in nhpoly1305_neon_update() 39 srclen -= n; in nhpoly1305_neon_update() 40 } while (srclen); in nhpoly1305_neon_update()
|
| /Linux-v5.4/arch/arm64/crypto/ |
| D | nhpoly1305-neon-glue.c | 27 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, PAGE_SIZE); in nhpoly1305_neon_update() 39 srclen -= n; in nhpoly1305_neon_update() 40 } while (srclen); in nhpoly1305_neon_update()
|
| /Linux-v5.4/arch/s390/crypto/ |
| D | ghash_s390.c | 57 const u8 *src, unsigned int srclen) in ghash_update() argument 66 n = min(srclen, dctx->bytes); in ghash_update() 68 srclen -= n; in ghash_update() 79 n = srclen & ~(GHASH_BLOCK_SIZE - 1); in ghash_update() 83 srclen -= n; in ghash_update() 86 if (srclen) { in ghash_update() 87 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() 88 memcpy(buf, src, srclen); in ghash_update()
|
| /Linux-v5.4/lib/ |
| D | nlattr.c | 518 size_t srclen = nla_len(nla); in nla_strlcpy() local 521 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strlcpy() 522 srclen--; in nla_strlcpy() 525 size_t len = (srclen >= dstsize) ? dstsize - 1 : srclen; in nla_strlcpy() 531 return srclen; in nla_strlcpy() 544 size_t srclen = nla_len(nla); in nla_strdup() local 547 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strdup() 548 srclen--; in nla_strdup() 550 dst = kmalloc(srclen + 1, flags); in nla_strdup() 552 memcpy(dst, src, srclen); in nla_strdup() [all …]
|
| /Linux-v5.4/fs/cramfs/ |
| D | uncompress.c | 31 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-v5.4/fs/btrfs/ |
| D | lzo.c | 312 size_t srclen = cb->compressed_len; in lzo_decompress_bio() local 313 unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); in lzo_decompress_bio() 342 if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || in lzo_decompress_bio() 343 tot_len < srclen - PAGE_SIZE) { in lzo_decompress_bio() 450 size_t srclen, size_t destlen) in lzo_decompress() argument 460 if (srclen < LZO_LEN || srclen > max_segment_len + LZO_LEN * 2) in lzo_decompress() 464 if (in_len != srclen) in lzo_decompress() 469 if (in_len != srclen - LZO_LEN * 2) { in lzo_decompress()
|
| D | zlib.c | 239 size_t srclen = cb->compressed_len; in zlib_decompress_bio() local 240 unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); in zlib_decompress_bio() 248 workspace->strm.avail_in = min_t(size_t, srclen, PAGE_SIZE); in zlib_decompress_bio() 257 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in zlib_decompress_bio() 271 while (workspace->strm.total_in < srclen) { in zlib_decompress_bio() 304 tmp = srclen - workspace->strm.total_in; in zlib_decompress_bio() 325 size_t srclen, size_t destlen) in zlib_decompress() argument 339 workspace->strm.avail_in = srclen; in zlib_decompress() 347 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in zlib_decompress()
|
| D | zstd.c | 557 size_t srclen = cb->compressed_len; in zstd_decompress_bio() local 561 unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); in zstd_decompress_bio() 575 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio() 601 if (workspace->in_buf.pos >= srclen) in zstd_decompress_bio() 615 srclen -= PAGE_SIZE; in zstd_decompress_bio() 618 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio() 632 size_t srclen, size_t destlen) in zstd_decompress() argument 654 workspace->in_buf.size = srclen; in zstd_decompress()
|
| /Linux-v5.4/include/linux/ |
| D | sw842.h | 7 int sw842_compress(const u8 *src, unsigned int srclen, 10 int sw842_decompress(const u8 *src, unsigned int srclen,
|
| D | inet.h | 53 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-v5.4/drivers/crypto/cavium/nitrox/ |
| D | nitrox_aead.c | 160 rctx->srclen); in nitrox_set_creq() 202 rctx->srclen = areq->assoclen + areq->cryptlen; in nitrox_aes_gcm_enc() 203 rctx->dstlen = rctx->srclen + aead->authsize; in nitrox_aes_gcm_enc() 233 rctx->srclen = areq->cryptlen + areq->assoclen; in nitrox_aes_gcm_dec() 234 rctx->dstlen = rctx->srclen - aead->authsize; in nitrox_aes_gcm_dec() 421 aead_rctx->srclen = aead_rctx->assoclen + aead_rctx->cryptlen; in nitrox_rfc4106_enc() 422 aead_rctx->dstlen = aead_rctx->srclen + aead->authsize; in nitrox_rfc4106_enc() 453 aead_rctx->srclen = in nitrox_rfc4106_dec() 455 aead_rctx->dstlen = aead_rctx->srclen - aead->authsize; in nitrox_rfc4106_dec()
|
| /Linux-v5.4/include/crypto/ |
| D | poly1305.h | 59 const u8 *src, unsigned int srclen); 61 const u8 *src, unsigned int srclen);
|
| D | nhpoly1305.h | 66 const u8 *src, unsigned int srclen); 68 const u8 *src, unsigned int srclen,
|
| /Linux-v5.4/fs/jffs2/ |
| D | compr_lzo.c | 69 uint32_t srclen, uint32_t destlen) in jffs2_lzo_decompress() argument 74 ret = lzo1x_decompress_safe(data_in, srclen, cpage_out, &dl); in jffs2_lzo_decompress()
|
| D | compr_zlib.c | 143 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()
|