From a96eae0b3394b64aea544f9f0ce4664d3b4a5c58 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 3 Jun 2009 12:49:48 +0000 Subject: Small cleanups in the Skein-512 source, and add support for the personalization option. --- src/hash/skein/skein_512.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/hash/skein/skein_512.h') 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 H; SecureBuffer T; -- cgit v1.2.3