Home
last modified time | relevance | path

Searched refs:ctx_size (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/crypto/openssl/crypto/evp/
H A Dcmeth_lib.c85 int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) in EVP_CIPHER_meth_set_impl_ctx_size() argument
87 if (cipher->ctx_size != 0) in EVP_CIPHER_meth_set_impl_ctx_size()
90 cipher->ctx_size = ctx_size; in EVP_CIPHER_meth_set_impl_ctx_size()
H A Ddigest.c35 if (ctx->md_data != NULL && ctx->digest->ctx_size > 0 in cleanup_old_md_data()
38 OPENSSL_clear_free(ctx->md_data, ctx->digest->ctx_size); in cleanup_old_md_data()
342 if (!(ctx->flags & EVP_MD_CTX_FLAG_NO_INIT) && type->ctx_size) { in evp_md_init_internal()
344 ctx->md_data = OPENSSL_zalloc(type->ctx_size); in evp_md_init_internal()
493 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()
546 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinalXOF()
697 if (in->md_data && out->digest->ctx_size) { in EVP_MD_CTX_copy_ex()
701 out->md_data = OPENSSL_malloc(out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
705 memcpy(out->md_data, in->md_data, out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
H A Devp_enc.c60 if (ctx->cipher_data && ctx->cipher->ctx_size) in OSSL_SAFE_MATH_SIGNED()
61 OPENSSL_cleanse(ctx->cipher_data, ctx->cipher->ctx_size); in OSSL_SAFE_MATH_SIGNED()
167 OPENSSL_clear_free(ctx->cipher_data, ctx->cipher->ctx_size); in evp_cipher_init_internal()
386 if (ctx->cipher->ctx_size) { in evp_cipher_init_internal()
387 ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size); in evp_cipher_init_internal()
521 OPENSSL_clear_free(ctx->cipher_data, ctx->cipher->ctx_size); in evp_cipher_init_skey_internal()
1827 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
1828 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
1833 memcpy(out->cipher_data, in->cipher_data, in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_init_fw_funcs.h491 u16 ctx_size,
505 u16 ctx_size,
519 u32 ctx_size,
531 u32 ctx_size,
H A Decore_init_fw_funcs.c1694 void ecore_calc_session_ctx_validation(void *p_ctx_mem, u16 ctx_size, u8 ctx_type, u32 cid) in ecore_calc_session_ctx_validation() argument
1703 OSAL_MEMSET(p_ctx, 0, ctx_size); in ecore_calc_session_ctx_validation()
1711 void ecore_calc_task_ctx_validation(void *p_ctx_mem, u16 ctx_size, u8 ctx_type, u32 tid) in ecore_calc_task_ctx_validation() argument
1718 OSAL_MEMSET(p_ctx, 0, ctx_size); in ecore_calc_task_ctx_validation()
1724 void ecore_memset_session_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type) in ecore_memset_session_ctx() argument
1738 OSAL_MEMSET(p_ctx, 0, ctx_size); in ecore_memset_session_ctx()
1746 void ecore_memset_task_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type) in ecore_memset_task_ctx() argument
1756 OSAL_MEMSET(p_ctx, 0, ctx_size); in ecore_memset_task_ctx()
/freebsd/sys/riscv/riscv/
H A Dexec_machdep.c253 if (ctx->ctx_size != CTX_SIZE_VS(buf_size)) in restore_vector_state()
347 addr += ctx.ctx_size; in set_mcontext()
438 end_ctx.ctx_size = sizeof(end_ctx); in sendsig_ctx_end()
450 size_t buf_size, ctx_size; in sendsig_ctx_vector() local
461 ctx_size = CTX_SIZE_VS(buf_size); in sendsig_ctx_vector()
464 *addrp -= ctx_size; in sendsig_ctx_vector()
469 vs_ctx.ctx.ctx_size = ctx_size; in sendsig_ctx_vector()
/freebsd/sbin/nvmecontrol/
H A Dns.c66 .ctx_size = 0,
88 .ctx_size = sizeof(active_opt),
99 .ctx_size = sizeof(active_opt),
121 .ctx_size = sizeof(controllers_opt),
187 .ctx_size = sizeof(create_opt),
217 .ctx_size = sizeof(delete_opt),
251 .ctx_size = sizeof(attach_opt),
281 .ctx_size = sizeof(attached_opt),
315 .ctx_size = sizeof(detach_opt),
353 .ctx_size = sizeof(identify_opt),
H A Dresv.c60 .ctx_size = 0,
102 .ctx_size = sizeof(acquire_opt),
148 .ctx_size = sizeof(register_opt),
186 .ctx_size = sizeof(release_opt),
224 .ctx_size = sizeof(report_opt),
H A Dnsid.c56 .ctx_size = sizeof(nsid_opt),
H A Dconnect.c298 .ctx_size = sizeof(opt),
307 .ctx_size = sizeof(opt),
H A Dcomnd.h78 size_t ctx_size; member
H A Dpassthru.c281 .ctx_size = sizeof(struct options),
290 .ctx_size = sizeof(struct options),
H A Dselftest.c128 .ctx_size = sizeof(opt),
H A Dtelemetry.c82 .ctx_size = sizeof(opt),
H A Dsanitize.c97 .ctx_size = sizeof(opt),
H A Dperftest.c101 .ctx_size = sizeof(opt),
H A Dformat.c102 .ctx_size = sizeof(opt),
H A Ddevlist.c75 .ctx_size = sizeof(opt),
/freebsd/sys/arm64/arm64/
H A Dexec_machdep.c599 if (ctx.ctx_size != CTX_SIZE_SVE(buf_size)) in set_mcontext()
621 addr += ctx.ctx_size; in set_mcontext()
729 end_ctx.ctx_size = sizeof(end_ctx); in sendsig_ctx_end()
742 size_t buf_size, ctx_size; in sendsig_ctx_sve() local
753 ctx_size = CTX_SIZE_SVE(buf_size); in sendsig_ctx_sve()
756 *addrp -= ctx_size; in sendsig_ctx_sve()
761 ctx.sve_ctx.ctx_size = ctx_size; in sendsig_ctx_sve()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dqat_crypt.c152 Cpa32U ctx_size; in qat_init_crypt_session_ctx()
189 status = cpaCySymSessionCtxGetSize(inst_handle, &sd, &ctx_size); in qat_init_crypt_session_ctx()
193 status = QAT_PHYS_CONTIG_ALLOC(cy_session_ctx, ctx_size); in qat_init_crypt_session_ctx()
212 Cpa32U ctx_size; in qat_init_checksum_session_ctx()
234 status = cpaCySymSessionCtxGetSize(inst_handle, &sd, &ctx_size); in qat_init_checksum_session_ctx()
238 status = QAT_PHYS_CONTIG_ALLOC(cy_session_ctx, ctx_size); in qat_init_checksum_session_ctx()
151 Cpa32U ctx_size; qat_init_crypt_session_ctx() local
211 Cpa32U ctx_size; qat_init_checksum_session_ctx() local
H A Dqat_compress.c101 Cpa32U ctx_size = 0; in qat_dc_init()
193 &sd, &sess_size, &ctx_size); in qat_dc_init()
100 Cpa32U ctx_size = 0; qat_dc_init() local
/freebsd/usr.sbin/pkg/
H A Dpkg.c106 size_t ctx_size; in pkgsign_new() local
123 ctx_size = ops->pkgsign_ctx_size; in pkgsign_new()
124 if (ctx_size == 0) in pkgsign_new()
125 ctx_size = sizeof(*nctx); in pkgsign_new()
126 assert(ctx_size >= sizeof(*nctx)); in pkgsign_new()
128 nctx = calloc(1, ctx_size); in pkgsign_new()
/freebsd/sys/riscv/include/
H A Ducontext.h59 __uint32_t ctx_size; member
/freebsd/lib/libc/aarch64/gen/
H A Dgetcontextx.c54 reg_ctx->ctx_size = sizeof(struct arm64_reg_context); in __fillcontextx2()
/freebsd/sys/arm64/include/
H A Ducontext.h61 __uint32_t ctx_size; member

12