| java.lang.Object com.sun.midp.crypto.MessageDigest com.sun.midp.crypto.MD5
MD5 | final class MD5 extends MessageDigest (Code) | | Implements the MD5 hashing algorithm as described in IETF RFC 1321
(see http://www.ietf.org/rfc/rfc1321.txt)
|
Constructor Summary | |
| MD5() Create an MD5 digest object. |
Method Summary | |
public Object | clone() Clones the MessageDigest object. | public int | digest(byte[] buf, int offset, int len) Completes the hash computation by performing final operations
such as padding. | public String | getAlgorithm() Gets the message digest algorithm. | public int | getDigestLength() Gets the length (in bytes) of the hash. | public void | reset() Resets the MessageDigest to the initial state for further use. | public void | update(byte[] inBuf, int inOff, int inLen) Accumulates a hash of the input data. |
MD5 | MD5()(Code) | | Create an MD5 digest object.
|
clone | public Object clone()(Code) | | Clones the MessageDigest object.
a clone of this object |
digest | public int digest(byte[] buf, int offset, int len) throws DigestException(Code) | | Completes the hash computation by performing final operations
such as padding. The digest is reset after this call is made.
Parameters: buf - output buffer for the computed digest Parameters: offset - offset into the output buffer to begin storing the digest Parameters: len - number of bytes within buf allotted for the digest the number of bytes placed into buf exception: DigestException - if an error occurs. |
getAlgorithm | public String getAlgorithm()(Code) | | Gets the message digest algorithm.
algorithm implemented by this MessageDigest object |
getDigestLength | public int getDigestLength()(Code) | | Gets the length (in bytes) of the hash.
byte-length of the hash produced by this object |
reset | public void reset()(Code) | | Resets the MessageDigest to the initial state for further use.
|
update | public void update(byte[] inBuf, int inOff, int inLen)(Code) | | Accumulates a hash of the input data. Continues an MD5
message-digest operation, processing another message
block, and updating the internal context.
Parameters: inBuf - input buffer of data to be hashed Parameters: inOff - offset within inBuf where input data begins Parameters: inLen - length (in bytes) of data to be hashed See Also: MD5.doFinal(byte[],int,int,byte[],int) |
|
|