From f0417c6ebc46cbde7906b3e209b2d56119dafb11 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 14 Feb 2025 12:54:59 +1100 Subject: [PATCH] evp_test: add a Verify-Message-Public test type This is like Verify-Message but accepts a public key instead of a private one. Reviewed-by: Tim Hudson Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/26750) --- test/evp_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/evp_test.c b/test/evp_test.c index f781724e659..05d56064350 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -2880,6 +2880,11 @@ static const EVP_TEST_METHOD pverify_message_test_method = { verify_test_run }; +/* + * "Verify-Message-Public" is like "Verify-Message", but uses a public key + * instead of a private key. + * The argument must be a colon separated pair, {algorithm}:{key} + */ static int verify_message_public_test_init(EVP_TEST *t, const char *name) { return pkey_test_init_ex2(t, name, 1, -- 2.47.2