Lines Matching refs:privctx
663 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()
721 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, NULL, sizeof(ct)), 0) in kem_rsa_params()
722 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, ct, 0), 0); in kem_rsa_params()
727 EVP_PKEY_CTX_free(privctx); in kem_rsa_params()