gcm.txt 11 KB
AlgorithmType: AuthenticatedSymmetricCipher
Name: AES/GCM
Source: aes-modes-src-07-10-08/Testvals/gcm.1, Basic Tests for GCM (compiled by B. R. Gladman)
Key: 00000000000000000000000000000000
IV:  000000000000000000000000
MAC: 00000000000000000000000000000000 
Test: NotVerify
Key: 00000000000000000000000000000000
IV:  000000000000000000000000
MAC: 58e2fccefa7e3061367f1d57a4e7455a 
Test: Encrypt
Key: 00000000000000000000000000000000
IV:  000000000000000000000000
Plaintext: 00000000000000000000000000000000
Ciphertext: 0388dace60b6a392f328c2b971b2fe78
MAC: ab6e47d42cec13bdf53a67b21257bddf 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308
IV:  cafebabefacedbaddecaf888
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255
Ciphertext: 42831ec2217774244b7221b784d0d49ce3aa212f2c02a4e035c17e2329aca12e 21d514b25466931c7d8f6a5aac84aa051ba30b396a0aac973d58e091473f5985
MAC: 4d5c2af327cd64a62cf35abd2ba6fab4 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308
IV:  cafebabefacedbaddecaf888
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 42831ec2217774244b7221b784d0d49ce3aa212f2c02a4e035c17e2329aca12e 21d514b25466931c7d8f6a5aac84aa051ba30b396a0aac973d58e091
MAC: 5bc94fbc3221a5db94fae95ae7121a47 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308
IV:  cafebabefacedbad
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 61353b4c2806934a777ff51fa22a4755699b2a714fcdc6f83766e5f97b6c7423 73806900e49f24b22b097544d4896b424989b5e1ebac0f07c23f4598
MAC: 3612d2e79e3b0785561be14aaca2fccb 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308
IV:  9313225df88406e555909c5aff5269aa6a7a9538534f7da1e4c303d2a318a728 c3c0c95156809539fcf0e2429a6b525416aedbf5a0de6a57a637b39b
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 8ce24998625615b603a033aca13fb894be9112a5c3a211a8ba262a3cca7e2ca7 01e4a9a4fba43c90ccdcb281d48c7c6fd62875d2aca417034c34aee5
MAC: 619cc5aefffe0bfa462af43c1699d050 
Test: Encrypt
Header:
Plaintext:
Ciphertext:
Key: 000000000000000000000000000000000000000000000000
IV:  000000000000000000000000
MAC: cd33b28ac773f74ba00ed1f312572435 
Test: Encrypt
Key: 000000000000000000000000000000000000000000000000
IV:  000000000000000000000000
Plaintext: 00000000000000000000000000000000
Ciphertext: 98e7247c07f0fe411c267e4384b0f600
MAC: 2ff58d80033927ab8ef4d4587514f0fb 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c
IV:  cafebabefacedbaddecaf888
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255
Ciphertext: 3980ca0b3c00e841eb06fac4872a2757859e1ceaa6efd984628593b40ca1e19c 7d773d00c144c525ac619d18c84a3f4718e2448b2fe324d9ccda2710acade256
MAC: 9924a7c8587336bfb118024db8674a14 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c
IV:  cafebabefacedbaddecaf888
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 3980ca0b3c00e841eb06fac4872a2757859e1ceaa6efd984628593b40ca1e19c 7d773d00c144c525ac619d18c84a3f4718e2448b2fe324d9ccda2710
MAC: 2519498e80f1478f37ba55bd6d27618c 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c
IV:  cafebabefacedbad
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 0f10f599ae14a154ed24b36e25324db8c566632ef2bbb34f8347280fc4507057 fddc29df9a471f75c66541d4d4dad1c9e93a19a58e8b473fa0f062f7
MAC: 65dcc57fcf623a24094fcca40d3533f8 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c
IV:  9313225df88406e555909c5aff5269aa6a7a9538534f7da1e4c303d2a318a728 c3c0c95156809539fcf0e2429a6b525416aedbf5a0de6a57a637b39b
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: d27e88681ce3243c4830165a8fdcf9ff1de9a1d8e6b447ef6ef7b79828666e45 81e79012af34ddd9e2f037589b292db3e67c036745fa22e7e9b7373b
MAC: dcf566ff291c25bbb8568fc3d376a6d9 
Test: Encrypt
Header:
Plaintext:
Ciphertext:
Key: 0000000000000000000000000000000000000000000000000000000000000000
IV:  000000000000000000000000
MAC: 530f8afbc74536b9a963b4f1c4cb738b 
Test: Encrypt
Key: 0000000000000000000000000000000000000000000000000000000000000000
IV:  000000000000000000000000
Plaintext: 00000000000000000000000000000000
Ciphertext: cea7403d4d606b6e074ec5d3baf39d18
MAC: d0d1c8a799996bf0265b98b5d48ab919 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308
IV:  cafebabefacedbaddecaf888
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255
Ciphertext: 522dc1f099567d07f47f37a32a84427d643a8cdcbfe5c0c97598a2bd2555d1aa 8cb08e48590dbb3da7b08b1056828838c5f61e6393ba7a0abcc9f662898015ad
MAC: b094dac5d93471bdec1a502270e3cc6c 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308
IV:  cafebabefacedbaddecaf888
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 522dc1f099567d07f47f37a32a84427d643a8cdcbfe5c0c97598a2bd2555d1aa 8cb08e48590dbb3da7b08b1056828838c5f61e6393ba7a0abcc9f662
MAC: 76fc6ece0f4e1768cddf8853bb2d551b 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308
IV:  cafebabefacedbad
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: c3762df1ca787d32ae47c13bf19844cbaf1ae14d0b976afac52ff7d79bba9de0 feb582d33934a4f0954cc2363bc73f7862ac430e64abe499f47c9b1f
MAC: 3a337dbf46a792c45e454913fe2ea8f2 
Test: Encrypt
Key: feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308
IV:  9313225df88406e555909c5aff5269aa6a7a9538534f7da1e4c303d2a318a728 c3c0c95156809539fcf0e2429a6b525416aedbf5a0de6a57a637b39b
Header: feedfacedeadbeeffeedfacedeadbeefabaddad2
Plaintext: d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a72 1c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39
Ciphertext: 5a8def2f0c9e53f1f75d7853659e2a20eeb2b22aafde6419a058ab4f6f746bf4 0fc0c3b780f244452da3ebf1c5d82cdea2418997200ef82e44ae7e3f
MAC: a44a8266ee1c8eb0c8b5d4cf5ae9f19a 
Test: Encrypt
Header:
Plaintext:
Ciphertext:
Key: 00000000000000000000000000000000
IV:  000000000000000000000000
Plaintext: 000102030405060708090a0b0c0d0e0f 101112131415161718191a1b1c1d1e1f 202122232425262728292a2b2c2d2e2f 303132333435363738393a3b3c3d3e3f 404142434445464748494a4b4c4d4e4f 505152535455565758595a5b5c5d5e5f 606162636465666768696a6b6c6d6e6f 707172737475767778797a7b7c7d7e7f 808182838485868788898a8b8c8d8e8f 909192939495969798999a9b9c9d9e9f a0a1a2a3a4a5a6a7a8a9aaabacadaeaf b0b1b2b3b4b5b6b7b8b9babbbcbdbebf c0c1c2c3c4c5c6c7c8c9cacbcccdcecf d0d1d2d3d4d5d6d7d8d9dadbdcdddedf
Ciphertext: 0389d8cd64b3a595fb21c8b27dbff077 e784b8b85d5e4f34efe493e48896dfff 002333026a56b2fd08a09c87fcbe85cf f97c902a25bb1f4a43478687f5feb6cd ca9f3fc6ecab732627386ee2996a4cde c5e91f48c293c6a87774b950aeb1d7bf 62321a0d76006297b2d06623cf6e4fb1 433494c3326b0ae914120085a195413f 5e3278e4107d7b08dd2107405610e67d 83ed5b5ba0b591e9e46b1029f5f6936f fdb0e788fc09f60d861a0b3e1ab6294a 76ebdf6663421ef7dd6c1bc448dfcdb7 a0c38bae72fa627ed327f2b46fcec25a 77ee5fd7e3354788643c0d7df15075d5
MAC: 6b385f3012eafda4189da7ad3b6eafbf 
Test: Encrypt
Key: 00000000000000000000000000000000
IV:  000000000000000000000000
Plaintext: 000102030405060708090a0b0c0d0e0f 101112131415161718191a1b1c1d1e1f 202122232425262728292a2b2c2d2e2f 303132333435363738393a3b3c3d3e3f 404142434445464748494a4b4c4d4e4f 505152535455565758595a5b5c5d5e5f 606162636465666768696a6b6c6d6e6f 707172737475767778797a7b7c7d7e7f 808182838485868788898a8b8c8d8e8f 909192939495969798999a9b9c9d9e9f a0a1a2a3a4a5a6a7a8a9aaabacadaeaf b0b1b2b3b4b5b6b7b8b9babbbcbdbebf c0c1c2c3c4c5c6c7c8c9cacbcccdcecf d0d1d2d3d4d5d6d7d8d9dadbdcdddedf
Ciphertext: 0389d8cd64b3a595fb21c8b27dbff077 e784b8b85d5e4f34efe493e48896dfff 002333026a56b2fd08a09c87fcbe85cf f97c902a25bb1f4a43478687f5feb6cd ca9f3fc6ecab732627386ee2996a4cde c5e91f48c293c6a87774b950aeb1d7bf 62321a0d76006297b2d06623cf6e4fb1 433494c3326b0ae914120085a195413f 5e3278e4107d7b08dd2107405610e67d 83ed5b5ba0b591e9e46b1029f5f6936f fdb0e788fc09f60d861a0b3e1ab6294a 76ebdf6663421ef7dd6c1bc448dfcdb7 a0c38bae72fa627ed327f2b46fcec25a 77ee5fd7e3354788643c0d7df15075d5
MAC: 6b385f3012eafda4189da7ad3b6eafbf 
Test: Encrypt

AlgorithmType: AuthenticatedSymmetricCipher
Name: AES/GCM
Source: Generated by Crypto++ 5.6.1
Comment: long test vector with odd length
IV: f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff
Plaintext: r11 006bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710
Key: 2b7e151628aed2a6abf7158809cf4f3c
Ciphertext: BD70C168B0D4371B0A85B4B5D65D92569B17	\
F9A3D0A25B9F608E2C34621CF4D37357845431E04E585CDAAD7527BF8A2426DEEF451320C78D5EF0	\
9F5B11A8B8C700CD329A3D4CDED92C20F6BF28CB3627681C5B0AF2B5692CC7EC9049008ACBBD127A	\
9CD8DEF00425697E0BCF67E05AEE70EA1A5D7EE95E3B88FBAF3C196AAAECB73E09BDF057AF701A02	\
42394BCC104FF4F75F15D287325FCFFDB7E7FF3A939A80A6A3A9D7570E6EF6AD0BBE6E291338938D	\
2FEBBC7D5EE95CD73E752ACD48915DCAE0A0807E6F4B2ADADBD945667318264EF7D8C2ECC0B8FB67	\
A43614C5F5EA51CADD4AEE91DC371A7FC5A3B4581D1D9DD99608CD2BB0338F82933C19F5B8EBAD6B	\
BA583835FBD29136302BAC163F86CA9E3E6F3B5BFDEFAB3E4B019190AE2EBC0B71034EA9BF882879	\
139FFE76DD997F6729425F3D5C5392762C245769D18CC963C92211B71F564203AFBF68626C083303	\
1D449B02DFA5C0F09FAFCE951FE35F4AD8122AB682A4AF28931113F75615E12DB05DD9247973F1C6	\
057666848C13EDE41192F38948366D468D84CAF896EFF724082D2BAB2376E2813B41A014999B0EE7	\
377758715D9554926AB3514EEB96A0ABD501D94A05692D858190D5AD307CEB6E6C8A63841A8257BE	\
C2527C4B937840AA51292E15834AB801F0275A6A4B1B6E969B7A7FCE217D6F823CDE1760F847E8F4	\
6CBDE152A24F2319EC2A7089D2954259D30332089FF928034391D1B0B8AFD7C8A5D4F8E0DAB5883C	\
A7D581F78E4848DC3B01E5F2A5C01BA8910D0F144BC494E29450271174B866868EE8DC6B0DD396ED	\
9D72F83DE3BB6DE6FEBC64178961E011D0D746C2CE3A0FBD05CDF8FA79AC03E94C88368BD903E142	\
7FCFC30C9D100E220B4CB9B7BA242DA49D334E930B6C4EB877D1DF2C0F8CF4AF7813E2F295929707	\
19846FC52A47FCE6E71DC5E58FC5F49C91BDE56B7A2A68CFA994D6BFA5357A8403A2B37C69A6A0A4	\
35E4AB4C9E450473AF0CDFDBCC238A2DD7
MAC: 4FEA89D75727E82B3A9F9EEB5E217A3E
Test: Encrypt