diff options
author | lloyd <[email protected]> | 2009-03-30 18:27:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-03-30 18:27:18 +0000 |
commit | 96d6eb6f29c55e16a37cf11899547886f735b065 (patch) | |
tree | 9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/kdf/tls_prf | |
parent | 3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff) |
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some
text about the license. One handy Perl script later and each file now has
the line
Distributed under the terms of the Botan license
after the copyright notices.
While I was in there modifying every file anyway, I also stripped out the
remainder of the block comments (lots of astericks before and after the
text); this is stylistic thing I picked up when I was first learning C++
but in retrospect it is not a good style as the structure makes it harder
to modify comments (with the result that comments become fewer, shorter and
are less likely to be updated, which are not good things).
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: |