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
|
# X25519 test vectors from RFC7748 6.1
|
||||||
PrivateKey=Alice-25519
|
PrivateKey=Alice-25519
|
||||||
-----BEGIN PRIVATE KEY-----
|
-----BEGIN PRIVATE KEY-----
|
||||||
MEICAQAwFAYHKoZIzj0CAQYJKwYBBAHaRw8BBCcwJQIBAQQgdwdtCnMYpX08FsFy
|
MC4CAQAwBQYDK2VuBCIEIHcHbQpzGKV9PBbBclGyZkXfTC+H68CZKrF3+6UduSwq
|
||||||
UbJmRd9ML4frwJkqsXf7pR25LCo=
|
|
||||||
-----END PRIVATE KEY-----
|
-----END PRIVATE KEY-----
|
||||||
PublicKey=Alice-25519-PUBLIC
|
PublicKey=Alice-25519-PUBLIC
|
||||||
-----BEGIN PUBLIC KEY-----
|
-----BEGIN PUBLIC KEY-----
|
||||||
MDkwFAYHKoZIzj0CAQYJKwYBBAHaRw8BAyEAhSDwCYkwp1R0i33ctD73Wg2/Og0m
|
MCowBQYDK2VuAyEAhSDwCYkwp1R0i33ctD73Wg2/Og0mOBr066SpjqqbTmo=
|
||||||
OBr066SpjqqbTmo=
|
|
||||||
-----END PUBLIC KEY-----
|
-----END PUBLIC KEY-----
|
||||||
PrivateKey=Bob-25519
|
PrivateKey=Bob-25519
|
||||||
-----BEGIN PRIVATE KEY-----
|
-----BEGIN PRIVATE KEY-----
|
||||||
MEICAQAwFAYHKoZIzj0CAQYJKwYBBAHaRw8BBCcwJQIBAQQgXasIfmJKikt54X+L
|
MC4CAQAwBQYDK2VuBCIEIF2rCH5iSopLeeF/i4OADuZvO7EpJhi2/Rwviyf/iODr
|
||||||
g4AO5m87sSkmGLb9HC+LJ/+I4Os=
|
|
||||||
-----END PRIVATE KEY-----
|
-----END PRIVATE KEY-----
|
||||||
PublicKey=Bob-25519-PUBLIC
|
PublicKey=Bob-25519-PUBLIC
|
||||||
-----BEGIN PUBLIC KEY-----
|
-----BEGIN PUBLIC KEY-----
|
||||||
MDkwFAYHKoZIzj0CAQYJKwYBBAHaRw8BAyEA3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hb
|
MCowBQYDK2VuAyEA3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hbeGdNrfx+FG+IK08=
|
||||||
eGdNrfx+FG+IK08=
|
|
||||||
-----END PUBLIC KEY-----
|
-----END PUBLIC KEY-----
|
||||||
|
|
||||||
Derive=Alice-25519
|
Derive=Alice-25519
|
||||||
|
@ -3333,15 +3329,3 @@ SharedSecret=4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742
|
||||||
Derive=Bob-25519
|
Derive=Bob-25519
|
||||||
PeerKey=Alice-25519-PUBLIC
|
PeerKey=Alice-25519-PUBLIC
|
||||||
SharedSecret=4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742
|
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