gnu.crypto.jce.hash
class MessageDigestAdapter extends MessageDigestSpi implements Cloneable
This class defines the Service Provider Interface (SPI) for the java.security.MessageDigest class, which provides the functionality of a message digest algorithm, such as MD5 or SHA. Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed- length hash value.
All the abstract methods in the java.security.MessageDigestSpi class are implemented by this class and all its sub-classes.
All the implementations which subclass this object, and which are serviced by the GNU Crypto provider implement the java.lang.Cloneable interface.
Version: $Revision: 1.2 $
| Constructor Summary | |
|---|---|
| protected | MessageDigestAdapter(String mdName)
Trivial protected constructor.
|
| Method Summary | |
|---|---|
| Object | clone() |
| byte[] | engineDigest() |
| int | engineDigest(byte[] buf, int offset, int len) |
| int | engineGetDigestLength() |
| void | engineReset() |
| void | engineUpdate(byte input) |
| void | engineUpdate(byte[] input, int offset, int len) |
Parameters: mdName the canonical name of the hash algorithm.