|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.digests.BufferBaseDigest
org.bouncycastle.crypto.digests.AsconBaseDigest
org.bouncycastle.crypto.digests.AsconXofBase
org.bouncycastle.crypto.digests.AsconXof128
Ascon-XOF128 was introduced in NIST Special Publication (SP) 800-232
Additional details and the specification can be found in: NIST SP 800-232 Ascon-Based Lightweight Cryptography Standards for Constrained Devices. For reference source code and implementation details, please see: Reference, highly optimized, masked C and ASM implementations of Ascon (NIST SP 800-232).
| Nested Class Summary | |
static class |
AsconBaseDigest.Friend
|
protected static interface |
BufferBaseDigest.ProcessingBuffer
|
protected static class |
BufferBaseDigest.ProcessingBufferType
|
| Field Summary | |
protected java.lang.String |
algorithmName
|
protected int |
ASCON_PB_ROUNDS
|
protected int |
BlockSize
|
protected int |
DigestSize
|
protected byte[] |
m_buf
|
protected int |
m_bufPos
|
protected BufferBaseDigest.ProcessingBuffer |
processor
|
| Constructor Summary | |
AsconXof128()
|
|
| Method Summary | |
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. |
protected void |
ensureSufficientInputBuffer(byte[] input,
int inOff,
int len)
|
protected void |
ensureSufficientOutputBuffer(byte[] output,
int outOff)
|
protected void |
ensureSufficientOutputBuffer(byte[] output,
int outOff,
int len)
|
protected void |
finish(byte[] output,
int outOff)
|
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 long |
pad(int i)
|
protected void |
padAndAbsorb()
|
protected void |
processBytes(byte[] input,
int inOff)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.bouncycastle.crypto.ExtendedDigest |
getByteLength |
| Methods inherited from interface org.bouncycastle.crypto.Digest |
doFinal, getAlgorithmName, getDigestSize |
| Field Detail |
protected int ASCON_PB_ROUNDS
protected int DigestSize
protected int BlockSize
protected byte[] m_buf
protected int m_bufPos
protected java.lang.String algorithmName
protected BufferBaseDigest.ProcessingBuffer processor
| Constructor Detail |
public AsconXof128()
| Method Detail |
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 void reset()
Digest
public void update(byte in)
Digest
update in interface Digest
public void update(byte[] input,
int inOff,
int len)
Digest
update in interface Digest
public int doOutput(byte[] output,
int outOff,
int outLen)
Xof
doOutput in interface Xofoutput - output array to write the output bytes to.outOff - offset to start writing the bytes at.outLen - the number of output bytes requested.
public int doFinal(byte[] output,
int outOff,
int outLen)
Xof
doFinal in interface Xofoutput - output array to write the output bytes to.outOff - offset to start writing the bytes at.outLen - the number of output bytes requested.
protected void padAndAbsorb()
protected void processBytes(byte[] input,
int inOff)
protected void finish(byte[] output,
int outOff)
protected void squeeze(byte[] output,
int outOff,
int len)
protected int hash(byte[] output,
int outOff,
int outLen)
protected void ensureSufficientOutputBuffer(byte[] output,
int outOff,
int len)
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName in interface Digestpublic int getDigestSize()
Digest
getDigestSize in interface Digestpublic int getByteLength()
ExtendedDigest
getByteLength in interface ExtendedDigest
public int doFinal(byte[] output,
int outOff)
Digest
doFinal in interface Digestoutput - the array the digest is to be copied into.outOff - the offset into the out array the digest is to start at.
protected void ensureSufficientInputBuffer(byte[] input,
int inOff,
int len)
protected void ensureSufficientOutputBuffer(byte[] output,
int outOff)
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||