From 835f2827cab6aef1d34a5f10e1770efae17ea100 Mon Sep 17 00:00:00 2001 From: Kai Michaelis Date: Thu, 28 Jan 2016 15:56:00 +0100 Subject: NIST SP800-108 & 56c --- src/lib/kdf/kdf.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/lib/kdf/kdf.cpp') diff --git a/src/lib/kdf/kdf.cpp b/src/lib/kdf/kdf.cpp index 45ee165e0..7f4488d32 100644 --- a/src/lib/kdf/kdf.cpp +++ b/src/lib/kdf/kdf.cpp @@ -33,6 +33,14 @@ #include #endif +#if defined(BOTAN_HAS_SP800_108) +#include +#endif + +#if defined(BOTAN_HAS_SP800_56C) +#include +#endif + #define BOTAN_REGISTER_KDF_NOARGS(type, name) \ BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T)) #define BOTAN_REGISTER_KDF_1HASH(type, name) \ @@ -93,4 +101,13 @@ BOTAN_REGISTER_NAMED_T(KDF, "TLS-12-PRF", TLS_12_PRF, TLS_12_PRF::make); BOTAN_REGISTER_KDF_NAMED_1STR(X942_PRF, "X9.42-PRF"); #endif +#if defined(BOTAN_HAS_SP800_108) +BOTAN_REGISTER_NAMED_T(KDF, "SP800-108-Counter", SP800_108_Counter, SP800_108_Counter::make); +BOTAN_REGISTER_NAMED_T(KDF, "SP800-108-Feedback", SP800_108_Feedback, SP800_108_Feedback::make); +BOTAN_REGISTER_NAMED_T(KDF, "SP800-108-Pipeline", SP800_108_Pipeline, SP800_108_Pipeline::make); +#endif + +#if defined(BOTAN_HAS_SP800_56C) +BOTAN_REGISTER_NAMED_T(KDF, "SP800-56C", SP800_56C, SP800_56C::make); +#endif } -- cgit v1.2.3