1# 2# Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3# 4# Licensed under the Apache License 2.0 (the "License"). You may not use 5# this file except in compliance with the License. You can obtain a copy 6# in the file LICENSE in the source distribution or at 7# https://www.openssl.org/source/license.html 8 9# The Test data (for the positive tests) was derived from a subset of evppkey_dsa_rfc6979.txt 10# using the intermediate outputs. 11 12Title = HMAC-DRBG-KDF Tests 13 14KDF = HMAC-DRBG-KDF 15Ctrl.digest = digest:SHA1 16Ctrl.properties = properties:provider=default 17Ctrl.hexentropy = hexentropy:411602cb19a6ccc34494d79d98ef1e7ed5af25f7 18Ctrl.hexnonce = hexnonce:8151325dcdbae9e0ff95f9f9658432dbedfdb209 19Output = 7bdb6b0ff756e1bb5d53583ef979082f9ad5bd5b 20 21KDF = HMAC-DRBG-KDF 22Ctrl.digest = digest:SHA1 23Ctrl.hexentropy = hexentropy:69c7548c21d0dfea6b9a51c9ead4e27c33d3b3f180316e5bcab92c933f0e4dbc 24Ctrl.hexnonce = hexnonce:0000000000000000000000008151325dcdbae9e0ff95f9f9658432dbedfdb209 25Output = 888fa6f7738a41bdc9846466abdb8174c0338250ae50ce955ca16230f9cbd53e 26 27KDF = HMAC-DRBG-KDF 28Ctrl.digest = digest:SHA256 29Ctrl.hexentropy = hexentropy:69c7548c21d0dfea6b9a51c9ead4e27c33d3b3f180316e5bcab92c933f0e4dbc 30Ctrl.hexnonce = hexnonce:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 31Output = 1d6ce6dda1c5d37307839cd03ab0a5cbb18e60d800937d67dfb4479aac8dead7 32 33# Fail if nonce input missing 34KDF = HMAC-DRBG-KDF 35Ctrl.digest = digest:SHA256 36Ctrl.hexentropy = hexentropy:69 37Result = KDF_DERIVE_ERROR 38 39# Fail if entropy input missing 40KDF = HMAC-DRBG-KDF 41Ctrl.digest = digest:SHA256 42Ctrl.hexnonce = hexnonce:9f 43Result = KDF_DERIVE_ERROR 44 45# Fail if XOF Digest used 46KDF = HMAC-DRBG-KDF 47Ctrl.digest = digest:SHAKE-256 48Result = KDF_CTRL_ERROR 49