aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-11-02 20:42:06 -0400
committerJack Lloyd <[email protected]>2017-11-02 20:42:06 -0400
commit5de6a1d97996ba5ec150ea0f4b4c374681668b68 (patch)
tree932e0834e81aaf46181f5a58cba469d5f71ee9df
parent334db5fc568999edc88f83e0570732cc1f4901d0 (diff)
Add some KDF2 values from Bouncy Castle
-rw-r--r--src/tests/data/kdf/kdf2.vec19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/data/kdf/kdf2.vec b/src/tests/data/kdf/kdf2.vec
index 7c5a771cf..6431bea6e 100644
--- a/src/tests/data/kdf/kdf2.vec
+++ b/src/tests/data/kdf/kdf2.vec
@@ -1,4 +1,7 @@
[KDF2(SHA-160)]
+
+# Source unknown
+
Secret = FD7A43EA8A443C580C0DE618ECC013704505EFF8B5A4A9
Salt = BF0B2ECD1724A348211D8C0CA7
Output = 79
@@ -302,3 +305,19 @@ Output = 7B80CD69345CBA9E46186372DD6602F2CB55496364CEEA96823110E28CAA68BB200F56F
Secret = 6FD4C3C0F38E5C7A6F83E99CD9BD
Salt = DBB986
Output = 02AEB40A3D4B66FBA540F9D4B20006F2046E0F3A029DEAB201FC692B79EB27CEF7E16069046A
+
+# Following values from BouncyCastle
+
+Secret = CA7C0F8C3FFA87A96E1B74AC8E6AF594347BB40A
+Output = 744AB703F5BC082E59185F6D049D2D367DB245C2
+
+Secret = 0499B502FC8B5BAFB0F4047E731D1F9FD8CD0D8881
+Output = 03C62280C894E103C680B13CD4B4AE740A5EF0C72547292F82DC6B1777F47D63BA9D1EA732DBF386
+
+Secret = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA4
+Output = 0E6A26EB7B956CCB8B3BDC1CA975BC57C3989E8FBAD31A224655D800C46954840FF32052CDF0D640562BDFADFA263CFCCF3C52B29F2AF4A1869959BC77F854CF15BD7A25192985A842DBFF8E13EFEE5B7E7E55BBE4D389647C686A9A9AB3FB889B2D7767D3837EEA4E0A2F04B53CA8F50FB31225C1BE2D0126C8C7A4753B0807
+
+[KDF2(SHA-256)]
+# From BouncyCastle
+Secret = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA4
+Output = 10A2403DB42A8743CB989DE86E668D168CBE6046E23FF26F741E87949A3BBA1311AC179F819A3D18412E9EB45668F2923C087C1299005F8D5FD42CA257BC93E8FEE0C5A0D2A8AA70185401FBBD99379EC76C663E9A29D0B70F3FE261A59CDC24875A60B4AACB1319FA11C3365A8B79A44669F26FBA933D012DB213D7E3B16349