2016-12-01 16:24:24 +00:00
|
|
|
# This is the example from
|
2017-02-24 00:40:26 +00:00
|
|
|
# https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-04#section-8
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: ee8e1ed9ff2540ae8f2ba9f50bc2f27c
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 752abad3e0afb5f434dc4310
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: "Hello world"
|
|
|
|
AD: "example"
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 5d349ead175ef6b1def6fd
|
|
|
|
TAG: 4fbcdeb7e4793f4a1d7e4faa70100af1
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
# Test vectors from
|
2017-02-24 00:40:26 +00:00
|
|
|
# https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-04#appendix-C
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN:
|
|
|
|
AD:
|
|
|
|
CT:
|
2017-02-24 00:40:26 +00:00
|
|
|
TAG: dc20e2d83f25705bb49e439eca56de25
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 0100000000000000
|
|
|
|
AD:
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: b5d839330ac7b786
|
|
|
|
TAG: 578782fff6013b815b287c22493a364c
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 010000000000000000000000
|
|
|
|
AD:
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 7323ea61d05932260047d942
|
|
|
|
TAG: a4978db357391a0bc4fdec8b0d106639
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 01000000000000000000000000000000
|
|
|
|
AD:
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 743f7c8077ab25f8624e2e948579cf77
|
|
|
|
TAG: 303aaf90f6fe21199c6068577437a0c4
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 0100000000000000000000000000000002000000000000000000000000000000
|
|
|
|
AD:
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 84e07e62ba83a6585417245d7ec413a9fe427d6315c09b57ce45f2e3936a9445
|
|
|
|
TAG: 1a8e45dcd4578c667cd86847bf6155ff
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 010000000000000000000000000000000200000000000000000000000000000003000000000000000000000000000000
|
|
|
|
AD:
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 3fd24ce1f5a67b75bf2351f181a475c7b800a5b4d3dcf70106b1eea82fa1d64df42bf7226122fa92e17a40eeaac1201b
|
|
|
|
TAG: 5e6e311dbf395d35b0fe39c2714388f8
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 01000000000000000000000000000000020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000
|
|
|
|
AD:
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 2433668f1058190f6d43e360f4f35cd8e475127cfca7028ea8ab5c20f7ab2af02516a2bdcbc08d521be37ff28c152bba36697f25b4cd169c6590d1dd39566d3f
|
|
|
|
TAG: 8a263dd317aa88d56bdf3936dba75bb8
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 0200000000000000
|
|
|
|
AD: 01
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 1e6daba35669f427
|
|
|
|
TAG: 3b0a1a2560969cdf790d99759abd1508
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 020000000000000000000000
|
|
|
|
AD: 01
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 296c7889fd99f41917f44620
|
|
|
|
TAG: 08299c5102745aaa3a0c469fad9e075a
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 02000000000000000000000000000000
|
|
|
|
AD: 01
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: e2b0c5da79a901c1745f700525cb335b
|
|
|
|
TAG: 8f8936ec039e4e4bb97ebd8c4457441f
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 0200000000000000000000000000000003000000000000000000000000000000
|
|
|
|
AD: 01
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 620048ef3c1e73e57e02bb8562c416a319e73e4caac8e96a1ecb2933145a1d71
|
|
|
|
TAG: e6af6a7f87287da059a71684ed3498e1
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000
|
|
|
|
AD: 01
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 50c8303ea93925d64090d07bd109dfd9515a5a33431019c17d93465999a8b0053201d723120a8562b838cdff25bf9d1e
|
|
|
|
TAG: 6a8cc3865f76897c2e4b245cf31c51f2
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 02000000000000000000000000000000030000000000000000000000000000000400000000000000000000000000000005000000000000000000000000000000
|
|
|
|
AD: 01
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 2f5c64059db55ee0fb847ed513003746aca4e61c711b5de2e7a77ffd02da42feec601910d3467bb8b36ebbaebce5fba30d36c95f48a3e7980f0e7ac299332a80
|
|
|
|
TAG: cdc46ae475563de037001ef84ae21744
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 02000000
|
|
|
|
AD: 010000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: a8fe3e87
|
|
|
|
TAG: 07eb1f84fb28f8cb73de8e99e2f48a14
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 0300000000000000000000000000000004000000
|
|
|
|
AD: 010000000000000000000000000000000200
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 6bb0fecf5ded9b77f902c7d5da236a4391dd0297
|
|
|
|
TAG: 24afc9805e976f451e6d87f6fe106514
|
2016-12-01 16:24:24 +00:00
|
|
|
|
|
|
|
KEY: 01000000000000000000000000000000
|
2017-02-24 00:40:26 +00:00
|
|
|
NONCE: 030000000000000000000000
|
2016-12-01 16:24:24 +00:00
|
|
|
IN: 030000000000000000000000000000000400
|
|
|
|
AD: 0100000000000000000000000000000002000000
|
2017-02-24 00:40:26 +00:00
|
|
|
CT: 44d0aaf6fb2f1f34add5e8064e83e12a2ada
|
|
|
|
TAG: bff9b2ef00fb47920cc72a0c0f13b9fd
|
2016-12-23 04:10:37 +00:00
|
|
|
|
|
|
|
# Sample large random test vector.
|
|
|
|
|
2017-02-24 00:40:26 +00:00
|
|
|
KEY: d301238025c7ef4fe32fd20cc3ddb1dc
|
|
|
|
NONCE: cab44881cefbcae419a122d6
|
|
|
|
IN: 71356c78191cf4181cee0532d45d2d4fbbf62b9adf86b0643dd3735191283b1f9fd6a890029a4640294d0ffa9e18bf9da18cea164f87a01a376ec43163c5a612b125ca261e1eaedc03e3105b59e11bbbb8cc6c8247b3e5a0e55ad690c2a77b9f30e3b5202a187a6027097efa66ab0ba824dfc167ae51a581ca5e6c78d10a2e485c61404f0cf4bbb535e0b781ec1cf558e385d3f2d31334852015c402f77e7a4f69e45c88ca3b2950a0232971d80aec4b47c22d70ec2dfd058d5dad5ec4843df0173094053ccf265de85465d32dd36309798d88f7552e2b8a962d42e3744544e753516647fd0686860cdfa52c9a674a461df0a772f05cd814dcd80e8ebc871fa6994e045112178f98dea9f1fbcc3931bd5c3a6ba834ed083bdaad943e896c86c710ce59d49b36b882a24236e792e91351fc2b7a4385ed8d304b0c89e4785660822daecdf938fa237a97a95dec37d89cfc44c5964e31f4a257f996b628e8b0fded09d06e73b864200c7a8973dcc0e84f172940fa443c05dbe3a18e49b05c362adb57c7dcad2c31d3b2588e5931922c02f0eac0c3c7780213a978cd5a0ebcbaa4bdfb6873812e61c36b93d8f5d3b81db3f97f5a5207f274e4b1174f919defc2c63fe5cee5e9e2f3d91d7e726dfadb35bbb28ef01a625a97b502fe8a5ee56a5140668ca3429395440dc75dfb8212827ef9e5b7562f3f57dbf1a9d0e0fcbb2ceaddcbeea4cb2a8ef419cc12b767ed56712d19e431da3c6e48a21c3a5dba1b83f60e7a546000543946b24a8670684283736c230253873c39ed8d884967c2dacb365e55dc40c7f77787c1f050f16376c8220611ecec2887382b8fefa4b8627b0640038732f7ef0aad2877376b5256dd6f770a426749dd2f22f69684340e32548972be0feaab5dbbb0ae0b41460f6b483086b2d3d108e7f80a7cfa559dea483ea3c567cea8b16bb2f3eb29e9917be929e32571c7253b07d967a2c05d7f5b05c56f0dda6936a4d7d7b2e0ab877c99a9fedec49bc5058ffbaea034f7a5d493bf99cf3dea26d39076246e2a0f10d62b29799c04759b534a03b82e6cfff39872b07997a8de7d71ed87f0518581d15d34ccdbf66e6bbace42c56d7e4a7ef5e7e1462bd102fe104488bb4555676f04b4974ec436e6b05f7ea043641934bf02117079eb0323e213217662331d5dd310550a5db9a3a198770238e74da7d6667959956d736cd607c6c5c05eb279f077858101767a613024dfd31f50081ec482a2532276b2ccb272c1a5f00fc041dea0220ce8d51e5c73a7be649dfbaf1c4e75ab2e30cbfc61f3a83d866cc7e9318a4eca8ab9da2f4aea2c8a7e8b2f867adb134c3433f72edf471388fcd804ba316af409474197ade5a1f39d58a7378cd8bfca5a81588f43a05c09e4249a242cfb54a1c5ec70972dfabcbdccc61f305835dfa92a37d59148ad0b74d7
|
|
|
|
AD: d1bbfb956faacbfd116bc473b3e0ae09feb224ec760f65b941d99a09eef82dcdd4f8111cfecf1ad4f02e0bdc3a137b9095f922dc3a80d98282827066c201779af4f4267364dcb3eee26a8c9e885b835e7836666dedce8dc912aa328c56bafa3f5746a5c7304cb6805e895885dc520edcea76739db2b426e93ef404b406ede2d57f0131ad6cb1049b18e0bff1bea181b57a3b942b55348a7d2afb056e90f421f5e281c9c3ada60c5891a2e518981704d92c5712991b31a620a3d53811b971469d4fa86e32de261a4679671cfd983c56fe037e9232f06a53aa1eeb2f61caa4f8c1079679ee9fa581ee5eb49842290152655c15bad483b96340a5f1fd67368fda29
|
|
|
|
CT: 8dd19cbf232354e78032baaafd52903569381a29110fe1a6bdeeb539149d69e35f1d8efa09c029c21514ce1a040371714b317921228d8718bb979378cfbb53e60b16ba6ffbdedfa0283d9c48fdef183aa6000d05aa1bcf76f478a6de9356726f1645a681ec9cd84716403e354f38b5364f5ca290291c965b82fe4c0d3085d853ccb0588e4c815214e895b46fc2758747559920e0d137d105419e2856d0e0e5bcbb6f7d3d6055bbbcdd29c7a70fc80a00392bd27174c0bc806adfae08e32b308ce8128e4bbae574e96daea0d3676c7ee259bf2a1ee0af0f474401795794cb51d508db5ee02d346a5019a5dcda7532317a41a7147af946d56cb1dcbd53e28feadbd9af9cd3eb96c7bff0611c2f387d95f8caf8b3ca59d02020340630406e597d665b2d2193635f157c51f1b19a1cf4349d1ef227f62812d6cdb0c7dae87647f1ac28c79d643ac0d06781ccc24d626c44e0a3b7a55e3a81f30118703d489b93dd01f94ecae0ac42e1eb7e937f67a38dafe9ec0c5d2bf846acd1536011c02a63153c9e4c0bd4e467e5671e52507a34e3a8dc6de18eb967a54cf63bc049e0c7fe89988c394959ef80f8c23bd93aef9a150ae33a245fe8b6db955193632118e1adfea566620b6dd8ac46a16f86651a8d34719128a07c63123eda805602ce923eb0b945886bd73adfe08beb77b50cbc6fb023f41355d5f1e16f289b9ad86ae89e35c978dfe8b8356f80bb809fe9274553dc094e96d865ee1cad1de31e4c838e5b5564b581369e8ff719e1dd84c3465bff3981bbafc874bb206b5e9f58d175c292613ac4005bdfafd411acda8c94d64b58462d2612b2877c9284b1a88fd55631abe6fa17a7fecf3635256c3e09fe3b7aaf032a411e8b9645def45219de48d58aeec6e239ee211de18051a2a5175a265ce1bab462c7a35c46590f6e1fa543f0ffd3777c564dba9a1bd1124b96fc2d1e7e81e51ecc83f7c6f2ee02b09962bd5f2744e54d58592336515f39a4ccccbfaa8d829259abd0030da76648dab078574638c730bd9c32f8179592029faa9f19adde63fd7e2d671d1c22cbadd8d28d4dbe8d098fa5fbb593884830fe6bb4afd89bd1143f77d194938c71f01fa3323cc23f18bdd486bc7a468bfa6fc0e9bd198ac4fb572f1d94fc3ff7e4860621929d39967e1baf493132188d6978bba043b2264ded093709a224af7358d5aae09667a1b6533e714fd9ab5157e201d7d14e7f559c1e0709faadad5c18ec7144faea92b134f9ac48a97a13d98e4fe0b4c4a66daa0b6adb23d2d17be82da4f590caf6034b2f0c3a846a2740339ec24223e1c024a3955f54b87358b62247afeca011d4830b0e23174965aac60b7f5517f11b23dadc06e4e72e4d89d0f5764e804e840a495d8352dc0bf22ff454a118db981224b73632eeebe5496a2c5a43cf69af0a79e84e1d12398c8024
|
|
|
|
TAG: ae3f5d2b7ff538343964febbcd9e919b
|