namespace Akenti class OpenSSLMessageDigestImpl : public MessageDigestImpl

This class is instantiated from superclass MessageDigestImpl and uses hash algorithms such as MD5 or SHA1 to produce a fixed length output from an arbitrary-length input message

Inheritance:


Public Methods

OpenSSLMessageDigestImpl (const string& alg)
Constructs this object with the specified algorithm
~OpenSSLMessageDigestImpl ()
Deletes this object
void reset ()
Resets the engine for further use

Protected Methods

void doUpdate (const string& data, int offset, int len)
Updates the engine using the specified number of bytes, starting at the specified offset
string doDigest ()
Completes the hash computation

Inherited from MessageDigestImpl:

Public Methods

const string& getAlgorithm() const
void update(const string& data, int offset, int len)
void update(const string& data)
string digest()

Protected Fields

string alg

Documentation

This class is instantiated from superclass MessageDigestImpl and uses hash algorithms such as MD5 or SHA1 to produce a fixed length output from an arbitrary-length input message.It wraps a ssl EVP_MD_CTX.
OpenSSLMessageDigestImpl(const string& alg)
Constructs this object with the specified algorithm. e.g. MD5 or SHA1.
Throws:
SecurityException if no such algorithm
Parameters:
alg - const string & the name of the algorithm
See Also:
EVP_get_digestbyname

~OpenSSLMessageDigestImpl()
Deletes this object

void reset()
Resets the engine for further use

void doUpdate(const string& data, int offset, int len)
Updates the engine using the specified number of bytes, starting at the specified offset. The user calls the update method which is implemented by the superclass which in turn calls this protected method to do the openSSL specific actions.
Throws:
Error if input buffer too short
Parameters:
input - string of bytes.
offset - the offset to start from.
len - the number of bytes to use starting at offset.
See Also:
update(const string&)

string doDigest()
Completes the hash computation. You should reset the digest after this call is made.
Returns:
a string of bytes for the resulting hash value.


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
MessageDigestImpl

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de