Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Attributes
cat::ICryptHash Class Reference

#include <ICryptHash.hpp>

Inheritance diagram for cat::ICryptHash:

List of all members.

Public Member Functions

virtual bool BeginKDF ()=0
virtual bool BeginKey (int bits)=0
virtual bool BeginMAC ()=0
virtual bool BeginPRNG ()=0
virtual void Crunch (const void *message, int bytes)=0
CAT_INLINE void CrunchString (const char *s)
virtual void End ()=0
virtual void Generate (void *out, int bytes, int strengthening_rounds=0)=0
CAT_INLINE int GetDigestByteCount ()
virtual bool SetKey (ICryptHash *parent)=0
virtual ~ICryptHash ()

Protected Attributes

int digest_bytes

Detailed Description

Definition at line 41 of file ICryptHash.hpp.


Constructor & Destructor Documentation

virtual cat::ICryptHash::~ICryptHash ( ) [inline, virtual]

Definition at line 47 of file ICryptHash.hpp.

{}

Member Function Documentation

virtual bool cat::ICryptHash::BeginKDF ( ) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

virtual bool cat::ICryptHash::BeginKey ( int  bits) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

virtual bool cat::ICryptHash::BeginMAC ( ) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

virtual bool cat::ICryptHash::BeginPRNG ( ) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

virtual void cat::ICryptHash::Crunch ( const void *  message,
int  bytes 
) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

Referenced by CrunchString().

CAT_INLINE void cat::ICryptHash::CrunchString ( const char *  s) [inline]

Definition at line 52 of file ICryptHash.hpp.

References Crunch().

{ Crunch(s, (int)std::strlen(s) + 1); }
virtual void cat::ICryptHash::End ( ) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

virtual void cat::ICryptHash::Generate ( void *  out,
int  bytes,
int  strengthening_rounds = 0 
) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.

CAT_INLINE int cat::ICryptHash::GetDigestByteCount ( ) [inline]

Definition at line 50 of file ICryptHash.hpp.

References digest_bytes.

{ return digest_bytes; }
virtual bool cat::ICryptHash::SetKey ( ICryptHash parent) [pure virtual]

Implemented in cat::HMAC_MD5, and cat::Skein.


Member Data Documentation

Definition at line 44 of file ICryptHash.hpp.

Referenced by GetDigestByteCount().


The documentation for this class was generated from the following file:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net