diff options
author | Trust-Worthy <jondeveloper0@gmail.com> | 2024-04-22 14:59:31 -0400 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-14 15:57:19 +0200 |
commit | 77a30b70ebe4dc8fbcb9ed718201d26114b86ebd (patch) | |
tree | b479afdb8a7744146777fce8846dafb6346aad28 | |
parent | fb323b27754089a34dc2a6a96a9b48cd4d0ee936 (diff) |
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 <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24235)
-rw-r--r-- | test/recipes/30-test_evp_data/evppkey_ecc.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/recipes/30-test_evp_data/evppkey_ecc.txt b/test/recipes/30-test_evp_data/evppkey_ecc.txt index 9ac1a4eb9e..6ea11db668 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 |