Home
last modified time | relevance | path

Searched refs:dctx (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.3-rc2/arch/mips/crypto/
A Dpoly1305-glue.c27 dctx->buflen = 0; in poly1305_init_arch()
35 dctx->buflen = 0; in mips_poly1305_init()
36 dctx->rset = 0; in mips_poly1305_init()
50 dctx->rset = 1; in mips_poly1305_blocks()
78 memcpy(dctx->buf + dctx->buflen, src, bytes); in mips_poly1305_update()
84 mips_poly1305_blocks(dctx, dctx->buf, POLY1305_BLOCK_SIZE, 1); in mips_poly1305_update()
108 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
114 poly1305_blocks_mips(&dctx->h, dctx->buf, in poly1305_update_arch()
138 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
139 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
[all …]
/linux-6.3-rc2/arch/arm64/crypto/
A Dpoly1305-glue.c35 dctx->buflen = 0; in poly1305_init_arch()
43 dctx->buflen = 0; in neon_poly1305_init()
44 dctx->rset = 0; in neon_poly1305_init()
58 dctx->rset = 1; in neon_poly1305_blocks()
87 memcpy(dctx->buf + dctx->buflen, src, bytes); in neon_poly1305_do_update()
93 neon_poly1305_blocks(dctx, dctx->buf, in neon_poly1305_do_update()
131 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
173 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
174 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
179 poly1305_emit(&dctx->h, dst, dctx->s); in poly1305_final_arch()
[all …]
A Dpolyval-ce-glue.c96 memset(dctx, 0, sizeof(*dctx)); in polyval_arm64_init()
110 if (dctx->bytes) { in polyval_arm64_update()
111 n = min(srclen, dctx->bytes); in polyval_arm64_update()
112 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_arm64_update()
114 dctx->bytes -= n; in polyval_arm64_update()
120 if (!dctx->bytes) in polyval_arm64_update()
121 internal_polyval_mul(dctx->buffer, in polyval_arm64_update()
134 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_arm64_update()
135 pos = dctx->buffer; in polyval_arm64_update()
148 if (dctx->bytes) { in polyval_arm64_final()
[all …]
/linux-6.3-rc2/arch/arm/crypto/
A Dpoly1305-glue.c39 dctx->buflen = 0; in poly1305_init_arch()
47 dctx->buflen = 0; in arm_poly1305_init()
48 dctx->rset = 0; in arm_poly1305_init()
62 dctx->rset = 1; in arm_poly1305_blocks()
91 memcpy(dctx->buf + dctx->buflen, src, bytes); in arm_poly1305_do_update()
97 arm_poly1305_blocks(dctx, dctx->buf, in arm_poly1305_do_update()
148 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
154 poly1305_blocks_arm(&dctx->h, dctx->buf, in poly1305_update_arch()
191 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
192 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
[all …]
/linux-6.3-rc2/crypto/
A Dpoly1305_generic.c27 dctx->buflen = 0; in crypto_poly1305_init()
28 dctx->rset = 0; in crypto_poly1305_init()
29 dctx->sset = false; in crypto_poly1305_init()
37 if (!dctx->sset) { in crypto_poly1305_setdesckey()
42 dctx->rset = 2; in crypto_poly1305_setdesckey()
51 dctx->sset = true; in crypto_poly1305_setdesckey()
68 poly1305_core_blocks(&dctx->h, &dctx->core_r, src, in poly1305_blocks()
80 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
83 dctx->buflen += bytes; in crypto_poly1305_update()
86 poly1305_blocks(dctx, dctx->buf, in crypto_poly1305_update()
[all …]
A Dghash-generic.c50 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
83 u8 *dst = dctx->buffer; in ghash_update()
85 if (dctx->bytes) { in ghash_update()
89 dctx->bytes -= n; in ghash_update()
95 if (!dctx->bytes) in ghash_update()
117 u8 *dst = dctx->buffer; in ghash_flush()
119 if (dctx->bytes) { in ghash_flush()
122 while (dctx->bytes--) in ghash_flush()
128 dctx->bytes = 0; in ghash_flush()
135 u8 *buf = dctx->buffer; in ghash_final()
[all …]
A Ddes_generic.c22 struct des_ctx *dctx = crypto_tfm_ctx(tfm); in des_setkey() local
25 err = des_expand_key(dctx, key, keylen); in des_setkey()
33 memset(dctx, 0, sizeof(*dctx)); in des_setkey()
39 const struct des_ctx *dctx = crypto_tfm_ctx(tfm); in crypto_des_encrypt() local
41 des_encrypt(dctx, dst, src); in crypto_des_encrypt()
48 des_decrypt(dctx, dst, src); in crypto_des_decrypt()
54 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_setkey() local
57 err = des3_ede_expand_key(dctx, key, keylen); in des3_ede_setkey()
65 memset(dctx, 0, sizeof(*dctx)); in des3_ede_setkey()
74 des3_ede_encrypt(dctx, dst, src); in crypto_des3_ede_encrypt()
[all …]
A Dpolyval-generic.c147 memset(dctx, 0, sizeof(*dctx)); in polyval_init()
161 if (dctx->bytes) { in polyval_update()
162 n = min(srclen, dctx->bytes); in polyval_update()
163 pos = dctx->buffer + dctx->bytes - 1; in polyval_update()
165 dctx->bytes -= n; in polyval_update()
171 if (!dctx->bytes) in polyval_update()
178 gf128mul_4k_lle(&dctx->buffer128, ctx->gf128); in polyval_update()
184 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_update()
185 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - 1; in polyval_update()
198 if (dctx->bytes) in polyval_final()
[all …]
A Dvmac.c426 dctx->polytmp[0] = ch; in vhash_blocks()
427 dctx->polytmp[1] = cl; in vhash_blocks()
485 dctx->partial_size = 0; in vmac_init()
487 memcpy(dctx->polytmp, tctx->polykey, sizeof(dctx->polytmp)); in vmac_init()
488 dctx->nonce_size = 0; in vmac_init()
501 memcpy(&dctx->nonce.bytes[dctx->nonce_size], p, n); in vmac_update()
502 dctx->nonce_size += n; in vmac_update()
507 if (dctx->partial_size) { in vmac_update()
509 memcpy(&dctx->partial[dctx->partial_size], p, n); in vmac_update()
514 vhash_blocks(tctx, dctx, dctx->partial_words, 1); in vmac_update()
[all …]
A Dxxhash_generic.c34 struct xxhash64_desc_ctx *dctx = shash_desc_ctx(desc); in xxhash64_init() local
36 xxh64_reset(&dctx->xxhstate, tctx->seed); in xxhash64_init()
44 struct xxhash64_desc_ctx *dctx = shash_desc_ctx(desc); in xxhash64_update() local
46 xxh64_update(&dctx->xxhstate, data, length); in xxhash64_update()
53 struct xxhash64_desc_ctx *dctx = shash_desc_ctx(desc); in xxhash64_final() local
55 put_unaligned_le64(xxh64_digest(&dctx->xxhstate), out); in xxhash64_final()
A Ddeflate.c180 struct deflate_ctx *dctx = ctx; in __deflate_compress() local
181 struct z_stream_s *stream = &dctx->comp_stream; in __deflate_compress()
208 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_compress() local
210 return __deflate_compress(src, slen, dst, dlen, dctx); in deflate_compress()
225 struct deflate_ctx *dctx = ctx; in __deflate_decompress() local
226 struct z_stream_s *stream = &dctx->decomp_stream; in __deflate_decompress()
264 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_decompress() local
266 return __deflate_decompress(src, slen, dst, dlen, dctx); in deflate_decompress()
A Dzstd.c22 zstd_dctx *dctx; member
67 ctx->dctx = zstd_init_dctx(ctx->dwksp, wksp_size); in zstd_decomp_init()
68 if (!ctx->dctx) { in zstd_decomp_init()
90 ctx->dctx = NULL; in zstd_decomp_exit()
185 out_len = zstd_decompress_dctx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress()
/linux-6.3-rc2/lib/zstd/decompress/
A Dzstd_decompress.c275 dctx->inBuff = (char*)(dctx+1); in ZSTD_initStaticDCtx()
349 dctx->dictID = dctx->fParams.dictID; in ZSTD_DCtx_selectFrameDDict()
662 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader()
1253 dctx->dictEnd = dctx->previousDstEnd; in ZSTD_refDictContent()
1370 dctx->litEntropy = dctx->fseEntropy = 1; in ZSTD_decompress_insertDictionary()
1388 dctx->litEntropy = dctx->fseEntropy = 0; in ZSTD_decompressBegin()
1393 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin()
1394 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin()
1395 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin()
1396 dctx->HUFptr = dctx->entropy.hufTable; in ZSTD_decompressBegin()
[all …]
A Dzstd_decompress_block.c80 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer()
101 dctx->litBuffer = dctx->litExtraBuffer; in ZSTD_allocateLiteralsBuffer()
102 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer()
181 dctx->HUFptr, ZSTD_DCtx_get_bmi2(dctx)); in ZSTD_decodeLiteralsBlock()
185 dctx->HUFptr, ZSTD_DCtx_get_bmi2(dctx)); in ZSTD_decodeLiteralsBlock()
217 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
258 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
265 dctx->litBufferEnd = dctx->litPtr + litSize; in ZSTD_decodeLiteralsBlock()
303 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
1280 if (dctx->dictEnd != dctx->dictContentEndForFuzzing) return 0;
[all …]
A Dzstd_ddict.c58 assert(dctx != NULL); in ZSTD_copyDDictParameters()
60 dctx->dictID = ddict->dictID; in ZSTD_copyDDictParameters()
61 dctx->prefixStart = ddict->dictContent; in ZSTD_copyDDictParameters()
62 dctx->virtualStart = ddict->dictContent; in ZSTD_copyDDictParameters()
64 dctx->previousDstEnd = dctx->dictEnd; in ZSTD_copyDDictParameters()
66 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_copyDDictParameters()
67 dctx->dictContentEndForFuzzing = dctx->previousDstEnd; in ZSTD_copyDDictParameters()
70 dctx->litEntropy = 1; in ZSTD_copyDDictParameters()
71 dctx->fseEntropy = 1; in ZSTD_copyDDictParameters()
80 dctx->litEntropy = 0; in ZSTD_copyDDictParameters()
[all …]
/linux-6.3-rc2/drivers/crypto/vmx/
A Dghash.c50 dctx->bytes = 0; in p8_ghash_init()
89 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block()
124 if (dctx->bytes) { in p8_ghash_update()
126 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
128 dctx->bytes += srclen; in p8_ghash_update()
131 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
138 dctx->bytes = 0; in p8_ghash_update()
148 dctx->bytes = srclen; in p8_ghash_update()
159 if (dctx->bytes) { in p8_ghash_final()
161 dctx->buffer[i] = 0; in p8_ghash_final()
[all …]
/linux-6.3-rc2/arch/x86/crypto/
A Dpoly1305_glue.c139 dctx->buflen = 0; in poly1305_init_arch()
140 dctx->sset = true; in poly1305_init_arch()
154 dctx->rset = 1; in crypto_poly1305_setdctxkey()
175 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
182 poly1305_simd_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 1); in poly1305_update_arch()
183 dctx->buflen = 0; in poly1305_update_arch()
206 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
207 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
209 poly1305_simd_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 0); in poly1305_final_arch()
212 poly1305_simd_emit(&dctx->h, dst, dctx->s); in poly1305_final_arch()
[all …]
A Dpolyval-clmulni_glue.c105 memset(dctx, 0, sizeof(*dctx)); in polyval_x86_init()
119 if (dctx->bytes) { in polyval_x86_update()
120 n = min(srclen, dctx->bytes); in polyval_x86_update()
121 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_x86_update()
123 dctx->bytes -= n; in polyval_x86_update()
129 if (!dctx->bytes) in polyval_x86_update()
130 internal_polyval_mul(dctx->buffer, in polyval_x86_update()
143 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_x86_update()
144 pos = dctx->buffer; in polyval_x86_update()
157 if (dctx->bytes) { in polyval_x86_final()
[all …]
A Dghash-clmulni-intel_glue.c49 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
100 u8 *dst = dctx->buffer; in ghash_update()
103 if (dctx->bytes) { in ghash_update()
107 dctx->bytes -= n; in ghash_update()
113 if (!dctx->bytes) in ghash_update()
133 u8 *dst = dctx->buffer; in ghash_flush()
135 if (dctx->bytes) { in ghash_flush()
138 while (dctx->bytes--) in ghash_flush()
146 dctx->bytes = 0; in ghash_flush()
235 memcpy(dctx, in, sizeof(*dctx)); in ghash_async_import()
[all …]
/linux-6.3-rc2/arch/s390/crypto/
A Dghash_s390.c35 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
59 u8 *buf = dctx->buffer; in ghash_update()
61 if (dctx->bytes) { in ghash_update()
64 n = min(srclen, dctx->bytes); in ghash_update()
65 dctx->bytes -= n; in ghash_update()
71 if (!dctx->bytes) { in ghash_update()
94 u8 *buf = dctx->buffer; in ghash_flush()
96 if (dctx->bytes) { in ghash_flush()
99 memset(pos, 0, dctx->bytes); in ghash_flush()
101 dctx->bytes = 0; in ghash_flush()
[all …]
/linux-6.3-rc2/drivers/crypto/xilinx/
A Dzynqmp-sha.c84 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_init() local
87 dctx->fbk_req.tfm = tctx->fbk_tfm; in zynqmp_sha_init()
88 return crypto_shash_init(&dctx->fbk_req); in zynqmp_sha_init()
93 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_update() local
100 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_final() local
102 return crypto_shash_final(&dctx->fbk_req, out); in zynqmp_sha_final()
107 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_finup() local
114 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_import() local
117 dctx->fbk_req.tfm = tctx->fbk_tfm; in zynqmp_sha_import()
118 return crypto_shash_import(&dctx->fbk_req, in); in zynqmp_sha_import()
[all …]
/linux-6.3-rc2/drivers/crypto/
A Dpadlock-sha.c34 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_init() local
37 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
38 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
44 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_update() local
51 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_export() local
53 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
58 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_import() local
61 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
62 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
87 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
[all …]
/linux-6.3-rc2/lib/zstd/common/
A Dhuf.h159 size_t HUF_decompress4X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
160 size_t HUF_decompress4X_hufOnly(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size…
162 size_t HUF_decompress4X1_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
163 size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, s…
165 size_t HUF_decompress4X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
322 size_t HUF_decompress1X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
323 size_t HUF_decompress1X_DCtx_wksp (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, s…
325 size_t HUF_decompress1X1_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
329 size_t HUF_decompress1X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
346 size_t HUF_decompress1X1_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cS…
[all …]
/linux-6.3-rc2/include/linux/
A Dzstd_lib.h218 ZSTDLIB_API size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); /* accept NULL pointer */
225 ZSTDLIB_API size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx,
826 ZSTDLIB_API size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx,
883 ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx,
1039 ZSTDLIB_API size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx,
1048 ZSTDLIB_API size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx);
2148 size_t ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format);
2157 ZSTD_DCtx* dctx,
2497 ZSTDLIB_STATIC_API size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx);
2501 ZSTDLIB_STATIC_API size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx);
[all …]
/linux-6.3-rc2/arch/sparc/crypto/
A Ddes_glue.c48 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key() local
59 des_sparc64_key_expand((const u32 *) key, &dctx->encrypt_expkey[0]); in des_set_key()
60 encrypt_to_decrypt(&dctx->decrypt_expkey[0], &dctx->encrypt_expkey[0]); in des_set_key()
184 struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_set_key() local
200 memcpy(&dctx->encrypt_expkey[0], &k1[0], sizeof(k1)); in des3_ede_set_key()
201 encrypt_to_decrypt(&dctx->encrypt_expkey[DES_EXPKEY_WORDS / 2], &k2[0]); in des3_ede_set_key()
202 memcpy(&dctx->encrypt_expkey[(DES_EXPKEY_WORDS / 2) * 2], in des3_ede_set_key()
205 encrypt_to_decrypt(&dctx->decrypt_expkey[0], &k3[0]); in des3_ede_set_key()
206 memcpy(&dctx->decrypt_expkey[DES_EXPKEY_WORDS / 2], in des3_ede_set_key()
208 encrypt_to_decrypt(&dctx->decrypt_expkey[(DES_EXPKEY_WORDS / 2) * 2], in des3_ede_set_key()

Completed in 67 milliseconds

12