|
Bouncy Castle Cryptography Library 1.81 | |||||||||
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.RomulusDigest
Romulus v1.3, based on the current round 3 submission, https://romulusae.github.io/romulus/ Reference C implementation: https://github.com/romulusae/romulus Specification: https://csrc.nist.gov/CSRC/media/Projects/lightweight-cryptography/documents/finalist-round/updated-spec-doc/romulus-spec-final.pdf
Nested Class Summary | |
protected static interface |
BufferBaseDigest.ProcessingBuffer
|
protected static class |
BufferBaseDigest.ProcessingBufferType
|
static class |
RomulusDigest.Friend
|
Field Summary | |
protected java.lang.String |
algorithmName
|
protected int |
BlockSize
|
protected int |
DigestSize
|
protected byte[] |
m_buf
|
protected int |
m_bufPos
|
protected BufferBaseDigest.ProcessingBuffer |
processor
|
Constructor Summary | |
RomulusDigest()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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 RomulusDigest()
Method Detail |
protected void processBytes(byte[] input, int inOff)
protected void finish(byte[] output, int outOff)
public void reset()
Digest
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName
in interface Digest
public int getDigestSize()
Digest
getDigestSize
in interface Digest
public int getByteLength()
ExtendedDigest
getByteLength
in interface ExtendedDigest
public void update(byte in)
Digest
update
in interface Digest
in
- the input byte to be entered.public void update(byte[] input, int inOff, int len)
Digest
update
in interface Digest
input
- the byte array containing the data.inOff
- the offset into the byte array where the data starts.len
- the length of the data.public int doFinal(byte[] output, int outOff)
Digest
doFinal
in interface Digest
output
- 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.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |