public class CkiMessageDigest
extends MessageDigest
Modifier and Type | Class and Description |
---|---|
class |
CkiMessageDigest.CkiMDState |
Constructor and Description |
---|
CkiMessageDigest()
Empty constructor.
|
CkiMessageDigest(AlgorithmIdentifier algID)
Creates a new CkiMessageDigest object with the given AlgorithmIdentifier.
|
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 MessageDigest object.
|
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.
|
protected void |
finalize() |
AlgorithmIdentifier |
getAlgID()
Returns the AlgorithmIdentifier representing this message digest object.
|
int |
getDigestLength()
Returns the length in bytes of the message digest.
|
MDState |
getState()
Returns the state of this
MessageDigest object. |
void |
init()
Resets the digest to its initial state.
|
void |
initialize(AlgorithmIdentifier algID)
Initializes this CkiMessageDigest object.
|
void |
setAlgID(AlgorithmIdentifier algID)
Sets the algID of this message digest object.
|
void |
setSession(CkiSession session)
Sets the CkiSession object to use with this CkiMessageDigest object.
|
void |
setState(MDState state)
Sets the state of this
MessageDigest object. |
void |
update(byte b)
Adds the specifed byte to the data being digested.
|
void |
update(byte[] input,
int off,
int len)
Adds the specified sequence of bytes to the data being digested.
|
void |
update(CkiSymmetricKey key)
Deprecated.
No replacement.
|
public CkiMessageDigest()
setAlgID(AlgorithmIdentifier)
method must be called before any other methods.public CkiMessageDigest(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
algID
- The AlgorithmIdentifier representing a MessageDigest algorithm.AlgorithmIdentifierException
public void setSession(CkiSession session)
public int blockSize()
public void initialize(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
algID
- The AlgorithmIdentifier representing the message digest algorithm to use.AlgorithmIdentifierException
public void setAlgID(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
AlgorithmIdentifierException
public AlgorithmIdentifier getAlgID()
public void init()
public void update(byte b)
public void update(byte[] input, int off, int len)
input
- the input arrayoff
- start position in the input arraylen
- the number of input array elements to add to the data
being digestedpublic void update(CkiSymmetricKey key)
public void computeCurrent()
digestBits
.public java.lang.String algName()
public int getDigestLength()
public java.lang.Object clone()
public MDState getState()
MessageDigest
object.public void setState(MDState state)
MessageDigest
object.state
- The message digest state.protected void finalize()