Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/test/
H A Devp_libctx_test.c593 EVP_PKEY_CTX *pubctx = NULL, *privctx = NULL; in kem_rsa_params() local
599 && TEST_ptr(pubctx = EVP_PKEY_CTX_new_from_pkey(libctx, pub, NULL)) in kem_rsa_params()
602 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(pubctx, "RSASVE"), -2) in kem_rsa_params()
609 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, NULL, NULL, NULL, NULL), -1) in kem_rsa_params()
612 && TEST_int_eq(EVP_PKEY_decapsulate_init(pubctx, NULL), 1) in kem_rsa_params()
613 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(pubctx, "RSASVE"), 1) in kem_rsa_params()
614 && TEST_int_eq(EVP_PKEY_decapsulate(pubctx, secret, &secretlen, ct, in kem_rsa_params()
618 && TEST_int_eq(EVP_PKEY_encapsulate_init(pubctx, NULL), 1) in kem_rsa_params()
619 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, ct, &ctlen, secret, &secretlen), -2) in kem_rsa_params()
621 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(pubctx, "RSA"), 0) in kem_rsa_params()
[all …]