From fb1796df9fb8373a8e48655980eae716a3d997c6 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 8 Nov 2024 07:32:31 +0100 Subject: [PATCH] fixup! APPS/pkeyutl: add missing high-level check for -verifyrecover not being compatible with EdDSA --- test/recipes/20-test_pkeyutl.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/recipes/20-test_pkeyutl.t b/test/recipes/20-test_pkeyutl.t index d78e74d38abdc3..1e5f4101d30b8a 100644 --- a/test/recipes/20-test_pkeyutl.t +++ b/test/recipes/20-test_pkeyutl.t @@ -17,7 +17,7 @@ use File::Compare qw/compare_text compare/; setup("test_pkeyutl"); -plan tests => 23; +plan tests => 24; # For the tests below we use the cert itself as the TBS file @@ -54,7 +54,7 @@ SKIP: { } SKIP: { - skip "Skipping tests that require ECX", 6 + skip "Skipping tests that require ECX", 7 if disabled("ecx"); # Ed25519 @@ -68,6 +68,9 @@ SKIP: { '-inkey', srctop_file('test', 'certs', 'server-ed25519-cert.pem'), '-sigfile', 'Ed25519.sig']))), "Verify an Ed25519 signature against a piece of data"); + ok(!run(app(([ 'openssl', 'pkeyutl', '-verifyrecover', '-in', 'Ed25519.sig', + '-inkey', srctop_file('test', 'certs', 'server-ed25519-key.pem')]))), + "Cannot use -verifyrecover with EdDSA"); # Ed448 ok(run(app(([ 'openssl', 'pkeyutl', '-sign', '-in',