Following the naming conventions used in the C source code to enable easy review of the implementation.
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected byte[] | |
| protected int | |
| private static long[] | |
| protected final CryptoServicePurpose | |
| protected int | |
| protected boolean | |
| protected long[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected CryptoServiceProperties | |
| 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. close the digest, producing the final digest value. |
| protected int | |
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| public int | Returns: internal byte length of a block.Implements org. Return the size of block that the compression function is applied to in bytes. |
| public int | getDigestSize()
Implements org. return the size, in bytes, of the digest produced by this message digest. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | reset()
Implements org. reset the digest back to it's initial state. |
| protected void | |
| public void | update(byte
the input byte to be entered. in)Implements org. update the message digest with a single byte. |
| public void | update(byte[]
the byte array containing the data. in, int the offset into the byte array where the data starts. inOff, int the length of the data. len)Implements org. update the message digest with a block of bytes. |
| bitsInQueue | back to summary |
|---|---|
| protected int bitsInQueue | |
| dataQueue | back to summary |
|---|---|
| protected byte[] dataQueue | |
| fixedOutputLength | back to summary |
|---|---|
| protected int fixedOutputLength | |
| KeccakRoundConstants | back to summary |
|---|---|
| private static long[] KeccakRoundConstants | |
| purpose | back to summary |
|---|---|
| protected final CryptoServicePurpose purpose | |
| rate | back to summary |
|---|---|
| protected int rate | |
| squeezing | back to summary |
|---|---|
| protected boolean squeezing | |
| state | back to summary |
|---|---|
| protected long[] state | |
| KeccakDigest | back to summary |
|---|---|
| public KeccakDigest() | |
| KeccakDigest | back to summary |
|---|---|
| public KeccakDigest(CryptoServicePurpose purpose) | |
| KeccakDigest | back to summary |
|---|---|
| public KeccakDigest(int bitLength) | |
| KeccakDigest | back to summary |
|---|---|
| public KeccakDigest(int bitLength, CryptoServicePurpose purpose) | |
| KeccakDigest | back to summary |
|---|---|
| public KeccakDigest(KeccakDigest source) | |
| absorb | back to summary |
|---|---|
| protected void absorb(byte data) | |
| absorb | back to summary |
|---|---|
| protected void absorb(byte[] data, int off, int len) | |
| absorbBits | back to summary |
|---|---|
| protected void absorbBits(int data, int bits) | |
| cryptoServiceProperties | back to summary |
|---|---|
| protected CryptoServiceProperties cryptoServiceProperties() | |
| 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.
| |
| doFinal | back to summary |
|---|---|
| protected int doFinal(byte[] out, int outOff, byte partialByte, int partialBits) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |
| getByteLength | back to summary |
|---|---|
| public int getByteLength() Implements org. Return the size of block that the compression function is applied to in bytes.
| |
| 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.
| |
| init | back to summary |
|---|---|
| private void init(int bitLength) | |
| initSponge | back to summary |
|---|---|
| private void initSponge(int rate) | |
| KeccakAbsorb | back to summary |
|---|---|
| private void KeccakAbsorb(byte[] data, int off) | |
| KeccakExtract | back to summary |
|---|---|
| private void KeccakExtract() | |
| KeccakPermutation | back to summary |
|---|---|
| private void KeccakPermutation() | |
| padAndSwitchToSqueezingPhase | back to summary |
|---|---|
| private void padAndSwitchToSqueezingPhase() | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the digest back to it's initial state. | |
| squeeze | back to summary |
|---|---|
| protected void squeeze(byte[] output, int offset, long outputLength) | |
| update | back to summary |
|---|---|
| public void update(byte in) Implements org. Doc from org. update the message digest with a single byte.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) Implements org. Doc from org. update the message digest with a block of bytes.
| |