public class KeccakDigest extends Object implements org.bouncycastle.crypto.ExtendedDigest
Following the naming conventions used in the C source code to enable easy review of the implementation.
| Modifier and Type | Field and Description |
|---|---|
protected int |
bitsAvailableForSqueezing |
protected int |
bitsInQueue |
protected byte[] |
chunk |
protected byte[] |
dataQueue |
protected int |
fixedOutputLength |
protected byte[] |
oneByte |
protected int |
rate |
protected boolean |
squeezing |
protected byte[] |
state |
| Constructor and Description |
|---|
KeccakDigest() |
KeccakDigest(int bitLength) |
KeccakDigest(KeccakDigest source) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
absorb(byte[] data,
int off,
long databitlen) |
int |
doFinal(byte[] out,
int outOff) |
protected int |
doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits) |
String |
getAlgorithmName() |
int |
getByteLength()
Return the size of block that the compression function is applied to in bytes.
|
int |
getDigestSize() |
void |
reset() |
protected void |
squeeze(byte[] output,
int offset,
long outputLength) |
void |
update(byte in) |
void |
update(byte[] in,
int inOff,
int len) |
protected byte[] state
protected byte[] dataQueue
protected int rate
protected int bitsInQueue
protected int fixedOutputLength
protected boolean squeezing
protected int bitsAvailableForSqueezing
protected byte[] chunk
protected byte[] oneByte
public KeccakDigest()
public KeccakDigest(int bitLength)
public KeccakDigest(KeccakDigest source)
public String getAlgorithmName()
getAlgorithmName in interface org.bouncycastle.crypto.Digestpublic int getDigestSize()
getDigestSize in interface org.bouncycastle.crypto.Digestpublic void update(byte in)
update in interface org.bouncycastle.crypto.Digestpublic void update(byte[] in,
int inOff,
int len)
update in interface org.bouncycastle.crypto.Digestpublic int doFinal(byte[] out,
int outOff)
doFinal in interface org.bouncycastle.crypto.Digestprotected int doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits)
public void reset()
reset in interface org.bouncycastle.crypto.Digestpublic int getByteLength()
getByteLength in interface org.bouncycastle.crypto.ExtendedDigestprotected void absorb(byte[] data,
int off,
long databitlen)
protected void squeeze(byte[] output,
int offset,
long outputLength)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.