Logo Search packages:      
Sourcecode: poco version File versions  Download package

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes

Poco::SHA1Engine Class Reference

#include <SHA1Engine.h>

Inheritance diagram for Poco::SHA1Engine:
Inheritance graph
Collaboration diagram for Poco::SHA1Engine:
Collaboration graph

List of all members.


struct  Context

Public Types

enum  { BLOCK_SIZE = 64, DIGEST_SIZE = 20 }
typedef std::vector< unsigned
char > 

Public Member Functions

const DigestEngine::Digest & digest ()
unsigned digestLength () const
 Updates the digest with the given data.
void reset ()
 Returns the length of the digest in bytes.
void update (char data)
void update (const std::string &data)
void update (const void *data, unsigned length)

Static Public Member Functions

static std::string digestToHex (const Digest &bytes)

Protected Member Functions

void updateImpl (const void *data, unsigned length)
 Converts a message digest into a string of hexadecimal numbers.

Private Types

typedef UInt8 BYTE

Private Member Functions

SHA1Engineoperator= (const SHA1Engine &)
 SHA1Engine (const SHA1Engine &)
void transform ()

Static Private Member Functions

static void byteReverse (UInt32 *buffer, int byteCount)

Private Attributes

Context _context
DigestEngine::Digest _digest

Detailed Description

This class implementes the SHA-1 message digest algorithm. (FIPS 180-1, see http://www.itl.nist.gov/fipspubs/fip180-1.htm)

Definition at line 56 of file SHA1Engine.h.

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

Generated by  Doxygen 1.6.0   Back to index