diff options
author | Jack Lloyd <[email protected]> | 2019-11-13 11:56:51 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-11-13 11:56:51 -0500 |
commit | 292330e493547a49484b173bb14a674fee88ad2d (patch) | |
tree | cd46a1f143a155e0de3489f3df4f8cabd3917dd3 /src/lib/kdf/prf_tls/prf_tls.h | |
parent | 6874f6f568f55c6f670c0a22c2146e1dcb61b63a (diff) |
Fix TLS-PRF KDF tests when MD5 is disabled
Diffstat (limited to 'src/lib/kdf/prf_tls/prf_tls.h')
-rw-r--r-- | src/lib/kdf/prf_tls/prf_tls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/kdf/prf_tls/prf_tls.h b/src/lib/kdf/prf_tls/prf_tls.h index a8a30ee2c..603086a7e 100644 --- a/src/lib/kdf/prf_tls/prf_tls.h +++ b/src/lib/kdf/prf_tls/prf_tls.h @@ -30,6 +30,12 @@ class BOTAN_PUBLIC_API(2,0) TLS_PRF final : public KDF const uint8_t salt[], size_t salt_len, const uint8_t label[], size_t label_len) const override; + TLS_PRF(std::unique_ptr<MessageAuthenticationCode> hmac_md5, + std::unique_ptr<MessageAuthenticationCode> hmac_sha1) : + m_hmac_md5(std::move(hmac_md5)), + m_hmac_sha1(std::move(hmac_sha1)) + {} + TLS_PRF(); private: std::unique_ptr<MessageAuthenticationCode> m_hmac_md5; |