public class CkiMessageDigest
extends oracle.security.crypto.core.MessageDigest
| Modifier and Type | Class and Description |
|---|---|
class |
CkiMessageDigest.CkiMDState |
| Constructor and Description |
|---|
CkiMessageDigest()
Empty constructor.
|
CkiMessageDigest(oracle.security.crypto.core.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() |
oracle.security.crypto.core.AlgorithmIdentifier |
getAlgID()
Returns the AlgorithmIdentifier representing this message digest object.
|
int |
getDigestLength()
Returns the length in bytes of the message digest.
|
oracle.security.crypto.core.MessageDigest.MDState |
getState()
Returns the state of this
MessageDigest object. |
void |
init()
Resets the digest to its initial state.
|
void |
initialize(oracle.security.crypto.core.AlgorithmIdentifier algID)
Initializes this CkiMessageDigest object.
|
void |
setAlgID(oracle.security.crypto.core.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(oracle.security.crypto.core.MessageDigest.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)
Adds the bytes of the secret to the data being digested.
|
public CkiMessageDigest()
setAlgID(oracle.security.crypto.core.AlgorithmIdentifier) method must be called before any other methods.public CkiMessageDigest(oracle.security.crypto.core.AlgorithmIdentifier algID)
throws oracle.security.crypto.core.AlgorithmIdentifierException
algID - The AlgorithmIdentifier representing a MessageDigest algorithm.oracle.security.crypto.core.AlgorithmIdentifierExceptionpublic void setSession(CkiSession session)
public int blockSize()
blockSize in class oracle.security.crypto.core.MessageDigestpublic void initialize(oracle.security.crypto.core.AlgorithmIdentifier algID)
throws oracle.security.crypto.core.AlgorithmIdentifierException
algID - The AlgorithmIdentifier representing the message digest algorithm to use.oracle.security.crypto.core.AlgorithmIdentifierExceptionpublic void setAlgID(oracle.security.crypto.core.AlgorithmIdentifier algID)
throws oracle.security.crypto.core.AlgorithmIdentifierException
setAlgID in class oracle.security.crypto.core.MessageDigestoracle.security.crypto.core.AlgorithmIdentifierExceptionpublic oracle.security.crypto.core.AlgorithmIdentifier getAlgID()
getAlgID in class oracle.security.crypto.core.MessageDigestpublic void init()
init in class oracle.security.crypto.core.MessageDigestpublic void update(byte b)
update in class oracle.security.crypto.core.MessageDigestpublic void update(byte[] input,
int off,
int len)
update in class oracle.security.crypto.core.MessageDigestinput - 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.computeCurrent in class oracle.security.crypto.core.MessageDigestpublic java.lang.String algName()
algName in class oracle.security.crypto.core.MessageDigestpublic int getDigestLength()
getDigestLength in class oracle.security.crypto.core.MessageDigestpublic java.lang.Object clone()
clone in class oracle.security.crypto.core.MessageDigestpublic oracle.security.crypto.core.MessageDigest.MDState getState()
MessageDigest object.public void setState(oracle.security.crypto.core.MessageDigest.MDState state)
MessageDigest object.state - The message digest state.protected void finalize()
finalize in class java.lang.Object