From 4e760a188e8cc280277dfdd44253ca1ad6252b7f Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 3 Jun 2011 14:19:16 +0000 Subject: Rename some dirs for shorter object files where configure will coalesce the dir and file name if identical. --- src/hash/bmw_512/bmw_512.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/hash/bmw_512/bmw_512.h (limited to 'src/hash/bmw_512/bmw_512.h') diff --git a/src/hash/bmw_512/bmw_512.h b/src/hash/bmw_512/bmw_512.h new file mode 100644 index 000000000..474b607bb --- /dev/null +++ b/src/hash/bmw_512/bmw_512.h @@ -0,0 +1,38 @@ +/* +* Blue Midnight Wish 512 (Round 2 tweaked) +* (C) 2009 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#ifndef BOTAN_BMW_512_H__ +#define BOTAN_BMW_512_H__ + +#include + +namespace Botan { + +/** +* Blue Midnight Wish 512 (Round 2 tweaked version) +*/ +class BOTAN_DLL BMW_512 : public MDx_HashFunction + { + public: + std::string name() const { return "BMW512"; } + size_t output_length() const { return 64; } + HashFunction* clone() const { return new BMW_512; } + + void clear(); + + BMW_512() : MDx_HashFunction(128, false, true), H(16), M(16), Q(32) + { clear(); } + private: + void compress_n(const byte input[], size_t blocks); + void copy_out(byte output[]); + + SecureVector H, M, Q; + }; + +} + +#endif -- cgit v1.2.3