| java.lang.Object java.security.MessageDigestSpi sun.security.provider.MD5
MD5 | final public class MD5 extends MessageDigestSpi implements Cloneable(Code) | | The MD5 class is used to compute an MD5 message digest over a given
buffer of bytes. It is an implementation of the RSA Data Security Inc
MD5 algorithim as described in internet RFC 1321.
version: 1.29 02/02/00 author: Chuck McManis author: Benjamin Renaud |
Constructor Summary | |
public | MD5() Standard constructor, creates a new MD5 instance, allocates its
buffers from the heap. |
Method Summary | |
public Object | clone() | protected byte[] | engineDigest() | protected int | engineDigest(byte[] buf, int offset, int len) | protected int | engineGetDigestLength() | protected void | engineReset() | protected synchronized void | engineUpdate(byte b) Update adds the passed byte to the digested data. | protected synchronized void | engineUpdate(byte input, int offset, int len) Update adds the selected part of an array of bytes to the digest. | public void | init() Initialize the MD5 state information and reset the bit count
to 0. | void | transform(byte buf, int offset) This is where the functions come together as the generic MD5
transformation operation, it is called by update() which is
synchronized (to protect transformBuffer). |
MD5 | public MD5()(Code) | | Standard constructor, creates a new MD5 instance, allocates its
buffers from the heap.
|
engineDigest | protected byte[] engineDigest()(Code) | | |
engineGetDigestLength | protected int engineGetDigestLength()(Code) | | Return the digest length in bytes
|
engineReset | protected void engineReset()(Code) | | |
engineUpdate | protected synchronized void engineUpdate(byte b)(Code) | | Update adds the passed byte to the digested data.
|
engineUpdate | protected synchronized void engineUpdate(byte input, int offset, int len)(Code) | | Update adds the selected part of an array of bytes to the digest.
This version is more efficient than the byte-at-a-time version;
it avoids data copies and reduces per-byte call overhead.
|
init | public void init()(Code) | | Initialize the MD5 state information and reset the bit count
to 0. Given this implementation you are constrained to counting
2^64 bits.
|
transform | void transform(byte buf, int offset)(Code) | | This is where the functions come together as the generic MD5
transformation operation, it is called by update() which is
synchronized (to protect transformBuffer). It consumes sixteen
bytes from the buffer, beginning at the specified offset.
|
|
|