It implement JavaSecurity MessageDigest, and can be used by in the Java Security framework, as a pluggable implementation, as a filter for the digest stream classes.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides sun. Returns a clone if the implementation is cloneable. |
| pack-priv void | implCompress(byte[] buf, int ofs)
Implements abstract sun. Compute the hash for the current block. |
| private void | |
| private void | |
| pack-priv void | implDigest(byte[] out, int ofs)
Implements abstract sun. Computes the final hash and copies the 20 bytes to the output array. |
| pack-priv void | implReset()
Implements abstract sun. Resets the buffers and hash value to start a new hash. |
| private void |
| round1_kt | back to summary |
|---|---|
| private static final int round1_kt | |
| round2_kt | back to summary |
|---|---|
| private static final int round2_kt | |
| round3_kt | back to summary |
|---|---|
| private static final int round3_kt | |
| round4_kt | back to summary |
|---|---|
| private static final int round4_kt | |
| state | back to summary |
|---|---|
| private int[] state | |
| W | back to summary |
|---|---|
| private int[] W | |
| SHA | back to summary |
|---|---|
| public SHA() Creates a new SHA object. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides sun. Doc from java. Returns a clone if the implementation is cloneable.
| |
| implCompress | back to summary |
|---|---|
| pack-priv void implCompress(byte[] buf, int ofs) Implements abstract sun. Compute the hash for the current block. This is in the same vein as Peter Gutmann's algorithm listed in the back of Applied Cryptography, Compact implementation of "old" NIST Secure Hash Algorithm. | |
| implCompress0 | back to summary |
|---|---|
private void implCompress0(byte[] buf, int ofs)
| |
| implCompressCheck | back to summary |
|---|---|
| private void implCompressCheck(byte[] buf, int ofs) | |
| implDigest | back to summary |
|---|---|
| pack-priv void implDigest(byte[] out, int ofs) Implements abstract sun. Computes the final hash and copies the 20 bytes to the output array. | |
| implReset | back to summary |
|---|---|
| pack-priv void implReset() Implements abstract sun. Resets the buffers and hash value to start a new hash. | |
| resetHashes | back to summary |
|---|---|
| private void resetHashes() | |