activemq-cpp-3.9.0
decaf::internal::security::provider::crypto::MD4MessageDigestSpi Class Reference

MD4 MessageDigestSpi. More...

#include <src/main/decaf/internal/security/provider/crypto/MD4MessageDigestSpi.h>

Inheritance diagram for decaf::internal::security::provider::crypto::MD4MessageDigestSpi:

Public Member Functions

 MD4MessageDigestSpi ()
 
virtual ~MD4MessageDigestSpi ()
 
virtual bool isCloneable () const
 Queries the SPI implementation and returns true if the SPI can be cloned. More...
 
virtual MessageDigestSpiclone ()
 Returns a clone if the implementation supports being cloned. More...
 
virtual int engineGetDigestLength ()
 Returns the digest length in bytes. More...
 
virtual void engineUpdate (unsigned char input)
 Updates the digest using the specified byte. More...
 
virtual void engineUpdate (const unsigned char *input, int size, int offset, int length)
 Updates the digest using the specified array of bytes, starting at the specified offset. More...
 
virtual void engineReset ()
 Resets the digest for further use. More...
 
virtual void engineUpdate (const std::vector< unsigned char > &input)
 Update the digest using the specified Vector of Bytes. More...
 
virtual void engineUpdate (decaf::nio::ByteBuffer &input)
 Update the digest using the specified ByteBuffer. More...
 
virtual std::vector< unsigned
char > 
engineDigest ()
 Completes the hash computation by performing final operations such as padding. More...
 
virtual int engineDigest (unsigned char *buffer, int size, int offset, int length)
 Completes the hash computation by performing final operations such as padding. More...
 
- Public Member Functions inherited from decaf::security::MessageDigestSpi
 MessageDigestSpi ()
 
virtual ~MessageDigestSpi ()
 
- Public Member Functions inherited from decaf::security::SecuritySpi
 SecuritySpi ()
 
virtual ~SecuritySpi ()
 

Additional Inherited Members

Detailed Description

MD4 MessageDigestSpi.

Since
1.0

Constructor & Destructor Documentation

decaf::internal::security::provider::crypto::MD4MessageDigestSpi::MD4MessageDigestSpi ( )
virtual decaf::internal::security::provider::crypto::MD4MessageDigestSpi::~MD4MessageDigestSpi ( )
virtual

Member Function Documentation

virtual MessageDigestSpi* decaf::internal::security::provider::crypto::MD4MessageDigestSpi::clone ( )
virtual

Returns a clone if the implementation supports being cloned.

Returns
a new pointer that is a copy of this object.
Exceptions
CloneNotSupportedExceptionif this is called on an implementation that does not support cloning.

Reimplemented from decaf::security::MessageDigestSpi.

virtual std::vector<unsigned char> decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineDigest ( )
virtual

Completes the hash computation by performing final operations such as padding.

Once engineDigest has been called, the engine should be reset (see engineReset). Resetting is the responsibility of the engine implementor.

Returns
an STL vector of bytes containing the resulting hash value.

Implements decaf::security::MessageDigestSpi.

virtual int decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineDigest ( unsigned char *  buffer,
int  size,
int  offset,
int  length 
)
virtual

Completes the hash computation by performing final operations such as padding.

Once engineDigest has been called, the engine should be reset (see engineReset). Resetting is the responsibility of the engine implementor.

Parameters
bufferThe output buffer in which to store the digest
sizeThe size of the given input buffer
offsetThe offset to start from in the output buffer
lengthThe number of bytes within buffer allotted for the digest. Both this default implementation and the SUN provider do not return partial digests. The presence of this parameter is solely for consistency in our API's. If the value of this parameter is less than the actual digest length, the method will throw a DigestException. This parameter is ignored if its value is greater than or equal to the actual digest length.
Returns
the length of the digest stored in the output buffer.
Exceptions
DigestExceptionif an error occurs.
NullPointerExceptionif the buffer pointer is NULL.

Implements decaf::security::MessageDigestSpi.

virtual int decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineGetDigestLength ( )
virtual

Returns the digest length in bytes.

Returns
The digest length in bytes.

Implements decaf::security::MessageDigestSpi.

virtual void decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineReset ( )
virtual

Resets the digest for further use.

Implements decaf::security::MessageDigestSpi.

virtual void decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineUpdate ( unsigned char  input)
virtual

Updates the digest using the specified byte.

Parameters
inputThe byte to use for the update.

Implements decaf::security::MessageDigestSpi.

virtual void decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineUpdate ( const unsigned char *  input,
int  size,
int  offset,
int  length 
)
virtual

Updates the digest using the specified array of bytes, starting at the specified offset.

Parameters
inputThe array of bytes to use for the update.
sizeThe size of the given input buffer..
offsetThe offset to start from in the array of bytes.
lengthThe number of bytes to use, starting at offset.
Exceptions
NullPointerExceptionif the input array pointer is NULL.

Implements decaf::security::MessageDigestSpi.

virtual void decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineUpdate ( const std::vector< unsigned char > &  input)
virtual

Update the digest using the specified Vector of Bytes.

Parameters
inputThe vector of bytes that will be used to update the digest.

Implements decaf::security::MessageDigestSpi.

virtual void decaf::internal::security::provider::crypto::MD4MessageDigestSpi::engineUpdate ( decaf::nio::ByteBuffer input)
virtual

Update the digest using the specified ByteBuffer.

The digest is updated using the input.remaining() bytes starting at input.position(). Upon return, the buffer's position will be equal to its limit; its limit will not have changed.

Parameters
inputThe ByteBuffer instance that will be used to update the digest.

Implements decaf::security::MessageDigestSpi.

virtual bool decaf::internal::security::provider::crypto::MD4MessageDigestSpi::isCloneable ( ) const
inlinevirtual

Queries the SPI implementation and returns true if the SPI can be cloned.

Returns
true if the SPI is clonable.

Reimplemented from decaf::security::MessageDigestSpi.


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