mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-04 19:33:55 +00:00
tests: add X25519 low order point tests
This commit is contained in:
@@ -4,9 +4,11 @@ file key: 59454c4c4f57205355424d4152494e45
|
||||
identity: AGE-SECRET-KEY-1XMWWC06LY3EE5RYTXM9MFLAZ2U56JJJ36S0MYPDRWSVLUL66MV4QX3S7F6
|
||||
|
||||
age-encryption.org/v1
|
||||
-> !"#$%&' ()*+,-./ 01234567 89:;<=>? @ABCDEFG HIJKLMNO PQRSTUVW XYZ[\]^_ `abcdefg hijklmno pqrstuvw xyz{|}~
|
||||
-> !"#$%&' ()*+,-./ 01234567 89:;<=>? @ABCDEFG HIJKLMNO
|
||||
|
||||
-> PQRSTUVW XYZ[\]^_ `abcdefg hijklmno pqrstuvw xyz{|}~
|
||||
|
||||
-> X25519 TEiF0ypqr+bpvcqXNyCVJpL7OuwPdVwPL7KQEbFDOCc
|
||||
EmECAEcKN+n/Vs9SbWiV+Hu0r+E8R77DdWYyd83nw7U
|
||||
--- XdSsgCFKtyPBxU0ard+ElUYUfOp6XQtDhzDGFUCLbjo
|
||||
--- x538z9xJq9XEK1aTTTv80aWDVvVdROvaXn2tpqXPC8g
|
||||
îÏbÇΑ´3'NhÔòùL·L[þ÷¾ªRÈð¼™,ƒ1ûf
|
||||
10
testdata/testkit/x25519_identity
vendored
Normal file
10
testdata/testkit/x25519_identity
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
expect: header failure
|
||||
file key: 59454c4c4f57205355424d4152494e45
|
||||
identity: AGE-SECRET-KEY-1EGTZVFFV20835NWYV6270LXYVK2VKNX2MMDKWYKLMGR48UAWX40Q2P2LM0
|
||||
comment: the X25519 share is a low-order point, so the shared secret is the disallowed all-zero value
|
||||
|
||||
age-encryption.org/v1
|
||||
-> X25519 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
W3E/OCRme9TiTY97JoK31Z71arNur77WIIdB90XnN3M
|
||||
--- Pne3IPMDvBj7wRbPMcNViffpVZAx814tgMxp8AwyMhs
|
||||
¬]?7åPqÓ¦ F—¹ •Â÷õÛ®è
zŒ(rŠóÎ|
|
||||
10
testdata/testkit/x25519_low_order
vendored
Normal file
10
testdata/testkit/x25519_low_order
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
expect: header failure
|
||||
file key: 59454c4c4f57205355424d4152494e45
|
||||
identity: AGE-SECRET-KEY-1EGTZVFFV20835NWYV6270LXYVK2VKNX2MMDKWYKLMGR48UAWX40Q2P2LM0
|
||||
comment: the X25519 share is a low-order point, so the shared secret is the disallowed all-zero value
|
||||
|
||||
age-encryption.org/v1
|
||||
-> X25519 X5yVvKNQjCSx0LFVnIPvWwREXMRYHI6G2CJO3dCfEdc
|
||||
3E0NpFans/m0WLWF7+54ZBdNj3iqQqpraGDFiaRkvBA
|
||||
--- sXw327YMT1/ULXe+ZyRMbMY0Z2jnWHGgI9j1we6yQ8A
|
||||
¬]?7åPqÓ¦ F—¹ •Â÷õÛ®è
zŒ(rŠóÎ|
|
||||
Reference in New Issue
Block a user