aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/kdf
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-12-08 10:15:23 +0100
committerRenĂ© Korthaus <[email protected]>2016-12-08 10:15:23 +0100
commite5cb8ccbac1d66b9717c0aaec674c509533d81c4 (patch)
tree05e080388ba007e03de47e679152cd4c7fb225e2 /src/tests/data/kdf
parent41e7cade5889d238ca695806451db227b9792cd9 (diff)
Add sources for some test vectors [ci skip]
Diffstat (limited to 'src/tests/data/kdf')
-rw-r--r--src/tests/data/kdf/sp800_108_ctr.vec2
-rw-r--r--src/tests/data/kdf/sp800_108_fb.vec2
-rw-r--r--src/tests/data/kdf/sp800_108_pipe.vec2
-rw-r--r--src/tests/data/kdf/sp800_56c.vec4
4 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/data/kdf/sp800_108_ctr.vec b/src/tests/data/kdf/sp800_108_ctr.vec
index 001acf689..7d8087fd1 100644
--- a/src/tests/data/kdf/sp800_108_ctr.vec
+++ b/src/tests/data/kdf/sp800_108_ctr.vec
@@ -1,3 +1,5 @@
+# Test vectors generated with BouncyCastle
+
[SP800-108-Counter(HMAC(SHA-160))]
OutputLen = 2
Salt = 876F7274958C9F920019
diff --git a/src/tests/data/kdf/sp800_108_fb.vec b/src/tests/data/kdf/sp800_108_fb.vec
index e10d3e1c8..5928bfcaa 100644
--- a/src/tests/data/kdf/sp800_108_fb.vec
+++ b/src/tests/data/kdf/sp800_108_fb.vec
@@ -1,3 +1,5 @@
+# Test vectors generated with BouncyCastle
+
[SP800-108-Feedback(HMAC(SHA-160))]
OutputLen = 2
Salt = 0976FDEC7817D94D60C4E0C9091D82E38BCFC58D7FFF0829A13D1B4455B8
diff --git a/src/tests/data/kdf/sp800_108_pipe.vec b/src/tests/data/kdf/sp800_108_pipe.vec
index 6889a19cc..7b00337d4 100644
--- a/src/tests/data/kdf/sp800_108_pipe.vec
+++ b/src/tests/data/kdf/sp800_108_pipe.vec
@@ -1,3 +1,5 @@
+# Test vectors generated with BouncyCastle
+
[SP800-108-Pipeline(HMAC(SHA-160))]
OutputLen = 2
Salt = B65A30885B0849C7099B
diff --git a/src/tests/data/kdf/sp800_56c.vec b/src/tests/data/kdf/sp800_56c.vec
index b1f96bd6d..a441fd5bd 100644
--- a/src/tests/data/kdf/sp800_56c.vec
+++ b/src/tests/data/kdf/sp800_56c.vec
@@ -1,3 +1,7 @@
+# Generated using PyCryptodome
+# it implements the very similar HKDF from RFC 5869,
+# which was slightly modified to be equivalent to SP800-56C
+
[SP800-56C(HMAC(SHA-160))]
OutputLen = 2
Salt = 97ca00eac481e8b3556a