block word digest
SHA-1 512 32 160
SHA-256 512 32 256
SHA-384 1024 64 384
SHA-512 1024 64 512
| Modifier and Type | Field and Description |
|---|---|
| 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 int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | SHA256Digest(byte[]
the encoded state from the originating digest. encodedState)State constructor - create a digest initialised with the state of a previous one. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public Memoable | copy()
Implements com. |
| private void | |
| public int | doFinal(byte[]
the array the digest is to be copied into. out, int the offset into the out array the digest is to start at. outOff)Implements com. |
| public String | getAlgorithmName()
Implements com. |
| public int | getDigestSize()
Implements com. |
| public byte[] | getEncodedState()
Implements com. |
| private int | |
| protected void | processBlock()
Implements abstract com. |
| protected void | processLength(long bitLength)
Implements abstract com. |
| protected void | processWord(byte[] in, int inOff)
Implements abstract com. |
| public void | reset()
Overrides com. Implements com. |
| public void | reset(Memoable
an object originally other)copied from an object of the same type as this instance.Implements com. |
| private int | |
| private int | |
| private int | |
| private int |
| 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 | |
| xOff | back to summary |
|---|---|
| private int xOff | |
| SHA256Digest | back to summary |
|---|---|
| public SHA256Digest() Standard constructor | |
| SHA256Digest | back to summary |
|---|---|
| public SHA256Digest(SHA256Digest t) Copy constructor. This will copy the state of the provided message digest. | |
| SHA256Digest | back to summary |
|---|---|
| public SHA256Digest(byte[] encodedState) State constructor - create a digest initialised with the state of a previous one.
| |
| Ch | back to summary |
|---|---|
| private int Ch(int x, int y, int z) | |
| copy | back to summary |
|---|---|
| public Memoable copy() Implements com. Doc from com. Produce a copy of this object with its configuration and in its current state. The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state. | |
| copyIn | back to summary |
|---|---|
| private void copyIn(SHA256Digest t) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements com. Doc from com. close the digest, producing the final digest value. The doFinal call leaves the digest reset.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements com. Doc from com. return the algorithm name
| |
| getDigestSize | back to summary |
|---|---|
| public int getDigestSize() Implements com. Doc from com. return the size, in bytes, of the digest produced by this message digest.
| |
| getEncodedState | back to summary |
|---|---|
| public byte[] getEncodedState() Implements com. Doc from com. Return an encoded byte array for the digest's internal state
| |
| Maj | back to summary |
|---|---|
| private int Maj(int x, int y, int z) | |
| processBlock | back to summary |
|---|---|
| protected void processBlock() Implements abstract com. | |
| processLength | back to summary |
|---|---|
| protected void processLength(long bitLength) Implements abstract com. | |
| processWord | back to summary |
|---|---|
| protected void processWord(byte[] in, int inOff) Implements abstract com. | |
| reset | back to summary |
|---|---|
| public void reset() Overrides com. Implements com. reset the chaining variables | |
| reset | back to summary |
|---|---|
| public void reset(Memoable other) Implements com. Doc from com. Restore a copied object state into this object. Implementations of this method should try to avoid or minimise memory allocation to perform the reset. | |
| 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) | |