]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
evp_test: add a Verify-Message-Public test type
authorPauli <ppzgs1@gmail.com>
Fri, 14 Feb 2025 01:54:59 +0000 (12:54 +1100)
committerPauli <ppzgs1@gmail.com>
Thu, 20 Feb 2025 00:17:39 +0000 (11:17 +1100)
This is like Verify-Message but accepts a public key instead of a private one.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/26750)

test/evp_test.c

index f781724e659c310347957dd411d9eaed7048b3c4..05d56064350aeaace531460923f42ea686fc3e65 100644 (file)
@@ -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,