It implements java.security.MessageDigestSpi, and can be used through Java Cryptography Architecture (JCA), as a pluggable MessageDigest implementation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | SHA3.
SHA3-224 implementation class. |
| public static class | SHA3.
SHA3-256 implementation class. |
| public static class | SHA3.
SHAs-384 implementation class. |
| public abstract static class | |
| public static class | SHA3.
SHA3-512 implementation class. |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final VarHandle | |
| private static final int | |
| private static final int | |
| private static final long[] | |
| protected int | |
| private long[] | |
| private final byte | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Object | clone()
Overrides sun. Returns a clone if the implementation is cloneable. |
| pack-priv void | |
| pack-priv void | implCompress(byte[] b, int ofs)
Implements abstract sun. Core compression function. |
| private void | |
| private void | |
| pack-priv void | implDigest(byte[] out, int ofs)
Implements abstract sun. Return the digest. |
| pack-priv void | |
| protected void | implDigestFixedLengthPreprocessed(byte[] input, int inLen, byte[] output, int outOffset, int outLen)
Overrides sun. Digest block-length bytes in a single operation. |
| pack-priv void | implReset()
Implements abstract sun. Resets the internal state to start a new hash. |
| pack-priv void | |
| pack-priv byte[] | |
| private void | |
| public static void | |
| private static int | setPaddingBytes(byte suffix, byte[] in, int len)
Utility function for padding the specified data based on the pad10*1 algorithm (section 5.1) and the 2-bit suffix "01" or 4-bit suffix "1111" required for SHA-3 hash functions (section 6.1) and extendable-output functions (section 6.1) respectively. |
| asLittleEndian | back to summary |
|---|---|
| pack-priv static final VarHandle asLittleEndian | |
| DM | back to summary |
|---|---|
| private static final int DM | |
| NR | back to summary |
|---|---|
| private static final int NR | |
| RC_CONSTANTS | back to summary |
|---|---|
| private static final long[] RC_CONSTANTS | |
| squeezeOffset | back to summary |
|---|---|
| protected int squeezeOffset | |
| state | back to summary |
|---|---|
| private long[] state | |
| suffix | back to summary |
|---|---|
| private final byte suffix | |
| WIDTH | back to summary |
|---|---|
| private static final int WIDTH | |
| SHA3 | back to summary |
|---|---|
| private SHA3(String name, int digestLength, byte suffix, int c) Creates a new SHA-3 object. | |
| blockSizeCheck | back to summary |
|---|---|
| private void blockSizeCheck() | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides sun. Doc from java. Returns a clone if the implementation is cloneable.
| |
| finishAbsorb | back to summary |
|---|---|
| pack-priv void finishAbsorb() | |
| implCompress | back to summary |
|---|---|
| pack-priv void implCompress(byte[] b, int ofs) Implements abstract sun. Core compression function. Processes blockSize bytes at a time and updates the state of this object. | |
| implCompress0 | back to summary |
|---|---|
private void implCompress0(byte[] b, int ofs)
| |
| implCompressCheck | back to summary |
|---|---|
| private void implCompressCheck(byte[] b, int ofs) | |
| implDigest | back to summary |
|---|---|
| pack-priv void implDigest(byte[] out, int ofs) Implements abstract sun. Return the digest. Subclasses do not need to reset() themselves, DigestBase calls implReset() when necessary. | |
| implDigest0 | back to summary |
|---|---|
| pack-priv void implDigest0(byte[] out, int ofs, int outLen) | |
| implDigestFixedLengthPreprocessed | back to summary |
|---|---|
| protected void implDigestFixedLengthPreprocessed(byte[] input, int inLen, byte[] output, int outOffset, int outLen) Overrides sun. Doc from sun. 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 void implReset() Implements abstract sun. Resets the internal state to start a new hash. | |
| implSqueeze | back to summary |
|---|---|
| pack-priv void implSqueeze(byte[] output, int offset, int numBytes) | |
| implSqueeze | back to summary |
|---|---|
| pack-priv byte[] implSqueeze(int numBytes) | |
| keccak | back to summary |
|---|---|
| private void keccak() The function Keccak as defined in section 5.2 with rate r = 1600 and capacity c. | |
| keccak | back to summary |
|---|---|
| public static void keccak(long[] stateArr) | |
| setPaddingBytes | back to summary |
|---|---|
| private static int setPaddingBytes(byte suffix, byte[] in, int len) Utility function for padding the specified data based on the pad10*1 algorithm (section 5.1) and the 2-bit suffix "01" or 4-bit suffix "1111" required for SHA-3 hash functions (section 6.1) and extendable-output functions (section 6.1) respectively. | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA224 | back to summary |
|---|---|
| public SHA224() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA256 | back to summary |
|---|---|
| public SHA256() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA384 | back to summary |
|---|---|
| public SHA384() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int | |
| public void | |
| public void | |
| public byte[] | |
| public void | |
| public void | |
| public void |
| SHA3XOF | back to summary |
|---|---|
| public SHA3XOF(String name, int digestLength, byte offset, int c) | |
| digest | back to summary |
|---|---|
| public byte[] digest() | |
| digest | back to summary |
|---|---|
| public int digest(byte[] out, int offs, int len) throws DigestException | |
| reset | back to summary |
|---|---|
| public void reset() | |
| squeeze | back to summary |
|---|---|
| public void squeeze(byte[] output, int offset, int numBytes) | |
| squeeze | back to summary |
|---|---|
| public byte[] squeeze(int numBytes) | |
| update | back to summary |
|---|---|
| public void update(byte in) | |
| update | back to summary |
|---|---|
| public void update(byte[] in, int off, int len) | |
| update | back to summary |
|---|---|
| public void update(byte[] in) | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA512 | back to summary |
|---|---|
| public SHA512() | |
| SHAKE128 | back to summary |
|---|---|
| public SHAKE128(int d) | |
| SHAKE128 | back to summary |
|---|---|
| public SHAKE128() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHAKE128Hash | back to summary |
|---|---|
| public SHAKE128Hash() | |
| SHAKE256 | back to summary |
|---|---|
| public SHAKE256(int d) | |
| SHAKE256 | back to summary |
|---|---|
| public SHAKE256() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHAKE256Hash | back to summary |
|---|---|
| public SHAKE256Hash() | |