sha2.h File Reference

#include <string>
#include <stdexcept>

Go to the source code of this file.

Classes

class  sha2
struct  sha2::SHA_CTX

Typedefs

typedef unsigned char sha_byte
typedef unsigned int sha_word32
typedef unsigned
long long 
sha_word64

Variables

const sha_word32 SHA1_DIGESTC_LENGTH = 20
const sha_word32 SHA1_DIGESTC_STRING_LENGTH = (SHA1_DIGESTC_LENGTH * 2 + 1)
const sha_word32 SHA224_DIGESTC_LENGTH = 28
const sha_word32 SHA224_DIGESTC_STRING_LENGTH = (SHA224_DIGESTC_LENGTH * 2 + 1)
const sha_word32 SHA256_DIGESTC_LENGTH = 32
const sha_word32 SHA256_DIGESTC_STRING_LENGTH = (SHA256_DIGESTC_LENGTH * 2 + 1)
const sha_word32 SHA384_DIGESTC_LENGTH = 48
const sha_word32 SHA384_DIGESTC_STRING_LENGTH = (SHA384_DIGESTC_LENGTH * 2 + 1)
const sha_word32 SHA512_DIGESTC_LENGTH = 64
const sha_word32 SHA512_DIGESTC_STRING_LENGTH = (SHA512_DIGESTC_LENGTH * 2 + 1)


Typedef Documentation

typedef unsigned char sha_byte

Definition at line 51 of file sha2.h.

typedef unsigned int sha_word32

Definition at line 52 of file sha2.h.

typedef unsigned long long sha_word64

Definition at line 57 of file sha2.h.


Variable Documentation

const sha_word32 SHA1_DIGESTC_LENGTH = 20

Definition at line 61 of file sha2.h.

Referenced by sha2::End(), and sha2::RawHash().

const sha_word32 SHA1_DIGESTC_STRING_LENGTH = (SHA1_DIGESTC_LENGTH * 2 + 1)

Definition at line 62 of file sha2.h.

const sha_word32 SHA224_DIGESTC_LENGTH = 28

Definition at line 63 of file sha2.h.

Referenced by sha2::End(), and sha2::RawHash().

const sha_word32 SHA224_DIGESTC_STRING_LENGTH = (SHA224_DIGESTC_LENGTH * 2 + 1)

Definition at line 64 of file sha2.h.

const sha_word32 SHA256_DIGESTC_LENGTH = 32

Definition at line 65 of file sha2.h.

Referenced by sha2::End(), and sha2::RawHash().

const sha_word32 SHA256_DIGESTC_STRING_LENGTH = (SHA256_DIGESTC_LENGTH * 2 + 1)

Definition at line 66 of file sha2.h.

const sha_word32 SHA384_DIGESTC_LENGTH = 48

Definition at line 67 of file sha2.h.

Referenced by sha2::End(), and sha2::RawHash().

const sha_word32 SHA384_DIGESTC_STRING_LENGTH = (SHA384_DIGESTC_LENGTH * 2 + 1)

Definition at line 68 of file sha2.h.

const sha_word32 SHA512_DIGESTC_LENGTH = 64

Definition at line 69 of file sha2.h.

Referenced by sha2::End(), sha2::RawHash(), and sha2::sha2().

const sha_word32 SHA512_DIGESTC_STRING_LENGTH = (SHA512_DIGESTC_LENGTH * 2 + 1)

Definition at line 70 of file sha2.h.

Referenced by sha2::sha2().


Generated on Mon Feb 16 15:14:57 2009 for Scorched3D by  doxygen 1.5.3