| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| protected final int | |
| pack-priv byte[] | |
| private int | |
| pack-priv long | |
| private final int | |
| private byte[] | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides java. Returns a clone if the implementation is cloneable. |
| protected final byte[] | engineDigest()
Implements abstract java. Completes the hash computation by performing final operations such as padding. |
| protected final int | engineDigest(byte[] out, int ofs, int len)
Overrides java. Completes the hash computation by performing final operations such as padding. |
| protected final int | engineGetDigestLength()
Overrides java. Returns the digest length in bytes. |
| protected final void | engineReset()
Implements abstract java. Resets the digest for further use. |
| protected final void | engineUpdate(byte b)
Implements abstract java. Updates the digest using the specified byte. |
| protected final void | engineUpdate(byte[] b, int ofs, int len)
Implements abstract java. Updates the digest using the specified array of bytes, starting at the specified offset. |
| pack-priv abstract void | |
| private int | |
| private int | |
| private void | |
| pack-priv abstract void | |
| pack-priv void | implDigestFixedLengthPreprocessed(byte[]
byte array to be digested input, int the length of the input inLen, byte[] the output buffer output, int the offset into output buffer where digest should be written outOffset, int the length of the output buffer outLen)Digest block-length bytes in a single operation. |
| pack-priv abstract void |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| blockSize | back to summary |
|---|---|
| protected final int blockSize | |
| buffer | back to summary |
|---|---|
| pack-priv byte[] buffer | |
| bufOfs | back to summary |
|---|---|
| private int bufOfs | |
| bytesProcessed | back to summary |
|---|---|
| pack-priv long bytesProcessed | |
| digestLength | back to summary |
|---|---|
| private final int digestLength | |
| oneByte | back to summary |
|---|---|
| private byte[] oneByte | |
| padding | back to summary |
|---|---|
| pack-priv static final byte[] padding | |
| DigestBase | back to summary |
|---|---|
| pack-priv DigestBase(String algorithm, int digestLength, int blockSize) Main constructor. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Returns a clone if the implementation is cloneable.
| |
| engineDigest | back to summary |
|---|---|
| protected final byte[] engineDigest() Implements abstract java. Doc from java. Completes the hash computation by performing final
operations such as padding. Once | |
| engineDigest | back to summary |
|---|---|
| protected final int engineDigest(byte[] out, int ofs, int len) throws DigestException Overrides java. Doc from java. Completes the hash computation by performing final
operations such as padding. Once
| |
| engineGetDigestLength | back to summary |
|---|---|
| protected final int engineGetDigestLength() Overrides java. Doc from java. Returns the digest length in bytes. This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.) The default behavior is to return 0. This method may be overridden by a provider to return the digest length. | |
| engineReset | back to summary |
|---|---|
| protected final void engineReset() Implements abstract java. Doc from java. Resets the digest for further use. | |
| engineUpdate | back to summary |
|---|---|
| protected final void engineUpdate(byte b) Implements abstract java. Doc from java. Updates the digest using the specified byte. | |
| engineUpdate | back to summary |
|---|---|
| protected final void engineUpdate(byte[] b, int ofs, int len) Implements abstract java. Doc from java. Updates the digest using the specified array of bytes, starting at the specified offset. | |
| implCompress | back to summary |
|---|---|
| pack-priv abstract void implCompress(byte[] b, int ofs) Core compression function. Processes blockSize bytes at a time and updates the state of this object. | |
| implCompressMultiBlock | back to summary |
|---|---|
| private int implCompressMultiBlock(byte[] b, int ofs, int limit) | |
| implCompressMultiBlock0 | back to summary |
|---|---|
private int implCompressMultiBlock0(byte[] b, int ofs, int limit)
| |
| implCompressMultiBlockCheck | back to summary |
|---|---|
| private void implCompressMultiBlockCheck(byte[] b, int ofs, int limit) | |
| implDigest | back to summary |
|---|---|
| pack-priv abstract void implDigest(byte[] out, int ofs) Return the digest. Subclasses do not need to reset() themselves, DigestBase calls implReset() when necessary. | |
| implDigestFixedLengthPreprocessed | back to summary |
|---|---|
| pack-priv void implDigestFixedLengthPreprocessed(byte[] input, int inLen, byte[] output, int outOffset, int outLen) throws UnsupportedOperationException Digest block-length bytes in a single operation. Subclasses are expected to override this method. It is intended for fixed-length short input where input includes padding bytes.
| |
| implReset | back to summary |
|---|---|
| pack-priv abstract void implReset() Reset subclass specific state to their initial values. DigestBase calls this method when necessary. | |