Lines Matching refs:privctx
646 EVP_PKEY_CTX *pubctx = NULL, *privctx = NULL; in kem_rsa_params() local
653 && TEST_ptr(privctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL)) in kem_rsa_params()
663 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, NULL, NULL, NULL, 0), 0) in kem_rsa_params()
695 && TEST_int_eq(EVP_PKEY_decapsulate_init(privctx, NULL), 1) in kem_rsa_params()
696 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(privctx, "RSASVE"), 1) in kem_rsa_params()
697 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, NULL, ct, sizeof(ct)), 1) in kem_rsa_params()
698 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, NULL, &secretlen, ct, sizeof(ct)), 1) in kem_rsa_params()
701 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, NULL, NULL, ct, sizeof(ct)), 0) in kem_rsa_params()
702 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, NULL, 0), 0) in kem_rsa_params()
703 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, NULL, sizeof(ct)), 0) in kem_rsa_params()
704 && TEST_int_eq(EVP_PKEY_decapsulate(privctx, secret, &secretlen, ct, 0), 0); in kem_rsa_params()
709 EVP_PKEY_CTX_free(privctx); in kem_rsa_params()