diff options
author | Richard Levitte <levitte@openssl.org> | 2020-08-18 21:17:58 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-08-20 07:49:26 +0200 |
commit | e6ed04a9dcc2ead94e35c4a7400b9c998b5ad9ac (patch) | |
tree | ee59973b1665280740659ee1d45428601284b285 /test | |
parent | a24b510c28006cdb9ef47009298589e0ea546334 (diff) |
TEST: separate out NIST ECC tests from non-NIST
ECC keys with non-NIST group names aren't supported when running with
the FIPS provider.
Keys with such groups that are included in evp_test stanza files
aren't even possible to decode if provider side decoders are used,
since those depend on available EVP_KEYMGMT implementations and what
they support.
Those keys could only be decoded because the legacy decoders were
used.
To make these tests future proof, we separate out the stanzas having
keys with NIST approved group names into separate files, and adjust
the file lists in test/recipes/30-test_evp.t aaccordingly.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12672)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/30-test_evp.t | 6 | ||||
-rw-r--r-- | test/recipes/30-test_evp_data/evppkey_ecc.txt | 932 | ||||
-rw-r--r-- | test/recipes/30-test_evp_data/evppkey_ecc_nist.txt | 945 | ||||
-rw-r--r-- | test/recipes/30-test_evp_data/evppkey_ecdh.txt | 1159 | ||||
-rw-r--r-- | test/recipes/30-test_evp_data/evppkey_ecdh_nist.txt | 1177 |
5 files changed, 2126 insertions, 2093 deletions
diff --git a/test/recipes/30-test_evp.t b/test/recipes/30-test_evp.t index a49f4b50aa..3978fa4835 100644 --- a/test/recipes/30-test_evp.t +++ b/test/recipes/30-test_evp.t @@ -47,8 +47,8 @@ my @files = qw( evpmd_sha.txt evppbe_pbkdf2.txt evppkey_dsa.txt - evppkey_ecc.txt - evppkey_ecdh.txt + evppkey_ecc_nist.txt + evppkey_ecdh_nist.txt evppkey_ecdsa.txt evppkey_ecx.txt evppkey_ffdhe.txt @@ -93,6 +93,8 @@ my @defltfiles = qw( evpmd_whirlpool.txt evppbe_scrypt.txt evppbe_pkcs12.txt + evppkey_ecc.txt + evppkey_ecdh.txt evppkey_brainpool.txt evppkey_kdf_scrypt.txt evppkey_kdf_tls1_prf.txt diff --git a/test/recipes/30-test_evp_data/evppkey_ecc.txt b/test/recipes/30-test_evp_data/evppkey_ecc.txt index f0ae1081c4..ea24f9d433 100644 --- a/test/recipes/30-test_evp_data/evppkey_ecc.txt +++ b/test/recipes/30-test_evp_data/evppkey_ecc.txt @@ -1164,46 +1164,6 @@ Ctrl=ecdh_cofactor_mode:1 Result=DERIVE_ERROR Reason=point at infinity -Title=prime192v1 curve tests - -PrivateKey=ALICE_cf_prime192v1 ------BEGIN PRIVATE KEY----- -MDkCAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQEEHzAdAgEBBBhQFYLaobJ47BVWWZv/ByY8Ti69m/U9 -TeI= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_prime192v1_PUB ------BEGIN PUBLIC KEY----- -MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAEHYbt14KzucSpmKMrlDx1IGz/a28nDs21OjKgx3BK -PZ78UrllIr69kgrYUKsRg4sd ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_prime192v1:ALICE_cf_prime192v1_PUB - -PrivateKey=BOB_cf_prime192v1 ------BEGIN PRIVATE KEY----- -MDkCAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQEEHzAdAgEBBBhsbmKHAtygIqirkmUXSbniDJOx0/fI -CWM= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_prime192v1_PUB ------BEGIN PUBLIC KEY----- -MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAEJA+FQcXq5Axzv8pLDslxq1QVt1hjN2i0TgoO6Yxp -bAekMot69VorE8ibSzgJixXJ ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_prime192v1:BOB_cf_prime192v1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_prime192v1 -PeerKey=BOB_cf_prime192v1_PUB -SharedSecret=e36cad3b0f8d00f60f090440a76df47896713ae61421c354 - -# ECDH Bob with Alice peer -Derive=BOB_cf_prime192v1 -PeerKey=ALICE_cf_prime192v1_PUB -SharedSecret=e36cad3b0f8d00f60f090440a76df47896713ae61421c354 - Title=prime192v2 curve tests PrivateKey=ALICE_cf_prime192v2 @@ -1404,46 +1364,6 @@ Derive=BOB_cf_prime239v3 PeerKey=ALICE_cf_prime239v3_PUB SharedSecret=4dcc2c67c5993162ed71ebb33077bbb85395b0d3eec2311aa404e45901a0 -Title=prime256v1 curve tests - -PrivateKey=ALICE_cf_prime256v1 ------BEGIN PRIVATE KEY----- -MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCDZE0NZiGAFJX6JQxumKTFRT+XFCQqJ -gHCUxmU2fRcn9Q== ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_prime256v1_PUB ------BEGIN PUBLIC KEY----- -MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5kDOrX6kmk1/jHfEdMBluFos6dyCbzKVOX3v2aa2 -y5IhlhTKtCJdydX+XWLDXWW9sbtIRNP94R3iOOpRPBqpGg== ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_prime256v1:ALICE_cf_prime256v1_PUB - -PrivateKey=BOB_cf_prime256v1 ------BEGIN PRIVATE KEY----- -MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCAxJgV1dLJw/o2Dmh1fIY1KpBd88WCP -23wZzR8DzhyCrA== ------END PRIVATE KEY----- - -PublicKey=BOB_cf_prime256v1_PUB ------BEGIN PUBLIC KEY----- -MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5J6yA+j0zrGi6RilUhjrcL7OUMzYTwpnw5DdRXr0 -creHgE03EFV//7xqadB4BDwFIGM9MV2sE6qREEomWhZFeg== ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_prime256v1:BOB_cf_prime256v1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_prime256v1 -PeerKey=BOB_cf_prime256v1_PUB -SharedSecret=ee63690b553dcd9bccb066137725f0489395a83f4d280f309339d606c969734a - -# ECDH Bob with Alice peer -Derive=BOB_cf_prime256v1 -PeerKey=ALICE_cf_prime256v1_PUB -SharedSecret=ee63690b553dcd9bccb066137725f0489395a83f4d280f309339d606c969734a - Title=secp112r1 curve tests PrivateKey=ALICE_cf_secp112r1 @@ -1842,46 +1762,6 @@ Derive=BOB_cf_secp224k1 PeerKey=ALICE_cf_secp224k1_PUB SharedSecret=6f7b9d16c9c1d3a5c84b6028f2a4fed9ae8e02455e678a27243bcc48 -Title=secp224r1 curve tests - -PrivateKey=ALICE_cf_secp224r1 ------BEGIN PRIVATE KEY----- -MDoCAQAwEAYHKoZIzj0CAQYFK4EEACEEIzAhAgEBBBzeo7Y0HMfrIqKNm3r997jcfVAa4osa0AR2 -JA28 ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_secp224r1_PUB ------BEGIN PUBLIC KEY----- -ME4wEAYHKoZIzj0CAQYFK4EEACEDOgAExZc6o84XjBGLOosGj2t0QctgiyzF3NcVgy+DeW7stkVs -yS2tRzMPBpwnApRzoRsdJR99sb3eM2s= ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_secp224r1:ALICE_cf_secp224r1_PUB - -PrivateKey=BOB_cf_secp224r1 ------BEGIN PRIVATE KEY----- -MDoCAQAwEAYHKoZIzj0CAQYFK4EEACEEIzAhAgEBBBy2LsqxHhdlSiAmMYKQAEmjJWT22T42GYKo -ZvXM ------END PRIVATE KEY----- - -PublicKey=BOB_cf_secp224r1_PUB ------BEGIN PUBLIC KEY----- -ME4wEAYHKoZIzj0CAQYFK4EEACEDOgAE71Eh6hwTKUrmyl2PdkY787GwxiohIcaqB4eK2Mwg6tU4 -LeJHWcgY18CgPKCaeldUgnkMcJzKj20= ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_secp224r1:BOB_cf_secp224r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_secp224r1 -PeerKey=BOB_cf_secp224r1_PUB -SharedSecret=29d8b75934d74d5153bbb94e0370437c63ecc30bf3d2800ed1cb7eb5 - -# ECDH Bob with Alice peer -Derive=BOB_cf_secp224r1 -PeerKey=ALICE_cf_secp224r1_PUB -SharedSecret=29d8b75934d74d5153bbb94e0370437c63ecc30bf3d2800ed1cb7eb5 - Title=secp256k1 curve tests PrivateKey=ALICE_cf_secp256k1 @@ -1922,90 +1802,6 @@ Derive=BOB_cf_secp256k1 PeerKey=ALICE_cf_secp256k1_PUB SharedSecret=a4745cc4d19cabb9e5cb0abdd5c604cab2846a4638ad844ed9175f3cadda2da1 -Title=secp384r1 curve tests - -PrivateKey=ALICE_cf_secp384r1 ------BEGIN PRIVATE KEY----- -ME4CAQAwEAYHKoZIzj0CAQYFK4EEACIENzA1AgEBBDAp1ErG6wVjuJs90qVbUBxNpQK1wtV4ieX1 -bIU/4HssZK6WjOOTyYguyEBCOf/rUnw= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_secp384r1_PUB ------BEGIN PUBLIC KEY----- -MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEx5rt+yujIuPoIXpHGmExKSi/P+58sGYoqgdpdOJUXzn2 -Rc4alCpSxVJeC55xvwaFHc3pzNyRGwnhPmN6oU/KMP6XjBvR4wq35mr/Sym5s0B2blAzkJU37idq -nTi3xGHx ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_secp384r1:ALICE_cf_secp384r1_PUB - -PrivateKey=BOB_cf_secp384r1 ------BEGIN PRIVATE KEY----- -ME4CAQAwEAYHKoZIzj0CAQYFK4EEACIENzA1AgEBBDAUjVgPpiI+xXye0nfRhc8+12hLdWY4fpsO -Jq2MCp+W85xJwtXsEPrHj1XFnKVpM4c= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_secp384r1_PUB ------BEGIN PUBLIC KEY----- -MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE+JUBXRSHixH0TrcvYvIzep7+/WNpEhWdCPsLMygigW5j -pzP30MF41GnQYgfJu5wI/gu1C/jFTv1X6Dgmla3JxBYlPeD+1L0lEMT3evmHKMM/BFe3WKBuXyhP -ilrNtfee ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_secp384r1:BOB_cf_secp384r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_secp384r1 -PeerKey=BOB_cf_secp384r1_PUB -SharedSecret=b3cfe488126e2731fb7c19f82e94fcc05e1dd303649a9257e858030b795c2d344a054b0c44a24fd7f5821f531a9b8cfb - -# ECDH Bob with Alice peer -Derive=BOB_cf_secp384r1 -PeerKey=ALICE_cf_secp384r1_PUB -SharedSecret=b3cfe488126e2731fb7c19f82e94fcc05e1dd303649a9257e858030b795c2d344a054b0c44a24fd7f5821f531a9b8cfb - -Title=secp521r1 curve tests - -PrivateKey=ALICE_cf_secp521r1 ------BEGIN PRIVATE KEY----- -MGACAQAwEAYHKoZIzj0CAQYFK4EEACMESTBHAgEBBEIBsYIcUKeN2evB626LCdYWH/xzUiEDCdRP -rEENsC8//dowKnOCtlLtawh0DXTIZ/HhpUREuaoffdsmYb6+Oq1TRjc= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_secp521r1_PUB ------BEGIN PUBLIC KEY----- -MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQBufYxJf/4Ds6g7LlFRVS62ljm3xApV2T79hfWH8Lv -iroIaCFjLBIfOVDF8jvj2PO1ar3yCLiSA2RiLZz1Y+tv/tcATHE0nS7l3SfGiGmEnVycEnhgqlKM -UM3kpdd7eNkQn5/GO8KAPQqA/sOnvTavg5S01t0ub+PY/w0Y6oBgthaUAW0= ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_secp521r1:ALICE_cf_secp521r1_PUB - -PrivateKey=BOB_cf_secp521r1 ------BEGIN PRIVATE KEY----- -MGACAQAwEAYHKoZIzj0CAQYFK4EEACMESTBHAgEBBEIB+3/adZnNwr6GFUzZpi8So7pC/5FYQ0+0 -lMmoUjGvy8DNADcHaPpW68hX/M+z7LrK0Jpnonb9JSEXlgjOPVe4Ea8= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_secp521r1_PUB ------BEGIN PUBLIC KEY----- -MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQBLq2fjyCalnvr24tjaz87ijIWlLMoCH7Hmyq1t2l8 -PFbyBIZbngDC0gwFM5ZI582QSWlW79G3clJP9VxlJOsms50BYBYgd6o2JF4w8AnShVXxFSJU1py4 -klCDNhTFybRHFXpujfuUeNnFxAGIUb4edJ0fAqqc7kkERhYe8EPEZYMKp3Q= ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_secp521r1:BOB_cf_secp521r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_secp521r1 -PeerKey=BOB_cf_secp521r1_PUB -SharedSecret=01dd4aa9037bb4ad298b420998dcd32b3a9af1cda8b7919e372aeb4e54ccfb4d2409a340ed896bfbc5dd462f8d96b8784bc17b29db3ca04700e6ec752f9bec777695 - -# ECDH Bob with Alice peer -Derive=BOB_cf_secp521r1 -PeerKey=ALICE_cf_secp521r1_PUB -SharedSecret=01dd4aa9037bb4ad298b420998dcd32b3a9af1cda8b7919e372aeb4e54ccfb4d2409a340ed896bfbc5dd462f8d96b8784bc17b29db3ca04700e6ec752f9bec777695 - Title=sect113r1 curve tests PrivateKey=ALICE_cf_sect113r1 @@ -2280,76 +2076,6 @@ Ctrl=ecdh_cofactor_mode:1 Result=DERIVE_ERROR Reason=point at infinity -Title=sect163k1 curve tests - -PrivateKey=ALICE_cf_sect163k1 ------BEGIN PRIVATE KEY----- -MDMCAQAwEAYHKoZIzj0CAQYFK4EEAAEEHDAaAgEBBBUB905PYfmej8LzbzX6Bg51GJzXQjQ= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect163k1_PUB ------BEGIN PUBLIC KEY----- -MEAwEAYHKoZIzj0CAQYFK4EEAAEDLAAEBfvs5A1hD8YySP9O2ub8GEUfotVuBpfRx4GIHdAfx8wV -1UVeTRnyAlWU ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect163k1:ALICE_cf_sect163k1_PUB - -PrivateKey=BOB_cf_sect163k1 ------BEGIN PRIVATE KEY----- -MDMCAQAwEAYHKoZIzj0CAQYFK4EEAAEEHDAaAgEBBBUCHPtCjJ4/K8ylQBcLlb5VE0bkaUE= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect163k1_PUB ------BEGIN PUBLIC KEY----- -MEAwEAYHKoZIzj0CAQYFK4EEAAEDLAAEBvgfX1mTRlt6Z4TE1D1MNWo4loH4AoeYa6oowK104LKk -nsdg7isQ8XBD ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect163k1:BOB_cf_sect163k1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect163k1 -PeerKey=BOB_cf_sect163k1_PUB -SharedSecret=04d0e40788c5ce5220818055277cae53eac55c1e6b - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect163k1 -PeerKey=ALICE_cf_sect163k1_PUB -SharedSecret=04d0e40788c5ce5220818055277cae53eac55c1e6b - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect163k1 -PeerKey=BOB_cf_sect163k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=04c902a91110244d89110034dd2b099c49cbab6c77 - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect163k1 -PeerKey=ALICE_cf_sect163k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=04c902a91110244d89110034dd2b099c49cbab6c77 - -PublicKey=MALICE_cf_sect163k1_PUB ------BEGIN PUBLIC KEY----- -MEAwEAYHKoZIzj0CAQYFK4EEAAEDLAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAB ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect163k1 -PeerKey=MALICE_cf_sect163k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect163k1 -PeerKey=MALICE_cf_sect163k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - Title=sect163r1 curve tests PrivateKey=ALICE_cf_sect163r1 @@ -2420,76 +2146,6 @@ Ctrl=ecdh_cofactor_mode:1 Result=DERIVE_ERROR Reason=point at infinity -Title=sect163r2 curve tests - -PrivateKey=ALICE_cf_sect163r2 ------BEGIN PRIVATE KEY----- -MDMCAQAwEAYHKoZIzj0CAQYFK4EEAA8EHDAaAgEBBBUBjCs/M3N31jsAueYrOq21vdETwAI= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect163r2_PUB ------BEGIN PUBLIC KEY----- -MEAwEAYHKoZIzj0CAQYFK4EEAA8DLAAEBd8Z1/HpA+89hF4I98EST3svWns3BAEbhWmL/fgxk2uu -YwVrmqhgqH/C ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect163r2:ALICE_cf_sect163r2_PUB - -PrivateKey=BOB_cf_sect163r2 ------BEGIN PRIVATE KEY----- -MDMCAQAwEAYHKoZIzj0CAQYFK4EEAA8EHDAaAgEBBBUBsiouT9Df+mwHWrpPg1JSrY9nqlI= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect163r2_PUB ------BEGIN PUBLIC KEY----- -MEAwEAYHKoZIzj0CAQYFK4EEAA8DLAAEBULqBZ+nhLhDEMYY8NEEzZ126MdxAcFXWv8zmPEH9505 -8vT5zU3aq6HV ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect163r2:BOB_cf_sect163r2_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect163r2 -PeerKey=BOB_cf_sect163r2_PUB -SharedSecret=019f829a53c4e6544bdec1395a23082169efaf369d - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect163r2 -PeerKey=ALICE_cf_sect163r2_PUB -SharedSecret=019f829a53c4e6544bdec1395a23082169efaf369d - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect163r2 -PeerKey=BOB_cf_sect163r2_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=048870d39235ecbc16a000ee478833509b9318a53f - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect163r2 -PeerKey=ALICE_cf_sect163r2_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=048870d39235ecbc16a000ee478833509b9318a53f - -PublicKey=MALICE_cf_sect163r2_PUB ------BEGIN PUBLIC KEY----- -MEAwEAYHKoZIzj0CAQYFK4EEAA8DLAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsJbhbrfiSdZPSHD -ZtqJwDlp802l ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect163r2 -PeerKey=MALICE_cf_sect163r2_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect163r2 -PeerKey=MALICE_cf_sect163r2_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - Title=sect193r1 curve tests PrivateKey=ALICE_cf_sect193r1 @@ -2630,150 +2286,6 @@ Ctrl=ecdh_cofactor_mode:1 Result=DERIVE_ERROR Reason=point at infinity -Title=sect233k1 curve tests - -PrivateKey=ALICE_cf_sect233k1 ------BEGIN PRIVATE KEY----- -MDsCAQAwEAYHKoZIzj0CAQYFK4EEABoEJDAiAgEBBB0z/3heNFjJL+2sAT/38yRsN3kt2iXz7u+y -Gua8Kw== ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect233k1_PUB ------BEGIN PUBLIC KEY----- -MFIwEAYHKoZIzj0CAQYFK4EEABoDPgAEALQyn0zJmOrHm4S2EIjxRe899PadBnfpYjLKWGvpAIzf -MEG861Nv1IYJkmkO1xlfNHeeRtqFgsQVFKZh ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect233k1:ALICE_cf_sect233k1_PUB - -PrivateKey=BOB_cf_sect233k1 ------BEGIN PRIVATE KEY----- -MDsCAQAwEAYHKoZIzj0CAQYFK4EEABoEJDAiAgEBBB1I0ucrC4d9i6Z+0cbar5r7uKpF5iiQkSJA -DFMTUA== ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect233k1_PUB ------BEGIN PUBLIC KEY----- -MFIwEAYHKoZIzj0CAQYFK4EEABoDPgAEAatdqazxSghJ568CBFyMXhEvVeAiLewOY/jk9H5DAOB4 -ufNGbdd131KLaKPivB38a6n5Y+2BVSJangow ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect233k1:BOB_cf_sect233k1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect233k1 -PeerKey=BOB_cf_sect233k1_PUB -SharedSecret=012145026e8de65973c154e085456fc5539ba9e25663e7f5816abfcab310 - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect233k1 -PeerKey=ALICE_cf_sect233k1_PUB -SharedSecret=012145026e8de65973c154e085456fc5539ba9e25663e7f5816abfcab310 - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect233k1 -PeerKey=BOB_cf_sect233k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=00ff7d6c6b80f39d2ae68fbd00adbcd75fa599ed0bc1aac0e3f49c1c164d - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect233k1 -PeerKey=ALICE_cf_sect233k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=00ff7d6c6b80f39d2ae68fbd00adbcd75fa599ed0bc1aac0e3f49c1c164d - -PublicKey=MALICE_cf_sect233k1_PUB ------BEGIN PUBLIC KEY----- -MFIwEAYHKoZIzj0CAQYFK4EEABoDPgAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect233k1 -PeerKey=MALICE_cf_sect233k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect233k1 -PeerKey=MALICE_cf_sect233k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -Title=sect233r1 curve tests - -PrivateKey=ALICE_cf_sect233r1 ------BEGIN PRIVATE KEY----- -MDwCAQAwEAYHKoZIzj0CAQYFK4EEABsEJTAjAgEBBB4ATcy7zVpIsJ9rl5EIDmzRz5wxjrDIQyDm -HP3Pt8Y= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect233r1_PUB ------BEGIN PUBLIC KEY----- -MFIwEAYHKoZIzj0CAQYFK4EEABsDPgAEAQMQHiJ44LiCnZkEg1zyww1h+idTbsw8E07P33WUAUfD -NeQ4hWEhTXPnytIbEhFKpnd3j/FbyZnJqxh8 ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect233r1:ALICE_cf_sect233r1_PUB - -PrivateKey=BOB_cf_sect233r1 ------BEGIN PRIVATE KEY----- -MDwCAQAwEAYHKoZIzj0CAQYFK4EEABsEJTAjAgEBBB4ALpOlFn4OfiIAkRAZGOsn7L6W3XoQBSV8 -mQVC2pw= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect233r1_PUB ------BEGIN PUBLIC KEY----- -MFIwEAYHKoZIzj0CAQYFK4EEABsDPgAEAJQw+NWqFJXYw4dVMovzvw76OYnYOTaDaEPNW8ECAQbl -TzzbBSTp5iqM13mP0/Bo4OO66NS3lA9e/GTO ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect233r1:BOB_cf_sect233r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect233r1 -PeerKey=BOB_cf_sect233r1_PUB -SharedSecret=00209d2995a63f1e8b7a5c33dee5abb602e32e1835ae8bb57eb264d8d795 - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect233r1 -PeerKey=ALICE_cf_sect233r1_PUB -SharedSecret=00209d2995a63f1e8b7a5c33dee5abb602e32e1835ae8bb57eb264d8d795 - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect233r1 -PeerKey=BOB_cf_sect233r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=00c3cd1d38a65f5e421399409a76cec1136bc84149f054a7f55e7980c612 - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect233r1 -PeerKey=ALICE_cf_sect233r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=00c3cd1d38a65f5e421399409a76cec1136bc84149f054a7f55e7980c612 - -PublicKey=MALICE_cf_sect233r1_PUB ------BEGIN PUBLIC KEY----- -MFIwEAYHKoZIzj0CAQYFK4EEABsDPgAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYf4 -Vie5eHTnR+4x4G1xyq7qUvISU+X5RtBh2pE4 ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect233r1 -PeerKey=MALICE_cf_sect233r1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect233r1 -PeerKey=MALICE_cf_sect233r1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - Title=sect239k1 curve tests PrivateKey=ALICE_cf_sect239k1 @@ -2846,450 +2358,6 @@ Ctrl=ecdh_cofactor_mode:1 Result=DERIVE_ERROR Reason=point at infinity -Title=sect283k1 curve tests - -PrivateKey=ALICE_cf_sect283k1 ------BEGIN PRIVATE KEY----- -MEICAQAwEAYHKoZIzj0CAQYFK4EEABAEKzApAgEBBCQAY1Mi9rST7PiP1t03qYRczV/kSZ+VjQu8 -5EFCgxyvkaLManw= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect283k1_PUB ------BEGIN PUBLIC KEY----- -MF4wEAYHKoZIzj0CAQYFK4EEABADSgAEBMjBO8WoxHS/vz8po52WZGxS+RK5yolrUe6tfbAMA3Sd -5/JjBDVjOz95vM4gUnqzUWHN5nKBQtj6HiU9Q/R+zqg98OiQKTyA ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect283k1:ALICE_cf_sect283k1_PUB - -PrivateKey=BOB_cf_sect283k1 ------BEGIN PRIVATE KEY----- -MEICAQAwEAYHKoZIzj0CAQYFK4EEABAEKzApAgEBBCQBCZC8Is+YSjgXJBBDioEl6gu14QpGHllD -1J6957vBTPSQdH0= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect283k1_PUB ------BEGIN PUBLIC KEY----- -MF4wEAYHKoZIzj0CAQYFK4EEABADSgAEAGEQKZVHYAlvtjHrFyZVm12qUb5j+T5/WNoC962+kwUM -QkBYA5BpuG8Knlugq1iB31whPAgRCZfdLKHpHRPJSfXvKyUIdeUm ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect283k1:BOB_cf_sect283k1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect283k1 -PeerKey=BOB_cf_sect283k1_PUB -SharedSecret=03f67c88bdc230b43773d17fdb4d0a980556d074ceccee726932160e4ed965e3be72803c - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect283k1 -PeerKey=ALICE_cf_sect283k1_PUB -SharedSecret=03f67c88bdc230b43773d17fdb4d0a980556d074ceccee726932160e4ed965e3be72803c - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect283k1 -PeerKey=BOB_cf_sect283k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=0677ba01c84d139609ca145cb5b6079fc9ca67f59c9c913e47cad1073f1d1dfaddde0169 - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect283k1 -PeerKey=ALICE_cf_sect283k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=0677ba01c84d139609ca145cb5b6079fc9ca67f59c9c913e47cad1073f1d1dfaddde0169 - -PublicKey=MALICE_cf_sect283k1_PUB ------BEGIN PUBLIC KEY----- -MF4wEAYHKoZIzj0CAQYFK4EEABADSgAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect283k1 -PeerKey=MALICE_cf_sect283k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect283k1 -PeerKey=MALICE_cf_sect283k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -Title=sect283r1 curve tests - -PrivateKey=ALICE_cf_sect283r1 ------BEGIN PRIVATE KEY----- -MEICAQAwEAYHKoZIzj0CAQYFK4EEABEEKzApAgEBBCQCQ5pqKvPxDysd1pi2Bv8Z11cFhsRZfuaf -4Pi0hpGr4ubZcHE= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect283r1_PUB ------BEGIN PUBLIC KEY----- -MF4wEAYHKoZIzj0CAQYFK4EEABEDSgAEBcsrGDgO7pbGybQX/00gRHtQq3+X9XrGb7Uzv9Nabwc/ -kntnBMF0I2KU+aaTjQx1GVtmNf7CvFwPLEBnfKjJAjekjsGyIqoq ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect283r1:ALICE_cf_sect283r1_PUB - -PrivateKey=BOB_cf_sect283r1 ------BEGIN PRIVATE KEY----- -MEICAQAwEAYHKoZIzj0CAQYFK4EEABEEKzApAgEBBCQDxItnY3cDCrX/jGnVuAKDPaySZCr3E83Q -UdFnP6YIykt7+Pg= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect283r1_PUB ------BEGIN PUBLIC KEY----- -MF4wEAYHKoZIzj0CAQYFK4EEABEDSgAEBJ2C9BCkX0YRfs2ufgUKvreUXFWp2AGK+iHlZB4N3LqO -PKpmAkrAeCMty6mw2mEnOR5HA1d4Ee+z7/NJgJJ80Ra9bFnreOW3 ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect283r1:BOB_cf_sect283r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect283r1 -PeerKey=BOB_cf_sect283r1_PUB -SharedSecret=0424259cf09727574fb863cab7c27d8fe3835e96433110a45a951f94347fc81939ec4773 - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect283r1 -PeerKey=ALICE_cf_sect283r1_PUB -SharedSecret=0424259cf09727574fb863cab7c27d8fe3835e96433110a45a951f94347fc81939ec4773 - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect283r1 -PeerKey=BOB_cf_sect283r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=01c2a542654ce85b17456ed75b6bca6b6eb761580913670debc426a3525f236df0e875c8 - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect283r1 -PeerKey=ALICE_cf_sect283r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=01c2a542654ce85b17456ed75b6bca6b6eb761580913670debc426a3525f236df0e875c8 - -PublicKey=MALICE_cf_sect283r1_PUB ------BEGIN PUBLIC KEY----- -MF4wEAYHKoZIzj0CAQYFK4EEABEDSgAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAByvMnFeSsevoGYMIn7b4NaL9IgowRCTKF8CCrhdEKu3pubP2 ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect283r1 -PeerKey=MALICE_cf_sect283r1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect283r1 -PeerKey=MALICE_cf_sect283r1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -Title=sect409k1 curve tests - -PrivateKey=ALICE_cf_sect409k1 ------BEGIN PRIVATE KEY----- -MFECAQAwEAYHKoZIzj0CAQYFK4EEACQEOjA4AgEBBDMOthcLahkXFgM0wjOzm767D1A72sFRGlhb -bVH+EB7z2WpIcPX4OD+M4Y1pf/a7wSaoSAo= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect409k1_PUB ------BEGIN PUBLIC KEY----- -MH4wEAYHKoZIzj0CAQYFK4EEACQDagAEAbiYYpeFgCMsZFMzQaiwMJDrC+mCMT7KmhYtD5EMMgLW -5OvhaqYdpRf49A8LOtVcRT7J5gGcMrXQgmQeS3FenA5owWnB2NIgrTNf5d8AAEtrOupsJ4c3kL6e -aAzayZ1+UCEj8skbC9U= ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect409k1:ALICE_cf_sect409k1_PUB - -PrivateKey=BOB_cf_sect409k1 ------BEGIN PRIVATE KEY----- -MFECAQAwEAYHKoZIzj0CAQYFK4EEACQEOjA4AgEBBDMO43ldQllTewdZwffH4OEXdzBrLwabKsn4 -6/hjgIAaYda/pt4yCEQLMp18QgtfMey5ENI= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect409k1_PUB ------BEGIN PUBLIC KEY----- -MH4wEAYHKoZIzj0CAQYFK4EEACQDagAEAVTQj6hRizVmOx4Z6vroN/zMkmAY+QhkQ0CnFeJ0AydY -Fv+f+/420vMC1Mhqsc9VzPMmIAH6ZrgGKDsd4Ce9JUtYE0rVhGeiG2RaN1U5RlhVK4avkWhFlyQ5 -vuu4aApQiWE3yQd9v/I= ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect409k1:BOB_cf_sect409k1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect409k1 -PeerKey=BOB_cf_sect409k1_PUB -SharedSecret=01fbe13188588c9d1ac3a8a2680ea9a009b28e4b7d7fa4efcb1a22553876fb7973616819fd87c75e5b8ce6e3628595e4ce12edb0 - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect409k1 -PeerKey=ALICE_cf_sect409k1_PUB -SharedSecret=01fbe13188588c9d1ac3a8a2680ea9a009b28e4b7d7fa4efcb1a22553876fb7973616819fd87c75e5b8ce6e3628595e4ce12edb0 - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect409k1 -PeerKey=BOB_cf_sect409k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=007e9485f7234bb2255bb40e51f4be867cb0ef31f8e489a697b31b51c4d5346daaee51e96ae6f9636e6e3af56095fe28755325ee - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect409k1 -PeerKey=ALICE_cf_sect409k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=007e9485f7234bb2255bb40e51f4be867cb0ef31f8e489a697b31b51c4d5346daaee51e96ae6f9636e6e3af56095fe28755325ee - -PublicKey=MALICE_cf_sect409k1_PUB ------BEGIN PUBLIC KEY----- -MH4wEAYHKoZIzj0CAQYFK4EEACQDagAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAA= ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect409k1 -PeerKey=MALICE_cf_sect409k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect409k1 -PeerKey=MALICE_cf_sect409k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -Title=sect409r1 curve tests - -PrivateKey=ALICE_cf_sect409r1 ------BEGIN PRIVATE KEY----- -MFICAQAwEAYHKoZIzj0CAQYFK4EEACUEOzA5AgEBBDQAxSC9lST5dtfXQI1Ug9VMMoue3GGni5ON -+gieyXK2KKbd29KAPs4/AOd8kX2wQDsZPO7E ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect409r1_PUB ------BEGIN PUBLIC KEY----- -MH4wEAYHKoZIzj0CAQYFK4EEACUDagAEASAvXAM15DJerAu1JttpBuMJK1/fEfFohu2iEpt3r7Ui -iQoER6HUsWiw1hhcJyTv7WzpJQHFWrOlJMe/KjmQa/CygSc65YHDzG27oUL+KGdQUGc79ZRSwl/q -fGZqa3D+bDVMwrhmZto= ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect409r1:ALICE_cf_sect409r1_PUB - -PrivateKey=BOB_cf_sect409r1 ------BEGIN PRIVATE KEY----- -MFICAQAwEAYHKoZIzj0CAQYFK4EEACUEOzA5AgEBBDQARen+1P3JQzBgOv0pUYwsZTPRVLpqqDAU -7mKL2lk9eH7zSGmtNoMvP2m1S2dBnXxFY/bV ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect409r1_PUB ------BEGIN PUBLIC KEY----- -MH4wEAYHKoZIzj0CAQYFK4EEACUDagAEAbDUw066TtdfOpDvrlKosEyqUNEG7rY+AKvDqKw+HOzf -sUTYee6cEf71oqJ1sCKPQiYzlwCu/HLQeWPxISE6Uo+53kkeJml2xpMBwoE25Gq/DSS61dR7SRTZ -+sUmumbIuGzbrjtMRmw= ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect409r1:BOB_cf_sect409r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect409r1 -PeerKey=BOB_cf_sect409r1_PUB -SharedSecret=00a751259cdb3b445ce71a40a01a2189dfce70226111190505fc6eabe4e5a05bff7af55f2015e1ffcab6aea7ea9a6e74905da2a1 - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect409r1 -PeerKey=ALICE_cf_sect409r1_PUB -SharedSecret=00a751259cdb3b445ce71a40a01a2189dfce70226111190505fc6eabe4e5a05bff7af55f2015e1ffcab6aea7ea9a6e74905da2a1 - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect409r1 -PeerKey=BOB_cf_sect409r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=0115a31aed416c5089d74a263ec300aff13a5329c6ad27de950ae0b0917b40a3464fccf5691ac9633a51e5177a82b15cfc434aad - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect409r1 -PeerKey=ALICE_cf_sect409r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=0115a31aed416c5089d74a263ec300aff13a5329c6ad27de950ae0b0917b40a3464fccf5691ac9633a51e5177a82b15cfc434aad - -PublicKey=MALICE_cf_sect409r1_PUB ------BEGIN PUBLIC KEY----- -MH4wEAYHKoZIzj0CAQYFK4EEACUDagAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAACZNffkdo7i7yL5tKKfU8tdk6su0K185XwbJkn96JWVDPZXZ3My -bFKKSOJ7hyrM8Lwl1e8= ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect409r1 -PeerKey=MALICE_cf_sect409r1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect409r1 -PeerKey=MALICE_cf_sect409r1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -Title=sect571k1 curve tests - -PrivateKey=ALICE_cf_sect571k1 ------BEGIN PRIVATE KEY----- -MGYCAQAwEAYHKoZIzj0CAQYFK4EEACYETzBNAgEBBEgB4agvk7Qdf9bVb9aMVdtXL0MuVw6dTleB -zrpPMYty/piI5GWkQEGVp4OJSjF1BGgWmtYSYlV0oI8jJ7hfWTjVGfVWix4ipb8= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect571k1_PUB ------BEGIN PUBLIC KEY----- -MIGnMBAGByqGSM49AgEGBSuBBAAmA4GSAAQDUZq0ZrgYpTXNpOptjExaur0K9FAYHv1j9cvAptwX -dcmQf3VqekMkGZCfNdqNeqCajG3QHRkBHe4FZhWr3FXi8whvvr463lUDf+t46un1kE6FTYfhILGa -sBZm7OdfkarYd9TXBbmnkFA+XkyPlkM1+6daM3/WmnegK+TYghFDXLgwiyF8s0ElllF7z38Gmc4= ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect571k1:ALICE_cf_sect571k1_PUB - -PrivateKey=BOB_cf_sect571k1 ------BEGIN PRIVATE KEY----- -MGYCAQAwEAYHKoZIzj0CAQYFK4EEACYETzBNAgEBBEgA3pINxGOI7L9M+Mil+bm/udPwI4xu7ubJ -p3aoOepTXW94laf8wjFLcQnRUwH87Vbq9VLQEfCAFvr2vZoBc+5asnNuDhRNNeQ= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect571k1_PUB ------BEGIN PUBLIC KEY----- -MIGnMBAGByqGSM49AgEGBSuBBAAmA4GSAAQDZRr5GCSq2uzGxmWNB+bED7zye18Rr/KehwXrbn1r -rKtR8fe+dg2V15FieC3qZe/wCpMtyp79VmEabGi6iGLlAN/rUE81URsA/K7GVpmklslV5gmwryR0 -3E7jGKPFesun9iNtmpgM18P9y3aJd4Qr4hMlwW2Nyw187l6QB/W2e/i+8vKXFTLHlz5WLAyAcpA= ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect571k1:BOB_cf_sect571k1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect571k1 -PeerKey=BOB_cf_sect571k1_PUB -SharedSecret=02b79c92cee50dc5b9fdddce36d4fa2e28d7d178cd74e575961f39429496305b38815c840c2e66327435c044ed885ec964068531251a2112717602532e8b6d5411db2fe05c1ac18c - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect571k1 -PeerKey=ALICE_cf_sect571k1_PUB -SharedSecret=02b79c92cee50dc5b9fdddce36d4fa2e28d7d178cd74e575961f39429496305b38815c840c2e66327435c044ed885ec964068531251a2112717602532e8b6d5411db2fe05c1ac18c - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect571k1 -PeerKey=BOB_cf_sect571k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=063aea789492c9727a5a6b7f24e8d3d377c70ee8e86b13664e191a53b1905e90e78b85960b1881db5160c7c5cacca0d686d9e104140d565eeeec17426f93d3a7ba639ecd716b43d2 - -# ECC CDH Bob with Alice peer -Derive=BOB_cf_sect571k1 -PeerKey=ALICE_cf_sect571k1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=063aea789492c9727a5a6b7f24e8d3d377c70ee8e86b13664e191a53b1905e90e78b85960b1881db5160c7c5cacca0d686d9e104140d565eeeec17426f93d3a7ba639ecd716b43d2 - -PublicKey=MALICE_cf_sect571k1_PUB ------BEGIN PUBLIC KEY----- -MIGnMBAGByqGSM49AgEGBSuBBAAmA4GSAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE= ------END PUBLIC KEY----- - -# ECC CDH Bob with Malice peer -Derive=BOB_cf_sect571k1 -PeerKey=MALICE_cf_sect571k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -# ECC CDH Alice with Malice peer -Derive=ALICE_cf_sect571k1 -PeerKey=MALICE_cf_sect571k1_PUB -Ctrl=ecdh_cofactor_mode:1 -Result=DERIVE_ERROR -Reason=point at infinity - -Title=sect571r1 curve tests - -PrivateKey=ALICE_cf_sect571r1 ------BEGIN PRIVATE KEY----- -MGYCAQAwEAYHKoZIzj0CAQYFK4EEACcETzBNAgEBBEgAxfL2/gUsmJonvDMR95Azq1ySgXMlKSRk -+PL+WaS92ZyOo45HaC7RpH5sdkf4b948u6y1BXOxGZuORXy6lgbgZ1Zx2UgL3cI= ------END PRIVATE KEY----- - -PublicKey=ALICE_cf_sect571r1_PUB ------BEGIN PUBLIC KEY----- -MIGnMBAGByqGSM49AgEGBSuBBAAnA4GSAAQBK5L9ccIWacU2A1srZ35opPu6kcbEOsBPmvj/rlMS -fFrdMOcagOYfcD0/ouYHPhvkHbr9k87IlQJfnV6ZNRA4PmWSp/FjkNwETm/fqTCUQHti/qqnKH7R -Ed4fYROLFGvz+PX6E20SryOt1vrmoRyC7Z5FVmgMVOQQ1AaBNAHi3+IPtKx41YdXdbqHJxuI5jE= ------END PUBLIC KEY----- - -PrivPubKeyPair=ALICE_cf_sect571r1:ALICE_cf_sect571r1_PUB - -PrivateKey=BOB_cf_sect571r1 ------BEGIN PRIVATE KEY----- -MGYCAQAwEAYHKoZIzj0CAQYFK4EEACcETzBNAgEBBEgAzcRvASPpWi0ybpOGlj0Lozz01C2a5oDA -G5alib1EmZKcpVULxJXn75FQlTKpkUEuWUgA4yk5X5DTiScUuh4LDhaF3AFhsEY= ------END PRIVATE KEY----- - -PublicKey=BOB_cf_sect571r1_PUB ------BEGIN PUBLIC KEY----- -MIGnMBAGByqGSM49AgEGBSuBBAAnA4GSAAQH3dnL22NajtqDWTX6qD14w1BOlpHFBUPTr24VySlh -kiiBlOF95u7hFr/hSb7gm/3f+IVKyE18Sh2kR4KaxWcPWKY5xKTiqiICT7hCistuzNRt8gR+kNOT -c1rETMV6ZruZinwzEWWWjwJf6612oy2HG3CX3B8Rm+a3sS0q6IzowEwqmDv6v9bMTFk8bsCv0Fk= ------END PUBLIC KEY----- - -PrivPubKeyPair=BOB_cf_sect571r1:BOB_cf_sect571r1_PUB - -# ECDH Alice with Bob peer -Derive=ALICE_cf_sect571r1 -PeerKey=BOB_cf_sect571r1_PUB -SharedSecret=0031f9879fa75b8c67ba81ee861be634e2b53aa79f834e9a8ca4df7f4461bcb02f083d9fa5b4767f881a710caa6524b58eb626623ba394961d46535204c26d165089e7d4f7be1827 - -# ECDH Bob with Alice peer -Derive=BOB_cf_sect571r1 -PeerKey=ALICE_cf_sect571r1_PUB -SharedSecret=0031f9879fa75b8c67ba81ee861be634e2b53aa79f834e9a8ca4df7f4461bcb02f083d9fa5b4767f881a710caa6524b58eb626623ba394961d46535204c26d165089e7d4f7be1827 - -# ECC CDH Alice with Bob peer -Derive=ALICE_cf_sect571r1 -PeerKey=BOB_cf_sect571r1_PUB -Ctrl=ecdh_cofactor_mode:1 -SharedSecret=012e8c2c1554988fe20c5ae7d11cdcfe15c7c6e8d2b6f46a43a45d724bfc7b415ea7594d5c16f770a95d6e65bbcb1f34619db95e89f4fecbcb0bc6a3f92d52df6a49b0 |