1# 2# Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved. 3# 4# Licensed under the Apache License 2.0 (the "License"). You may not use 5# this file except in compliance with the License. You can obtain a copy 6# in the file LICENSE in the source distribution or at 7# https://www.openssl.org/source/license.html 8 9# Tests start with one of these keywords 10# Cipher Decrypt Derive Digest Encoding KDF MAC PBE 11# PrivPubKeyPair Sign Verify VerifyRecover 12# and continue until a blank line. Lines starting with a pound sign are ignored. 13 14Title = RFC8452 AES-GCM-SIV 15 16FIPSversion = >=3.2.0 17Cipher = aes-128-gcm-siv 18Key = 01000000000000000000000000000000 19IV = 030000000000000000000000 20Tag = 578782fff6013b815b287c22493a364c 21Plaintext = 0100000000000000 22Ciphertext = b5d839330ac7b786 23 24 25FIPSversion = >=3.2.0 26Cipher = aes-128-gcm-siv 27Key = 01000000000000000000000000000000 28IV = 030000000000000000000000 29Tag = a4978db357391a0bc4fdec8b0d106639 30Plaintext = 010000000000000000000000 31Ciphertext = 7323ea61d05932260047d942 32 33 34FIPSversion = >=3.2.0 35Cipher = aes-128-gcm-siv 36Key = 01000000000000000000000000000000 37IV = 030000000000000000000000 38Tag = 303aaf90f6fe21199c6068577437a0c4 39Plaintext = 01000000000000000000000000000000 40Ciphertext = 743f7c8077ab25f8624e2e948579cf77 41 42 43FIPSversion = >=3.2.0 44Cipher = aes-128-gcm-siv 45Key = 01000000000000000000000000000000 46IV = 030000000000000000000000 47Tag = 1a8e45dcd4578c667cd86847bf6155ff 48Plaintext = 0100000000000000000000000000000002000000000000000000000000000000 49Ciphertext = 84e07e62ba83a6585417245d7ec413a9fe427d6315c09b57ce45f2e3936a9445 50 51 52FIPSversion = >=3.2.0 53Cipher = aes-128-gcm-siv 54Key = 01000000000000000000000000000000 55IV = 030000000000000000000000 56Tag = 5e6e311dbf395d35b0fe39c2714388f8 57Plaintext = 010000000000000000000000000000000200000000000000000000000000000003000000000000000000000000000000 58Ciphertext = 3fd24ce1f5a67b75bf2351f181a475c7b800a5b4d3dcf70106b1eea82fa1d64df42bf7226122fa92e17a40eeaac1201b 59 60 61FIPSversion = >=3.2.0 62Cipher = aes-128-gcm-siv 63Key = 01000000000000000000000000000000 64IV = 030000000000000000000000 65Tag = 8a263dd317aa88d56bdf3936dba75bb8 66Plaintext = 01000000000000000000000000000000020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000 67Ciphertext = 2433668f1058190f6d43e360f4f35cd8e475127cfca7028ea8ab5c20f7ab2af02516a2bdcbc08d521be37ff28c152bba36697f25b4cd169c6590d1dd39566d3f 68 69 70FIPSversion = >=3.2.0 71Cipher = aes-128-gcm-siv 72AAD = 01 73Key = 01000000000000000000000000000000 74IV = 030000000000000000000000 75Tag = 3b0a1a2560969cdf790d99759abd1508 76Plaintext = 0200000000000000 77Ciphertext = 1e6daba35669f427 78 79 80FIPSversion = >=3.2.0 81Cipher = aes-128-gcm-siv 82AAD = 01 83Key = 01000000000000000000000000000000 84IV = 030000000000000000000000 85Tag = 08299c5102745aaa3a0c469fad9e075a 86Plaintext = 020000000000000000000000 87Ciphertext = 296c7889fd99f41917f44620 88 89 90FIPSversion = >=3.2.0 91Cipher = aes-128-gcm-siv 92AAD = 01 93Key = 01000000000000000000000000000000 94IV = 030000000000000000000000 95Tag = 8f8936ec039e4e4bb97ebd8c4457441f 96Plaintext = 02000000000000000000000000000000 97Ciphertext = e2b0c5da79a901c1745f700525cb335b 98 99 100FIPSversion = >=3.2.0 101Cipher = aes-128-gcm-siv 102AAD = 01 103Key = 01000000000000000000000000000000 104IV = 030000000000000000000000 105Tag = e6af6a7f87287da059a71684ed3498e1 106Plaintext = 0200000000000000000000000000000003000000000000000000000000000000 107Ciphertext = 620048ef3c1e73e57e02bb8562c416a319e73e4caac8e96a1ecb2933145a1d71 108 109 110FIPSversion = >=3.2.0 111Cipher = aes-128-gcm-siv 112AAD = 01 113Key = 01000000000000000000000000000000 114IV = 030000000000000000000000 115Tag = 6a8cc3865f76897c2e4b245cf31c51f2 116Plaintext = 020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000 117Ciphertext = 50c8303ea93925d64090d07bd109dfd9515a5a33431019c17d93465999a8b0053201d723120a8562b838cdff25bf9d1e 118 119 120FIPSversion = >=3.2.0 121Cipher = aes-128-gcm-siv 122AAD = 01 123Key = 01000000000000000000000000000000 124IV = 030000000000000000000000 125Tag = cdc46ae475563de037001ef84ae21744 126Plaintext = 02000000000000000000000000000000030000000000000000000000000000000400000000000000000000000000000005000000000000000000000000000000 127Ciphertext = 2f5c64059db55ee0fb847ed513003746aca4e61c711b5de2e7a77ffd02da42feec601910d3467bb8b36ebbaebce5fba30d36c95f48a3e7980f0e7ac299332a80 128 129 130FIPSversion = >=3.2.0 131Cipher = aes-128-gcm-siv 132AAD = 010000000000000000000000 133Key = 01000000000000000000000000000000 134IV = 030000000000000000000000 135Tag = 07eb1f84fb28f8cb73de8e99e2f48a14 136Plaintext = 02000000 137Ciphertext = a8fe3e87 138 139 140FIPSversion = >=3.2.0 141Cipher = aes-128-gcm-siv 142AAD = 010000000000000000000000000000000200 143Key = 01000000000000000000000000000000 144IV = 030000000000000000000000 145Tag = 24afc9805e976f451e6d87f6fe106514 146Plaintext = 0300000000000000000000000000000004000000 147Ciphertext = 6bb0fecf5ded9b77f902c7d5da236a4391dd0297 148 149 150FIPSversion = >=3.2.0 151Cipher = aes-128-gcm-siv 152AAD = 0100000000000000000000000000000002000000 153Key = 01000000000000000000000000000000 154IV = 030000000000000000000000 155Tag = bff9b2ef00fb47920cc72a0c0f13b9fd 156Plaintext = 030000000000000000000000000000000400 157Ciphertext = 44d0aaf6fb2f1f34add5e8064e83e12a2ada 158 159FIPSversion = >=3.2.0 160Cipher = aes-128-gcm-siv 161AAD = 46bb91c3c5 162Key = 36864200e0eaf5284d884a0e77d31646 163IV = bae8e37fc83441b16034566b 164Tag = 711bd85bc1e4d3e0a462e074eea428a8 165Plaintext = 7a806c 166Ciphertext = af60eb 167 168 169FIPSversion = >=3.2.0 170Cipher = aes-128-gcm-siv 171AAD = fc880c94a95198874296 172Key = aedb64a6c590bc84d1a5e269e4b47801 173IV = afc0577e34699b9e671fdd4f 174Tag = d6a9c45545cfc11f03ad743dba20f966 175Plaintext = bdc66f146545 176Ciphertext = bb93a3e34d3c 177 178 179FIPSversion = >=3.2.0 180Cipher = aes-128-gcm-siv 181AAD = 046787f3ea22c127aaf195d1894728 182Key = d5cc1fd161320b6920ce07787f86743b 183IV = 275d1ab32f6d1f0434d8848c 184Tag = 1d02fd0cd174c84fc5dae2f60f52fd2b 185Plaintext = 1177441f195495860f 186Ciphertext = 4f37281f7ad12949d0 187 188 189FIPSversion = >=3.2.0 190Cipher = aes-128-gcm-siv 191AAD = c9882e5386fd9f92ec489c8fde2be2cf97e74e93 192Key = b3fed1473c528b8426a582995929a149 193IV = 9e9ad8780c8d63d0ab4149c0 194Tag = c1dc2f871fb7561da1286e655e24b7b0 195Plaintext = 9f572c614b4745914474e7c7 196Ciphertext = f54673c5ddf710c745641c8b 197 198 199FIPSversion = >=3.2.0 200Cipher = aes-128-gcm-siv 201AAD = 2950a70d5a1db2316fd568378da107b52b0da55210cc1c1b0a 202Key = 2d4ed87da44102952ef94b02b805249b 203IV = ac80e6f61455bfac8308a2d4 204Tag = 83b3449b9f39552de99dc214a1190b0b 205Plaintext = 0d8c8451178082355c9e940fea2f58 206Ciphertext = c9ff545e07b88a015f05b274540aa1 207 208 209FIPSversion = >=3.2.0 210Cipher = aes-128-gcm-siv 211AAD = 1860f762ebfbd08284e421702de0de18baa9c9596291b08466f37de21c7f 212Key = bde3b2f204d1e9f8b06bc47f9745b3d1 213IV = ae06556fb6aa7890bebc18fe 214Tag = 3e377094f04709f64d7b985310a4db84 215Plaintext = 6b3db4da3d57aa94842b9803a96e07fb6de7 216Ciphertext = 6298b296e24e8cc35dce0bed484b7f30d580 217 218 219FIPSversion = >=3.2.0 220Cipher = aes-128-gcm-siv 221AAD = 7576f7028ec6eb5ea7e298342a94d4b202b370ef9768ec6561c4fe6b7e7296fa859c21 222Key = f901cfe8a69615a93fdf7a98cad48179 223IV = 6245709fb18853f68d833640 224Tag = 2d15506c84a9edd65e13e9d24a2a6e70 225Plaintext = e42a3c02c25b64869e146d7b233987bddfc240871d 226Ciphertext = 391cc328d484a4f46406181bcd62efd9b3ee197d05 227 228 229# AES_256_GCM_SIV 230 231 232FIPSversion = >=3.2.0 233Cipher = aes-256-gcm-siv 234Key = 0100000000000000000000000000000000000000000000000000000000000000 235IV = 030000000000000000000000 236Tag = 843122130f7364b761e0b97427e3df28 237Plaintext = 0100000000000000 238Ciphertext = c2ef328e5c71c83b 239 240 241FIPSversion = >=3.2.0 242Cipher = aes-256-gcm-siv 243Key = 0100000000000000000000000000000000000000000000000000000000000000 244IV = 030000000000000000000000 245Tag = 8ca50da9ae6559e48fd10f6e5c9ca17e 246Plaintext = 010000000000000000000000 247Ciphertext = 9aab2aeb3faa0a34aea8e2b1 248 249 250FIPSversion = >=3.2.0 251Cipher = aes-256-gcm-siv 252Key = 0100000000000000000000000000000000000000000000000000000000000000 253IV = 030000000000000000000000 254Tag = c9eac6fa700942702e90862383c6c366 255Plaintext = 01000000000000000000000000000000 256Ciphertext = 85a01b63025ba19b7fd3ddfc033b3e76 257 258 259FIPSversion = >=3.2.0 260Cipher = aes-256-gcm-siv 261Key = 0100000000000000000000000000000000000000000000000000000000000000 262IV = 030000000000000000000000 263Tag = e819e63abcd020b006a976397632eb5d 264Plaintext = 0100000000000000000000000000000002000000000000000000000000000000 265Ciphertext = 4a6a9db4c8c6549201b9edb53006cba821ec9cf850948a7c86c68ac7539d027f 266 267 268FIPSversion = >=3.2.0 269Cipher = aes-256-gcm-siv 270Key = 0100000000000000000000000000000000000000000000000000000000000000 271IV = 030000000000000000000000 272Tag = 790bc96880a99ba804bd12c0e6a22cc4 273Plaintext = 010000000000000000000000000000000200000000000000000000000000000003000000000000000000000000000000 274Ciphertext = c00d121893a9fa603f48ccc1ca3c57ce7499245ea0046db16c53c7c66fe717e39cf6c748837b61f6ee3adcee17534ed5 275 276 277FIPSversion = >=3.2.0 278Cipher = aes-256-gcm-siv 279Key = 0100000000000000000000000000000000000000000000000000000000000000 280IV = 030000000000000000000000 281Tag = 112864c269fc0d9d88c61fa47e39aa08 282Plaintext = 01000000000000000000000000000000020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000 283Ciphertext = c2d5160a1f8683834910acdafc41fbb1632d4a353e8b905ec9a5499ac34f96c7e1049eb080883891a4db8caaa1f99dd004d80487540735234e3744512c6f90ce 284 285 286FIPSversion = >=3.2.0 287Cipher = aes-256-gcm-siv 288AAD = 01 289Key = 0100000000000000000000000000000000000000000000000000000000000000 290IV = 030000000000000000000000 291Tag = 91213f267e3b452f02d01ae33e4ec854 292Plaintext = 0200000000000000 293Ciphertext = 1de22967237a8132 294 295 296FIPSversion = >=3.2.0 297Cipher = aes-256-gcm-siv 298AAD = 01 299Key = 0100000000000000000000000000000000000000000000000000000000000000 300IV = 030000000000000000000000 301Tag = c1a4a19ae800941ccdc57cc8413c277f 302Plaintext = 020000000000000000000000 303Ciphertext = 163d6f9cc1b346cd453a2e4c 304 305 306FIPSversion = >=3.2.0 307Cipher = aes-256-gcm-siv 308AAD = 01 309Key = 0100000000000000000000000000000000000000000000000000000000000000 310IV = 030000000000000000000000 311Tag = b292d28ff61189e8e49f3875ef91aff7 312Plaintext = 02000000000000000000000000000000 313Ciphertext = c91545823cc24f17dbb0e9e807d5ec17 314 315 316FIPSversion = >=3.2.0 317Cipher = aes-256-gcm-siv 318AAD = 01 319Key = 0100000000000000000000000000000000000000000000000000000000000000 320IV = 030000000000000000000000 321Tag = aea1bad12702e1965604374aab96dbbc 322Plaintext = 0200000000000000000000000000000003000000000000000000000000000000 323Ciphertext = 07dad364bfc2b9da89116d7bef6daaaf6f255510aa654f920ac81b94e8bad365 324 325 326FIPSversion = >=3.2.0 327Cipher = aes-256-gcm-siv 328AAD = 01 329Key = 0100000000000000000000000000000000000000000000000000000000000000 330IV = 030000000000000000000000 331Tag = 03332742b228c647173616cfd44c54eb 332Plaintext = 020000000000000000000000000000000300000000000000000000000000000004000000000000000000000000000000 333Ciphertext = c67a1f0f567a5198aa1fcc8e3f21314336f7f51ca8b1af61feac35a86416fa47fbca3b5f749cdf564527f2314f42fe25 334 335 336FIPSversion = >=3.2.0 337Cipher = aes-256-gcm-siv 338AAD = 01 339Key = 0100000000000000000000000000000000000000000000000000000000000000 340IV = 030000000000000000000000 341Tag = 5bde0285037c5de81e5b570a049b62a0 342Plaintext = 02000000000000000000000000000000030000000000000000000000000000000400000000000000000000000000000005000000000000000000000000000000 343Ciphertext = 67fd45e126bfb9a79930c43aad2d36967d3f0e4d217c1e551f59727870beefc98cb933a8fce9de887b1e40799988db1fc3f91880ed405b2dd298318858467c89 344 345 346FIPSversion = >=3.2.0 347Cipher = aes-256-gcm-siv 348AAD = 010000000000000000000000 349Key = 0100000000000000000000000000000000000000000000000000000000000000 350IV = 030000000000000000000000 351Tag = 1835e517741dfddccfa07fa4661b74cf 352Plaintext = 02000000 353Ciphertext = 22b3f4cd 354 355 356FIPSversion = >=3.2.0 357Cipher = aes-256-gcm-siv 358AAD = 010000000000000000000000000000000200 359Key = 0100000000000000000000000000000000000000000000000000000000000000 360IV = 030000000000000000000000 361Tag = b879ad976d8242acc188ab59cabfe307 362Plaintext = 0300000000000000000000000000000004000000 363Ciphertext = 43dd0163cdb48f9fe3212bf61b201976067f342b 364 365 366FIPSversion = >=3.2.0 367Cipher = aes-256-gcm-siv 368AAD = 0100000000000000000000000000000002000000 369Key = 0100000000000000000000000000000000000000000000000000000000000000 370IV = 030000000000000000000000 371Tag = cfcdf5042112aa29685c912fc2056543 372Plaintext = 030000000000000000000000000000000400 373Ciphertext = 462401724b5ce6588d5a54aae5375513a075 374 375FIPSversion = >=3.2.0 376Cipher = aes-256-gcm-siv 377AAD = 4fbdc66f14 378Key = bae8e37fc83441b16034566b7a806c46bb91c3c5aedb64a6c590bc84d1a5e269 379IV = e4b47801afc0577e34699b9e 380Tag = 93da9bb81333aee0c785b240d319719d 381Plaintext = 671fdd 382Ciphertext = 0eaccb 383 384 385FIPSversion = >=3.2.0 386Cipher = aes-256-gcm-siv 387AAD = 6787f3ea22c127aaf195 388Key = 6545fc880c94a95198874296d5cc1fd161320b6920ce07787f86743b275d1ab3 389IV = 2f6d1f0434d8848c1177441f 390Tag = 6b62b84dc40c84636a5ec12020ec8c2c 391Plaintext = 195495860f04 392Ciphertext = a254dad4f3f9 393 394 395FIPSversion = >=3.2.0 396Cipher = aes-256-gcm-siv 397AAD = 489c8fde2be2cf97e74e932d4ed87d 398Key = d1894728b3fed1473c528b8426a582995929a1499e9ad8780c8d63d0ab4149c0 399IV = 9f572c614b4745914474e7c7 400Tag = c0fd3dc6628dfe55ebb0b9fb2295c8c2 401Plaintext = c9882e5386fd9f92ec 402Ciphertext = 0df9e308678244c44b 403 404 405FIPSversion = >=3.2.0 406Cipher = aes-256-gcm-siv 407AAD = 0da55210cc1c1b0abde3b2f204d1e9f8b06bc47f 408Key = a44102952ef94b02b805249bac80e6f61455bfac8308a2d40d8c845117808235 409IV = 5c9e940fea2f582950a70d5a 410Tag = 404099c2587f64979f21826706d497d5 411Plaintext = 1db2316fd568378da107b52b 412Ciphertext = 8dbeb9f7255bf5769dd56692 413 414 415FIPSversion = >=3.2.0 416Cipher = aes-256-gcm-siv 417AAD = f37de21c7ff901cfe8a69615a93fdf7a98cad481796245709f 418Key = 9745b3d1ae06556fb6aa7890bebc18fe6b3db4da3d57aa94842b9803a96e07fb 419IV = 6de71860f762ebfbd08284e4 420Tag = b3080d28f6ebb5d3648ce97bd5ba67fd 421Plaintext = 21702de0de18baa9c9596291b08466 422Ciphertext = 793576dfa5c0f88729a7ed3c2f1bff 423 424 425FIPSversion = >=3.2.0 426Cipher = aes-256-gcm-siv 427AAD = 9c2159058b1f0fe91433a5bdc20e214eab7fecef4454a10ef0657df21ac7 428Key = b18853f68d833640e42a3c02c25b64869e146d7b233987bddfc240871d7576f7 429IV = 028ec6eb5ea7e298342a94d4 430Tag = 454fc2a154fea91f8363a39fec7d0a49 431Plaintext = b202b370ef9768ec6561c4fe6b7e7296fa85 432Ciphertext = 857e16a64915a787637687db4a9519635cdd 433 434 435FIPSversion = >=3.2.0 436Cipher = aes-256-gcm-siv 437AAD = 734320ccc9d9bbbb19cb81b2af4ecbc3e72834321f7aa0f70b7282b4f33df23f167541 438Key = 3c535de192eaed3822a2fbbe2ca9dfc88255e14a661b8aa82cc54236093bbc23 439IV = 688089e55540db1872504e1c 440Tag = 9d6c7029675b89eaf4ba1ded1a286594 441Plaintext = ced532ce4159b035277d4dfbb7db62968b13cd4eec 442Ciphertext = 626660c26ea6612fb17ad91e8e767639edd6c9faee 443 444# The tests in this section use AEAD_AES_256_GCM_SIV and are crafted to 445# test correct wrapping of the block counter. 446 447FIPSversion = >=3.2.0 448Cipher = aes-256-gcm-siv 449Key = 0000000000000000000000000000000000000000000000000000000000000000 450IV = 000000000000000000000000 451Tag = ffffffff000000000000000000000000 452Plaintext = 000000000000000000000000000000004db923dc793ee6497c76dcc03a98e108 453Ciphertext = f3f80f2cf0cb2dd9c5984fcda908456cc537703b5ba70324a6793a7bf218d3ea 454 455 456FIPSversion = >=3.2.0 457Cipher = aes-256-gcm-siv 458Key = 0000000000000000000000000000000000000000000000000000000000000000 459IV = 000000000000000000000000 460Tag = ffffffff000000000000000000000000 461Plaintext = eb3640277c7ffd1303c7a542d02d3e4c0000000000000000 462Ciphertext = 18ce4f0b8cb4d0cac65fea8f79257b20888e53e72299e56d 463 464 465