1# 2# Copyright 2001-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 = PBKDF2 tests (using PBE) 15 16PBE = pbkdf2 17Password = "password" 18Salt = "salt" 19iter = 1 20MD = sha1 21Key = 0c60c80f961f0e71f3a9b524af6012062fe037a6 22 23PBE = pbkdf2 24Password = "password" 25Salt = "salt" 26iter = 1 27MD = sha256 28Key = 120fb6cffcf8b32c43e7225256c4f837a86548c92ccc35480805987cb70be17b 29 30PBE = pbkdf2 31Password = "password" 32Salt = "salt" 33iter = 1 34MD = sha512 35Key = 867f70cf1ade02cff3752599a3a53dc4af34c7a669815ae5d513554e1c8cf252c02d470a285a0501bad999bfe943c08f050235d7d68b1da55e63f73b60a57fce 36 37PBE = pbkdf2 38Password = "password" 39Salt = "salt" 40iter = 2 41MD = sha1 42Key = ea6c014dc72d6f8ccd1ed92ace1d41f0d8de8957 43 44PBE = pbkdf2 45Password = "password" 46Salt = "salt" 47iter = 2 48MD = sha256 49Key = ae4d0c95af6b46d32d0adff928f06dd02a303f8ef3c251dfd6e2d85a95474c43 50 51PBE = pbkdf2 52Password = "password" 53Salt = "salt" 54iter = 2 55MD = sha512 56Key = e1d9c16aa681708a45f5c7c4e215ceb66e011a2e9f0040713f18aefdb866d53cf76cab2868a39b9f7840edce4fef5a82be67335c77a6068e04112754f27ccf4e 57 58PBE = pbkdf2 59Password = "password" 60Salt = "salt" 61iter = 4096 62MD = sha1 63Key = 4b007901b765489abead49d926f721d065a429c1 64 65PBE = pbkdf2 66Password = "password" 67Salt = "salt" 68iter = 4096 69MD = sha256 70Key = c5e478d59288c841aa530db6845c4c8d962893a001ce4e11a4963873aa98134a 71 72PBE = pbkdf2 73Password = "password" 74Salt = "salt" 75iter = 4096 76MD = sha512 77Key = d197b1b33db0143e018b12f3d1d1479e6cdebdcc97c5c0f87f6902e072f457b5143f30602641b3d55cd335988cb36b84376060ecd532e039b742a239434af2d5 78 79PBE = pbkdf2 80Password = "passwordPASSWORDpassword" 81Salt = "saltSALTsaltSALTsaltSALTsaltSALTsalt" 82iter = 4096 83MD = sha1 84Key = 3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038 85 86PBE = pbkdf2 87Password = "passwordPASSWORDpassword" 88Salt = "saltSALTsaltSALTsaltSALTsaltSALTsalt" 89iter = 4096 90MD = sha256 91Key = 348c89dbcbd32b2f32d814b8116e84cf2b17347ebc1800181c4e2a1fb8dd53e1c635518c7dac47e9 92 93PBE = pbkdf2 94Password = "passwordPASSWORDpassword" 95Salt = "saltSALTsaltSALTsaltSALTsaltSALTsalt" 96iter = 4096 97MD = sha512 98Key = 8c0511f4c6e597c6ac6315d8f0362e225f3c501495ba23b868c005174dc4ee71115b59f9e60cd9532fa33e0f75aefe30225c583a186cd82bd4daea9724a3d3b8 99 100PBE = pbkdf2 101Password = 7061737300776f7264 102Salt = 7361006c74 103iter = 4096 104MD = sha1 105Key = 56fa6aa75548099dcc37d7f03425e0c3 106 107PBE = pbkdf2 108Password = 7061737300776f7264 109Salt = 7361006c74 110iter = 4096 111MD = sha256 112Key = 89b69d0516f829893c696226650a8687 113 114PBE = pbkdf2 115Password = 7061737300776f7264 116Salt = 7361006c74 117iter = 4096 118MD = sha512 119Key = 9d9e9c4cd21fe4be24d5b8244c759665 120 121PBE = pbkdf2 122Password = "password" 123Salt = "salt" 124iter = 4096 125MD = sha3-224 126Key = 691292bc3683d7d41ea2910f5b3eed23 127 128PBE = pbkdf2 129Password = "password" 130Salt = "salt" 131iter = 4096 132MD = sha3-256 133Key = 778b6e237a0f49621549ff70d218d208 134 135PBE = pbkdf2 136Password = "password" 137Salt = "salt" 138iter = 4096 139MD = sha3-384 140Key = 9a5f1e45e8b83f1b259ba72d11c59087 141 142PBE = pbkdf2 143Password = "password" 144Salt = "salt" 145iter = 4096 146MD = sha3-512 147Key = 2bfaf2d5ceb6d10f5e262cd902488cfd 148 149Title = PBKDF2 tests for empty and NULL inputs 150 151PBE = pbkdf2 152Password = "" 153Salt = "salt" 154iter = 1 155MD = sha1 156Key = a33dddc30478185515311f8752895d36ea4363a2 157 158PBE = pbkdf2 159Password = "" 160Salt = "salt" 161iter = 1 162MD = sha256 163Key = f135c27993baf98773c5cdb40a5706ce6a345cde 164 165PBE = pbkdf2 166Password = "" 167Salt = "salt" 168iter = 1 169MD = sha512 170Key = 00ef42cdbfc98d29db20976608e455567fdddf14 171 172PBE = pbkdf2 173Password = NULL 174Salt = "salt" 175iter = 1 176MD = sha1 177Key = a33dddc30478185515311f8752895d36ea4363a2 178 179PBE = pbkdf2 180Password = NULL 181Salt = "salt" 182iter = 1 183MD = sha256 184Key = f135c27993baf98773c5cdb40a5706ce6a345cde 185 186PBE = pbkdf2 187Password = NULL 188Salt = "salt" 189iter = 1 190MD = sha512 191Key = 00ef42cdbfc98d29db20976608e455567fdddf14 192