From f15cdfc6d954fd3d835a6d1b56632f0b3746b368 Mon Sep 17 00:00:00 2001 From: Philipp Weber Date: Wed, 27 Apr 2016 15:22:08 +0200 Subject: add kdf1 implementation according to iso-18033 (preparation for ecies) --- src/lib/kdf/kdf.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/kdf/kdf.cpp') diff --git a/src/lib/kdf/kdf.cpp b/src/lib/kdf/kdf.cpp index 7f4488d32..66296bf96 100644 --- a/src/lib/kdf/kdf.cpp +++ b/src/lib/kdf/kdf.cpp @@ -21,6 +21,10 @@ #include #endif +#if defined(BOTAN_HAS_KDF1_18033) +#include +#endif + #if defined(BOTAN_HAS_TLS_V10_PRF) #include #endif @@ -89,6 +93,10 @@ BOTAN_REGISTER_KDF_1HASH(KDF1, "KDF1"); BOTAN_REGISTER_KDF_1HASH(KDF2, "KDF2"); #endif +#if defined(BOTAN_HAS_KDF1_18033) +BOTAN_REGISTER_KDF_1HASH( KDF1_18033, "KDF1-18033" ); +#endif + #if defined(BOTAN_HAS_TLS_V10_PRF) BOTAN_REGISTER_KDF_NOARGS(TLS_PRF, "TLS-PRF"); #endif -- cgit v1.2.3