Home
last modified time | relevance | path

Searched refs:cctx (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/lib/zstd/
Dcompress.c111 ZSTD_CCtx *cctx; in ZSTD_createCCtx_advanced() local
114 cctx = (ZSTD_CCtx *)ZSTD_malloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced()
115 if (!cctx) in ZSTD_createCCtx_advanced()
117 memset(cctx, 0, sizeof(ZSTD_CCtx)); in ZSTD_createCCtx_advanced()
118 cctx->customMem = customMem; in ZSTD_createCCtx_advanced()
119 return cctx; in ZSTD_createCCtx_advanced()
125 ZSTD_CCtx *cctx = ZSTD_createCCtx_advanced(stackMem); in ZSTD_initCCtx() local
126 if (cctx) { in ZSTD_initCCtx()
127 cctx->workSpace = ZSTD_stackAllocAll(cctx->customMem.opaque, &cctx->workSpaceSize); in ZSTD_initCCtx()
129 return cctx; in ZSTD_initCCtx()
[all …]
Dzstd_internal.h254 void ZSTD_invalidateRepCodes(ZSTD_CCtx *cctx);
256 size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx);
/Linux-v4.19/include/linux/
Dzstd.h406 size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
1005 size_t ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel);
1006 size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict,
1008 size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict,
1011 size_t ZSTD_copyCCtx(ZSTD_CCtx *cctx, const ZSTD_CCtx *preparedCCtx,
1013 size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict,
1015 size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
1017 size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
1149 size_t ZSTD_getBlockSizeMax(ZSTD_CCtx *cctx);
1150 size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
/Linux-v4.19/net/tls/
Dtls_sw.c1151 struct cipher_context *cctx; in tls_set_sw_offload() local
1192 cctx = &ctx->tx; in tls_set_sw_offload()
1197 cctx = &ctx->rx; in tls_set_sw_offload()
1225 cctx->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_sw_offload()
1226 cctx->tag_size = tag_size; in tls_set_sw_offload()
1227 cctx->overhead_size = cctx->prepend_size + cctx->tag_size; in tls_set_sw_offload()
1228 cctx->iv_size = iv_size; in tls_set_sw_offload()
1229 cctx->iv = kmalloc(iv_size + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in tls_set_sw_offload()
1231 if (!cctx->iv) { in tls_set_sw_offload()
1235 memcpy(cctx->iv, gcm_128_info->salt, TLS_CIPHER_AES_GCM_128_SALT_SIZE); in tls_set_sw_offload()
[all …]
/Linux-v4.19/crypto/
Dzstd.c29 ZSTD_CCtx *cctx; member
52 ctx->cctx = ZSTD_initCCtx(ctx->cwksp, wksp_size); in zstd_comp_init()
53 if (!ctx->cctx) { in zstd_comp_init()
91 ctx->cctx = NULL; in zstd_comp_exit()
165 out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params); in __zstd_compress()
Dcamellia_generic.c983 struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_set_key() local
992 cctx->key_length = key_len; in camellia_set_key()
996 camellia_setup128(key, cctx->key_table); in camellia_set_key()
999 camellia_setup192(key, cctx->key_table); in camellia_set_key()
1002 camellia_setup256(key, cctx->key_table); in camellia_set_key()
1011 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_encrypt() local
1023 if (cctx->key_length == 16) in camellia_encrypt()
1028 camellia_do_encrypt(cctx->key_table, tmp, max); in camellia_encrypt()
1039 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_decrypt() local
1051 if (cctx->key_length == 16) in camellia_decrypt()
[all …]
/Linux-v4.19/drivers/crypto/mediatek/
Dmtk-aes.c564 struct mtk_aes_ctr_ctx *cctx = mtk_aes_ctr_ctx_cast(ctx); in mtk_aes_ctr_transfer() local
572 cctx->offset += aes->total; in mtk_aes_ctr_transfer()
573 if (cctx->offset >= req->nbytes) in mtk_aes_ctr_transfer()
577 datalen = req->nbytes - cctx->offset; in mtk_aes_ctr_transfer()
579 ctr = be32_to_cpu(cctx->iv[3]); in mtk_aes_ctr_transfer()
591 src = scatterwalk_ffwd(cctx->src, req->src, cctx->offset); in mtk_aes_ctr_transfer()
593 scatterwalk_ffwd(cctx->dst, req->dst, cctx->offset)); in mtk_aes_ctr_transfer()
596 mtk_aes_write_state_le(ctx->info.state + ctx->keylen, cctx->iv, in mtk_aes_ctr_transfer()
604 cctx->iv[3] = cpu_to_be32(ctr); in mtk_aes_ctr_transfer()
605 crypto_inc((u8 *)cctx->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer()
[all …]
/Linux-v4.19/arch/x86/crypto/
Dcamellia_glue.c1246 int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key, in __camellia_setkey() argument
1254 cctx->key_length = key_len; in __camellia_setkey()
1258 camellia_setup128(key, cctx->key_table); in __camellia_setkey()
1261 camellia_setup192(key, cctx->key_table); in __camellia_setkey()
1264 camellia_setup256(key, cctx->key_table); in __camellia_setkey()
/Linux-v4.19/arch/x86/include/asm/crypto/
Dcamellia.h27 extern int __camellia_setkey(struct camellia_ctx *cctx,
/Linux-v4.19/arch/sparc/mm/
Dsrmmu.c599 int cctx, ctx1;
603 cctx = srmmu_get_context();
605 if (cctx != ctx1) {
606 printk("flush ctx %02x curr %02x\n", ctx1, cctx);
611 srmmu_set_context(cctx);