From 2d34e5b2ecf6a5db982c53bb56c62249b7791051 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 27 Sep 2021 09:20:20 +1000 Subject: [PATCH] test: add some PVK KDF unit test cases These cases were generated using OpenSSL. Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15968) --- .../30-test_evp_data/evpkdf_pvkkdf.txt | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/recipes/30-test_evp_data/evpkdf_pvkkdf.txt 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 index 0000000000..46ebec4ab2 --- /dev/null +++ b/test/recipes/30-test_evp_data/evpkdf_pvkkdf.txt @@ -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 -- 2.34.1