Home
last modified time | relevance | path

Searched refs:OPENSSL_zalloc (Results 1 – 25 of 155) sorted by relevance

1234567

/third_party/openssl/test/
Drsa_mp_test.c154 pris = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3()
155 exps = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3()
156 coeffs = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3()
Dsm2_internal_test.c173 ctext = OPENSSL_zalloc(ctext_len); in test_sm2_crypt()
192 recovered = OPENSSL_zalloc(ptext_len); in test_sm2_crypt()
/third_party/openssl/crypto/sm2/
Dsm2_crypt.c162 x2y2 = OPENSSL_zalloc(2 * field_size); in sm2_encrypt()
163 C3 = OPENSSL_zalloc(C3_size); in sm2_encrypt()
191 msg_mask = OPENSSL_zalloc(msg_len); in sm2_encrypt()
317 msg_mask = OPENSSL_zalloc(msg_len); in sm2_decrypt()
318 x2y2 = OPENSSL_zalloc(2 * field_size); in sm2_decrypt()
319 computed_C3 = OPENSSL_zalloc(hash_size); in sm2_decrypt()
/third_party/openssl/crypto/store/
Dstore_lib.c83 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in OSSL_STORE_open()
240 OSSL_STORE_INFO *info = OPENSSL_zalloc(sizeof(*info)); in store_info_new()
488 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_name()
504 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_issuer_serial()
522 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_key_fingerprint()
550 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_alias()
654 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in ossl_store_attach_pem_bio()
/third_party/openssl/crypto/ct/
Dct_log.c59 CTLOG_STORE_LOAD_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in ctlog_store_load_ctx_new()
94 CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_STORE_new()
239 CTLOG *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_new()
Dct_policy.c30 CT_POLICY_EVAL_CTX *ctx = OPENSSL_zalloc(sizeof(CT_POLICY_EVAL_CTX)); in CT_POLICY_EVAL_CTX_new()
/third_party/openssl/crypto/
Dthreads_pthread.c29 if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL) { in CRYPTO_THREAD_lock_new()
42 if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL) { in CRYPTO_THREAD_lock_new()
Dthreads_none.c24 if ((lock = OPENSSL_zalloc(sizeof(unsigned int))) == NULL) { in CRYPTO_THREAD_lock_new()
Dthreads_win.c22 if ((lock = OPENSSL_zalloc(sizeof(CRITICAL_SECTION))) == NULL) { in CRYPTO_THREAD_lock_new()
/third_party/openssl/crypto/conf/
Dconf_ssl.c80 ssl_names = OPENSSL_zalloc(sizeof(*ssl_names) * cnt); in ssl_module_init()
103 ssl_name->cmds = OPENSSL_zalloc(cnt * sizeof(struct ssl_conf_cmd_st)); in ssl_module_init()
/third_party/openssl/crypto/async/
Dasync_wait.c17 return OPENSSL_zalloc(sizeof(ASYNC_WAIT_CTX)); in ASYNC_WAIT_CTX_new()
50 if ((fdlookup = OPENSSL_zalloc(sizeof(*fdlookup))) == NULL) { in ASYNC_WAIT_CTX_set_wait_fd()
/third_party/openssl/crypto/asn1/
Dx_info.c20 ret = OPENSSL_zalloc(sizeof(*ret)); in X509_INFO_new()
Dtasn_scn.c27 ASN1_SCTX *ret = OPENSSL_zalloc(sizeof(*ret)); in ASN1_SCTX_new()
Dx_pkey.c20 ret = OPENSSL_zalloc(sizeof(*ret)); in X509_PKEY_new()
Dx_int64.c31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) { in uint64_new()
126 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint32_t))) == NULL) { in uint32_new()
Dtasn_new.c97 *pval = OPENSSL_zalloc(it->size); in asn1_item_embed_new()
122 *pval = OPENSSL_zalloc(it->size); in asn1_item_embed_new()
/third_party/openssl/crypto/stack/
Dstack.c96 ret->data = OPENSSL_zalloc(sizeof(*ret->data) * ret->num_alloc); in OPENSSL_sk_deep_copy()
180 if ((st->data = OPENSSL_zalloc(sizeof(void *) * num_alloc)) == NULL) { in sk_reserve()
209 OPENSSL_STACK *st = OPENSSL_zalloc(sizeof(OPENSSL_STACK)); in OPENSSL_sk_new_reserve()
/third_party/openssl/crypto/rand/
Drand_lib.c441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new()
457 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in rand_pool_new()
483 RAND_POOL *pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_attach()
639 p = OPENSSL_zalloc(newlen); in rand_pool_grow()
/third_party/openssl/crypto/x509v3/
Dpcy_data.c52 ret = OPENSSL_zalloc(sizeof(*ret)); in policy_data_new()
/third_party/openssl/crypto/pkcs12/
Dp12_p8e.c58 p8 = OPENSSL_zalloc(sizeof(*p8)); in PKCS8_set0_pbe()
/third_party/openssl/crypto/evp/
Ddigest.c62 return OPENSSL_zalloc(sizeof(EVP_MD_CTX)); in EVP_MD_CTX_new()
139 ctx->md_data = OPENSSL_zalloc(type->ctx_size); in EVP_DigestInit_ex()
/third_party/openssl/crypto/comp/
Dcomp_lib.c22 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) { in COMP_CTX_new()
/third_party/openssl/crypto/bn/
Drsa_sup_mul.c545 l_im = OPENSSL_zalloc(l_size * LIMB_BYTE_SIZE); in ossl_bn_rsa_do_unblind()
546 l_mul = OPENSSL_zalloc(l_size * LIMB_BYTE_SIZE); in ossl_bn_rsa_do_unblind()
547 l_mod = OPENSSL_zalloc(l_mod_count * LIMB_BYTE_SIZE); in ossl_bn_rsa_do_unblind()
/third_party/openssl/crypto/ec/
Dec_kmeth.c75 EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret)); in EC_KEY_new_method()
157 EC_KEY_METHOD *ret = OPENSSL_zalloc(sizeof(*meth)); in EC_KEY_METHOD_new()
/third_party/openssl/crypto/bio/
Dbss_mem.c115 BIO_BUF_MEM *bb = OPENSSL_zalloc(sizeof(*bb)); in mem_init()
123 if ((bb->readp = OPENSSL_zalloc(sizeof(*bb->readp))) == NULL) { in mem_init()

1234567