aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/skein/skein_512.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-06-03 12:49:48 +0000
committerlloyd <[email protected]>2009-06-03 12:49:48 +0000
commita96eae0b3394b64aea544f9f0ce4664d3b4a5c58 (patch)
tree5ae8d4cc57021cef52d29586852f7f0287e92f0c /src/hash/skein/skein_512.h
parentab6eace5760deeff742d515e7d72389cdd2d974b (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.h8
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;