diff options
Diffstat (limited to 'src/kdf/tls_prf')
-rw-r--r-- | src/kdf/tls_prf/prf_tls.cpp | 28 | ||||
-rw-r--r-- | src/kdf/tls_prf/prf_tls.h | 16 |
2 files changed, 24 insertions, 20 deletions
diff --git a/src/kdf/tls_prf/prf_tls.cpp b/src/kdf/tls_prf/prf_tls.cpp index 8f7063f9f..a04c9045d 100644 --- a/src/kdf/tls_prf/prf_tls.cpp +++ b/src/kdf/tls_prf/prf_tls.cpp @@ -1,7 +1,9 @@ -/************************************************* -* TLS PRF Source File * -* (C) 2004-2006 Jack Lloyd * -*************************************************/ +/* +* TLS PRF +* (C) 2004-2006 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/prf_tls.h> #include <botan/xor_buf.h> @@ -11,9 +13,9 @@ namespace Botan { -/************************************************* -* TLS PRF Constructor and Destructor * -*************************************************/ +/* +* TLS PRF Constructor and Destructor +*/ TLS_PRF::TLS_PRF() { hmac_md5 = new HMAC(new MD5); @@ -26,9 +28,9 @@ TLS_PRF::~TLS_PRF() delete hmac_sha1; } -/************************************************* -* TLS PRF * -*************************************************/ +/* +* TLS PRF +*/ SecureVector<byte> TLS_PRF::derive(u32bit key_len, const byte secret[], u32bit secret_len, const byte seed[], u32bit seed_len) const @@ -47,9 +49,9 @@ SecureVector<byte> TLS_PRF::derive(u32bit key_len, return key1; } -/************************************************* -* TLS PRF P_hash function * -*************************************************/ +/* +* TLS PRF P_hash function +*/ SecureVector<byte> TLS_PRF::P_hash(MessageAuthenticationCode* mac, u32bit len, const byte secret[], u32bit secret_len, diff --git a/src/kdf/tls_prf/prf_tls.h b/src/kdf/tls_prf/prf_tls.h index 7d29e883b..6b81c155f 100644 --- a/src/kdf/tls_prf/prf_tls.h +++ b/src/kdf/tls_prf/prf_tls.h @@ -1,7 +1,9 @@ -/************************************************* -* TLS v1.0 PRF Header File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* TLS v1.0 PRF +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #ifndef BOTAN_TLS_PRF_H__ #define BOTAN_TLS_PRF_H__ @@ -11,9 +13,9 @@ namespace Botan { -/************************************************* -* TLS PRF * -*************************************************/ +/* +* TLS PRF +*/ class BOTAN_DLL TLS_PRF : public KDF { public: |