Skip to content

Commit

Permalink
evp_test: Added the special private key that triggers bug (CVE-2011-4354
Browse files Browse the repository at this point in the history
)

The bug triggers in 32 bit linux distros running openssl 0.9.8g.

This adds a regression test case.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #24235)
  • Loading branch information
Trust-Worthy authored and t8m committed May 14, 2024
1 parent fb323b2 commit 77a30b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/recipes/30-test_evp_data/evppkey_ecc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77a30b7

Please sign in to comment.