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, e
~OpenSSLMessageDigestImpl ()
Deletes this object
string getAlgorithm () const
Returns a string that identifies the algorithm, independent of implementation details
string digest ()
Completes the hash computation
void reset ()
Resets the digest for further use

Protected Methods

void doUpdate (const string& data, int offset, int len)
Updates the digest using the specified number of bytes, starting at the specified offset

Inherited from MessageDigestImpl:

Public Methods

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

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

string getAlgorithm() const
Returns a string that identifies the algorithm, independent of implementation details. The name should be a standard name such as "MD5" or "SHA1".
Returns:
name of the algorithm

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

void reset()
Resets the digest for further use

void doUpdate(const string& data, int offset, int len)
Updates the digest 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&)


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