From: Pauli Date: Fri, 14 Feb 2025 01:54:59 +0000 (+1100) Subject: evp_test: add a Verify-Message-Public test type X-Git-Tag: openssl-3.5.0-alpha1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0417c6ebc46cbde7906b3e209b2d56119dafb11;p=thirdparty%2Fopenssl.git 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) --- 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,