~ubuntu-branches/ubuntu/intrepid/libcrypto++/intrepid

« back to all changes in this revision

Viewing changes to whrlpool.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Machard
  • Date: 2004-08-27 12:35:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040827123505-7evgxiu7k8memiyk
Tags: 5.2.1a-1
* Urgency set to high because lastest upload was unclean
* Rename libcrypto++-5.2.1.orig.tar.gz in  libcrypto++-5.2.1a.orig.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CRYPTOPP_WHIRLPOOL_H
 
2
#define CRYPTOPP_WHIRLPOOL_H
 
3
 
 
4
#include "cryptopp_config.h"
 
5
 
 
6
#ifdef WORD64_AVAILABLE
 
7
 
 
8
#include "iterhash.h"
 
9
 
 
10
NAMESPACE_BEGIN(CryptoPP)
 
11
 
 
12
//! <a href="http://www.weidai.com/scan-mirror/md.html#Whirlpool">Whirlpool</a>
 
13
/*! 512 Bit Hash */
 
14
class Whirlpool : public IteratedHashWithStaticTransform<word64, BigEndian, 64, 64, Whirlpool>
 
15
{
 
16
public:
 
17
        static void InitState(HashWordType *state);
 
18
        static void Transform(word64 *digest, const word64 *data);
 
19
        void TruncatedFinal(byte *hash, unsigned int size);
 
20
        static const char * StaticAlgorithmName() {return "Whirlpool";}
 
21
};
 
22
 
 
23
NAMESPACE_END
 
24
 
 
25
#endif
 
26
 
 
27
#endif