237 lines
7.8 KiB
Plaintext
237 lines
7.8 KiB
Plaintext
|
# This is the example from
|
||
|
# https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-02#section-8
|
||
|
|
||
|
KEY: ee8e1ed9ff2540ae8f2ba9f50bc2f27c
|
||
|
NONCE: 752abad3e0afb5f434dc4310f71f3d21
|
||
|
IN: "Hello world"
|
||
|
AD: "example"
|
||
|
CT: 810649724764545b3625ff
|
||
|
TAG: 010a10f4942710781d2948ac0192572f
|
||
|
|
||
|
# Test vectors from
|
||
|
# https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-02#appendix-B
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN:
|
||
|
AD:
|
||
|
CT:
|
||
|
TAG: cb52de357fad226ae428d0ed5a575496
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0100000000000000
|
||
|
AD:
|
||
|
CT: 7e139f58002d68ee
|
||
|
TAG: 715835541f2136f03b6dc80ae0a8ac46
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 010000000000000000000000
|
||
|
AD:
|
||
|
CT: 4a87f0cd26e5d5086e90da02
|
||
|
TAG: 4dff905e48d512e9c34ae8f3be66ec43
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 01000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: 048ca58c46d2368ce00132389f40b511
|
||
|
TAG: 971da9aa385283522c4f67a9aedb37e5
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0100000000000000000000000000000002000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: e1cf1cf545d2743ec005b26bd2c836ac1a4233d646c195ffa401f28063127baa
|
||
|
TAG: 1071338b8c2930d3ec4c17cecbefa4b4
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 010000000000000000000000000000000200000000000000000000000000000003000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: 2e7e6881a02d57b877794b2fbfbfef5484f1cf74f4ad53a751b2582c0e698466bd9a49dcab53806d8e31d864c4632d00
|
||
|
TAG: 04b1b8a9c1630ff028b14d2e57bca429
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 01000000000000000000000000000000020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: 0ac5be860726209d9218de3e9d533743e1efe1595bc58f93f00e9bb9a7558dc1e1b14a9c0d49eb5064c7efa79842f9c7cfdd77614709f0b545d3227498e774d5
|
||
|
TAG: 860b73a1ed8a5b9acd925c3f3f49c5c5
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0200000000000000
|
||
|
AD: 01
|
||
|
CT: 4919e29e9890e452
|
||
|
TAG: 1433a5c0284c911163888dbd128e6874
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 020000000000000000000000
|
||
|
AD: 01
|
||
|
CT: db55d6da719fe0473538294e
|
||
|
TAG: 5a8ab948ccd205a70c78e8fdf954693b
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 02000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: aea3c54272abc1b58ed34a536743f4da
|
||
|
TAG: da10d98bfe23784cfdfd0af97b6d5b78
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0200000000000000000000000000000003000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: aa694c0cfe148100cb5c6e27a77a7ff7b4233d6af251d9faa3d84f7c0d1113f1
|
||
|
TAG: 778c5b68356a1a6a6f3c14a8f96c35ca
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: 9ac909928bcde79c2afa885df9c035c85a9eab136f6f6ea11034456bd306ea3c5dd542f706fffe538b5f139fa9dc622e
|
||
|
TAG: 26c0c0d146d38787ca0fcbc3f911577a
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 02000000000000000000000000000000030000000000000000000000000000000400000000000000000000000000000005000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: c56be9d61ecf6a31a6289cddc9b91aaf84cdb53a3913b825d6eb5e157906dfb0a308c6b0b095d6fd1a5b761ca7fa0e39ca92f38ae206eec844c0c4ab0c1c165e
|
||
|
TAG: a60986309b99431a35dd8c5ebeef8375
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 02000000
|
||
|
AD: 010000000000000000000000
|
||
|
CT: 47995b96
|
||
|
TAG: 16b668094202cadde992e0c16205793c
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0300000000000000000000000000000004000000
|
||
|
AD: 010000000000000000000000000000000200
|
||
|
CT: 8fe25de75089e9f849150e57ab7f7810981cd319
|
||
|
TAG: 89ca91ebc560709432fe9496746404cc
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 030000000000000000000000000000000400
|
||
|
AD: 0100000000000000000000000000000002000000
|
||
|
CT: b26d43ae158316ac37f41579ccf1d461274e
|
||
|
TAG: 13b7c01d08dd6969d51d1bf0fbbdc4d2
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN:
|
||
|
AD:
|
||
|
CT:
|
||
|
TAG: cb52de357fad226ae428d0ed5a575496
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0100000000000000
|
||
|
AD:
|
||
|
CT: 7e139f58002d68ee
|
||
|
TAG: 715835541f2136f03b6dc80ae0a8ac46
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 010000000000000000000000
|
||
|
AD:
|
||
|
CT: 4a87f0cd26e5d5086e90da02
|
||
|
TAG: 4dff905e48d512e9c34ae8f3be66ec43
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 01000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: 048ca58c46d2368ce00132389f40b511
|
||
|
TAG: 971da9aa385283522c4f67a9aedb37e5
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0100000000000000000000000000000002000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: e1cf1cf545d2743ec005b26bd2c836ac1a4233d646c195ffa401f28063127baa
|
||
|
TAG: 1071338b8c2930d3ec4c17cecbefa4b4
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 010000000000000000000000000000000200000000000000000000000000000003000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: 2e7e6881a02d57b877794b2fbfbfef5484f1cf74f4ad53a751b2582c0e698466bd9a49dcab53806d8e31d864c4632d00
|
||
|
TAG: 04b1b8a9c1630ff028b14d2e57bca429
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 01000000000000000000000000000000020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000
|
||
|
AD:
|
||
|
CT: 0ac5be860726209d9218de3e9d533743e1efe1595bc58f93f00e9bb9a7558dc1e1b14a9c0d49eb5064c7efa79842f9c7cfdd77614709f0b545d3227498e774d5
|
||
|
TAG: 860b73a1ed8a5b9acd925c3f3f49c5c5
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0200000000000000
|
||
|
AD: 01
|
||
|
CT: 4919e29e9890e452
|
||
|
TAG: 1433a5c0284c911163888dbd128e6874
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 020000000000000000000000
|
||
|
AD: 01
|
||
|
CT: db55d6da719fe0473538294e
|
||
|
TAG: 5a8ab948ccd205a70c78e8fdf954693b
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 02000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: aea3c54272abc1b58ed34a536743f4da
|
||
|
TAG: da10d98bfe23784cfdfd0af97b6d5b78
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0200000000000000000000000000000003000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: aa694c0cfe148100cb5c6e27a77a7ff7b4233d6af251d9faa3d84f7c0d1113f1
|
||
|
TAG: 778c5b68356a1a6a6f3c14a8f96c35ca
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: 9ac909928bcde79c2afa885df9c035c85a9eab136f6f6ea11034456bd306ea3c5dd542f706fffe538b5f139fa9dc622e
|
||
|
TAG: 26c0c0d146d38787ca0fcbc3f911577a
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 02000000000000000000000000000000030000000000000000000000000000000400000000000000000000000000000005000000000000000000000000000000
|
||
|
AD: 01
|
||
|
CT: c56be9d61ecf6a31a6289cddc9b91aaf84cdb53a3913b825d6eb5e157906dfb0a308c6b0b095d6fd1a5b761ca7fa0e39ca92f38ae206eec844c0c4ab0c1c165e
|
||
|
TAG: a60986309b99431a35dd8c5ebeef8375
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 02000000
|
||
|
AD: 010000000000000000000000
|
||
|
CT: 47995b96
|
||
|
TAG: 16b668094202cadde992e0c16205793c
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 0300000000000000000000000000000004000000
|
||
|
AD: 010000000000000000000000000000000200
|
||
|
CT: 8fe25de75089e9f849150e57ab7f7810981cd319
|
||
|
TAG: 89ca91ebc560709432fe9496746404cc
|
||
|
|
||
|
KEY: 01000000000000000000000000000000
|
||
|
NONCE: 03000000000000000000000000000000
|
||
|
IN: 030000000000000000000000000000000400
|
||
|
AD: 0100000000000000000000000000000002000000
|
||
|
CT: b26d43ae158316ac37f41579ccf1d461274e
|
||
|
TAG: 13b7c01d08dd6969d51d1bf0fbbdc4d2
|