Update X25519 key format in evptests.txt
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
262bd85fde
commit
10f8d0eaa5
1 changed files with 4 additions and 20 deletions
|
@ -3307,23 +3307,19 @@ SharedSecret=E3CC07DFBDDE76A1139811DB9FF5FAF9D17EF39944F1E77D1F6A208524BF7B1B
|
|||
# X25519 test vectors from RFC7748 6.1
|
||||
PrivateKey=Alice-25519
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MEICAQAwFAYHKoZIzj0CAQYJKwYBBAHaRw8BBCcwJQIBAQQgdwdtCnMYpX08FsFy
|
||||
UbJmRd9ML4frwJkqsXf7pR25LCo=
|
||||
MC4CAQAwBQYDK2VuBCIEIHcHbQpzGKV9PBbBclGyZkXfTC+H68CZKrF3+6UduSwq
|
||||
-----END PRIVATE KEY-----
|
||||
PublicKey=Alice-25519-PUBLIC
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MDkwFAYHKoZIzj0CAQYJKwYBBAHaRw8BAyEAhSDwCYkwp1R0i33ctD73Wg2/Og0m
|
||||
OBr066SpjqqbTmo=
|
||||
MCowBQYDK2VuAyEAhSDwCYkwp1R0i33ctD73Wg2/Og0mOBr066SpjqqbTmo=
|
||||
-----END PUBLIC KEY-----
|
||||
PrivateKey=Bob-25519
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MEICAQAwFAYHKoZIzj0CAQYJKwYBBAHaRw8BBCcwJQIBAQQgXasIfmJKikt54X+L
|
||||
g4AO5m87sSkmGLb9HC+LJ/+I4Os=
|
||||
MC4CAQAwBQYDK2VuBCIEIF2rCH5iSopLeeF/i4OADuZvO7EpJhi2/Rwviyf/iODr
|
||||
-----END PRIVATE KEY-----
|
||||
PublicKey=Bob-25519-PUBLIC
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MDkwFAYHKoZIzj0CAQYJKwYBBAHaRw8BAyEA3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hb
|
||||
eGdNrfx+FG+IK08=
|
||||
MCowBQYDK2VuAyEA3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hbeGdNrfx+FG+IK08=
|
||||
-----END PUBLIC KEY-----
|
||||
|
||||
Derive=Alice-25519
|
||||
|
@ -3333,15 +3329,3 @@ SharedSecret=4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742
|
|||
Derive=Bob-25519
|
||||
PeerKey=Alice-25519-PUBLIC
|
||||
SharedSecret=4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742
|
||||
# Try to sign/verify using X25519 keys: both return errors.
|
||||
Sign = Alice-25519
|
||||
Ctrl = digest:SHA256
|
||||
Input = "0123456789ABCDEF1234"
|
||||
Output = 30
|
||||
Result = KEYOP_ERROR
|
||||
|
||||
Verify = Alice-25519-PUBLIC
|
||||
Ctrl = digest:SHA256
|
||||
Input = "0123456789ABCDEF1234"
|
||||
Output = 30
|
||||
Result = VERIFY_ERROR
|
||||
|
|
Loading…
Reference in a new issue