Home
last modified time | relevance | path

Searched refs:privctx (Results 1 – 2 of 2) sorted by relevance

/openssl/test/
H A Drand_test.c20 EVP_RAND_CTX *privctx; in test_rand() local
32 if (!TEST_ptr(privctx = RAND_get0_private(NULL)) in test_rand()
33 || !TEST_true(EVP_RAND_CTX_set_params(privctx, params)) in test_rand()
44 if (!TEST_true(EVP_RAND_CTX_set_params(privctx, params)) in test_rand()
54 prov = EVP_RAND_get0_provider(EVP_RAND_CTX_get0_rand(privctx)); in test_rand()
59 if (!TEST_true(EVP_RAND_CTX_get_params(privctx, params)) in test_rand()
H A Devp_libctx_test.c663 EVP_PKEY_CTX *pubctx = NULL, *privctx = NULL; in kem_rsa_params() local
670 && TEST_ptr(privctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL)) in kem_rsa_params()
680 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, NULL, NULL, NULL, 0), 0) in kem_rsa_params()
713 && TEST_int_eq(EVP_PKEY_decapsulate_init(privctx, NULL), 1) in kem_rsa_params()
714 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(privctx, "RSASVE"), 1) in kem_rsa_params()
715 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, NULL, ct, sizeof(ct)), 1) in kem_rsa_params()
716 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, NULL, &secretlen, ct, sizeof(ct)), 1) in kem_rsa_params()
719 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, NULL, NULL, ct, sizeof(ct)), 0) in kem_rsa_params()
720 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, NULL, 0), 0) in kem_rsa_params()
722 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, ct, 0), 0); in kem_rsa_params()
[all …]

Completed in 11 milliseconds