aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/bmw/bmw_512.h
blob: da4b42598f84e020707661998fb83b89245a36cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Blue Midnight Wish 512
* (C) 2009 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#ifndef BOTAN_BMW_512_H__
#define BOTAN_BMW_512_H__

#include <botan/mdx_hash.h>

namespace Botan {

class BMW_512 : public MDx_HashFunction
   {
   public:
      void clear() throw();
      std::string name() const { return "BMW512"; }
      HashFunction* clone() const { return new BMW_512; }
      BMW_512() : MDx_HashFunction(64, 128, false, true) { clear(); }
   private:
      void compress_n(const byte input[], u32bit blocks);
      void copy_out(byte output[]);

      SecureBuffer<u64bit, 16> H;
   };

}

#endif