cipher_test.txt revision 1e4884f615b20946411a74e41eb9c6aa65e2d5f3
1# RC4 tests (from rc4test) 2Cipher = RC4 3Key = 0123456789abcdef0123456789abcdef 4Plaintext = 0123456789abcdef 5Ciphertext = 75b7878099e0c596 6 7Cipher = RC4 8Key = 0123456789abcdef0123456789abcdef 9Plaintext = 0000000000000000 10Ciphertext = 7494c2e7104b0879 11 12Cipher = RC4 13Key = 00000000000000000000000000000000 14Plaintext = 0000000000000000 15Ciphertext = de188941a3375d3a 16 17Cipher = RC4 18Key = ef012345ef012345ef012345ef012345 19Plaintext = 0000000000000000000000000000000000000000 20Ciphertext = d6a141a7ec3c38dfbd615a1162e1c7ba36b67858 21 22Cipher = RC4 23Key = 0123456789abcdef0123456789abcdef 24Plaintext = 123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012345678 25Ciphertext = 66a0949f8af7d6891f7f832ba833c00c892ebe30143ce28740011ecf 26 27Cipher = RC4 28Key = ef012345ef012345ef012345ef012345 29Plaintext = 00000000000000000000 30Ciphertext = d6a141a7ec3c38dfbd61 31 32 33# DES EDE3 CBC tests (from destest) 34Cipher = DES-EDE3-CBC 35Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 36IV = fedcba9876543210 37Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 38Ciphertext = 3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675 39 40 41# DES EDE CBC tests 42Cipher = DES-EDE-CBC 43Key = 0123456789abcdeff1e0d3c2b5a49786 44IV = fedcba9876543210 45Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 46Ciphertext = 7948C0DA4FE91CD815DCA96DBC9B60A857EB954F4DEB08EB98722642AE69257B 47 48 49# DES EDE tests 50Cipher = DES-EDE 51Key = 0123456789abcdeff1e0d3c2b5a49786 52IV = fedcba9876543210 53Plaintext = 37363534333231204E6F77206973207468652074696D6520666F722000000000 54Ciphertext = 22E889402E28422F8167AD279D90A566DA75B734E12C671FC2669AECB3E4FE8F 55 56 57# AES 128 ECB tests (from FIPS-197 test vectors, encrypt) 58Cipher = AES-128-ECB 59Key = 000102030405060708090A0B0C0D0E0F 60Operation = ENCRYPT 61Plaintext = 00112233445566778899AABBCCDDEEFF 62Ciphertext = 69C4E0D86A7B0430D8CDB78070B4C55A 63 64 65# AES 256 ECB tests (from FIPS-197 test vectors, encrypt) 66Cipher = AES-256-ECB 67Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F 68Operation = ENCRYPT 69Plaintext = 00112233445566778899AABBCCDDEEFF 70Ciphertext = 8EA2B7CA516745BFEAFC49904B496089 71 72 73# AES tests from NIST document SP800-38A 74# For all ECB encrypts and decrypts, the transformed sequence is 75# AES-bits-ECB:key::plaintext:ciphertext:encdec 76# ECB-AES128.Encrypt and ECB-AES128.Decrypt 77Cipher = AES-128-ECB 78Key = 2B7E151628AED2A6ABF7158809CF4F3C 79Plaintext = 6BC1BEE22E409F96E93D7E117393172A 80Ciphertext = 3AD77BB40D7A3660A89ECAF32466EF97 81 82Cipher = AES-128-ECB 83Key = 2B7E151628AED2A6ABF7158809CF4F3C 84Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 85Ciphertext = F5D3D58503B9699DE785895A96FDBAAF 86 87Cipher = AES-128-ECB 88Key = 2B7E151628AED2A6ABF7158809CF4F3C 89Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 90Ciphertext = 43B1CD7F598ECE23881B00E3ED030688 91 92Cipher = AES-128-ECB 93Key = 2B7E151628AED2A6ABF7158809CF4F3C 94Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 95Ciphertext = 7B0C785E27E8AD3F8223207104725DD4 96 97 98# ECB-AES256.Encrypt and ECB-AES256.Decrypt 99Cipher = AES-256-ECB 100Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 101Plaintext = 6BC1BEE22E409F96E93D7E117393172A 102Ciphertext = F3EED1BDB5D2A03C064B5A7E3DB181F8 103 104Cipher = AES-256-ECB 105Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 106Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 107Ciphertext = 591CCB10D410ED26DC5BA74A31362870 108 109Cipher = AES-256-ECB 110Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 111Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 112Ciphertext = B6ED21B99CA6F4F9F153E7B1BEAFED1D 113 114Cipher = AES-256-ECB 115Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 116Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 117Ciphertext = 23304B7A39F9F3FF067D8D8F9E24ECC7 118 119 120# For all CBC encrypts and decrypts, the transformed sequence is 121# AES-bits-CBC:key:IV/ciphertext':plaintext:ciphertext:encdec 122# CBC-AES128.Encrypt and CBC-AES128.Decrypt 123Cipher = AES-128-CBC 124Key = 2B7E151628AED2A6ABF7158809CF4F3C 125IV = 000102030405060708090A0B0C0D0E0F 126Plaintext = 6BC1BEE22E409F96E93D7E117393172A 127Ciphertext = 7649ABAC8119B246CEE98E9B12E9197D 128 129Cipher = AES-128-CBC 130Key = 2B7E151628AED2A6ABF7158809CF4F3C 131IV = 7649ABAC8119B246CEE98E9B12E9197D 132Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 133Ciphertext = 5086CB9B507219EE95DB113A917678B2 134 135Cipher = AES-128-CBC 136Key = 2B7E151628AED2A6ABF7158809CF4F3C 137IV = 5086CB9B507219EE95DB113A917678B2 138Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 139Ciphertext = 73BED6B8E3C1743B7116E69E22229516 140 141Cipher = AES-128-CBC 142Key = 2B7E151628AED2A6ABF7158809CF4F3C 143IV = 73BED6B8E3C1743B7116E69E22229516 144Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 145Ciphertext = 3FF1CAA1681FAC09120ECA307586E1A7 146 147 148# CBC-AES256.Encrypt and CBC-AES256.Decrypt 149Cipher = AES-256-CBC 150Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 151IV = 000102030405060708090A0B0C0D0E0F 152Plaintext = 6BC1BEE22E409F96E93D7E117393172A 153Ciphertext = F58C4C04D6E5F1BA779EABFB5F7BFBD6 154 155Cipher = AES-256-CBC 156Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 157IV = F58C4C04D6E5F1BA779EABFB5F7BFBD6 158Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 159Ciphertext = 9CFC4E967EDB808D679F777BC6702C7D 160 161Cipher = AES-256-CBC 162Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 163IV = 9CFC4E967EDB808D679F777BC6702C7D 164Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 165Ciphertext = 39F23369A9D9BACFA530E26304231461 166 167Cipher = AES-256-CBC 168Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 169IV = 39F23369A9D9BACFA530E26304231461 170Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 171Ciphertext = B2EB05E2C39BE9FCDA6C19078C6A9D1B 172 173 174# AES Counter test vectors from RFC3686 175Cipher = AES-128-CTR 176Key = AE6852F8121067CC4BF7A5765577F39E 177IV = 00000030000000000000000000000001 178Operation = ENCRYPT 179Plaintext = 53696E676C6520626C6F636B206D7367 180Ciphertext = E4095D4FB7A7B3792D6175A3261311B8 181 182Cipher = AES-128-CTR 183Key = 7E24067817FAE0D743D6CE1F32539163 184IV = 006CB6DBC0543B59DA48D90B00000001 185Operation = ENCRYPT 186Plaintext = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F 187Ciphertext = 5104A106168A72D9790D41EE8EDAD388EB2E1EFC46DA57C8FCE630DF9141BE28 188 189Cipher = AES-128-CTR 190Key = 7691BE035E5020A8AC6E618529F9A0DC 191IV = 00E0017B27777F3F4A1786F000000001 192Operation = ENCRYPT 193Plaintext = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20212223 194Ciphertext = C1CF48A89F2FFDD9CF4652E9EFDB72D74540A42BDE6D7836D59A5CEAAEF3105325B2072F 195 196Cipher = AES-256-CTR 197Key = 776BEFF2851DB06F4C8A0542C8696F6C6A81AF1EEC96B4D37FC1D689E6C1C104 198IV = 00000060DB5672C97AA8F0B200000001 199Operation = ENCRYPT 200Plaintext = 53696E676C6520626C6F636B206D7367 201Ciphertext = 145AD01DBF824EC7560863DC71E3E0C0 202 203Cipher = AES-256-CTR 204Key = F6D66D6BD52D59BB0796365879EFF886C66DD51A5B6A99744B50590C87A23884 205IV = 00FAAC24C1585EF15A43D87500000001 206Operation = ENCRYPT 207Plaintext = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F 208Ciphertext = F05E231B3894612C49EE000B804EB2A9B8306B508F839D6A5530831D9344AF1C 209 210Cipher = AES-256-CTR 211Key = FF7A617CE69148E4F1726E2F43581DE2AA62D9F805532EDFF1EED687FB54153D 212IV = 001CC5B751A51D70A1C1114800000001 213Operation = ENCRYPT 214Plaintext = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20212223 215Ciphertext = EB6C52821D0BBBF7CE7594462ACA4FAAB407DF866569FD07F48CC0B583D6071F1EC0E6B8 216 217 218# AES GCM test vectors from http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/gcm/gcm-spec.pdf 219Cipher = AES-128-GCM 220Key = 00000000000000000000000000000000 221IV = 000000000000000000000000 222Plaintext = 223Ciphertext = 224AAD = 225Tag = 58e2fccefa7e3061367f1d57a4e7455a 226 227Cipher = AES-128-GCM 228Key = 00000000000000000000000000000000 229IV = 000000000000000000000000 230Plaintext = 00000000000000000000000000000000 231Ciphertext = 0388dace60b6a392f328c2b971b2fe78 232AAD = 233Tag = ab6e47d42cec13bdf53a67b21257bddf 234 235Cipher = AES-128-GCM 236Key = feffe9928665731c6d6a8f9467308308 237IV = cafebabefacedbaddecaf888 238Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255 239Ciphertext = 42831ec2217774244b7221b784d0d49ce3aa212f2c02a4e035c17e2329aca12e21d514b25466931c7d8f6a5aac84aa051ba30b396a0aac973d58e091473f5985 240AAD = 241Tag = 4d5c2af327cd64a62cf35abd2ba6fab4 242 243Cipher = AES-128-GCM 244Key = feffe9928665731c6d6a8f9467308308 245IV = cafebabefacedbaddecaf888 246Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39 247Ciphertext = 42831ec2217774244b7221b784d0d49ce3aa212f2c02a4e035c17e2329aca12e21d514b25466931c7d8f6a5aac84aa051ba30b396a0aac973d58e091 248AAD = feedfacedeadbeeffeedfacedeadbeefabaddad2 249Tag = 5bc94fbc3221a5db94fae95ae7121a47 250 251Cipher = AES-128-GCM 252Key = feffe9928665731c6d6a8f9467308308 253IV = cafebabefacedbad 254Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39 255Ciphertext = 61353b4c2806934a777ff51fa22a4755699b2a714fcdc6f83766e5f97b6c742373806900e49f24b22b097544d4896b424989b5e1ebac0f07c23f4598 256AAD = feedfacedeadbeeffeedfacedeadbeefabaddad2 257Tag = 3612d2e79e3b0785561be14aaca2fccb 258 259Cipher = AES-128-GCM 260Key = feffe9928665731c6d6a8f9467308308 261IV = 9313225df88406e555909c5aff5269aa6a7a9538534f7da1e4c303d2a318a728c3c0c95156809539fcf0e2429a6b525416aedbf5a0de6a57a637b39b 262Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39 263Ciphertext = 8ce24998625615b603a033aca13fb894be9112a5c3a211a8ba262a3cca7e2ca701e4a9a4fba43c90ccdcb281d48c7c6fd62875d2aca417034c34aee5 264AAD = feedfacedeadbeeffeedfacedeadbeefabaddad2 265Tag = 619cc5aefffe0bfa462af43c1699d050 266 267Cipher = AES-256-GCM 268Key = 0000000000000000000000000000000000000000000000000000000000000000 269IV = 000000000000000000000000 270Plaintext = 271Ciphertext = 272AAD = 273Tag = 530f8afbc74536b9a963b4f1c4cb738b 274 275Cipher = AES-256-GCM 276Key = 0000000000000000000000000000000000000000000000000000000000000000 277IV = 000000000000000000000000 278Plaintext = 00000000000000000000000000000000 279Ciphertext = cea7403d4d606b6e074ec5d3baf39d18 280AAD = 281Tag = d0d1c8a799996bf0265b98b5d48ab919 282 283Cipher = AES-256-GCM 284Key = feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308 285IV = cafebabefacedbaddecaf888 286Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255 287Ciphertext = 522dc1f099567d07f47f37a32a84427d643a8cdcbfe5c0c97598a2bd2555d1aa8cb08e48590dbb3da7b08b1056828838c5f61e6393ba7a0abcc9f662898015ad 288AAD = 289Tag = b094dac5d93471bdec1a502270e3cc6c 290 291Cipher = AES-256-GCM 292Key = feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308 293IV = cafebabefacedbaddecaf888 294Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39 295Ciphertext = 522dc1f099567d07f47f37a32a84427d643a8cdcbfe5c0c97598a2bd2555d1aa8cb08e48590dbb3da7b08b1056828838c5f61e6393ba7a0abcc9f662 296AAD = feedfacedeadbeeffeedfacedeadbeefabaddad2 297Tag = 76fc6ece0f4e1768cddf8853bb2d551b 298 299Cipher = AES-256-GCM 300Key = feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308 301IV = cafebabefacedbad 302Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39 303Ciphertext = c3762df1ca787d32ae47c13bf19844cbaf1ae14d0b976afac52ff7d79bba9de0feb582d33934a4f0954cc2363bc73f7862ac430e64abe499f47c9b1f 304AAD = feedfacedeadbeeffeedfacedeadbeefabaddad2 305Tag = 3a337dbf46a792c45e454913fe2ea8f2 306 307Cipher = AES-256-GCM 308Key = feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308 309IV = 9313225df88406e555909c5aff5269aa6a7a9538534f7da1e4c303d2a318a728c3c0c95156809539fcf0e2429a6b525416aedbf5a0de6a57a637b39b 310Plaintext = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b39 311Ciphertext = 5a8def2f0c9e53f1f75d7853659e2a20eeb2b22aafde6419a058ab4f6f746bf40fc0c3b780f244452da3ebf1c5d82cdea2418997200ef82e44ae7e3f 312AAD = feedfacedeadbeeffeedfacedeadbeefabaddad2 313Tag = a44a8266ee1c8eb0c8b5d4cf5ae9f19a 314 315# local add-ons, primarily streaming ghash tests 316# 128 bytes aad 317Cipher = AES-128-GCM 318Key = 00000000000000000000000000000000 319IV = 000000000000000000000000 320Plaintext = 321Ciphertext = 322AAD = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255522dc1f099567d07f47f37a32a84427d643a8cdcbfe5c0c97598a2bd2555d1aa8cb08e48590dbb3da7b08b1056828838c5f61e6393ba7a0abcc9f662898015ad 323Tag = 5fea793a2d6f974d37e68e0cb8ff9492 324 325# 48 bytes plaintext 326Cipher = AES-128-GCM 327Key = 00000000000000000000000000000000 328IV = 000000000000000000000000 329Plaintext = 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 330Ciphertext = 0388dace60b6a392f328c2b971b2fe78f795aaab494b5923f7fd89ff948bc1e0200211214e7394da2089b6acd093abe0 331AAD = 332Tag = 9dd0a376b08e40eb00c35f29f9ea61a4 333 334# 80 bytes plaintext 335Cipher = AES-128-GCM 336Key = 00000000000000000000000000000000 337IV = 000000000000000000000000 338Plaintext = 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 339Ciphertext = 0388dace60b6a392f328c2b971b2fe78f795aaab494b5923f7fd89ff948bc1e0200211214e7394da2089b6acd093abe0c94da219118e297d7b7ebcbcc9c388f28ade7d85a8ee35616f7124a9d5270291 340AAD = 341Tag = 98885a3a22bd4742fe7b72172193b163 342 343# 128 bytes plaintext 344Cipher = AES-128-GCM 345Key = 00000000000000000000000000000000 346IV = 000000000000000000000000 347Plaintext = 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 348Ciphertext = 0388dace60b6a392f328c2b971b2fe78f795aaab494b5923f7fd89ff948bc1e0200211214e7394da2089b6acd093abe0c94da219118e297d7b7ebcbcc9c388f28ade7d85a8ee35616f7124a9d527029195b84d1b96c690ff2f2de30bf2ec89e00253786e126504f0dab90c48a30321de3345e6b0461e7c9e6c6b7afedde83f40 349AAD = 350Tag = cac45f60e31efd3b5a43b98a22ce1aa1 351 352# 192 bytes plaintext, iv is chosen so that initial counter LSB is 0xFF 353Cipher = AES-128-GCM 354Key = 00000000000000000000000000000000 355IV = ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 356Plaintext = 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 357Ciphertext = 56b3373ca9ef6e4a2b64fe1e9a17b61425f10d47a75a5fce13efc6bc784af24f4141bdd48cf7c770887afd573cca5418a9aeffcd7c5ceddfc6a78397b9a85b499da558257267caab2ad0b23ca476a53cb17fb41c4b8b475cb4f3f7165094c229c9e8c4dc0a2a5ff1903e501511221376a1cdb8364c5061a20cae74bc4acd76ceb0abc9fd3217ef9f8c90be402ddf6d8697f4f880dff15bfb7a6b28241ec8fe183c2d59e3f9dfff653c7126f0acb9e64211f42bae12af462b1070bef1ab5e3606 358AAD = 359Tag = 566f8ef683078bfdeeffa869d751a017 360 361# 288 bytes plaintext, iv is chosen so that initial counter LSB is 0xFF 362Cipher = AES-128-GCM 363Key = 00000000000000000000000000000000 364IV = ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 365Plaintext = 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 366Ciphertext = 56b3373ca9ef6e4a2b64fe1e9a17b61425f10d47a75a5fce13efc6bc784af24f4141bdd48cf7c770887afd573cca5418a9aeffcd7c5ceddfc6a78397b9a85b499da558257267caab2ad0b23ca476a53cb17fb41c4b8b475cb4f3f7165094c229c9e8c4dc0a2a5ff1903e501511221376a1cdb8364c5061a20cae74bc4acd76ceb0abc9fd3217ef9f8c90be402ddf6d8697f4f880dff15bfb7a6b28241ec8fe183c2d59e3f9dfff653c7126f0acb9e64211f42bae12af462b1070bef1ab5e3606872ca10dee15b3249b1a1b958f23134c4bccb7d03200bce420a2f8eb66dcf3644d1423c1b5699003c13ecef4bf38a3b60eedc34033bac1902783dc6d89e2e774188a439c7ebcc0672dbda4ddcfb2794613b0be41315ef778708a70ee7d75165c 367AAD = 368Tag = 8b307f6b33286d0ab026a9ed3fe1e85f 369 370# 80 bytes plaintext, submitted by Intel 371Cipher = AES-128-GCM 372Key = 843ffcf5d2b72694d19ed01d01249412 373IV = dbcca32ebf9b804617c3aa9e 374Plaintext = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f 375Ciphertext = 6268c6fa2a80b2d137467f092f657ac04d89be2beaa623d61b5a868c8f03ff95d3dcee23ad2f1ab3a6c80eaf4b140eb05de3457f0fbc111a6b43d0763aa422a3013cf1dc37fe417d1fbfc449b75d4cc5 376AAD = 00000000000000000000000000000000101112131415161718191a1b1c1d1e1f 377Tag = 3b629ccfbc1119b7319e1dce2cd6fd6d 378 379Cipher = AES-128-GCM 380Key = 31323334353637383930313233343536 381IV = 31323334353637383930313233343536 382Plaintext = 48656c6c6f2c20576f726c64 383Ciphertext = cec189d0e8419b90fb16d555 384Tag = 32893832a8d609224d77c2e56a922282 385AAD = 386 387# OFB tests from OpenSSL upstream. 388 389# OFB-AES128.Encrypt 390Cipher = AES-128-OFB 391Key = 2B7E151628AED2A6ABF7158809CF4F3C 392IV = 000102030405060708090A0B0C0D0E0F 393Operation = ENCRYPT 394Plaintext = 6BC1BEE22E409F96E93D7E117393172A 395Ciphertext = 3B3FD92EB72DAD20333449F8E83CFB4A 396 397Cipher = AES-128-OFB 398Key = 2B7E151628AED2A6ABF7158809CF4F3C 399IV = 50FE67CC996D32B6DA0937E99BAFEC60 400Operation = ENCRYPT 401Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 402Ciphertext = 7789508D16918F03F53C52DAC54ED825 403 404Cipher = AES-128-OFB 405Key = 2B7E151628AED2A6ABF7158809CF4F3C 406IV = D9A4DADA0892239F6B8B3D7680E15674 407Operation = ENCRYPT 408Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 409Ciphertext = 9740051E9C5FECF64344F7A82260EDCC 410 411Cipher = AES-128-OFB 412Key = 2B7E151628AED2A6ABF7158809CF4F3C 413IV = A78819583F0308E7A6BF36B1386ABF23 414Operation = ENCRYPT 415Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 416Ciphertext = 304C6528F659C77866A510D9C1D6AE5E 417 418# OFB-AES128.Decrypt 419Cipher = AES-128-OFB 420Key = 2B7E151628AED2A6ABF7158809CF4F3C 421IV = 000102030405060708090A0B0C0D0E0F 422Operation = DECRYPT 423Plaintext = 6BC1BEE22E409F96E93D7E117393172A 424Ciphertext = 3B3FD92EB72DAD20333449F8E83CFB4A 425 426Cipher = AES-128-OFB 427Key = 2B7E151628AED2A6ABF7158809CF4F3C 428IV = 50FE67CC996D32B6DA0937E99BAFEC60 429Operation = DECRYPT 430Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 431Ciphertext = 7789508D16918F03F53C52DAC54ED825 432 433Cipher = AES-128-OFB 434Key = 2B7E151628AED2A6ABF7158809CF4F3C 435IV = D9A4DADA0892239F6B8B3D7680E15674 436Operation = DECRYPT 437Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 438Ciphertext = 9740051E9C5FECF64344F7A82260EDCC 439 440Cipher = AES-128-OFB 441Key = 2B7E151628AED2A6ABF7158809CF4F3C 442IV = A78819583F0308E7A6BF36B1386ABF23 443Operation = DECRYPT 444Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 445Ciphertext = 304C6528F659C77866A510D9C1D6AE5E 446 447# OFB-AES256.Encrypt 448Cipher = AES-256-OFB 449Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 450IV = 000102030405060708090A0B0C0D0E0F 451Operation = ENCRYPT 452Plaintext = 6BC1BEE22E409F96E93D7E117393172A 453Ciphertext = DC7E84BFDA79164B7ECD8486985D3860 454 455Cipher = AES-256-OFB 456Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 457IV = B7BF3A5DF43989DD97F0FA97EBCE2F4A 458Operation = ENCRYPT 459Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 460Ciphertext = 4FEBDC6740D20B3AC88F6AD82A4FB08D 461 462Cipher = AES-256-OFB 463Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 464IV = E1C656305ED1A7A6563805746FE03EDC 465Operation = ENCRYPT 466Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 467Ciphertext = 71AB47A086E86EEDF39D1C5BBA97C408 468 469Cipher = AES-256-OFB 470Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 471IV = 41635BE625B48AFC1666DD42A09D96E7 472Operation = ENCRYPT 473Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 474Ciphertext = 0126141D67F37BE8538F5A8BE740E484 475 476 477# OFB-AES256.Decrypt 478Cipher = AES-256-OFB 479Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 480IV = 000102030405060708090A0B0C0D0E0F 481Operation = DECRYPT 482Plaintext = 6BC1BEE22E409F96E93D7E117393172A 483Ciphertext = DC7E84BFDA79164B7ECD8486985D3860 484 485Cipher = AES-256-OFB 486Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 487IV = B7BF3A5DF43989DD97F0FA97EBCE2F4A 488Operation = DECRYPT 489Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 490Ciphertext = 4FEBDC6740D20B3AC88F6AD82A4FB08D 491 492Cipher = AES-256-OFB 493Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 494IV = E1C656305ED1A7A6563805746FE03EDC 495Operation = DECRYPT 496Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 497Ciphertext = 71AB47A086E86EEDF39D1C5BBA97C408 498 499Cipher = AES-256-OFB 500Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4 501IV = 41635BE625B48AFC1666DD42A09D96E7 502Operation = DECRYPT 503Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 504Ciphertext = 0126141D67F37BE8538F5A8BE740E484 505 506 507# AES-192 CBC-mode test from upstream OpenSSL. 508Cipher = AES-192-CBC 509Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 510IV = 000102030405060708090A0B0C0D0E0F 511Plaintext = 6BC1BEE22E409F96E93D7E117393172A 512Ciphertext = 4F021DB243BC633D7178183A9FA071E8 513 514Cipher = AES-192-CBC 515Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 516IV = 4F021DB243BC633D7178183A9FA071E8 517Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 518Ciphertext = B4D9ADA9AD7DEDF4E5E738763F69145A 519 520Cipher = AES-192-CBC 521Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 522IV = B4D9ADA9AD7DEDF4E5E738763F69145A 523Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 524Ciphertext = 571B242012FB7AE07FA9BAAC3DF102E0 525 526Cipher = AES-192-CBC 527Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 528IV = 571B242012FB7AE07FA9BAAC3DF102E0 529Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 530Ciphertext = 08B0E27988598881D920A9E64F5615CD 531 532 533# AES-192-ECB tests from FIPS-197 534Cipher = AES-192-ECB 535Key = 000102030405060708090A0B0C0D0E0F1011121314151617 536Operation = ENCRYPT 537Plaintext = 00112233445566778899AABBCCDDEEFF 538Ciphertext = DDA97CA4864CDFE06EAF70A0EC0D7191 539 540 541# AES-192-ECB tests from NIST document SP800-38A 542Cipher = AES-192-ECB 543Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 544Plaintext = 6BC1BEE22E409F96E93D7E117393172A 545Ciphertext = BD334F1D6E45F25FF712A214571FA5CC 546 547Cipher = AES-192-ECB 548Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 549Plaintext = AE2D8A571E03AC9C9EB76FAC45AF8E51 550Ciphertext = 974104846D0AD3AD7734ECB3ECEE4EEF 551 552Cipher = AES-192-ECB 553Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 554Plaintext = 30C81C46A35CE411E5FBC1191A0A52EF 555Ciphertext = EF7AFD2270E2E60ADCE0BA2FACE6444E 556 557Cipher = AES-192-ECB 558Key = 8E73B0F7DA0E6452C810F32B809079E562F8EAD2522C6B7B 559Plaintext = F69F2445DF4F9B17AD2B417BE66C3710 560Ciphertext = 9A4B41BA738D6C72FB16691603C18E0E 561 562# DES ECB tests 563 564Cipher = DES-ECB 565Key = 0000000000000000 566Plaintext = 0000000000000000 567Ciphertext = 8CA64DE9C1B123A7 568 569Cipher = DES-ECB 570Key = FFFFFFFFFFFFFFFF 571Plaintext = FFFFFFFFFFFFFFFF 572Ciphertext = 7359B2163E4EDC58 573 574Cipher = DES-ECB 575Key = 3000000000000000 576Plaintext = 1000000000000001 577Ciphertext = 958E6E627A05557B 578 579Cipher = DES-ECB 580Key = 1111111111111111 581Plaintext = 1111111111111111 582Ciphertext = F40379AB9E0EC533 583 584Cipher = DES-ECB 585Key = 0123456789ABCDEF 586Plaintext = 1111111111111111 587Ciphertext = 17668DFC7292532D 588 589Cipher = DES-ECB 590Key = 1111111111111111 591Plaintext = 0123456789ABCDEF 592Ciphertext = 8A5AE1F81AB8F2DD 593 594Cipher = DES-ECB 595Key = FEDCBA9876543210 596Plaintext = 0123456789ABCDEF 597Ciphertext = ED39D950FA74BCC4 598