Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / test / data / webcrypto / aes_gcm.json
blob2624f11ba9e79573c884329aefc3dd62f2ee817c
1 // These tests come from the NIST GCM test vectors:
2 // http://csrc.nist.gov/groups/STM/cavp/documents/mac/gcmtestvectors.zip
3 //
4 // Both encryption and decryption are expected to work.
6   // [Keylen = 128]
7   // [IVlen = 96]
8   // [PTlen = 0]
9   // [AADlen = 0]
10   // [Taglen = 128]
11   {
12     "key": "cf063a34d4a9a76c2c86787d3f96db71",
13     "iv": "113b9785971864c83b01c787",
14     "plain_text": "",
15     "cipher_text": "",
16     "additional_data": "",
17     "authentication_tag": "72ac8493e3a5228b5d130a69d2510e42"
18   },
20   // [Keylen = 128]
21   // [IVlen = 96]
22   // [PTlen = 0]
23   // [AADlen = 128]
24   // [Taglen = 120]
25   {
26     "key": "6dfa1a07c14f978020ace450ad663d18",
27     "iv": "34edfa462a14c6969a680ec1",
28     "plain_text": "",
29     "cipher_text": "",
30     "additional_data": "2a35c7f5f8578e919a581c60500c04f6",
31     "authentication_tag": "751f3098d59cf4ea1d2fb0853bde1c"
32   },
34   // [Keylen = 128]
35   // [IVlen = 96]
36   // [PTlen = 128]
37   // [AADlen = 128]
38   // [Taglen = 112]
39   {
40     "key": "ed6cd876ceba555706674445c229c12d",
41     "iv": "92ecbf74b765bc486383ca2e",
42     "plain_text": "bfaaaea3880d72d4378561e2597a9b35",
43     "cipher_text": "bdd2ed6c66fa087dce617d7fd1ff6d93",
44     "additional_data": "95bd10d77dbe0e87fb34217f1a2e5efe",
45     "authentication_tag": "ba82e49c55a22ed02ca67da4ec6f"
46   },
48   // [Keylen = 256]
49   // [IVlen = 1024]
50   // [PTlen = 408]
51   // [AADlen = 720]
52   // [Taglen = 32]
53   {
54     "key": "e03548984a7ec8eaf0870637df0ac6bc17f7159315d0ae26a764fd224e483810",
55     "iv": "f4feb26b846be4cd224dbc5133a5ae13814ebe19d3032acdd3a006463fdb71e83a9d5d96679f26cc1719dd6b4feb3bab5b4b7993d0c0681f36d105ad3002fb66b201538e2b7479838ab83402b0d816cd6e0fe5857e6f4adf92de8ee72b122ba1ac81795024943b7d0151bbf84ce87c8911f512c397d14112296da7ecdd0da52a",
56     "cipher_text": "fda718aa1ec163487e21afc34f5a3a34795a9ee71dd3e7ee9a18fdb24181dc982b29c6ec723294a130ca2234952bb0ef68c0f3",
57     "additional_data": "aab26eb3e7acd09a034a9e2651636ab3868e51281590ecc948355e457da42b7ad1391c7be0d9e82895e506173a81857c3226829fbd6dfb3f9657a71a2934445d7c05fa9401cddd5109016ba32c3856afaadc48de80b8a01b57cb",
58     "authentication_tag": "4795fbe0",
59     "plain_text": "69fd0c9da10b56ec6786333f8d76d4b74f8a434195f2f241f088b2520fb5fa29455df9893164fb1638abe6617915d9497a8fe2"
60   }