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/mac/ssl3mac | |
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/mac/ssl3mac')
-rw-r--r-- | src/mac/ssl3mac/ssl3_mac.cpp | 52 | ||||
-rw-r--r-- | src/mac/ssl3mac/ssl3_mac.h | 16 |
2 files changed, 36 insertions, 32 deletions
diff --git a/src/mac/ssl3mac/ssl3_mac.cpp b/src/mac/ssl3mac/ssl3_mac.cpp index 8bd22a779..c29296ced 100644 --- a/src/mac/ssl3mac/ssl3_mac.cpp +++ b/src/mac/ssl3mac/ssl3_mac.cpp @@ -1,23 +1,25 @@ -/************************************************* -* SSL3-MAC Source File * -* (C) 1999-2004 Jack Lloyd * -*************************************************/ +/* +* SSL3-MAC +* (C) 1999-2004 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/ssl3_mac.h> namespace Botan { -/************************************************* -* Update a SSL3-MAC Calculation * -*************************************************/ +/* +* Update a SSL3-MAC Calculation +*/ void SSL3_MAC::add_data(const byte input[], u32bit length) { hash->update(input, length); } -/************************************************* -* Finalize a SSL3-MAC Calculation * -*************************************************/ +/* +* Finalize a SSL3-MAC Calculation +*/ void SSL3_MAC::final_result(byte mac[]) { hash->final(mac); @@ -27,9 +29,9 @@ void SSL3_MAC::final_result(byte mac[]) hash->update(i_key); } -/************************************************* -* SSL3-MAC Key Schedule * -*************************************************/ +/* +* SSL3-MAC Key Schedule +*/ void SSL3_MAC::key_schedule(const byte key[], u32bit length) { hash->clear(); @@ -41,9 +43,9 @@ void SSL3_MAC::key_schedule(const byte key[], u32bit length) hash->update(i_key); } -/************************************************* -* Clear memory of sensitive data * -*************************************************/ +/* +* Clear memory of sensitive data +*/ void SSL3_MAC::clear() throw() { hash->clear(); @@ -51,25 +53,25 @@ void SSL3_MAC::clear() throw() o_key.clear(); } -/************************************************* -* Return the name of this type * -*************************************************/ +/* +* Return the name of this type +*/ std::string SSL3_MAC::name() const { return "SSL3-MAC(" + hash->name() + ")"; } -/************************************************* -* Return a clone of this object * -*************************************************/ +/* +* Return a clone of this object +*/ MessageAuthenticationCode* SSL3_MAC::clone() const { return new SSL3_MAC(hash->clone()); } -/************************************************* -* SSL3-MAC Constructor * -*************************************************/ +/* +* SSL3-MAC Constructor +*/ SSL3_MAC::SSL3_MAC(HashFunction* hash_in) : MessageAuthenticationCode(hash_in->OUTPUT_LENGTH, hash_in->OUTPUT_LENGTH), diff --git a/src/mac/ssl3mac/ssl3_mac.h b/src/mac/ssl3mac/ssl3_mac.h index fad9e74cd..dcaf7f404 100644 --- a/src/mac/ssl3mac/ssl3_mac.h +++ b/src/mac/ssl3mac/ssl3_mac.h @@ -1,7 +1,9 @@ -/************************************************* -* SSL3-MAC Header File * -* (C) 1999-2004 Jack Lloyd * -*************************************************/ +/* +* SSL3-MAC +* (C) 1999-2004 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #ifndef BOTAN_SSL3_MAC_H__ #define BOTAN_SSL3_MAC_H__ @@ -11,9 +13,9 @@ namespace Botan { -/************************************************* -* SSL3-MAC * -*************************************************/ +/* +* SSL3-MAC +*/ class BOTAN_DLL SSL3_MAC : public MessageAuthenticationCode { public: |