From 77a30b70ebe4dc8fbcb9ed718201d26114b86ebd Mon Sep 17 00:00:00 2001 From: Trust-Worthy Date: Mon, 22 Apr 2024 14:59:31 -0400 Subject: [PATCH] evp_test: Added the special private key that triggers bug (CVE-2011-4354) The bug triggers in 32 bit linux distros running openssl 0.9.8g. This adds a regression test case. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/24235) --- test/recipes/30-test_evp_data/evppkey_ecc.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/recipes/30-test_evp_data/evppkey_ecc.txt b/test/recipes/30-test_evp_data/evppkey_ecc.txt index 9ac1a4eb9eb0f..6ea11db668315 100644 --- a/test/recipes/30-test_evp_data/evppkey_ecc.txt +++ b/test/recipes/30-test_evp_data/evppkey_ecc.txt @@ -3598,6 +3598,20 @@ Result = DERIVE_SET_PEER_ERROR Title=prime256v1 curve tests +PrivateKey=ALICE_naf_prime256v1 +-----BEGIN PRIVATE KEY----- +MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCrgvdSKyu+zo6wERHP ++5gkQ5yoY1SIgHYyZXQXRr+O2A== +-----END PRIVATE KEY----- + +PublicKey=ALICE_naf_prime256v1_PUB +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5usNhOHMXYW1W8/E0TRbMhSvK4a0 +ipu5+xDoKbhz55WBgERHxLWAvZugiDpyoshYqVPseGubEPA4ZpGdieYajA== +-----END PUBLIC KEY----- + +PrivPubKeyPair=ALICE_naf_prime256v1:ALICE_naf_prime256v1_PUB + PrivateKey=ALICE_cf_prime256v1 -----BEGIN PRIVATE KEY----- MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCDZE0NZiGAFJX6JQxumKTFRT+XFCQqJ