public class AsconXof extends java.lang.Object implements Xof
https://csrc.nist.gov/CSRC/media/Projects/lightweight-cryptography/documents/finalist-round/updated-spec-doc/ascon-spec-final.pdf
ASCON v1.2 XOF with reference to C Reference Impl from: https://github.com/ascon/ascon-c .
| Modifier and Type | Class and Description |
|---|---|
static class |
AsconXof.AsconParameters
Deprecated.
|
| 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 |
|---|
AsconXof(AsconXof.AsconParameters parameters)
Deprecated.
|
| 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)
Deprecated.
Output the results of the final calculation for this digest to outLen number of bytes.
|
int |
doOutput(byte[] output,
int outOff,
int outLen)
Deprecated.
Start outputting the results of the final calculation for this digest.
|
java.lang.String |
getAlgorithmName()
Deprecated.
return the algorithm name
|
int |
getByteLength()
Deprecated.
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)
Deprecated.
|
protected long |
loadBytes(byte[] bytes,
int inOff,
int n)
Deprecated.
|
protected void |
p(int nr) |
protected long |
pad(int i)
Deprecated.
|
protected void |
padAndAbsorb()
Deprecated.
|
void |
reset()
Deprecated.
reset the digest back to it's initial state.
|
protected void |
setBytes(long w,
byte[] bytes,
int inOff)
Deprecated.
|
protected void |
setBytes(long w,
byte[] bytes,
int inOff,
int n)
Deprecated.
|
protected void |
squeeze(byte[] output,
int outOff,
int len) |
void |
update(byte in)
Deprecated.
update the message digest with a single byte.
|
void |
update(byte[] input,
int inOff,
int len)
Deprecated.
update the message digest with a block of bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoFinal, 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 AsconXof(AsconXof.AsconParameters parameters)
public void update(byte in)
Digestpublic void update(byte[] input,
int inOff,
int len)
Digestprotected void padAndAbsorb()
protected 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)
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 int getByteLength()
ExtendedDigestgetByteLength in interface ExtendedDigestpublic void reset()
Digestprotected void p(int nr)
public int getDigestSize()
DigestgetDigestSize in interface Digestpublic int doFinal(byte[] output,
int outOff)
Digestprotected void squeeze(byte[] output,
int outOff,
int len)
protected int hash(byte[] output,
int outOff,
int outLen)