SHA1 MessageDigestSpi.
More...
#include <src/main/decaf/internal/security/provider/crypto/SHA1MessageDigestSpi.h>
SHA1 MessageDigestSpi.
- Since
- 1.0
decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::SHA1MessageDigestSpi |
( |
| ) |
|
virtual decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::~SHA1MessageDigestSpi |
( |
| ) |
|
|
virtual |
virtual MessageDigestSpi* decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::clone |
( |
| ) |
|
|
virtual |
Returns a clone if the implementation supports being cloned.
- Returns
- a new pointer that is a copy of this object.
- Exceptions
-
CloneNotSupportedException | if 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::SHA1MessageDigestSpi::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::SHA1MessageDigestSpi::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
-
buffer | The output buffer in which to store the digest |
size | The size of the given input buffer |
offset | The offset to start from in the output buffer |
length | The 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
-
DigestException | if an error occurs. |
NullPointerException | if the buffer pointer is NULL. |
Implements decaf::security::MessageDigestSpi.
virtual int decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::engineGetDigestLength |
( |
| ) |
|
|
virtual |
virtual void decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::engineReset |
( |
| ) |
|
|
virtual |
virtual void decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::engineUpdate |
( |
unsigned char |
input | ) |
|
|
virtual |
virtual void decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::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
-
input | The array of bytes to use for the update. |
size | The size of the given input buffer.. |
offset | The offset to start from in the array of bytes. |
length | The number of bytes to use, starting at offset. |
- Exceptions
-
NullPointerException | if the input array pointer is NULL. |
Implements decaf::security::MessageDigestSpi.
virtual void decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::engineUpdate |
( |
const std::vector< unsigned char > & |
input | ) |
|
|
virtual |
Update the digest using the specified Vector of Bytes.
- Parameters
-
input | The vector of bytes that will be used to update the digest. |
Implements decaf::security::MessageDigestSpi.
virtual void decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::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
-
input | The ByteBuffer instance that will be used to update the digest. |
Implements decaf::security::MessageDigestSpi.
virtual bool decaf::internal::security::provider::crypto::SHA1MessageDigestSpi::isCloneable |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following file: