The specification says "process a bit stream", but this is written to process bytes in blocks of 4, meaning this will process 32-bit word groups. But so do also most other digest specifications, including the SHA-256 which was a origin for this specification.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private int[] | |
| private static final int[] | |
| private int[] | |
| private int[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Memoable | copy()
Implements org. |
| private void | |
| protected CryptoServiceProperties | cryptoServiceProperties()
Implements abstract org. |
| 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 org. |
| private int | |
| private int | |
| public String | getAlgorithmName()
Implements org. |
| public int | getDigestSize()
Implements org. |
| private int | |
| private int | |
| private int | |
| private int | |
| protected void | |
| protected void | processLength(long bitLength)
Implements abstract org. |
| protected void | processWord(byte[] in, int inOff)
Implements abstract org. |
| public void | reset(Memoable
an object originally other)copied from an object of the same type as this instance.Implements org. |
| public void | reset()
Overrides org. Implements org. |
| BLOCK_SIZE | back to summary |
|---|---|
| private static final int BLOCK_SIZE | |
| DIGEST_LENGTH | back to summary |
|---|---|
| private static final int DIGEST_LENGTH | |
| inwords | back to summary |
|---|---|
| private int[] inwords | |
| T | back to summary |
|---|---|
| private static final int[] T | |
| V | back to summary |
|---|---|
| private int[] V | |
| W | back to summary |
|---|---|
| private int[] W | |
| xOff | back to summary |
|---|---|
| private int xOff | |
| SM3Digest | back to summary |
|---|---|
| public SM3Digest() Standard constructor | |
| SM3Digest | back to summary |
|---|---|
| public SM3Digest(CryptoServicePurpose purpose) Standard constructor, with Purpose | |
| SM3Digest | back to summary |
|---|---|
| public SM3Digest(SM3Digest t) Copy constructor. This will copy the state of the provided message digest. | |
| copy | back to summary |
|---|---|
| public Memoable copy() Implements org. Doc from org. 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(SM3Digest t) | |
| cryptoServiceProperties | back to summary |
|---|---|
| protected CryptoServiceProperties cryptoServiceProperties() Implements abstract org. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements org. Doc from org. close the digest, producing the final digest value. The doFinal call leaves the digest reset.
| |
| FF0 | back to summary |
|---|---|
| private int FF0(final int x, final int y, final int z) | |
| FF1 | back to summary |
|---|---|
| private int FF1(final int x, final int y, final int z) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |
| getDigestSize | back to summary |
|---|---|
| public int getDigestSize() Implements org. Doc from org. return the size, in bytes, of the digest produced by this message digest.
| |
| GG0 | back to summary |
|---|---|
| private int GG0(final int x, final int y, final int z) | |
| GG1 | back to summary |
|---|---|
| private int GG1(final int x, final int y, final int z) | |
| P0 | back to summary |
|---|---|
| private int P0(final int x) | |
| P1 | back to summary |
|---|---|
| private int P1(final int x) | |
| processBlock | back to summary |
|---|---|
| protected void processBlock() Implements abstract org. | |
| processLength | back to summary |
|---|---|
| protected void processLength(long bitLength) Implements abstract org. | |
| processWord | back to summary |
|---|---|
| protected void processWord(byte[] in, int inOff) Implements abstract org. | |
| reset | back to summary |
|---|---|
| public void reset(Memoable other) Implements org. Doc from org. Restore a copied object state into this object. Implementations of this method should try to avoid or minimise memory allocation to perform the reset. | |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. reset the chaining variables | |