/freebsd/crypto/openssl/test/ |
H A D | ml_kem_evp_extra_test.c | 161 wrpkey = OPENSSL_zalloc(wrpkeylen); in test_ml_kem() 162 bgenkey = OPENSSL_zalloc(bgenkeylen); in test_ml_kem() 187 agenkey = OPENSSL_zalloc(agenkeylen); in test_ml_kem() 314 wrpkey = OPENSSL_zalloc(wrpkeylen); in test_non_derandomised_ml_kem() 315 bgenkey = OPENSSL_zalloc(bgenkeylen); in test_non_derandomised_ml_kem() 355 agenkey = OPENSSL_zalloc(agenkeylen); in test_non_derandomised_ml_kem()
|
H A D | rsa_mp_test.c | 168 pris = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1() 169 exps = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1() 170 coeffs = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1()
|
H A D | fake_rsaprov.c | 49 if (!TEST_ptr(key = OPENSSL_zalloc(sizeof(struct fake_rsa_keydata)))) in fake_rsa_keymgmt_new() 301 unsigned char *sigctx = OPENSSL_zalloc(1); in fake_rsa_sig_newctx() 369 if (!TEST_ptr(newctx = OPENSSL_zalloc(1))) in fake_rsa_sig_dupctx() 577 storectx = OPENSSL_zalloc(1); in fake_rsa_st_open_ex()
|
/freebsd/crypto/openssl/crypto/sm2/ |
H A D | sm2_crypt.c | 175 x2y2 = OPENSSL_zalloc(2 * field_size); in ossl_sm2_encrypt() 176 C3 = OPENSSL_zalloc(C3_size); in ossl_sm2_encrypt() 183 msg_mask = OPENSSL_zalloc(msg_len); in ossl_sm2_encrypt() 340 msg_mask = OPENSSL_zalloc(msg_len); in ossl_sm2_decrypt() 341 x2y2 = OPENSSL_zalloc(2 * field_size); in ossl_sm2_decrypt() 342 computed_C3 = OPENSSL_zalloc(hash_size); in ossl_sm2_decrypt()
|
/freebsd/crypto/openssl/crypto/thread/arch/ |
H A D | thread_posix.c | 41 handle = OPENSSL_zalloc(sizeof(*handle)); in ossl_crypto_thread_native_spawn() 100 if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL) in ossl_crypto_mutex_new() 159 if ((cv_p = OPENSSL_zalloc(sizeof(*cv_p))) == NULL) in ossl_crypto_condvar_new()
|
H A D | thread_win.c | 39 handle = OPENSSL_zalloc(sizeof(*handle)); in ossl_crypto_thread_native_spawn() 101 if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL) in ossl_crypto_mutex_new() 538 if ((cv_p = OPENSSL_zalloc(sizeof(*cv_p))) == NULL) in ossl_crypto_condvar_new()
|
/freebsd/crypto/openssl/crypto/rand/ |
H A D | rand_pool.c | 25 RAND_POOL *pool = OPENSSL_zalloc(sizeof(*pool)); in ossl_rand_pool_new() 41 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in ossl_rand_pool_new() 64 RAND_POOL *pool = OPENSSL_zalloc(sizeof(*pool)); in ossl_rand_pool_attach() 218 p = OPENSSL_zalloc(newlen); in rand_pool_grow()
|
/freebsd/crypto/openssl/crypto/ |
H A D | threads_win.c | 130 OPENSSL_zalloc(sizeof(*new) * count); in allocate_new_qp_group() 150 new = OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_lock_new() 244 data = OPENSSL_zalloc(sizeof(*data)); in ossl_rcu_read_lock() 412 new = OPENSSL_zalloc(sizeof(struct rcu_cb_item)); in ossl_rcu_call() 441 if ((lock = OPENSSL_zalloc(sizeof(CRYPTO_win_rwlock))) == NULL) in CRYPTO_THREAD_lock_new() 448 if ((lock = OPENSSL_zalloc(sizeof(CRITICAL_SECTION))) == NULL) in CRYPTO_THREAD_lock_new()
|
H A D | initthread.c | 60 glob_tevent_reg = OPENSSL_zalloc(sizeof(*glob_tevent_reg)); in DEFINE_RUN_ONCE_STATIC() 101 if ((hands = OPENSSL_zalloc(sizeof(*hands))) == NULL) in init_get_thread_local() 264 CRYPTO_THREAD_LOCAL *tlocal = OPENSSL_zalloc(sizeof(*tlocal)); in ossl_thread_event_ctx_new() 272 hands = OPENSSL_zalloc(sizeof(*hands)); in ossl_thread_event_ctx_new()
|
H A D | threads_pthread.c | 315 data = OPENSSL_zalloc(sizeof(*data)); in ossl_rcu_read_lock() 434 OPENSSL_zalloc(sizeof(*new) * count); in allocate_new_qp_group() 506 OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_call() 544 new = OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_lock_new() 584 if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL) in CRYPTO_THREAD_lock_new() 596 if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL) in CRYPTO_THREAD_lock_new()
|
H A D | self_test_core.c | 38 stcb = OPENSSL_zalloc(sizeof(*stcb)); in ossl_self_test_set_callback_new() 95 OSSL_SELF_TEST *ret = OPENSSL_zalloc(sizeof(*ret)); in OSSL_SELF_TEST_new()
|
H A D | sparse_array.c | 60 OPENSSL_SA *res = OPENSSL_zalloc(sizeof(*res)); in ossl_sa_new() 176 return OPENSSL_zalloc(SA_BLOCK_MAX * sizeof(void *)); in alloc_node()
|
H A D | threads_none.c | 31 lock = OPENSSL_zalloc(sizeof(*lock)); in ossl_rcu_lock_new() 77 struct rcu_cb_item *new = OPENSSL_zalloc(sizeof(*new)); in ossl_rcu_call()
|
/freebsd/crypto/openssl/crypto/slh_dsa/ |
H A D | slh_dsa_hash_ctx.c | 28 SLH_DSA_HASH_CTX *ret = OPENSSL_zalloc(sizeof(*ret)); in ossl_slh_dsa_hash_ctx_new() 70 SLH_DSA_HASH_CTX *ret = OPENSSL_zalloc(sizeof(*ret)); in ossl_slh_dsa_hash_ctx_dup()
|
/freebsd/crypto/openssl/crypto/ct/ |
H A D | ct_log.c | 63 CTLOG_STORE_LOAD_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in ctlog_store_load_ctx_new() 102 CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_STORE_new_ex() 260 CTLOG *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_new_ex()
|
/freebsd/crypto/openssl/crypto/store/ |
H A D | store_lib.c | 190 || (ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) in OSSL_STORE_open_ex() 609 OSSL_STORE_INFO *info = OPENSSL_zalloc(sizeof(*info)); in OSSL_STORE_INFO_new() 912 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_name() 925 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_issuer_serial() 940 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_key_fingerprint() 970 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_alias() 1071 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in OSSL_STORE_attach()
|
/freebsd/crypto/openssl/crypto/conf/ |
H A D | conf_ssl.c | 81 ssl_names = OPENSSL_zalloc(sizeof(*ssl_names) * cnt); in ssl_module_init() 104 ssl_name->cmds = OPENSSL_zalloc(cnt * sizeof(struct ssl_conf_cmd_st)); in ssl_module_init()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_acvp_test_params.c | 38 alloc = OPENSSL_zalloc(sizeof(settable)); in ossl_rsa_acvp_test_gen_params_new() 89 t = OPENSSL_zalloc(sizeof(*t)); in ossl_rsa_acvp_test_set_params()
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_s390x.c | 34 buffer = OPENSSL_zalloc(4 * size); in s390x_mod_exp_hw() 98 buffer = OPENSSL_zalloc(9 * size + 24); in s390x_crt()
|
/freebsd/crypto/openssl/providers/implementations/exchange/ |
H A D | ecx_exch.c | 52 ctx = OPENSSL_zalloc(sizeof(PROV_ECX_CTX)); in ecx_newctx() 159 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecx_dupctx()
|
/freebsd/crypto/openssl/crypto/hashtable/ |
H A D | hashtable.c | 177 HT *new = OPENSSL_zalloc(sizeof(*new)); in ossl_ht_new() 205 new->md = OPENSSL_zalloc(sizeof(*new->md)); in ossl_ht_new() 288 newmd = OPENSSL_zalloc(sizeof(*newmd)); in ossl_ht_flush_internal() 369 HT_VALUE_LIST *list = OPENSSL_zalloc(sizeof(HT_VALUE_LIST) in ossl_ht_filter() 435 if ((newmd = OPENSSL_zalloc(sizeof(*newmd))) == NULL) in grow_hashtable()
|
/freebsd/crypto/openssl/demos/encrypt/ |
H A D | rsa_encrypt.c | 130 buf = OPENSSL_zalloc(buf_len); in do_encrypt() 189 buf = OPENSSL_zalloc(buf_len); in do_decrypt()
|
/freebsd/crypto/openssl/providers/implementations/macs/ |
H A D | blake2_mac_impl.c | 49 macctx = OPENSSL_zalloc(sizeof(*macctx)); in blake2_mac_new() 65 dst = OPENSSL_zalloc(sizeof(*dst)); in blake2_mac_dup()
|
/freebsd/crypto/openssl/providers/implementations/asymciphers/ |
H A D | sm2_enc.c | 51 PROV_SM2_CTX *psm2ctx = OPENSSL_zalloc(sizeof(PROV_SM2_CTX)); in sm2_newctx() 137 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2_dupctx()
|
/freebsd/crypto/openssl/crypto/async/ |
H A D | async_wait.c | 17 return OPENSSL_zalloc(sizeof(ASYNC_WAIT_CTX)); in ASYNC_WAIT_CTX_new() 51 if ((fdlookup = OPENSSL_zalloc(sizeof(*fdlookup))) == NULL) in ASYNC_WAIT_CTX_set_wait_fd()
|