11cb0ef41Sopenharmony_cimodule.exports = [
21cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
31cb0ef41Sopenharmony_ci    key: '6970787039613669314d623455536234',
41cb0ef41Sopenharmony_ci    iv: '583673497131313748307652', plain: 'Hello World!',
51cb0ef41Sopenharmony_ci    ct: '4be13896f64dfa2c2d0f2c76',
61cb0ef41Sopenharmony_ci    tag: '272b422f62eb545eaa15b5ff84092447', tampered: false },
71cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
81cb0ef41Sopenharmony_ci    key: '6970787039613669314d623455536234',
91cb0ef41Sopenharmony_ci    iv: '583673497131313748307652', plain: 'Hello World!',
101cb0ef41Sopenharmony_ci    ct: '4be13896f64dfa2c2d0f2c76', aad: '000000FF',
111cb0ef41Sopenharmony_ci    tag: 'ba2479f66275665a88cb7b15f43eb005', tampered: false },
121cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
131cb0ef41Sopenharmony_ci    key: '6970787039613669314d623455536234',
141cb0ef41Sopenharmony_ci    iv: '583673497131313748307652', plain: 'Hello World!',
151cb0ef41Sopenharmony_ci    ct: '4be13596f64dfa2c2d0fac76',
161cb0ef41Sopenharmony_ci    tag: '272b422f62eb545eaa15b5ff84092447', tampered: true },
171cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
181cb0ef41Sopenharmony_ci    key: '337a54767a7233703637564336316a6d56353472495975313534357834546c59',
191cb0ef41Sopenharmony_ci    iv: '36306950306836764a6f4561', plain: 'Hello node.js world!',
201cb0ef41Sopenharmony_ci    ct: '58e62cfe7b1d274111a82267ebb93866e72b6c2a',
211cb0ef41Sopenharmony_ci    tag: '9bb44f663badabacae9720881fb1ec7a', tampered: false },
221cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
231cb0ef41Sopenharmony_ci    key: '337a54767a7233703637564336316a6d56353472495975313534357834546c59',
241cb0ef41Sopenharmony_ci    iv: '36306950306836764a6f4561', plain: 'Hello node.js world!',
251cb0ef41Sopenharmony_ci    ct: '58e62cff7b1d274011a82267ebb93866e72b6c2b',
261cb0ef41Sopenharmony_ci    tag: '9bb44f663badabacae9720881fb1ec7a', tampered: true },
271cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
281cb0ef41Sopenharmony_ci    key: '1ed2233fa2223ef5d7df08546049406c7305220bca40d4c9',
291cb0ef41Sopenharmony_ci    iv: '0e1791e9db3bd21a9122c416', plain: 'Hello node.js world!',
301cb0ef41Sopenharmony_ci    password: 'very bad password', aad: '63616c76696e',
311cb0ef41Sopenharmony_ci    ct: 'dda53a4059aa17b88756984995f7bba3c636cc44',
321cb0ef41Sopenharmony_ci    tag: 'd2a35e5c611e5e3d2258360241c5b045', tampered: false },
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ci  // Following test cases are from "The Galois/Counter Mode of Operation (GCM)"
351cb0ef41Sopenharmony_ci  // by D. McGrew and J. Viega, published by NIST.
361cb0ef41Sopenharmony_ci
371cb0ef41Sopenharmony_ci  // Test case 1
381cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
391cb0ef41Sopenharmony_ci    key: '00000000000000000000000000000000',
401cb0ef41Sopenharmony_ci    iv: '000000000000000000000000',
411cb0ef41Sopenharmony_ci    plain: '',
421cb0ef41Sopenharmony_ci    plainIsHex: false,
431cb0ef41Sopenharmony_ci    ct: '',
441cb0ef41Sopenharmony_ci    tag: '58e2fccefa7e3061367f1d57a4e7455a', tampered: false },
451cb0ef41Sopenharmony_ci
461cb0ef41Sopenharmony_ci  // Test case 2
471cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
481cb0ef41Sopenharmony_ci    key: '00000000000000000000000000000000',
491cb0ef41Sopenharmony_ci    iv: '000000000000000000000000',
501cb0ef41Sopenharmony_ci    plain: '00000000000000000000000000000000',
511cb0ef41Sopenharmony_ci    plainIsHex: true,
521cb0ef41Sopenharmony_ci    ct: '0388dace60b6a392f328c2b971b2fe78',
531cb0ef41Sopenharmony_ci    tag: 'ab6e47d42cec13bdf53a67b21257bddf', tampered: false },
541cb0ef41Sopenharmony_ci
551cb0ef41Sopenharmony_ci  // Test case 3
561cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
571cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308',
581cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbaddecaf888',
591cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
601cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a721' +
611cb0ef41Sopenharmony_ci           'c3c0c95956809532fcf0e2449a6b525b1' +
621cb0ef41Sopenharmony_ci           '6aedf5aa0de657ba637b391aafd255',
631cb0ef41Sopenharmony_ci    plainIsHex: true,
641cb0ef41Sopenharmony_ci    ct: '42831ec2217774244b7221b784d0d49c' +
651cb0ef41Sopenharmony_ci        'e3aa212f2c02a4e035c17e2329aca12e2' +
661cb0ef41Sopenharmony_ci        '1d514b25466931c7d8f6a5aac84aa051b' +
671cb0ef41Sopenharmony_ci        'a30b396a0aac973d58e091473f5985',
681cb0ef41Sopenharmony_ci    tag: '4d5c2af327cd64a62cf35abd2ba6fab4', tampered: false },
691cb0ef41Sopenharmony_ci
701cb0ef41Sopenharmony_ci  // Test case 4
711cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
721cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308',
731cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbaddecaf888',
741cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
751cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a721' +
761cb0ef41Sopenharmony_ci           'c3c0c95956809532fcf0e2449a6b525b16' +
771cb0ef41Sopenharmony_ci           'aedf5aa0de657ba637b39',
781cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
791cb0ef41Sopenharmony_ci    plainIsHex: true,
801cb0ef41Sopenharmony_ci    ct: '42831ec2217774244b7221b784d0d49c' +
811cb0ef41Sopenharmony_ci        'e3aa212f2c02a4e035c17e2329aca12e2' +
821cb0ef41Sopenharmony_ci        '1d514b25466931c7d8f6a5aac84aa051b' +
831cb0ef41Sopenharmony_ci        'a30b396a0aac973d58e091',
841cb0ef41Sopenharmony_ci    tag: '5bc94fbc3221a5db94fae95ae7121a47', tampered: false },
851cb0ef41Sopenharmony_ci
861cb0ef41Sopenharmony_ci  // Test case 5, 8 byte IV
871cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
881cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308',
891cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbad',
901cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
911cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
921cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
931cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
941cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeef' +
951cb0ef41Sopenharmony_ci         'abaddad2',
961cb0ef41Sopenharmony_ci    plainIsHex: true,
971cb0ef41Sopenharmony_ci    ct: '61353b4c2806934a777ff51fa22a4755' +
981cb0ef41Sopenharmony_ci        '699b2a714fcdc6f83766e5f97b6c7423' +
991cb0ef41Sopenharmony_ci        '73806900e49f24b22b097544d4896b42' +
1001cb0ef41Sopenharmony_ci        '4989b5e1ebac0f07c23f4598',
1011cb0ef41Sopenharmony_ci    tag: '3612d2e79e3b0785561be14aaca2fccb', tampered: false },
1021cb0ef41Sopenharmony_ci
1031cb0ef41Sopenharmony_ci  // Test case 6, 60 byte IV
1041cb0ef41Sopenharmony_ci  { algo: 'aes-128-gcm',
1051cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308',
1061cb0ef41Sopenharmony_ci    iv: '9313225DF88406E555909C5AFF5269AA' +
1071cb0ef41Sopenharmony_ci        '6A7A9538534F7DA1E4C303D2A318A728' +
1081cb0ef41Sopenharmony_ci        'C3C0C95156809539FCF0E2429A6B52541' +
1091cb0ef41Sopenharmony_ci        '6AEDBF5A0DE6A57A637B39B',
1101cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
1111cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
1121cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
1131cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
1141cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
1151cb0ef41Sopenharmony_ci    plainIsHex: true,
1161cb0ef41Sopenharmony_ci    ct: '8ce24998625615b603a033aca13fb894' +
1171cb0ef41Sopenharmony_ci        'be9112a5c3a211a8ba262a3cca7e2ca7' +
1181cb0ef41Sopenharmony_ci        '01e4a9a4fba43c90ccdcb281d48c7c6f' +
1191cb0ef41Sopenharmony_ci        'd62875d2aca417034c34aee5',
1201cb0ef41Sopenharmony_ci    tag: '619cc5aefffe0bfa462af43c1699d050', tampered: false },
1211cb0ef41Sopenharmony_ci
1221cb0ef41Sopenharmony_ci  // Test case 7
1231cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
1241cb0ef41Sopenharmony_ci    key: '000000000000000000000000000000000000000000000000',
1251cb0ef41Sopenharmony_ci    iv: '000000000000000000000000',
1261cb0ef41Sopenharmony_ci    plain: '',
1271cb0ef41Sopenharmony_ci    plainIsHex: false,
1281cb0ef41Sopenharmony_ci    ct: '',
1291cb0ef41Sopenharmony_ci    tag: 'cd33b28ac773f74ba00ed1f312572435', tampered: false },
1301cb0ef41Sopenharmony_ci
1311cb0ef41Sopenharmony_ci  // Test case 8
1321cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
1331cb0ef41Sopenharmony_ci    key: '000000000000000000000000000000000000000000000000',
1341cb0ef41Sopenharmony_ci    iv: '000000000000000000000000',
1351cb0ef41Sopenharmony_ci    plain: '00000000000000000000000000000000',
1361cb0ef41Sopenharmony_ci    plainIsHex: true,
1371cb0ef41Sopenharmony_ci    ct: '98e7247c07f0fe411c267e4384b0f600',
1381cb0ef41Sopenharmony_ci    tag: '2ff58d80033927ab8ef4d4587514f0fb', tampered: false },
1391cb0ef41Sopenharmony_ci
1401cb0ef41Sopenharmony_ci  // Test case 9
1411cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
1421cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c',
1431cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbaddecaf888',
1441cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
1451cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
1461cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
1471cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b391aafd255',
1481cb0ef41Sopenharmony_ci    plainIsHex: true,
1491cb0ef41Sopenharmony_ci    ct: '3980ca0b3c00e841eb06fac4872a2757' +
1501cb0ef41Sopenharmony_ci        '859e1ceaa6efd984628593b40ca1e19c' +
1511cb0ef41Sopenharmony_ci        '7d773d00c144c525ac619d18c84a3f47' +
1521cb0ef41Sopenharmony_ci        '18e2448b2fe324d9ccda2710acade256',
1531cb0ef41Sopenharmony_ci    tag: '9924a7c8587336bfb118024db8674a14', tampered: false },
1541cb0ef41Sopenharmony_ci
1551cb0ef41Sopenharmony_ci  // Test case 10
1561cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
1571cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c',
1581cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbaddecaf888',
1591cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
1601cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
1611cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
1621cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
1631cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
1641cb0ef41Sopenharmony_ci    plainIsHex: true,
1651cb0ef41Sopenharmony_ci    ct: '3980ca0b3c00e841eb06fac4872a2757' +
1661cb0ef41Sopenharmony_ci        '859e1ceaa6efd984628593b40ca1e19c' +
1671cb0ef41Sopenharmony_ci        '7d773d00c144c525ac619d18c84a3f47' +
1681cb0ef41Sopenharmony_ci        '18e2448b2fe324d9ccda2710',
1691cb0ef41Sopenharmony_ci    tag: '2519498e80f1478f37ba55bd6d27618c', tampered: false },
1701cb0ef41Sopenharmony_ci
1711cb0ef41Sopenharmony_ci  // Test case 11
1721cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
1731cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c',
1741cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbad',
1751cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
1761cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
1771cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
1781cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
1791cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
1801cb0ef41Sopenharmony_ci    plainIsHex: true,
1811cb0ef41Sopenharmony_ci    ct: '0f10f599ae14a154ed24b36e25324db8' +
1821cb0ef41Sopenharmony_ci        'c566632ef2bbb34f8347280fc4507057' +
1831cb0ef41Sopenharmony_ci        'fddc29df9a471f75c66541d4d4dad1c9' +
1841cb0ef41Sopenharmony_ci        'e93a19a58e8b473fa0f062f7',
1851cb0ef41Sopenharmony_ci    tag: '65dcc57fcf623a24094fcca40d3533f8', tampered: false },
1861cb0ef41Sopenharmony_ci
1871cb0ef41Sopenharmony_ci  // Test case 12, 60 byte IV
1881cb0ef41Sopenharmony_ci  { algo: 'aes-192-gcm',
1891cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c',
1901cb0ef41Sopenharmony_ci    iv: '9313225df88406e555909c5aff5269aa' +
1911cb0ef41Sopenharmony_ci        '6a7a9538534f7da1e4c303d2a318a728' +
1921cb0ef41Sopenharmony_ci        'c3c0c95156809539fcf0e2429a6b5254' +
1931cb0ef41Sopenharmony_ci        '16aedbf5a0de6a57a637b39b',
1941cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
1951cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
1961cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
1971cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
1981cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
1991cb0ef41Sopenharmony_ci    plainIsHex: true,
2001cb0ef41Sopenharmony_ci    ct: 'd27e88681ce3243c4830165a8fdcf9ff' +
2011cb0ef41Sopenharmony_ci        '1de9a1d8e6b447ef6ef7b79828666e45' +
2021cb0ef41Sopenharmony_ci        '81e79012af34ddd9e2f037589b292db3' +
2031cb0ef41Sopenharmony_ci        'e67c036745fa22e7e9b7373b',
2041cb0ef41Sopenharmony_ci    tag: 'dcf566ff291c25bbb8568fc3d376a6d9', tampered: false },
2051cb0ef41Sopenharmony_ci
2061cb0ef41Sopenharmony_ci  // Test case 13
2071cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
2081cb0ef41Sopenharmony_ci    key: '0000000000000000000000000000000000000000000000000000000000000000',
2091cb0ef41Sopenharmony_ci    iv: '000000000000000000000000',
2101cb0ef41Sopenharmony_ci    plain: '',
2111cb0ef41Sopenharmony_ci    plainIsHex: false,
2121cb0ef41Sopenharmony_ci    ct: '',
2131cb0ef41Sopenharmony_ci    tag: '530f8afbc74536b9a963b4f1c4cb738b', tampered: false },
2141cb0ef41Sopenharmony_ci
2151cb0ef41Sopenharmony_ci  // Test case 14
2161cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
2171cb0ef41Sopenharmony_ci    key: '0000000000000000000000000000000000000000000000000000000000000000',
2181cb0ef41Sopenharmony_ci    iv: '000000000000000000000000',
2191cb0ef41Sopenharmony_ci    plain: '00000000000000000000000000000000',
2201cb0ef41Sopenharmony_ci    plainIsHex: true,
2211cb0ef41Sopenharmony_ci    ct: 'cea7403d4d606b6e074ec5d3baf39d18',
2221cb0ef41Sopenharmony_ci    tag: 'd0d1c8a799996bf0265b98b5d48ab919', tampered: false },
2231cb0ef41Sopenharmony_ci
2241cb0ef41Sopenharmony_ci  // Test case 15
2251cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
2261cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308',
2271cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbaddecaf888',
2281cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
2291cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
2301cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
2311cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b391aafd255',
2321cb0ef41Sopenharmony_ci    plainIsHex: true,
2331cb0ef41Sopenharmony_ci    ct: '522dc1f099567d07f47f37a32a84427d' +
2341cb0ef41Sopenharmony_ci        '643a8cdcbfe5c0c97598a2bd2555d1aa' +
2351cb0ef41Sopenharmony_ci        '8cb08e48590dbb3da7b08b1056828838' +
2361cb0ef41Sopenharmony_ci        'c5f61e6393ba7a0abcc9f662898015ad',
2371cb0ef41Sopenharmony_ci    tag: 'b094dac5d93471bdec1a502270e3cc6c', tampered: false },
2381cb0ef41Sopenharmony_ci
2391cb0ef41Sopenharmony_ci  // Test case 16
2401cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
2411cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308',
2421cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbaddecaf888',
2431cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
2441cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
2451cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
2461cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
2471cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
2481cb0ef41Sopenharmony_ci    plainIsHex: true,
2491cb0ef41Sopenharmony_ci    ct: '522dc1f099567d07f47f37a32a84427d' +
2501cb0ef41Sopenharmony_ci        '643a8cdcbfe5c0c97598a2bd2555d1aa' +
2511cb0ef41Sopenharmony_ci        '8cb08e48590dbb3da7b08b1056828838' +
2521cb0ef41Sopenharmony_ci        'c5f61e6393ba7a0abcc9f662',
2531cb0ef41Sopenharmony_ci    tag: '76fc6ece0f4e1768cddf8853bb2d551b', tampered: false },
2541cb0ef41Sopenharmony_ci
2551cb0ef41Sopenharmony_ci  // Test case 17, 8 byte IV
2561cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
2571cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308',
2581cb0ef41Sopenharmony_ci    iv: 'cafebabefacedbad',
2591cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
2601cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
2611cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
2621cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
2631cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
2641cb0ef41Sopenharmony_ci    plainIsHex: true,
2651cb0ef41Sopenharmony_ci    ct: 'c3762df1ca787d32ae47c13bf19844cb' +
2661cb0ef41Sopenharmony_ci        'af1ae14d0b976afac52ff7d79bba9de0' +
2671cb0ef41Sopenharmony_ci        'feb582d33934a4f0954cc2363bc73f78' +
2681cb0ef41Sopenharmony_ci        '62ac430e64abe499f47c9b1f',
2691cb0ef41Sopenharmony_ci    tag: '3a337dbf46a792c45e454913fe2ea8f2', tampered: false },
2701cb0ef41Sopenharmony_ci
2711cb0ef41Sopenharmony_ci  // Test case 18, 60 byte IV
2721cb0ef41Sopenharmony_ci  { algo: 'aes-256-gcm',
2731cb0ef41Sopenharmony_ci    key: 'feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308',
2741cb0ef41Sopenharmony_ci    iv: '9313225df88406e555909c5aff5269aa' +
2751cb0ef41Sopenharmony_ci        '6a7a9538534f7da1e4c303d2a318a728' +
2761cb0ef41Sopenharmony_ci        'c3c0c95156809539fcf0e2429a6b5254' +
2771cb0ef41Sopenharmony_ci        '16aedbf5a0de6a57a637b39b',
2781cb0ef41Sopenharmony_ci    plain: 'd9313225f88406e5a55909c5aff5269a' +
2791cb0ef41Sopenharmony_ci           '86a7a9531534f7da2e4c303d8a318a72' +
2801cb0ef41Sopenharmony_ci           '1c3c0c95956809532fcf0e2449a6b525' +
2811cb0ef41Sopenharmony_ci           'b16aedf5aa0de657ba637b39',
2821cb0ef41Sopenharmony_ci    aad: 'feedfacedeadbeeffeedfacedeadbeefabaddad2',
2831cb0ef41Sopenharmony_ci    plainIsHex: true,
2841cb0ef41Sopenharmony_ci    ct: '5a8def2f0c9e53f1f75d7853659e2a20' +
2851cb0ef41Sopenharmony_ci        'eeb2b22aafde6419a058ab4f6f746bf4' +
2861cb0ef41Sopenharmony_ci        '0fc0c3b780f244452da3ebf1c5d82cde' +
2871cb0ef41Sopenharmony_ci        'a2418997200ef82e44ae7e3f',
2881cb0ef41Sopenharmony_ci    tag: 'a44a8266ee1c8eb0c8b5d4cf5ae9f19a', tampered: false },
2891cb0ef41Sopenharmony_ci
2901cb0ef41Sopenharmony_ci  // The following test cases for AES-CCM are from RFC3610
2911cb0ef41Sopenharmony_ci
2921cb0ef41Sopenharmony_ci  // Packet Vector #1
2931cb0ef41Sopenharmony_ci  {
2941cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
2951cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
2961cb0ef41Sopenharmony_ci    iv: '00000003020100a0a1a2a3a4a5',
2971cb0ef41Sopenharmony_ci    plain: '08090a0b0c0d0e0f101112131415161718191a1b1c1d1e',
2981cb0ef41Sopenharmony_ci    aad: '0001020304050607',
2991cb0ef41Sopenharmony_ci    plainIsHex: true,
3001cb0ef41Sopenharmony_ci    ct: '588c979a61c663d2f066d0c2c0f989806d5f6b61dac384',
3011cb0ef41Sopenharmony_ci    tag: '17e8d12cfdf926e0'
3021cb0ef41Sopenharmony_ci  },
3031cb0ef41Sopenharmony_ci
3041cb0ef41Sopenharmony_ci  // Packet Vector #2
3051cb0ef41Sopenharmony_ci  {
3061cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3071cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3081cb0ef41Sopenharmony_ci    iv: '00000004030201a0a1a2a3a4a5',
3091cb0ef41Sopenharmony_ci    plain: '08090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
3101cb0ef41Sopenharmony_ci    aad: '0001020304050607',
3111cb0ef41Sopenharmony_ci    plainIsHex: true,
3121cb0ef41Sopenharmony_ci    ct: '72c91a36e135f8cf291ca894085c87e3cc15c439c9e43a3b',
3131cb0ef41Sopenharmony_ci    tag: 'a091d56e10400916'
3141cb0ef41Sopenharmony_ci  },
3151cb0ef41Sopenharmony_ci
3161cb0ef41Sopenharmony_ci  // Packet Vector #3
3171cb0ef41Sopenharmony_ci  {
3181cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3191cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3201cb0ef41Sopenharmony_ci    iv: '00000005040302a0a1a2a3a4a5',
3211cb0ef41Sopenharmony_ci    plain: '08090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20',
3221cb0ef41Sopenharmony_ci    aad: '0001020304050607',
3231cb0ef41Sopenharmony_ci    plainIsHex: true,
3241cb0ef41Sopenharmony_ci    ct: '51b1e5f44a197d1da46b0f8e2d282ae871e838bb64da859657',
3251cb0ef41Sopenharmony_ci    tag: '4adaa76fbd9fb0c5'
3261cb0ef41Sopenharmony_ci  },
3271cb0ef41Sopenharmony_ci
3281cb0ef41Sopenharmony_ci  // Packet Vector #4
3291cb0ef41Sopenharmony_ci  {
3301cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3311cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3321cb0ef41Sopenharmony_ci    iv: '00000006050403a0a1a2a3a4a5',
3331cb0ef41Sopenharmony_ci    plain: '0c0d0e0f101112131415161718191a1b1c1d1e',
3341cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b',
3351cb0ef41Sopenharmony_ci    plainIsHex: true,
3361cb0ef41Sopenharmony_ci    ct: 'a28c6865939a9a79faaa5c4c2a9d4a91cdac8c',
3371cb0ef41Sopenharmony_ci    tag: '96c861b9c9e61ef1'
3381cb0ef41Sopenharmony_ci  },
3391cb0ef41Sopenharmony_ci
3401cb0ef41Sopenharmony_ci  // Packet Vector #5
3411cb0ef41Sopenharmony_ci  {
3421cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3431cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3441cb0ef41Sopenharmony_ci    iv: '00000007060504a0a1a2a3a4a5',
3451cb0ef41Sopenharmony_ci    plain: '0c0d0e0f101112131415161718191a1b1c1d1e1f',
3461cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b',
3471cb0ef41Sopenharmony_ci    plainIsHex: true,
3481cb0ef41Sopenharmony_ci    ct: 'dcf1fb7b5d9e23fb9d4e131253658ad86ebdca3e',
3491cb0ef41Sopenharmony_ci    tag: '51e83f077d9c2d93'
3501cb0ef41Sopenharmony_ci  },
3511cb0ef41Sopenharmony_ci
3521cb0ef41Sopenharmony_ci  // Packet Vector #6
3531cb0ef41Sopenharmony_ci  {
3541cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3551cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3561cb0ef41Sopenharmony_ci    iv: '00000008070605a0a1a2a3a4a5',
3571cb0ef41Sopenharmony_ci    plain: '0c0d0e0f101112131415161718191a1b1c1d1e1f20',
3581cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b',
3591cb0ef41Sopenharmony_ci    plainIsHex: true,
3601cb0ef41Sopenharmony_ci    ct: '6fc1b011f006568b5171a42d953d469b2570a4bd87',
3611cb0ef41Sopenharmony_ci    tag: '405a0443ac91cb94'
3621cb0ef41Sopenharmony_ci  },
3631cb0ef41Sopenharmony_ci
3641cb0ef41Sopenharmony_ci  // Packet Vector #7
3651cb0ef41Sopenharmony_ci  {
3661cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3671cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3681cb0ef41Sopenharmony_ci    iv: '00000009080706a0a1a2a3a4a5',
3691cb0ef41Sopenharmony_ci    plain: '08090a0b0c0d0e0f101112131415161718191a1b1c1d1e',
3701cb0ef41Sopenharmony_ci    aad: '0001020304050607',
3711cb0ef41Sopenharmony_ci    plainIsHex: true,
3721cb0ef41Sopenharmony_ci    ct: '0135d1b2c95f41d5d1d4fec185d166b8094e999dfed96c',
3731cb0ef41Sopenharmony_ci    tag: '048c56602c97acbb7490'
3741cb0ef41Sopenharmony_ci  },
3751cb0ef41Sopenharmony_ci
3761cb0ef41Sopenharmony_ci  // Packet Vector #7 with invalid authentication tag
3771cb0ef41Sopenharmony_ci  {
3781cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3791cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3801cb0ef41Sopenharmony_ci    iv: '00000009080706a0a1a2a3a4a5',
3811cb0ef41Sopenharmony_ci    plain: '08090a0b0c0d0e0f101112131415161718191a1b1c1d1e',
3821cb0ef41Sopenharmony_ci    aad: '0001020304050607',
3831cb0ef41Sopenharmony_ci    plainIsHex: true,
3841cb0ef41Sopenharmony_ci    ct: '0135d1b2c95f41d5d1d4fec185d166b8094e999dfed96c',
3851cb0ef41Sopenharmony_ci    tag: '048c56602c97acbb7491',
3861cb0ef41Sopenharmony_ci    tampered: true
3871cb0ef41Sopenharmony_ci  },
3881cb0ef41Sopenharmony_ci
3891cb0ef41Sopenharmony_ci  // Packet Vector #7 with invalid ciphertext
3901cb0ef41Sopenharmony_ci  {
3911cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
3921cb0ef41Sopenharmony_ci    key: 'c0c1c2c3c4c5c6c7c8c9cacbcccdcecf',
3931cb0ef41Sopenharmony_ci    iv: '00000009080706a0a1a2a3a4a5',
3941cb0ef41Sopenharmony_ci    plain: '08090a0b0c0d0e0f101112131415161718191a1b1c1d1e',
3951cb0ef41Sopenharmony_ci    aad: '0001020304050607',
3961cb0ef41Sopenharmony_ci    plainIsHex: true,
3971cb0ef41Sopenharmony_ci    ct: '0135d1b2c95f41d5d1d4fec185d166b8094e999dfed96d',
3981cb0ef41Sopenharmony_ci    tag: '048c56602c97acbb7490',
3991cb0ef41Sopenharmony_ci    tampered: true
4001cb0ef41Sopenharmony_ci  },
4011cb0ef41Sopenharmony_ci
4021cb0ef41Sopenharmony_ci  // Test case for CCM with a password using create(C|Dec)ipher
4031cb0ef41Sopenharmony_ci  {
4041cb0ef41Sopenharmony_ci    algo: 'aes-192-ccm',
4051cb0ef41Sopenharmony_ci    key: '1ed2233fa2223ef5d7df08546049406c7305220bca40d4c9',
4061cb0ef41Sopenharmony_ci    iv: '0e1791e9db3bd21a9122c416',
4071cb0ef41Sopenharmony_ci    plain: 'Hello node.js world!',
4081cb0ef41Sopenharmony_ci    password: 'very bad password',
4091cb0ef41Sopenharmony_ci    aad: '63616c76696e',
4101cb0ef41Sopenharmony_ci    ct: '49d2c2bd4892703af2f25db04cbe00e703d6d5ac',
4111cb0ef41Sopenharmony_ci    tag: '693c21ce212564fc3a6f',
4121cb0ef41Sopenharmony_ci    tampered: false
4131cb0ef41Sopenharmony_ci  },
4141cb0ef41Sopenharmony_ci
4151cb0ef41Sopenharmony_ci  // Test case for CCM with a password using create(C|Dec)ipher, invalid tag
4161cb0ef41Sopenharmony_ci  {
4171cb0ef41Sopenharmony_ci    algo: 'aes-192-ccm',
4181cb0ef41Sopenharmony_ci    key: '1ed2233fa2223ef5d7df08546049406c7305220bca40d4c9',
4191cb0ef41Sopenharmony_ci    iv: '0e1791e9db3bd21a9122c416',
4201cb0ef41Sopenharmony_ci    plain: 'Hello node.js world!',
4211cb0ef41Sopenharmony_ci    password: 'very bad password',
4221cb0ef41Sopenharmony_ci    aad: '63616c76696e',
4231cb0ef41Sopenharmony_ci    ct: '49d2c2bd4892703af2f25db04cbe00e703d6d5ac',
4241cb0ef41Sopenharmony_ci    tag: '693c21ce212564fc3a6e',
4251cb0ef41Sopenharmony_ci    tampered: true
4261cb0ef41Sopenharmony_ci  },
4271cb0ef41Sopenharmony_ci
4281cb0ef41Sopenharmony_ci  // Same test with a 128-bit key
4291cb0ef41Sopenharmony_ci  {
4301cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
4311cb0ef41Sopenharmony_ci    key: '1ed2233fa2223ef5d7df08546049406c',
4321cb0ef41Sopenharmony_ci    iv: '7305220bca40d4c90e1791e9',
4331cb0ef41Sopenharmony_ci    plain: 'Hello node.js world!',
4341cb0ef41Sopenharmony_ci    password: 'very bad password',
4351cb0ef41Sopenharmony_ci    aad: '63616c76696e',
4361cb0ef41Sopenharmony_ci    ct: '8beba09d4d4d861f957d51c0794f4abf8030848e',
4371cb0ef41Sopenharmony_ci    tag: '0d9bcd142a94caf3d1dd',
4381cb0ef41Sopenharmony_ci    tampered: false
4391cb0ef41Sopenharmony_ci  },
4401cb0ef41Sopenharmony_ci
4411cb0ef41Sopenharmony_ci  // Test case for CCM without any AAD
4421cb0ef41Sopenharmony_ci  {
4431cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
4441cb0ef41Sopenharmony_ci    key: '1ed2233fa2223ef5d7df08546049406c',
4451cb0ef41Sopenharmony_ci    iv: '7305220bca40d4c90e1791e9',
4461cb0ef41Sopenharmony_ci    plain: 'Hello node.js world!',
4471cb0ef41Sopenharmony_ci    password: 'very bad password',
4481cb0ef41Sopenharmony_ci    ct: '8beba09d4d4d861f957d51c0794f4abf8030848e',
4491cb0ef41Sopenharmony_ci    tag: '29d71a70bb58dae1425d',
4501cb0ef41Sopenharmony_ci    tampered: false
4511cb0ef41Sopenharmony_ci  },
4521cb0ef41Sopenharmony_ci
4531cb0ef41Sopenharmony_ci  // Test case for CCM with an empty message
4541cb0ef41Sopenharmony_ci  {
4551cb0ef41Sopenharmony_ci    algo: 'aes-128-ccm',
4561cb0ef41Sopenharmony_ci    key: '1ed2233fa2223ef5d7df08546049406c',
4571cb0ef41Sopenharmony_ci    iv: '7305220bca40d4c90e1791e9',
4581cb0ef41Sopenharmony_ci    plain: '',
4591cb0ef41Sopenharmony_ci    password: 'very bad password',
4601cb0ef41Sopenharmony_ci    aad: '63616c76696e',
4611cb0ef41Sopenharmony_ci    ct: '',
4621cb0ef41Sopenharmony_ci    tag: '65a6002b2cdfe9f00027f839332ca6fc',
4631cb0ef41Sopenharmony_ci    tampered: false
4641cb0ef41Sopenharmony_ci  },
4651cb0ef41Sopenharmony_ci
4661cb0ef41Sopenharmony_ci  // OCB test cases from RFC7253
4671cb0ef41Sopenharmony_ci  {
4681cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
4691cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
4701cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221100',
4711cb0ef41Sopenharmony_ci    plain: '',
4721cb0ef41Sopenharmony_ci    ct: '',
4731cb0ef41Sopenharmony_ci    tag: '785407bfffc8ad9edcc5520ac9111ee6'
4741cb0ef41Sopenharmony_ci  },
4751cb0ef41Sopenharmony_ci
4761cb0ef41Sopenharmony_ci  {
4771cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
4781cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
4791cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221101',
4801cb0ef41Sopenharmony_ci    plain: '0001020304050607',
4811cb0ef41Sopenharmony_ci    plainIsHex: true,
4821cb0ef41Sopenharmony_ci    aad: '0001020304050607',
4831cb0ef41Sopenharmony_ci    ct: '6820b3657b6f615a',
4841cb0ef41Sopenharmony_ci    tag: '5725bda0d3b4eb3a257c9af1f8f03009'
4851cb0ef41Sopenharmony_ci  },
4861cb0ef41Sopenharmony_ci
4871cb0ef41Sopenharmony_ci  {
4881cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
4891cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
4901cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221102',
4911cb0ef41Sopenharmony_ci    plain: '',
4921cb0ef41Sopenharmony_ci    aad: '0001020304050607',
4931cb0ef41Sopenharmony_ci    ct: '',
4941cb0ef41Sopenharmony_ci    tag: '81017f8203f081277152fade694a0a00'
4951cb0ef41Sopenharmony_ci  },
4961cb0ef41Sopenharmony_ci
4971cb0ef41Sopenharmony_ci  {
4981cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
4991cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5001cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221103',
5011cb0ef41Sopenharmony_ci    plain: '0001020304050607',
5021cb0ef41Sopenharmony_ci    plainIsHex: true,
5031cb0ef41Sopenharmony_ci    ct: '45dd69f8f5aae724',
5041cb0ef41Sopenharmony_ci    tag: '14054cd1f35d82760b2cd00d2f99bfa9'
5051cb0ef41Sopenharmony_ci  },
5061cb0ef41Sopenharmony_ci
5071cb0ef41Sopenharmony_ci  {
5081cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5091cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5101cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221104',
5111cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f',
5121cb0ef41Sopenharmony_ci    plainIsHex: true,
5131cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f',
5141cb0ef41Sopenharmony_ci    ct: '571d535b60b277188be5147170a9a22c',
5151cb0ef41Sopenharmony_ci    tag: '3ad7a4ff3835b8c5701c1ccec8fc3358'
5161cb0ef41Sopenharmony_ci  },
5171cb0ef41Sopenharmony_ci
5181cb0ef41Sopenharmony_ci  {
5191cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5201cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5211cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221105',
5221cb0ef41Sopenharmony_ci    plain: '',
5231cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f',
5241cb0ef41Sopenharmony_ci    ct: '',
5251cb0ef41Sopenharmony_ci    tag: '8cf761b6902ef764462ad86498ca6b97'
5261cb0ef41Sopenharmony_ci  },
5271cb0ef41Sopenharmony_ci
5281cb0ef41Sopenharmony_ci  {
5291cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5301cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5311cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221106',
5321cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f',
5331cb0ef41Sopenharmony_ci    plainIsHex: true,
5341cb0ef41Sopenharmony_ci    ct: '5ce88ec2e0692706a915c00aeb8b2396',
5351cb0ef41Sopenharmony_ci    tag: 'f40e1c743f52436bdf06d8fa1eca343d'
5361cb0ef41Sopenharmony_ci  },
5371cb0ef41Sopenharmony_ci
5381cb0ef41Sopenharmony_ci  {
5391cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5401cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5411cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221107',
5421cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f1011121314151617',
5431cb0ef41Sopenharmony_ci    plainIsHex: true,
5441cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f1011121314151617',
5451cb0ef41Sopenharmony_ci    ct: '1ca2207308c87c010756104d8840ce1952f09673a448a122',
5461cb0ef41Sopenharmony_ci    tag: 'c92c62241051f57356d7f3c90bb0e07f'
5471cb0ef41Sopenharmony_ci  },
5481cb0ef41Sopenharmony_ci
5491cb0ef41Sopenharmony_ci  {
5501cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5511cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5521cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221108',
5531cb0ef41Sopenharmony_ci    plain: '',
5541cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f1011121314151617',
5551cb0ef41Sopenharmony_ci    ct: '',
5561cb0ef41Sopenharmony_ci    tag: '6dc225a071fc1b9f7c69f93b0f1e10de'
5571cb0ef41Sopenharmony_ci  },
5581cb0ef41Sopenharmony_ci
5591cb0ef41Sopenharmony_ci  {
5601cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5611cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5621cb0ef41Sopenharmony_ci    iv: 'bbaa99887766554433221109',
5631cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f1011121314151617',
5641cb0ef41Sopenharmony_ci    plainIsHex: true,
5651cb0ef41Sopenharmony_ci    ct: '221bd0de7fa6fe993eccd769460a0af2d6cded0c395b1c3c',
5661cb0ef41Sopenharmony_ci    tag: 'e725f32494b9f914d85c0b1eb38357ff'
5671cb0ef41Sopenharmony_ci  },
5681cb0ef41Sopenharmony_ci
5691cb0ef41Sopenharmony_ci  {
5701cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5711cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5721cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110a',
5731cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
5741cb0ef41Sopenharmony_ci    plainIsHex: true,
5751cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
5761cb0ef41Sopenharmony_ci    ct: 'bd6f6c496201c69296c11efd138a467abd3c707924b964deaffc40319af5a485',
5771cb0ef41Sopenharmony_ci    tag: '40fbba186c5553c68ad9f592a79a4240'
5781cb0ef41Sopenharmony_ci  },
5791cb0ef41Sopenharmony_ci
5801cb0ef41Sopenharmony_ci  {
5811cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5821cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5831cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110b',
5841cb0ef41Sopenharmony_ci    plain: '',
5851cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
5861cb0ef41Sopenharmony_ci    ct: '',
5871cb0ef41Sopenharmony_ci    tag: 'fe80690bee8a485d11f32965bc9d2a32'
5881cb0ef41Sopenharmony_ci  },
5891cb0ef41Sopenharmony_ci
5901cb0ef41Sopenharmony_ci  {
5911cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
5921cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
5931cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110c',
5941cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
5951cb0ef41Sopenharmony_ci    plainIsHex: true,
5961cb0ef41Sopenharmony_ci    ct: '2942bfc773bda23cabc6acfd9bfd5835bd300f0973792ef46040c53f1432bcdf',
5971cb0ef41Sopenharmony_ci    tag: 'b5e1dde3bc18a5f840b52e653444d5df'
5981cb0ef41Sopenharmony_ci  },
5991cb0ef41Sopenharmony_ci
6001cb0ef41Sopenharmony_ci  {
6011cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
6021cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
6031cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110d',
6041cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' +
6051cb0ef41Sopenharmony_ci           '2021222324252627',
6061cb0ef41Sopenharmony_ci    plainIsHex: true,
6071cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20' +
6081cb0ef41Sopenharmony_ci         '21222324252627',
6091cb0ef41Sopenharmony_ci    ct: 'd5ca91748410c1751ff8a2f618255b68a0a12e093ff454606e59f9c1d0ddc54b65e8' +
6101cb0ef41Sopenharmony_ci        '628e568bad7a',
6111cb0ef41Sopenharmony_ci    tag: 'ed07ba06a4a69483a7035490c5769e60'
6121cb0ef41Sopenharmony_ci  },
6131cb0ef41Sopenharmony_ci
6141cb0ef41Sopenharmony_ci  {
6151cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
6161cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
6171cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110e',
6181cb0ef41Sopenharmony_ci    plain: '',
6191cb0ef41Sopenharmony_ci    plainIsHex: true,
6201cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20' +
6211cb0ef41Sopenharmony_ci         '21222324252627',
6221cb0ef41Sopenharmony_ci    ct: '',
6231cb0ef41Sopenharmony_ci    tag: 'c5cd9d1850c141e358649994ee701b68'
6241cb0ef41Sopenharmony_ci  },
6251cb0ef41Sopenharmony_ci
6261cb0ef41Sopenharmony_ci  {
6271cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
6281cb0ef41Sopenharmony_ci    key: '000102030405060708090a0b0c0d0e0f',
6291cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110f',
6301cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' +
6311cb0ef41Sopenharmony_ci           '2021222324252627',
6321cb0ef41Sopenharmony_ci    plainIsHex: true,
6331cb0ef41Sopenharmony_ci    ct: '4412923493c57d5de0d700f753cce0d1d2d95060122e9f15a5ddbfc5787e50b5cc55' +
6341cb0ef41Sopenharmony_ci        'ee507bcb084e',
6351cb0ef41Sopenharmony_ci    tag: '479ad363ac366b95a98ca5f3000b1479'
6361cb0ef41Sopenharmony_ci  },
6371cb0ef41Sopenharmony_ci
6381cb0ef41Sopenharmony_ci  {
6391cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
6401cb0ef41Sopenharmony_ci    key: '0f0e0d0c0b0a09080706050403020100',
6411cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110d',
6421cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' +
6431cb0ef41Sopenharmony_ci           '2021222324252627',
6441cb0ef41Sopenharmony_ci    plainIsHex: true,
6451cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20' +
6461cb0ef41Sopenharmony_ci         '21222324252627',
6471cb0ef41Sopenharmony_ci    ct: '1792a4e31e0755fb03e31b22116e6c2ddf9efd6e33d536f1a0124b0a55bae884ed93' +
6481cb0ef41Sopenharmony_ci        '481529c76b6a',
6491cb0ef41Sopenharmony_ci    tag: 'd0c515f4d1cdd4fdac4f02aa'
6501cb0ef41Sopenharmony_ci  },
6511cb0ef41Sopenharmony_ci
6521cb0ef41Sopenharmony_ci  {
6531cb0ef41Sopenharmony_ci    algo: 'aes-128-ocb',
6541cb0ef41Sopenharmony_ci    key: '0f0e0d0c0b0a09080706050403020100',
6551cb0ef41Sopenharmony_ci    iv: 'bbaa9988776655443322110d',
6561cb0ef41Sopenharmony_ci    plain: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' +
6571cb0ef41Sopenharmony_ci           '2021222324252627',
6581cb0ef41Sopenharmony_ci    plainIsHex: true,
6591cb0ef41Sopenharmony_ci    aad: '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20' +
6601cb0ef41Sopenharmony_ci         '21222324252627',
6611cb0ef41Sopenharmony_ci    ct: '1792a4e31e0755fb03e31b22116e6c2ddf9efd6e33d536f1a0124b0a55bae884ed93' +
6621cb0ef41Sopenharmony_ci        '481529c76b6a',
6631cb0ef41Sopenharmony_ci    tag: 'd0c515f4d1cdd4fdac4f02ab',
6641cb0ef41Sopenharmony_ci    tampered: true
6651cb0ef41Sopenharmony_ci  },
6661cb0ef41Sopenharmony_ci
6671cb0ef41Sopenharmony_ci  // Test case from rfc7539 section 2.8.2
6681cb0ef41Sopenharmony_ci  { algo: 'chacha20-poly1305',
6691cb0ef41Sopenharmony_ci    key: '808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f',
6701cb0ef41Sopenharmony_ci    iv: '070000004041424344454647',
6711cb0ef41Sopenharmony_ci    plain: '4c616469657320616e642047656e746c656d656e206f662074686520636c6173' +
6721cb0ef41Sopenharmony_ci           '73206f66202739393a204966204920636f756c64206f6666657220796f75206f' +
6731cb0ef41Sopenharmony_ci           '6e6c79206f6e652074697020666f7220746865206675747572652c2073756e73' +
6741cb0ef41Sopenharmony_ci           '637265656e20776f756c642062652069742e',
6751cb0ef41Sopenharmony_ci    plainIsHex: true,
6761cb0ef41Sopenharmony_ci    aad: '50515253c0c1c2c3c4c5c6c7',
6771cb0ef41Sopenharmony_ci    ct: 'd31a8d34648e60db7b86afbc53ef7ec2a4aded51296e08fea9e2b5' +
6781cb0ef41Sopenharmony_ci        'a736ee62d63dbea45e8ca9671282fafb69da92728b1a71de0a9e06' +
6791cb0ef41Sopenharmony_ci        '0b2905d6a5b67ecd3b3692ddbd7f2d778b8c9803aee328091b58fa' +
6801cb0ef41Sopenharmony_ci        'b324e4fad675945585808b4831d7bc3ff4def08e4b7a9de576d265' +
6811cb0ef41Sopenharmony_ci        '86cec64b6116',
6821cb0ef41Sopenharmony_ci    tag: '1ae10b594f09e26a7e902ecbd0600691',
6831cb0ef41Sopenharmony_ci    tampered: false
6841cb0ef41Sopenharmony_ci  },
6851cb0ef41Sopenharmony_ci
6861cb0ef41Sopenharmony_ci  { algo: 'chacha20-poly1305',
6871cb0ef41Sopenharmony_ci    key: '808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f',
6881cb0ef41Sopenharmony_ci    iv: '070000004041424344454647',
6891cb0ef41Sopenharmony_ci    plain: '4c616469657320616e642047656e746c656d656e206f662074686520636c6173' +
6901cb0ef41Sopenharmony_ci           '73206f66202739393a204966204920636f756c64206f6666657220796f75206f' +
6911cb0ef41Sopenharmony_ci           '6e6c79206f6e652074697020666f7220746865206675747572652c2073756e73' +
6921cb0ef41Sopenharmony_ci           '637265656e20776f756c642062652069742e',
6931cb0ef41Sopenharmony_ci    plainIsHex: true,
6941cb0ef41Sopenharmony_ci    aad: '50515253c0c1c2c3c4c5c6c7',
6951cb0ef41Sopenharmony_ci    ct: 'd31a8d34648e60db7b86afbc53ef7ec2a4aded51296e08fea9e2b5' +
6961cb0ef41Sopenharmony_ci        'a736ee62d63dbea45e8ca9671282fafb69da92728b1a71de0a9e06' +
6971cb0ef41Sopenharmony_ci        '0b2905d6a5b67ecd3b3692ddbd7f2d778b8c9803aee328091b58fa' +
6981cb0ef41Sopenharmony_ci        'b324e4fad675945585808b4831d7bc3ff4def08e4b7a9de576d265' +
6991cb0ef41Sopenharmony_ci        '86cec64b6116',
7001cb0ef41Sopenharmony_ci    tag: '1ae10b594f09e26a7e902ecbd0600692',
7011cb0ef41Sopenharmony_ci    tampered: true
7021cb0ef41Sopenharmony_ci  }
7031cb0ef41Sopenharmony_ci];
704