Deprecated
use the SHA224 implementation provided in Java 8 and later
java.security.
This implementation has been borrowed from the Bouncy Castle implementation of SHA2 algorithms.
Since they are MIT Licensed, they are compatible with this project. Their mandatory copyright notice follows.
Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private long | |
| private static final int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| pack-priv static final int[] | |
| private int[] | |
| private byte[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SHA224Digest(SHA224Digest t)
References Deprecated
SHA224Digest is deprecated or references (maybe indirectly) at least one deprecated element.
Copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static long | |
| private int | |
| public Object | clone()
Overrides java. Returns a clone if the implementation is cloneable. |
| public int | |
| protected byte[] | engineDigest()
Implements abstract java. Completes the hash computation by performing final operations such as padding. |
| protected void | engineReset()
Implements abstract java. Resets the digest for further use. |
| protected void | engineUpdate(byte
the byte to use for the update. input)Implements abstract java. Updates the digest using the specified byte. |
| protected void | engineUpdate(byte[]
the array of bytes to use for the update. input, int the offset to start from in the array of bytes. offset, int the number of bytes to use, starting at
len)offset.Implements abstract java. Updates the digest using the specified array of bytes, starting at the specified offset. |
| public void | |
| public String | |
| public int | |
| public int | |
| public static void | |
| public static void | |
| private int | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| private int | |
| private int | |
| private int | |
| private int | |
| public void | update(byte
the byte with which to update the digest. in)Overrides java. Updates the digest using the specified byte. |
| public void | update(byte[]
the array of bytes. in, int the offset to start from in the array of bytes. inOff, int the number of bytes to use, starting at
len)offset.Overrides java. Updates the digest using the specified array of bytes, starting at the specified offset. |
| BYTE_LENGTH | back to summary |
|---|---|
| private static final int BYTE_LENGTH | |
| byteCount | back to summary |
|---|---|
| private long byteCount | |
| DIGEST_LENGTH | back to summary |
|---|---|
| private static final int DIGEST_LENGTH | |
| H1 | back to summary |
|---|---|
| private int H1 | |
| H2 | back to summary |
|---|---|
| private int H2 | |
| H3 | back to summary |
|---|---|
| private int H3 | |
| H4 | back to summary |
|---|---|
| private int H4 | |
| H5 | back to summary |
|---|---|
| private int H5 | |
| H6 | back to summary |
|---|---|
| private int H6 | |
| H7 | back to summary |
|---|---|
| private int H7 | |
| H8 | back to summary |
|---|---|
| private int H8 | |
| K | back to summary |
|---|---|
| pack-priv static final int[] K | |
| X | back to summary |
|---|---|
| private int[] X | |
| xBuf | back to summary |
|---|---|
| private byte[] xBuf | |
| xBufOff | back to summary |
|---|---|
| private int xBufOff | |
| xOff | back to summary |
|---|---|
| private int xOff | |
| SHA224Digest | back to summary |
|---|---|
| public SHA224Digest() Standard constructor | |
| SHA224Digest | back to summary |
|---|---|
| public SHA224Digest(SHA224Digest t)
References Deprecated
See corresponding docs for further information. Copy constructor. This will copy the state of the provided message digest. | |
| bigEndianToInt | back to summary |
|---|---|
| public static int bigEndianToInt(byte[] bs, int off) | |
| bigEndianToLong | back to summary |
|---|---|
| public static long bigEndianToLong(byte[] bs, int off) | |
| Ch | back to summary |
|---|---|
| private int Ch(int x, int y, int z) | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Returns a clone if the implementation is cloneable.
| |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) | |
| engineDigest | back to summary |
|---|---|
| protected byte[] engineDigest() Implements abstract java. Doc from java. Completes the hash computation by performing final
operations such as padding. Once
| |
| engineReset | back to summary |
|---|---|
| protected void engineReset() Implements abstract java. Doc from java. Resets the digest for further use.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte input) Implements abstract java. Doc from java. Updates the digest using the specified byte.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte[] input, int offset, int len) Implements abstract java. Doc from java. Updates the digest using the specified array of bytes, starting at the specified offset.
| |
| finish | back to summary |
|---|---|
| public void finish() | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() | |
| getByteLength | back to summary |
|---|---|
| public int getByteLength() | |
| getDigestSize | back to summary |
|---|---|
| public int getDigestSize() | |
| intToBigEndian | back to summary |
|---|---|
| public static void intToBigEndian(int n, byte[] bs, int off) | |
| longToBigEndian | back to summary |
|---|---|
| public static void longToBigEndian(long n, byte[] bs, int off) | |
| Maj | back to summary |
|---|---|
| private int Maj(int x, int y, int z) | |
| processBlock | back to summary |
|---|---|
| protected void processBlock() | |
| processLength | back to summary |
|---|---|
| protected void processLength(long bitLength) | |
| processWord | back to summary |
|---|---|
| protected void processWord(byte[] in, int inOff) | |
| reset | back to summary |
|---|---|
| public void reset() Overrides java. Doc from java. Resets the digest for further use.
| |
| Sum0 | back to summary |
|---|---|
| private int Sum0(int x) | |
| Sum1 | back to summary |
|---|---|
| private int Sum1(int x) | |
| Theta0 | back to summary |
|---|---|
| private int Theta0(int x) | |
| Theta1 | back to summary |
|---|---|
| private int Theta1(int x) | |
| update | back to summary |
|---|---|
| public void update(byte in) Overrides java. Doc from java. Updates the digest using the specified byte.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) Overrides java. Doc from java. Updates the digest using the specified array of bytes, starting at the specified offset.
| |