test: add some PVK KDF unit test cases
authorPauli <pauli@openssl.org>
Sun, 26 Sep 2021 23:20:20 +0000 (09:20 +1000)
committerPauli <pauli@openssl.org>
Tue, 28 Sep 2021 08:08:42 +0000 (18:08 +1000)
These cases were generated using OpenSSL.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15968)

test/recipes/30-test_evp_data/evpkdf_pvkkdf.txt [new file with mode: 0644]

diff --git a/test/recipes/30-test_evp_data/evpkdf_pvkkdf.txt b/test/recipes/30-test_evp_data/evpkdf_pvkkdf.txt
new file mode 100644 (file)
index 0000000..46ebec4
--- /dev/null
@@ -0,0 +1,36 @@
+#
+# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License").  You may not use
+# this file except in compliance with the License.  You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+# Tests start with one of these keywords
+#       Cipher Decrypt Derive Digest Encoding KDF MAC PBE
+#       PrivPubKeyPair Sign Verify VerifyRecover
+# and continue until a blank line. Lines starting with a pound sign are ignored.
+
+# Test cases created using OpenSSL
+Title = PVKKDF tests
+
+Availablein = legacy
+KDF = PVKKDF
+Ctrl.pass = pass:password
+Ctrl.salt = salt:saltsalt
+Ctrl.digest = digest:md5
+Output = AE7CF6D3A33A2117FA4F008D66F6D26F
+
+Availablein = legacy
+KDF = PVKKDF
+Ctrl.pass = pass:password
+Ctrl.salt = salt:salt
+Ctrl.digest = digest:md5
+Output = 67A1E09BB1F83F5007DC119C14D663AA
+
+Availablein = legacy
+KDF = PVKKDF
+Ctrl.pass = pass:password
+Ctrl.salt = salt:saltsalt
+Ctrl.digest = digest:md4
+Output = E85DE988BB00EF61067A0506DFB044EE