public class AsconCXof128 extends java.lang.Object implements Xof
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 |
|---|---|
protected int |
ASCON_HASH_RATE |
protected int |
ASCON_PB_ROUNDS |
protected int |
CRYPTO_BYTES |
protected byte[] |
m_buf |
protected int |
m_bufPos |
protected long |
x0 |
protected long |
x1 |
protected long |
x2 |
protected long |
x3 |
protected long |
x4 |
| Constructor and Description |
|---|
AsconCXof128() |
AsconCXof128(byte[] s) |
AsconCXof128(byte[] s,
int off,
int len) |
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] output,
int outOff)
close the digest, producing the final digest value.
|
int |
doFinal(byte[] output,
int outOff,
int outLen)
Output the results of the final calculation for this digest to outLen number of bytes.
|
int |
doOutput(byte[] output,
int outOff,
int outLen)
Start outputting the results of the final calculation for this digest.
|
java.lang.String |
getAlgorithmName()
return the algorithm name
|
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
int |
getDigestSize()
return the size, in bytes, of the digest produced by this message digest.
|
protected int |
hash(byte[] output,
int outOff,
int outLen) |
protected long |
loadBytes(byte[] bytes,
int inOff) |
protected long |
loadBytes(byte[] bytes,
int inOff,
int n) |
protected void |
p(int nr) |
protected long |
pad(int i) |
protected void |
padAndAbsorb() |
void |
reset()
reset the digest back to it's initial state.
|
protected void |
setBytes(long w,
byte[] bytes,
int inOff) |
protected void |
setBytes(long w,
byte[] bytes,
int inOff,
int n) |
protected void |
squeeze(byte[] output,
int outOff,
int len) |
void |
update(byte in)
update the message digest with a single byte.
|
void |
update(byte[] input,
int inOff,
int len)
update the message digest with a block of bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByteLengthdoFinal, getDigestSizeprotected long x0
protected long x1
protected long x2
protected long x3
protected long x4
protected final int CRYPTO_BYTES
protected final int ASCON_HASH_RATE
protected int ASCON_PB_ROUNDS
protected final byte[] m_buf
protected int m_bufPos
public AsconCXof128()
public AsconCXof128(byte[] s)
public AsconCXof128(byte[] s,
int off,
int len)
public void update(byte in)
Digestpublic void update(byte[] input,
int inOff,
int len)
Digestprotected long pad(int i)
protected long loadBytes(byte[] bytes,
int inOff)
protected long loadBytes(byte[] bytes,
int inOff,
int n)
protected void setBytes(long w,
byte[] bytes,
int inOff)
protected void setBytes(long w,
byte[] bytes,
int inOff,
int n)
protected void padAndAbsorb()
public java.lang.String getAlgorithmName()
DigestgetAlgorithmName in interface Digestpublic int doOutput(byte[] output,
int outOff,
int outLen)
Xofpublic int doFinal(byte[] output,
int outOff,
int outLen)
Xofpublic void reset()
Digestprotected void p(int nr)
public int getDigestSize()
DigestgetDigestSize in interface Digestpublic int getByteLength()
ExtendedDigestgetByteLength in interface ExtendedDigestpublic int doFinal(byte[] output,
int outOff)
Digestprotected void squeeze(byte[] output,
int outOff,
int len)
protected int hash(byte[] output,
int outOff,
int outLen)