oracle.security.crypto.core
Class MD5
java.lang.Object
oracle.security.crypto.core.MessageDigest
oracle.security.crypto.core.MD5
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class MD5
- extends MessageDigest
The MD5 Message Digest algorithm, as specified in RFC 1321.
- See Also:
MessageDigest
, SHA
Constructor Summary |
MD5()
|
Methods inherited from class oracle.security.crypto.core.MessageDigest |
computeDigest, computeDigest, getDigestBits, getInstance, isEqual, isEqual, setAlgID, toString, update, update, update, update, update, update, update, update, update, update, updateASCII |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MD5
public MD5()
getAlgID
public AlgorithmIdentifier getAlgID()
-
- Specified by:
getAlgID
in class MessageDigest
blockSize
public int blockSize()
-
- Specified by:
blockSize
in class MessageDigest
init
public void init()
- Resets the digest to its initial state.
-
- Specified by:
init
in class MessageDigest
update
public void update(byte b)
- Adds the specifed byte to the data being digested.
-
- Specified by:
update
in class MessageDigest
update
public void update(byte[] input,
int off,
int len)
- Adds the specified sequence of bytes to the data being digested.
-
- Overrides:
update
in class MessageDigest
-
- Parameters:
input
- the input array
off
- start position in the input array
len
- the number of input array elements to add to the data being digested
computeCurrent
public void computeCurrent()
- Completes the hash computation, performing any necessary operations such as padding. The final result of the hash is stored in
digestBits
.
-
- Specified by:
computeCurrent
in class MessageDigest
algName
public java.lang.String algName()
- Returns the algorithm name of this message digest.
-
- Specified by:
algName
in class MessageDigest
-
- Returns:
- "MD5"
getDigestLength
public int getDigestLength()
- Returns the length in bytes of the message digest.
-
- Specified by:
getDigestLength
in class MessageDigest
clone
public java.lang.Object clone()
- Returns a clone of this message digest object.
-
- Specified by:
clone
in class MessageDigest
getState
protected MessageDigest.MDState getState()
-
- Specified by:
getState
in class MessageDigest
setState
protected void setState(MessageDigest.MDState state)
-
- Specified by:
setState
in class MessageDigest
Copyright © 2005 , Oracle. All rights reserved.