public class XoodyakDigest
extends java.lang.Object
Xoodyak with reference to C Reference Impl from: https://github.com/XKCP/XKCP
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
BufferBaseDigest.ProcessingBuffer |
protected static class |
BufferBaseDigest.ProcessingBufferType |
static class |
XoodyakDigest.Friend |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
algorithmName |
protected int |
BlockSize |
protected int |
DigestSize |
protected byte[] |
m_buf |
protected int |
m_bufPos |
protected BufferBaseDigest.ProcessingBuffer |
processor |
| Constructor and Description |
|---|
XoodyakDigest() |
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] output,
int outOff)
close the digest, producing the final digest value.
|
protected void |
ensureSufficientInputBuffer(byte[] input,
int inOff,
int len) |
protected void |
ensureSufficientOutputBuffer(byte[] output,
int outOff) |
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 void |
processBytes(byte[] input,
int inOff) |
void |
reset()
reset the digest back to it's initial state.
|
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 int DigestSize
protected int BlockSize
protected byte[] m_buf
protected int m_bufPos
protected java.lang.String algorithmName
protected BufferBaseDigest.ProcessingBuffer processor
protected void processBytes(byte[] input,
int inOff)
protected void finish(byte[] output,
int outOff)
public void reset()
Digestpublic java.lang.String getAlgorithmName()
DigestgetAlgorithmName in interface Digestpublic int getDigestSize()
DigestgetDigestSize in interface Digestpublic int getByteLength()
ExtendedDigestgetByteLength in interface ExtendedDigestpublic void update(byte in)
Digestpublic void update(byte[] input,
int inOff,
int len)
Digestpublic int doFinal(byte[] output,
int outOff)
Digestprotected void ensureSufficientInputBuffer(byte[] input,
int inOff,
int len)
protected void ensureSufficientOutputBuffer(byte[] output,
int outOff)