public class AsconDigest
extends java.lang.Object
https://csrc.nist.gov/CSRC/media/Projects/lightweight-cryptography/documents/finalist-round/updated-spec-doc/ascon-spec-final.pdf
ASCON v1.2 Digest with reference to C Reference Impl from: https://github.com/ascon/ascon-c .
Modifier and Type | Class and Description |
---|---|
static class |
AsconDigest.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 |
---|
AsconDigest(AsconDigest.AsconParameters parameters)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
doFinal(byte[] output,
int outOff)
close the digest, producing the final digest value.
|
java.lang.String |
getAlgorithmName()
Deprecated.
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)
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() |
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)
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.
|
protected 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 AsconDigest(AsconDigest.AsconParameters parameters)
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()
Digest
public void reset()
Digest
protected void p(int nr)
public int getDigestSize()
Digest
getDigestSize
in interface Digest
public int getByteLength()
ExtendedDigest
getByteLength
in interface ExtendedDigest
public void update(byte in)
Digest
public void update(byte[] input, int inOff, int len)
Digest
public int doFinal(byte[] output, int outOff)
Digest
protected void padAndAbsorb()
protected void squeeze(byte[] output, int outOff, int len)
protected int hash(byte[] output, int outOff, int outLen)