|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.MessageDigestSpi
gnu.crypto.jce.hash.MessageDigestAdapter
class MessageDigestAdapter
The implementation of a generic MessageDigest
adapter
class to wrap gnu.crypto hash instances.
This class defines the Service Provider Interface (SPI) for the
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 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 Cloneable
interface.
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)
|
Methods inherited from class java.security.MessageDigestSpi |
---|
engineUpdate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MessageDigestAdapter(String mdName)
mdName
- the canonical name of the hash algorithm.Method Detail |
---|
public Object clone()
clone
in class MessageDigestSpi
public int engineGetDigestLength()
engineGetDigestLength
in class MessageDigestSpi
public void engineUpdate(byte input)
engineUpdate
in class MessageDigestSpi
public void engineUpdate(byte[] input, int offset, int len)
engineUpdate
in class MessageDigestSpi
public byte[] engineDigest()
engineDigest
in class MessageDigestSpi
public int engineDigest(byte[] buf, int offset, int len) throws DigestException
engineDigest
in class MessageDigestSpi
DigestException
public void engineReset()
engineReset
in class MessageDigestSpi
|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |