public final class MD2 extends MessageDigest
MessageDigest.MDState
algID
Constructor and Description |
---|
MD2()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
algName()
Returns the algorithm name of this message digest.
|
int |
blockSize()
Returns the blocksize of this instance.
|
java.lang.Object |
clone()
Returns a clone of this message digest object.
|
void |
computeCurrent()
Completes the hash computation, performing any necessary operations such as padding.
|
AlgorithmIdentifier |
getAlgID()
Returns the algorithm identifier of this object.
|
byte[] |
getDigestBits()
Returns a copy of the current digest bytes.
|
int |
getDigestLength()
Returns the length in bytes of the message digest.
|
protected MessageDigest.MDState |
getState()
Gets the state of this MessageDigest instance.
|
void |
init()
Resets this message digest object to its initial state.
|
boolean |
isValid()
Returns
true if this MD2 is in a valid state and its digest bits are usable; otherwise returns false . |
protected void |
setState(MessageDigest.MDState state)
Sets the state of this MessageDigest instance.
|
void |
update(byte b)
Adds the specifed byte to the data being digested.
|
computeDigest, computeDigest, getInstance, isEqual, setAlgID, toString, update, update, update, update, update, update, update, update, update, update, update, update, updateASCII
public void init()
MessageDigest
init
in class MessageDigest
public AlgorithmIdentifier getAlgID()
MessageDigest
getAlgID
in class MessageDigest
public int blockSize()
MessageDigest
blockSize
in class MessageDigest
public int getDigestLength()
getDigestLength
in class MessageDigest
public byte[] getDigestBits()
getDigestBits
in class MessageDigest
public boolean isValid()
true
if this MD2
is in a valid state and its digest bits are usable; otherwise returns false
.isValid
in class MessageDigest
public void update(byte b)
MessageDigest
update
in class MessageDigest
public void computeCurrent()
digestBits
.computeCurrent
in class MessageDigest
public java.lang.String algName()
algName
in class MessageDigest
public java.lang.Object clone()
clone
in class MessageDigest
protected MessageDigest.MDState getState()
MessageDigest
getState
in class MessageDigest
protected void setState(MessageDigest.MDState state)
MessageDigest
setState
in class MessageDigest