aboutsummaryrefslogtreecommitdiffstats
path: root/modules/kdf/tlsv1/prf_tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/kdf/tlsv1/prf_tls.h')
-rw-r--r--modules/kdf/tlsv1/prf_tls.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/kdf/tlsv1/prf_tls.h b/modules/kdf/tlsv1/prf_tls.h
new file mode 100644
index 000000000..ebd0815ca
--- /dev/null
+++ b/modules/kdf/tlsv1/prf_tls.h
@@ -0,0 +1,29 @@
+/*************************************************
+* TLS v1.0 PRF Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_TLS_PRF__
+#define BOTAN_TLS_PRF__
+
+#include <botan/pk_util.h>
+
+namespace Botan {
+
+/*************************************************
+* TLS PRF *
+*************************************************/
+class BOTAN_DLL TLS_PRF : public KDF
+ {
+ public:
+ SecureVector<byte> derive(u32bit, const byte[], u32bit,
+ const byte[], u32bit) const;
+ private:
+ SecureVector<byte> P_hash(const std::string&, u32bit,
+ const byte[], u32bit,
+ const byte[], u32bit) const;
+ };
+
+}
+
+#endif