monotone

monotone Mtn Source Tree

Root/botan/sha160.h

1/*************************************************
2* SHA-160 Header File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_SHA_160_H__
7#define BOTAN_SHA_160_H__
8
9#include <botan/mdx_hash.h>
10
11namespace Botan {
12
13/*************************************************
14* SHA-160 *
15*************************************************/
16class SHA_160 : public MDx_HashFunction
17 {
18 public:
19 void clear() throw();
20 std::string name() const { return "SHA-160"; }
21 HashFunction* clone() const { return new SHA_160; }
22 SHA_160();
23 private:
24 void hash(const byte[]);
25 void copy_out(byte[]);
26
27 SecureBuffer<u32bit, 5> digest;
28 SecureVector<u32bit> W;
29 };
30
31}
32
33#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status