Additional details and the specification can be found in: NIST SP 800-232 (Initial Public Draft). For reference source code and implementation details, please see: Reference, highly optimized, masked C and ASM implementations of Ascon (NIST SP 800-232).
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doFinal(byte[]
output array to write the output bytes to. output, int offset to start writing the bytes at. outOff, int the number of output bytes requested. outLen)Implements org. Output the results of the final calculation for this digest to outLen number of bytes. |
| public int | doOutput(byte[]
output array to write the output bytes to. output, int offset to start writing the bytes at. outOff, int the number of output bytes requested. outLen)Implements org. Start outputting the results of the final calculation for this digest. |
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| public int | getByteLength()
Overrides org. Implements org. Return the size in bytes of the internal buffer the digest applies it's compression function to. |
| protected long | loadBytes(final byte[] bytes, int inOff)
Implements abstract org.
|
| protected long | loadBytes(final byte[] bytes, int inOff, int n)
Implements abstract org.
|
| protected long | |
| protected void | |
| public void | reset()
Overrides org. Implements org. reset the digest back to it's initial state. |
| protected void | setBytes(long w, byte[] bytes, int inOff)
Implements abstract org.
|
| protected void | setBytes(long w, byte[] bytes, int inOff, int n)
Implements abstract org.
|
| public void | update(byte
the input byte to be entered. in)Overrides org. Implements org. update the message digest with a single byte. |
| public void | update(byte[]
the byte array containing the data. input, int the offset into the byte array where the data starts. inOff, int the length of the data. len)Overrides org. Implements org. update the message digest with a block of bytes. |
| m_squeezing | back to summary |
|---|---|
| private boolean m_squeezing | |
| AsconXof128 | back to summary |
|---|---|
| public AsconXof128() | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] output, int outOff, int outLen) Implements org. Doc from org. Output the results of the final calculation for this digest to outLen number of bytes.
| |
| doOutput | back to summary |
|---|---|
| public int doOutput(byte[] output, int outOff, int outLen) Implements org. Doc from org. Start outputting the results of the final calculation for this digest. Unlike doFinal, this method will continue producing output until the Xof is explicitly reset, or signals otherwise.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name | |
| getByteLength | back to summary |
|---|---|
| public int getByteLength() Overrides org. Implements org. Doc from org. Return the size in bytes of the internal buffer the digest applies it's compression function to.
| |
| loadBytes | back to summary |
|---|---|
| protected long loadBytes(final byte[] bytes, int inOff) Implements abstract org. | |
| loadBytes | back to summary |
|---|---|
| protected long loadBytes(final byte[] bytes, int inOff, int n) Implements abstract org. | |
| pad | back to summary |
|---|---|
| protected long pad(int i) Implements abstract org. | |
| padAndAbsorb | back to summary |
|---|---|
| protected void padAndAbsorb() Overrides org. | |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. Doc from org. reset the digest back to it's initial state.
| |
| setBytes | back to summary |
|---|---|
| protected void setBytes(long w, byte[] bytes, int inOff) Implements abstract org. | |
| setBytes | back to summary |
|---|---|
| protected void setBytes(long w, byte[] bytes, int inOff, int n) Implements abstract org. | |
| update | back to summary |
|---|---|
| public void update(byte in) Overrides org. Implements org. Doc from org. update the message digest with a single byte.
| |
| update | back to summary |
|---|---|
| public void update(byte[] input, int inOff, int len) Overrides org. Implements org. Doc from org. update the message digest with a block of bytes.
| |