Skip to content

Commit 6376c22

Browse files
committed
Add self-generated test vector for x448 non-canonical values
x25519 has such a test vector obtained from wycheproof but wycheproof does not have a corresponding x448 test vector. So add a self-generated test vector for that case. Signed-off-by: Patrick Steuer <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #10339)
1 parent 58738b1 commit 6376c22

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/recipes/30-test_evp_data/evppkey.txt

+7
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ PublicKeyRaw=Bob-448-PUBLIC-Raw:X448:3eb7a829b0cd20f5bcfc0b599b6feccf6da4627107b
807807

808808
PrivPubKeyPair = Bob-448-Raw:Bob-448-PUBLIC-Raw
809809

810+
PublicKeyRaw=Bob-448-PUBLIC-Raw-NonCanonical:X448:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
811+
810812
Derive=Alice-448
811813
PeerKey=Bob-448-PUBLIC
812814
SharedSecret=07fff4181ac6cc95ec1c16a94a0f74d12da232ce40a77552281d282bb60c0b56fd2464c335543936521c24403085d59a449a5037514a879d
@@ -823,6 +825,11 @@ Derive=Bob-448-Raw
823825
PeerKey=Alice-448-PUBLIC-Raw
824826
SharedSecret=07fff4181ac6cc95ec1c16a94a0f74d12da232ce40a77552281d282bb60c0b56fd2464c335543936521c24403085d59a449a5037514a879d
825827

828+
# Self-generated non-canonical
829+
Derive=Alice-448-Raw
830+
PeerKey=Bob-448-PUBLIC-Raw-NonCanonical
831+
SharedSecret=66e2e682b1f8e68c809f1bb3e406bd826921d9c1a5bfbfcbab7ae72feecee63660eabd54934f3382061d17607f581a90bdac917a064959fb
832+
826833
# Illegal sign/verify operations with X448 key
827834

828835
Sign=Alice-448

0 commit comments

Comments
 (0)