Home
last modified time | relevance | path

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

/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A Ddigest.c25 if (ctx->md_data != NULL && ctx->digest->ctx_size > 0 in cleanup_old_md_data()
28 OPENSSL_clear_free(ctx->md_data, ctx->digest->ctx_size); in cleanup_old_md_data()
137 if (!(ctx->flags & EVP_MD_CTX_FLAG_NO_INIT) && type->ctx_size) { in EVP_DigestInit_ex()
139 ctx->md_data = OPENSSL_zalloc(type->ctx_size); in EVP_DigestInit_ex()
191 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinal_ex()
208 OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); in EVP_DigestFinalXOF()
255 if (in->md_data && out->digest->ctx_size) { in EVP_MD_CTX_copy_ex()
259 out->md_data = OPENSSL_malloc(out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
265 memcpy(out->md_data, in->md_data, out->digest->ctx_size); in EVP_MD_CTX_copy_ex()
H A Dcmeth_lib.c55 int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) in EVP_CIPHER_meth_set_impl_ctx_size() argument
57 cipher->ctx_size = ctx_size; in EVP_CIPHER_meth_set_impl_ctx_size()
H A Devp_enc.c30 if (c->cipher_data && c->cipher->ctx_size) in EVP_CIPHER_CTX_reset()
31 OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size); in EVP_CIPHER_CTX_reset()
128 if (ctx->cipher->ctx_size) { in EVP_CipherInit_ex()
129 ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size); in EVP_CipherInit_ex()
702 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
703 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
709 memcpy(out->cipher_data, in->cipher_data, in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
H A Devp_lib.c189 return e->ctx_size; in EVP_CIPHER_impl_ctx_size()
368 md->ctx_size = datasize; in EVP_MD_meth_set_app_datasize()
422 return md->ctx_size; in EVP_MD_meth_get_app_datasize()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dcmeth_lib.c84 int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) in EVP_CIPHER_meth_set_impl_ctx_size() argument
86 if (cipher->ctx_size != 0) in EVP_CIPHER_meth_set_impl_ctx_size()
89 cipher->ctx_size = ctx_size; in EVP_CIPHER_meth_set_impl_ctx_size()
H A Devp_enc.c57 if (ctx->cipher_data && ctx->cipher->ctx_size) in EVP_CIPHER_CTX_reset()
58 OPENSSL_cleanse(ctx->cipher_data, ctx->cipher->ctx_size); in EVP_CIPHER_CTX_reset()
156 OPENSSL_clear_free(ctx->cipher_data, ctx->cipher->ctx_size); in evp_cipher_init_internal()
343 if (ctx->cipher->ctx_size) { in evp_cipher_init_internal()
344 ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size); in evp_cipher_init_internal()
1456 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
1457 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
1463 memcpy(out->cipher_data, in->cipher_data, in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
H A Devp_lib.c400 return e->ctx_size; in EVP_CIPHER_impl_ctx_size()
884 if (md->ctx_size != 0) in EVP_MD_meth_set_app_datasize()
887 md->ctx_size = datasize; in EVP_MD_meth_set_app_datasize()
962 return md->ctx_size; in EVP_MD_meth_get_app_datasize()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Devp.c194 memset(ctx->ptr, 0, ctx->md->ctx_size); in EVP_MD_CTX_cleanup()
273 ctx->ptr = calloc(1, md->ctx_size); in EVP_DigestInit_ex()
597 memset(c->cipher_data, 0, c->cipher->ctx_size); in EVP_CIPHER_CTX_cleanup()
792 ctx->cipher_data = calloc(1, c->ctx_size); in EVP_CipherInit_ex()
793 if (ctx->cipher_data == NULL && c->ctx_size != 0) in EVP_CipherInit_ex()
H A Devp-wincng.c54 ((ctx)->cipher->ctx_size - sizeof(struct wincng_key) + 1)
138 cipher->ctx_size = sizeof(struct wincng_key) + cbKeyObject - 1; in wincng_cipher_algorithm_init()
567 md->ctx_size = sizeof(struct wincng_md_ctx) + cbHashObject - 1; in wincng_md_algorithm_init()
H A Devp.h175 int ctx_size; member
214 int ctx_size; member
H A Devp-openssl.c230 hc_evp->ctx_size = sizeof(struct ossl_cipher_ctx); in get_EVP_CIPHER_once_cb()
363 hc_evp->ctx_size = sizeof(struct ossl_md_ctx); in get_EVP_MD_once_cb()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dmd-sha256.c73 ssh_sha256.ctx_size = sizeof(SHA256_CTX); in evp_ssh_sha256()
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/crypto/
H A Devp.h126 int ctx_size; /* how big does the ctx->md_data need to be */ member
148 int ctx_size; member
/netbsd-src/sys/kern/
H A Dkern_veriexec.c227 veriexec_fpops_add(const char *fp_type, size_t hash_len, size_t ctx_size, in veriexec_fpops_add() argument
237 KASSERT(ctx_size != 0); in veriexec_fpops_add()
246 ops->context_size = ctx_size; in veriexec_fpops_add()
/netbsd-src/crypto/external/bsd/openssl/dist/include/crypto/
H A Devp.h262 int ctx_size; /* how big does the ctx->md_data need to be */ member
312 int ctx_size; member
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DEVP_CIPHER_meth_new.pod25 int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gvt/
H A Dcmd_parser.c2938 int ctx_size = wa_ctx->indirect_ctx.size; in shadow_indirect_ctx() local
2949 roundup(ctx_size + CACHELINE_BYTES, in shadow_indirect_ctx()
2972 guest_gma, guest_gma + ctx_size, in shadow_indirect_ctx()
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Devp.h191 int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);
/netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/
H A Devp.h244 int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);
/netbsd-src/crypto/external/bsd/openssl.old/dist/
H A DCHANGES13101 *) ctx_size was not built with the right compiler during "make links". Fixed.