Home
last modified time | relevance | path

Searched refs:srclen (Results 1 - 25 of 93) sorted by relevance

1234

/kernel/linux/linux-5.10/crypto/
H A Dpoly1305_generic.c35 const u8 *src, unsigned int srclen) in crypto_poly1305_setdesckey()
38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
44 if (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()
63 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_blocks()
64 src += srclen - datalen; in poly1305_blocks()
65 srclen in poly1305_blocks()
34 crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) crypto_poly1305_setdesckey() argument
57 poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) poly1305_blocks() argument
72 crypto_poly1305_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) crypto_poly1305_update() argument
[all...]
H A Dnhpoly1305.c94 const u8 *src, unsigned int srclen, nh_t nh_fn) in nhpoly1305_units()
101 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
111 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()
164 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
173 srclen -= bytes; in crypto_nhpoly1305_update_helper()
176 if (srclen >= NH_MESSAGE_UNIT) { in crypto_nhpoly1305_update_helper()
177 bytes = round_down(srclen, NH_MESSAGE_UNI in crypto_nhpoly1305_update_helper()
92 nhpoly1305_units(struct nhpoly1305_state *state, const struct nhpoly1305_key *key, const u8 *src, unsigned int srclen, nh_t nh_fn) nhpoly1305_units() argument
155 crypto_nhpoly1305_update_helper(struct shash_desc *desc, const u8 *src, unsigned int srclen, nh_t nh_fn) crypto_nhpoly1305_update_helper() argument
191 crypto_nhpoly1305_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) crypto_nhpoly1305_update() argument
[all...]
H A Dghash-generic.c79 const u8 *src, unsigned int srclen) in ghash_update()
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()
78 ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) ghash_update() argument
/kernel/linux/linux-6.6/crypto/
H A Dpoly1305_generic.c35 const u8 *src, unsigned int srclen) in crypto_poly1305_setdesckey()
38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
44 if (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()
63 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_blocks()
64 src += srclen - datalen; in poly1305_blocks()
65 srclen in poly1305_blocks()
34 crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) crypto_poly1305_setdesckey() argument
57 poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) poly1305_blocks() argument
72 crypto_poly1305_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) crypto_poly1305_update() argument
[all...]
H A Dnhpoly1305.c94 const u8 *src, unsigned int srclen, nh_t nh_fn) in nhpoly1305_units()
101 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
111 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()
164 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
173 srclen -= bytes; in crypto_nhpoly1305_update_helper()
176 if (srclen >= NH_MESSAGE_UNIT) { in crypto_nhpoly1305_update_helper()
177 bytes = round_down(srclen, NH_MESSAGE_UNI in crypto_nhpoly1305_update_helper()
92 nhpoly1305_units(struct nhpoly1305_state *state, const struct nhpoly1305_key *key, const u8 *src, unsigned int srclen, nh_t nh_fn) nhpoly1305_units() argument
155 crypto_nhpoly1305_update_helper(struct shash_desc *desc, const u8 *src, unsigned int srclen, nh_t nh_fn) crypto_nhpoly1305_update_helper() argument
191 crypto_nhpoly1305_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) crypto_nhpoly1305_update() argument
[all...]
H A Dghash-generic.c79 const u8 *src, unsigned int srclen) in ghash_update()
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()
78 ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) ghash_update() argument
/kernel/linux/linux-5.10/fs/hfs/
H A Dtrans.c39 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, dstle in hfs_asc2mac() local
[all...]
/kernel/linux/linux-6.6/fs/hfs/
H A Dtrans.c39 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, dstle in hfs_asc2mac() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/crypto/
H A Dpoly1305-p10-glue.c78 const u8 *src, unsigned int srclen) in crypto_poly1305_p10_update()
84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_p10_update()
87 srclen -= bytes; in crypto_poly1305_p10_update()
102 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in crypto_poly1305_p10_update()
103 bytes = round_down(srclen, POLY1305_BLOCK_SIZE); in crypto_poly1305_p10_update()
106 srclen -= used; in crypto_poly1305_p10_update()
109 if (crypto_simd_usable() && (srclen >= POLY1305_BLOCK_SIZE*4)) { in crypto_poly1305_p10_update()
111 poly1305_p10le_4blocks(&dctx->h, src, srclen); in crypto_poly1305_p10_update()
113 src += srclen - (srclen in crypto_poly1305_p10_update()
77 crypto_poly1305_p10_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) crypto_poly1305_p10_update() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/vmx/
H A Dghash.c95 const u8 *src, unsigned int srclen) in __ghash_blocks()
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()
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 in p8_ghash_update()
93 __ghash_blocks(struct p8_ghash_ctx *ctx, struct p8_ghash_desc_ctx *dctx, const u8 *src, unsigned int srclen) __ghash_blocks() argument
116 p8_ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) p8_ghash_update() argument
[all...]
/kernel/linux/linux-6.6/drivers/crypto/vmx/
H A Dghash.c96 const u8 *src, unsigned int srclen) in __ghash_blocks()
103 src, srclen); in __ghash_blocks()
108 while (srclen >= GHASH_BLOCK_SIZE) { in __ghash_blocks()
111 srclen -= GHASH_BLOCK_SIZE; in __ghash_blocks()
118 const u8 *src, unsigned int srclen) in p8_ghash_update()
125 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
127 srclen); in p8_ghash_update()
128 dctx->bytes += srclen; in p8_ghash_update()
137 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
140 len = srclen in p8_ghash_update()
94 __ghash_blocks(struct p8_ghash_ctx *ctx, struct p8_ghash_desc_ctx *dctx, const u8 *src, unsigned int srclen) __ghash_blocks() argument
117 p8_ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) p8_ghash_update() argument
[all...]
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Dnhpoly1305-neon-glue.c20 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update()
22 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_neon_update()
23 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_neon_update()
26 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_neon_update()
32 srclen -= n; in nhpoly1305_neon_update()
33 } while (srclen); in nhpoly1305_neon_update()
19 nhpoly1305_neon_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_neon_update() argument
/kernel/linux/linux-6.6/arch/arm64/crypto/
H A Dnhpoly1305-neon-glue.c20 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update()
22 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_neon_update()
23 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_neon_update()
26 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_neon_update()
32 srclen -= n; in nhpoly1305_neon_update()
33 } while (srclen); in nhpoly1305_neon_update()
19 nhpoly1305_neon_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_neon_update() argument
H A Dpolyval-ce-glue.c102 const u8 *src, unsigned int srclen) in polyval_arm64_update()
111 n = min(srclen, dctx->bytes); in polyval_arm64_update()
115 srclen -= n; in polyval_arm64_update()
125 while (srclen >= POLYVAL_BLOCK_SIZE) { in polyval_arm64_update()
127 nblocks = min(srclen, 4096U) / POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
129 srclen -= nblocks * POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
133 if (srclen) { in polyval_arm64_update()
134 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_arm64_update()
136 while (srclen--) in polyval_arm64_update()
101 polyval_arm64_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) polyval_arm64_update() argument
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dnhpoly1305-avx2-glue.c20 const u8 *src, unsigned int srclen) in nhpoly1305_avx2_update()
22 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_avx2_update()
23 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_avx2_update()
26 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_avx2_update()
32 srclen -= n; in nhpoly1305_avx2_update()
33 } while (srclen); in nhpoly1305_avx2_update()
19 nhpoly1305_avx2_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_avx2_update() argument
H A Dnhpoly1305-sse2-glue.c20 const u8 *src, unsigned int srclen) in nhpoly1305_sse2_update()
22 if (srclen < 64 || !crypto_simd_usable()) in nhpoly1305_sse2_update()
23 return crypto_nhpoly1305_update(desc, src, srclen); in nhpoly1305_sse2_update()
26 unsigned int n = min_t(unsigned int, srclen, SZ_4K); in nhpoly1305_sse2_update()
32 srclen -= n; in nhpoly1305_sse2_update()
33 } while (srclen); in nhpoly1305_sse2_update()
19 nhpoly1305_sse2_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_sse2_update() argument
H A Dpolyval-clmulni_glue.c111 const u8 *src, unsigned int srclen) in polyval_x86_update()
120 n = min(srclen, dctx->bytes); in polyval_x86_update()
124 srclen -= n; in polyval_x86_update()
134 while (srclen >= POLYVAL_BLOCK_SIZE) { in polyval_x86_update()
136 nblocks = min(srclen, 4096U) / POLYVAL_BLOCK_SIZE; in polyval_x86_update()
138 srclen -= nblocks * POLYVAL_BLOCK_SIZE; in polyval_x86_update()
142 if (srclen) { in polyval_x86_update()
143 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_x86_update()
145 while (srclen--) in polyval_x86_update()
110 polyval_x86_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) polyval_x86_update() argument
/kernel/linux/linux-5.10/arch/s390/crypto/
H A Dghash_s390.c55 const u8 *src, unsigned int srclen) in ghash_update()
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()
54 ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) ghash_update() argument
/kernel/linux/linux-6.6/arch/s390/crypto/
H A Dghash_s390.c55 const u8 *src, unsigned int srclen) in ghash_update()
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()
54 ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) ghash_update() argument
/kernel/linux/linux-5.10/net/core/
H A Dutils.c109 * @srclen: the length of the string, -1 means strlen(src)
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()
175 * @srclen: the length of the string, -1 means strlen(src)
184 int in6_pton(const char *src, int srclen, in in6_pton() argument
200 if (srclen < 0) in in6_pton()
201 srclen in in6_pton()
305 int srclen = strlen(src); inet4_pton() local
325 int srclen = strlen(src); inet6_pton() local
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dutils.c109 * @srclen: the length of the string, -1 means strlen(src)
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()
175 * @srclen: the length of the string, -1 means strlen(src)
184 int in6_pton(const char *src, int srclen, in in6_pton() argument
200 if (srclen < 0) in in6_pton()
201 srclen in in6_pton()
305 size_t srclen = strlen(src); inet4_pton() local
325 size_t srclen = strlen(src); inet6_pton() local
[all...]
/kernel/linux/linux-5.10/arch/arm64/crypto/
H A Dnhpoly1305-neon-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update()
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()
26 nhpoly1305_neon_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_neon_update() argument
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Dnhpoly1305-avx2-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_avx2_update()
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()
26 nhpoly1305_avx2_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_avx2_update() argument
H A Dnhpoly1305-sse2-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_sse2_update()
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()
26 nhpoly1305_sse2_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_sse2_update() argument
/kernel/linux/linux-5.10/arch/arm/crypto/
H A Dnhpoly1305-neon-glue.c27 const u8 *src, unsigned int srclen) in nhpoly1305_neon_update()
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()
26 nhpoly1305_neon_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) nhpoly1305_neon_update() argument

Completed in 8 milliseconds

1234