Searched refs:key_ctx (Results 1 – 5 of 5) sorted by relevance
/third_party/openssl/test/ |
D | evp_pkey_provided_test.c | 352 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in test_fromdata_rsa() local 400 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_rsa() 401 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in test_fromdata_rsa() 404 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_rsa() 405 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_rsa() 406 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_rsa() 407 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_rsa() 440 EVP_PKEY_CTX_free(key_ctx); in test_fromdata_rsa() 449 EVP_PKEY_CTX *ctx = NULL, *key_ctx = NULL; in test_evp_pkey_get_bn_param_large() local 481 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, "")) in test_evp_pkey_get_bn_param_large() [all …]
|
D | acvp_test.c | 186 EVP_PKEY_CTX *key_ctx = NULL; in ecdsa_pub_verify_test() local 194 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, "")) in ecdsa_pub_verify_test() 195 || !TEST_int_eq(EVP_PKEY_public_check(key_ctx), tst->pass)) in ecdsa_pub_verify_test() 201 EVP_PKEY_CTX_free(key_ctx); in ecdsa_pub_verify_test() 524 EVP_PKEY_CTX *key_ctx = NULL; in dsa_pqver_test() local 535 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, param_key, in dsa_pqver_test() 537 || !TEST_int_eq(EVP_PKEY_param_check(key_ctx), tst->pass)) in dsa_pqver_test() 544 EVP_PKEY_CTX_free(key_ctx); in dsa_pqver_test() 982 EVP_PKEY_CTX *key_ctx = NULL; in dh_safe_prime_keyver_test() local 990 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, "")) in dh_safe_prime_keyver_test() [all …]
|
D | evp_extra_test.c | 2782 EVP_PKEY_CTX *key_ctx = NULL; in test_RSA_OAEP_set_get_params() local 2788 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(0, key, 0))) in test_RSA_OAEP_set_get_params() 2802 if (!TEST_int_gt(EVP_PKEY_encrypt_init_ex(key_ctx, params),0)) in test_RSA_OAEP_set_get_params() 2816 if (!TEST_true(EVP_PKEY_CTX_get_params(key_ctx, params))) in test_RSA_OAEP_set_get_params() 2828 EVP_PKEY_CTX_free(key_ctx); in test_RSA_OAEP_set_get_params()
|
/third_party/node/src/crypto/ |
D | crypto_dsa.cc | 63 EVPKeyCtxPointer key_ctx(EVP_PKEY_CTX_new(key_params.get(), nullptr)); in Setup() local 65 if (!key_ctx || EVP_PKEY_keygen_init(key_ctx.get()) <= 0) in Setup() 68 return key_ctx; in Setup()
|
D | crypto_ec.cc | 554 EVPKeyCtxPointer key_ctx; in Setup() local 563 key_ctx.reset(EVP_PKEY_CTX_new_id(params->params.curve_nid, nullptr)); in Setup() 578 key_ctx.reset(EVP_PKEY_CTX_new(key_params.get(), nullptr)); in Setup() 582 if (key_ctx && EVP_PKEY_keygen_init(key_ctx.get()) <= 0) in Setup() 583 key_ctx.reset(); in Setup() 585 return key_ctx; in Setup()
|