From dfd5fb09500d5800b37b3aec05884fc7409032d7 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 11 Jul 2018 22:22:52 +0200 Subject: [PATCH] test/.../evppkey.txt: X25519 regression test vectors. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6699) --- test/recipes/30-test_evp_data/evppkey.txt | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/test/recipes/30-test_evp_data/evppkey.txt b/test/recipes/30-test_evp_data/evppkey.txt index 74351258d1..d482c14758 100644 --- a/test/recipes/30-test_evp_data/evppkey.txt +++ b/test/recipes/30-test_evp_data/evppkey.txt @@ -18436,3 +18436,41 @@ Ctrl = digest:SM3 Input = D7AD397F6FFA5D4F7F11E7217F241607DC30618C236D2C09C1B9EA8FDADEE2E8 Output = 3045022100f11bf36e75bb304f094fb42a4ca22377d0cc768637c5011cd59fb9ed4b130c98022035545ffe2c2efb3abee4fee661468946d886004fae8ea5311593e48f7fe21b91 Result = KEYOP_MISMATCH + +Title = Chosen Wycheproof vectors + +PrivateKeyRaw = WychePRIVATE0:X25519:288796bc5aff4b81a37501757bc0753a3c21964790d38699308debc17a6eaf8d + +PublicKeyRaw = WychePUBLIC0:X25519:f0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f + +Derive=WychePRIVATE0 +PeerKey=WychePUBLIC0 +SharedSecret=b4e0dd76da7b071728b61f856771aa356e57eda78a5b1655cc3820fb5f854c5c + +PrivateKeyRaw = WychePRIVATE1:X25519:60887b3dc72443026ebedbbbb70665f42b87add1440e7768fbd7e8e2ce5f639d + +PublicKeyRaw = WychePUBLIC1:X25519:f0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + +Derive=WychePRIVATE1 +PeerKey=WychePUBLIC1 +SharedSecret=38d6304c4a7e6d9f7959334fb5245bd2c754525d4c91db950206926234c1f633 + +PrivateKeyRaw = WychePRIVATE2:X25519:a0a4f130b98a5be4b1cedb7cb85584a3520e142d474dc9ccb909a073a976bf63 + +PublicKeyRaw = WychePUBLIC2:X25519:0ab4e76380d84dde4f6833c58f2a9fb8f83bb0169b172be4b6e0592887741a36 + +Derive=WychePRIVATE2 +PeerKey=WychePUBLIC2 +SharedSecret=0200000000000000000000000000000000000000000000000000000000000000 + +PublicKeyRaw = WychePUBLIC3:X25519:89e10d5701b4337d2d032181538b1064bd4084401ceca1fd12663a1959388000 + +Derive=WychePRIVATE2 +PeerKey=WychePUBLIC3 +SharedSecret=0900000000000000000000000000000000000000000000000000000000000000 + +PublicKeyRaw = WychePUBLIC4:X25519:2b55d3aa4a8f80c8c0b2ae5f933e85af49beac36c2fa7394bab76c8933f8f81d + +Derive=WychePRIVATE2 +PeerKey=WychePUBLIC4 +SharedSecret=1000000000000000000000000000000000000000000000000000000000000000 -- 2.25.1