From 57789bdfc55061002b2727d0b32587612829a37c Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 10 Jan 2014 00:08:13 +0000 Subject: Split up test vectors into per-algo files and app into botan-test for the tests and botan for everything else. --- src/tests/data/pbkdf/pbkdf1.vec | 56 ++++++++++++++++++++++++++++++++++ src/tests/data/pbkdf/pbkdf2.vec | 67 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 src/tests/data/pbkdf/pbkdf1.vec create mode 100644 src/tests/data/pbkdf/pbkdf2.vec (limited to 'src/tests/data/pbkdf') diff --git a/src/tests/data/pbkdf/pbkdf1.vec b/src/tests/data/pbkdf/pbkdf1.vec new file mode 100644 index 000000000..910225671 --- /dev/null +++ b/src/tests/data/pbkdf/pbkdf1.vec @@ -0,0 +1,56 @@ +[PBKDF1(MD2)] +Salt = 40CF117C3865E0CF +Iterations = 1000 +Passphrase = qalzsegt +OutputLen = 16 +Output = 7C1991F3F38A09D70CF3B1ACADB70BC6 + +Salt = 3A2484CE5D3E1B4D +Iterations = 1 +Passphrase = vnhazjfsixbomxqu +OutputLen = 14 +Output = 677500EDA9F0C5E96E0A11F90FB9 + +Salt = 5D838B0F4FA22BFA2157F9083D87F8752E0495BB2113012761EF11B66E87C3CB +Iterations = 15 +Passphrase = fheetneqbdmqqqnyywioqjfloivccquj +OutputLen = 14 +Output = 91A5B689156B441BF27DD2BDD276 + +Salt = F22D341361B47E3390107BD973FDC0D3E0BC02A3 +Iterations = 2 +Passphrase = snbyinjpuikqvxxgrlkf +OutputLen = 14 +Output = 49516935CC9F438BAFA30FF038FB + +[PBKDF1(SHA-1)] +Salt = 40AC5837560251C275AF5E30A6A3074E57CED38E +Iterations = 6 +Passphrase = ftlkfbxdtbjbvllvbwiw +OutputLen = 19 +Output = 768B277DC970F912DBDD3EDAD48AD2F065D25D + +Salt = 7008A9DC1B9A81470A2360275C19DAB77F716824 +Iterations = 6 +Passphrase = xnsosmkvhggzspcncpoc +OutputLen = 20 +Output = 4D90E846A4B6AAA02AC548014A00E97E506B2AFB + +Salt = CCFC44C09339040E55D3F7F76CA6EF838FDE928717241DEB9AC1A4EF45A27711 +Iterations = 2001 +Passphrase = otilqwlukqts +OutputLen = 20 +Output = 71ED1A995E693EFCD33155935E800037DA74EA28 + +Salt = 8108883FC04A01FEB10661651516425DAD1C93E0 +Iterations = 10000 +Passphrase = kzneqfflbtvsthnfctaf +OutputLen = 14 +Output = F345FB8FBD880206B650266661F6 + +Salt = BC8BC53D4604977C3ADB1D19C15E87B77A84C2F6 +Iterations = 10000 +Passphrase = qkxhlqpemxhykmyucjbo +OutputLen = 14 +Output = 2D54DFED0C7EF7D20B0945BA414A + diff --git a/src/tests/data/pbkdf/pbkdf2.vec b/src/tests/data/pbkdf/pbkdf2.vec new file mode 100644 index 000000000..88c2f894e --- /dev/null +++ b/src/tests/data/pbkdf/pbkdf2.vec @@ -0,0 +1,67 @@ +[PBKDF2(SHA-1)] +Salt = 0001020304050607 +Iterations = 10000 +Passphrase = +OutputLen = 32 +Output = 59B2B1143B4CB1059EC58D9722FB1C72471E0D85C6F7543BA5228526375B0127 + +Salt = 9B56E55328A4C97A250738F8DBA1B992E8A1B508 +Iterations = 10000 +Passphrase = jyueqgxrscgglpxdykcf +OutputLen = 14 +Output = DF6D9D72872404BF73E708CF3B7D + +Salt = 57487813CDD2220DFC485D932A2979EE8769EA8B +Iterations = 101 +Passphrase = aqrqsznzvvzgtksammgo +OutputLen = 40 +Output = FA13F40AF1ADE2A30F2FFFD66FC8A659EF95E6388C1682FC0FE4D15A70109517A32942E39C371440 + +Salt = ED1F39A0A7F3889AAF7E60743B3BC1CC2C738E60 +Iterations = 1000 +Passphrase = ltexmfeyylmlbrsyikaw +OutputLen = 10 +Output = 027AFADD48F4BE8DCC4F + +Salt = 94AC88200743FB0F6AC51BE62166CBEF08D94C15 +Iterations = 1 +Passphrase = cxgnyrcgrvllylolsjpo +OutputLen = 32 +Output = 7C0D009FC91B48CB6D19BAFBFCCFF3E2CCABFE725EAA234E56BDE1D551C132F2 + +Salt = 24A1A50B17D63EE8394B69FC70887F4F94883D68 +Iterations = 5 +Passphrase = xqyfhrxehiedlhewnvbj +OutputLen = 32 +Output = 4661301D3517CA4443A6A607B32B2A63F69996299DF75DB75F1E0B98DD0EB7D8 + +Salt = 9316C80801623CC2734AF74BEC42CF4DBAA3F6D5 +Iterations = 100 +Passphrase = andaqkpjwabvcfnpnjkl +OutputLen = 30 +Output = 82FB44A521448D5AAC94B5158EAD1E4DCD7363081A747B9F7626752BDA2D + +Salt = 612CC61DF3CF2BDB36E10C4D8C9D73192BDDEE05 +Iterations = 100 +Passphrase = hsavvyvocloyuztlsniu +OutputLen = 30 +Output = F8EC2B0AC817896AC8189D787C6424ED24A6D881436687A4629802C0ECCE + +Salt = 45248F9D0CEBCB86A18243E76C972A1F3B36772A +Iterations = 100 +Passphrase = eaimrbzpcopbusaqtkmw +OutputLen = 34 +Output = C9A0B2622F13916036E29E7462E206E8BA5B50CE9212752EB8EA2A4AA7B40A4CC1BF + +Salt = A39B76C6EEC8374A11493AD08C246A3E40DFAE5064F4EE3489C273646178 +Iterations = 1000 +Passphrase = gwrxpqxumsdsmbmhfhmfdcvlcvngzkig +OutputLen = 64 +Output = 4C9DB7BA24955225D5B845F65EF24EF1B0C6E86F2E39C8DDAA4B8ABD26082D1F350381FADEAEB560DC447AFC68A6B47E6EA1E7412F6CF7B2D82342FCCD11D3B4 + +[PBKDF2(CMAC(Blowfish))] +Salt = 24A1A50B17D63EE8394B69FC70887F4F94883D68 +Iterations = 5 +Passphrase = xqyfhrxehiedlhewnvbj +OutputLen = 32 +Output = 43734BADB91F5D89DB20B469CD2EF376CAABC226EE3952872050428EFB5E3026 -- cgit v1.2.3