Lines Matching refs:bnctx
202 BN_CTX *bnctx = NULL; in self_test_kdf() local
220 bnctx = BN_CTX_new_ex(libctx); in self_test_kdf()
221 if (bnctx == NULL) in self_test_kdf()
223 if (!add_params(bld, t->params, bnctx)) in self_test_kdf()
243 BN_CTX_free(bnctx); in self_test_kdf()
373 BN_CTX *bnctx = NULL; in self_test_ka() local
377 bnctx = BN_CTX_new_ex(libctx); in self_test_ka()
378 if (bnctx == NULL) in self_test_ka()
385 if (!add_params(bld, t->key_group, bnctx) in self_test_ka()
386 || !add_params(bld, t->key_host_data, bnctx)) in self_test_ka()
390 if (!add_params(bld, t->key_group, bnctx) in self_test_ka()
391 || !add_params(bld, t->key_peer_data, bnctx)) in self_test_ka()
426 BN_CTX_free(bnctx); in self_test_ka()
448 BN_CTX *bnctx = NULL; in self_test_sign() local
462 bnctx = BN_CTX_new_ex(libctx); in self_test_sign()
463 if (bnctx == NULL) in self_test_sign()
470 if (!add_params(bld, t->key, bnctx)) in self_test_sign()
516 BN_CTX_free(bnctx); in self_test_sign()
541 BN_CTX *bnctx = NULL; in self_test_asym_cipher() local
547 bnctx = BN_CTX_new_ex(libctx); in self_test_asym_cipher()
548 if (bnctx == NULL) in self_test_asym_cipher()
554 || !add_params(keybld, t->key, bnctx)) in self_test_asym_cipher()
576 if (!add_params(initbld, t->postinit, bnctx)) in self_test_asym_cipher()
602 BN_CTX_free(bnctx); in self_test_asym_cipher()