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/hash/whirlpool | |
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/hash/whirlpool')
-rw-r--r-- | src/hash/whirlpool/whrl_tab.cpp | 10 | ||||
-rw-r--r-- | src/hash/whirlpool/whrlpool.cpp | 28 | ||||
-rw-r--r-- | src/hash/whirlpool/whrlpool.h | 16 |
3 files changed, 30 insertions, 24 deletions
diff --git a/src/hash/whirlpool/whrl_tab.cpp b/src/hash/whirlpool/whrl_tab.cpp index bd616ca27..cf670f308 100644 --- a/src/hash/whirlpool/whrl_tab.cpp +++ b/src/hash/whirlpool/whrl_tab.cpp @@ -1,7 +1,9 @@ -/************************************************* -* Diffusion Tables for Whirlpool * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* Diffusion Tables for Whirlpool +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/whrlpool.h> diff --git a/src/hash/whirlpool/whrlpool.cpp b/src/hash/whirlpool/whrlpool.cpp index b604f9400..8548d6192 100644 --- a/src/hash/whirlpool/whrlpool.cpp +++ b/src/hash/whirlpool/whrlpool.cpp @@ -1,16 +1,18 @@ -/************************************************* -* Whirlpool Source File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* Whirlpool +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/whrlpool.h> #include <botan/loadstor.h> namespace Botan { -/************************************************* -* Whirlpool Compression Function * -*************************************************/ +/* +* Whirlpool Compression Function +*/ void Whirlpool::compress_n(const byte in[], u32bit blocks) { static const u64bit RC[10] = { @@ -122,18 +124,18 @@ void Whirlpool::compress_n(const byte in[], u32bit blocks) } } -/************************************************* -* Copy out the digest * -*************************************************/ +/* +* Copy out the digest +*/ void Whirlpool::copy_out(byte output[]) { for(u32bit j = 0; j != OUTPUT_LENGTH; j += 8) store_be(digest[j/8], output + j); } -/************************************************* -* Clear memory of sensitive data * -*************************************************/ +/* +* Clear memory of sensitive data +*/ void Whirlpool::clear() throw() { MDx_HashFunction::clear(); diff --git a/src/hash/whirlpool/whrlpool.h b/src/hash/whirlpool/whrlpool.h index 25a5bb34d..b72ff609f 100644 --- a/src/hash/whirlpool/whrlpool.h +++ b/src/hash/whirlpool/whrlpool.h @@ -1,7 +1,9 @@ -/************************************************* -* Whirlpool Header File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* Whirlpool +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #ifndef BOTAN_WHIRLPOOL_H__ #define BOTAN_WHIRLPOOL_H__ @@ -10,9 +12,9 @@ namespace Botan { -/************************************************* -* Whirlpool * -*************************************************/ +/* +* Whirlpool +*/ class BOTAN_DLL Whirlpool : public MDx_HashFunction { public: |