diff options
author | lloyd <[email protected]> | 2009-06-03 12:49:48 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-06-03 12:49:48 +0000 |
commit | a96eae0b3394b64aea544f9f0ce4664d3b4a5c58 (patch) | |
tree | 5ae8d4cc57021cef52d29586852f7f0287e92f0c /src/hash/skein/skein_512.h | |
parent | ab6eace5760deeff742d515e7d72389cdd2d974b (diff) |
Small cleanups in the Skein-512 source, and add support for the
personalization option.
Diffstat (limited to 'src/hash/skein/skein_512.h')
-rw-r--r-- | src/hash/skein/skein_512.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hash/skein/skein_512.h b/src/hash/skein/skein_512.h index a585ff47f..2192767ca 100644 --- a/src/hash/skein/skein_512.h +++ b/src/hash/skein/skein_512.h @@ -17,17 +17,17 @@ namespace Botan { class Skein_512 : public HashFunction { public: - Skein_512(u32bit output_bits = 512); - - HashFunction* clone() const { return new Skein_512(output_bits); } + Skein_512(u32bit output_bits = 512, + const std::string& personalization = ""); + HashFunction* clone() const; std::string name() const; - void clear() throw(); private: void add_data(const byte input[], u32bit length); void final_result(byte out[]); + std::string personalization; u32bit output_bits; SecureBuffer<u64bit, 9> H; SecureBuffer<u64bit, 3> T; |