Home
last modified time | relevance | path

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

12

/linux/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/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 …]
/linux/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/lib/zstd/decompress/
A Dzstd_decompress.c276 dctx->inBuff = (char*)(dctx+1); in ZSTD_initStaticDCtx()
346 dctx->dictID = dctx->fParams.dictID; in ZSTD_DCtx_selectFrameDDict()
616 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader()
1207 dctx->dictEnd = dctx->previousDstEnd; in ZSTD_refDictContent()
1324 dctx->litEntropy = dctx->fseEntropy = 1; in ZSTD_decompress_insertDictionary()
1342 dctx->litEntropy = dctx->fseEntropy = 0; in ZSTD_decompressBegin()
1347 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin()
1348 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin()
1349 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin()
1350 dctx->HUFptr = dctx->entropy.hufTable; in ZSTD_decompressBegin()
[all …]
A Dzstd_decompress_block.c136 dctx->HUFptr, dctx->bmi2); in ZSTD_decodeLiteralsBlock()
140 dctx->HUFptr, dctx->bmi2); in ZSTD_decodeLiteralsBlock()
146 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
151 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
153 sizeof(dctx->workspace), dctx->bmi2); in ZSTD_decodeLiteralsBlock()
159 sizeof(dctx->workspace), dctx->bmi2); in ZSTD_decodeLiteralsBlock()
165 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
195 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
227 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
1063 if (dctx->dictEnd != dctx->dictContentEndForFuzzing) return 0; in ZSTD_dictionaryIsActive()
[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 …]
A Dhuf_decompress.c500 return HUF_decompress4X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
503 size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X1_DCtx_wksp() argument
963 size_t hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, in HUF_decompress4X2_DCtx_wksp_bmi2()
972 size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X2_DCtx_wksp() argument
1080 size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable* dctx, void* dst, in HUF_decompress4X_hufOnly_wksp() argument
1099 return algoNb ? HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress4X_hufOnly_wksp()
1106 size_t HUF_decompress1X_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress1X_DCtx_wksp() argument
1120 return HUF_decompress1X1_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1125 return HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1128 return algoNb ? HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
[all …]
/linux/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 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/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 Dghash-clmulni-intel_glue.c48 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
81 u8 *dst = dctx->buffer; in ghash_update()
84 if (dctx->bytes) { in ghash_update()
88 dctx->bytes -= n; in ghash_update()
94 if (!dctx->bytes) in ghash_update()
114 u8 *dst = dctx->buffer; in ghash_flush()
116 if (dctx->bytes) { in ghash_flush()
119 while (dctx->bytes--) in ghash_flush()
127 dctx->bytes = 0; in ghash_flush()
216 memcpy(dctx, in, sizeof(*dctx)); in ghash_async_import()
[all …]
/linux/drivers/crypto/vmx/
A Dghash.c49 dctx->bytes = 0; in p8_ghash_init()
88 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block()
123 if (dctx->bytes) { in p8_ghash_update()
125 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
127 dctx->bytes += srclen; in p8_ghash_update()
130 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
137 dctx->bytes = 0; in p8_ghash_update()
147 dctx->bytes = srclen; in p8_ghash_update()
158 if (dctx->bytes) { in p8_ghash_final()
160 dctx->buffer[i] = 0; in p8_ghash_final()
[all …]
/linux/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/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/lib/zstd/common/
A Dhuf.h163 size_t HUF_decompress4X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
164 size_t HUF_decompress4X_hufOnly(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size…
166 size_t HUF_decompress4X1_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
167 size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, s…
169 size_t HUF_decompress4X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
323 size_t HUF_decompress1X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
324 size_t HUF_decompress1X_DCtx_wksp (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, s…
326 size_t HUF_decompress1X1_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
330 size_t HUF_decompress1X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
347 size_t HUF_decompress1X1_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cS…
[all …]
/linux/include/linux/
A Dzstd_lib.h210 ZSTDLIB_API size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); /* accept NULL pointer */
217 ZSTDLIB_API size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx,
569 ZSTDLIB_API size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset);
815 ZSTDLIB_API size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx,
872 ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx,
1022 ZSTDLIB_API size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx,
1031 ZSTDLIB_API size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx);
2044 ZSTD_DCtx* dctx,
2378 ZSTDLIB_API size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx);
2382 ZSTDLIB_API size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx);
[all …]
/linux/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()
/linux/include/crypto/
A Ddes.h30 void des3_ede_encrypt(const struct des3_ede_ctx *dctx, u8 *dst, const u8 *src);
31 void des3_ede_decrypt(const struct des3_ede_ctx *dctx, u8 *dst, const u8 *src);
/linux/lib/zstd/
A Dzstd_decompress_module.c55 size_t zstd_decompress_dctx(zstd_dctx *dctx, void *dst, size_t dst_capacity, in zstd_decompress_dctx() argument
58 return ZSTD_decompressDCtx(dctx, dst, dst_capacity, src, src_size); in zstd_decompress_dctx()
/linux/lib/
A Ddecompress_unzstd.c129 zstd_dctx *dctx = zstd_init_dctx(wksp, wksp_size); in decompress_single() local
133 if (dctx == NULL) { in decompress_single()
148 ret = zstd_decompress_dctx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single()

Completed in 60 milliseconds

12