public class SHAKEDigest extends KeccakDigest implements Xof
Following the naming conventions used in the C source code to enable easy review of the implementation.
bitsAvailableForSqueezing, bitsInQueue, chunk, dataQueue, fixedOutputLength, oneByte, rate, squeezing, state| Constructor and Description |
|---|
SHAKEDigest() |
SHAKEDigest(int bitLength) |
SHAKEDigest(SHAKEDigest source) |
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] out,
int outOff)
close the digest, producing the final digest value.
|
protected int |
doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits) |
int |
doFinal(byte[] out,
int outOff,
int outLen)
Output the results of the final calculation for this digest to outLen number of bytes.
|
protected int |
doFinal(byte[] out,
int outOff,
int outLen,
byte partialByte,
int partialBits) |
int |
doOutput(byte[] out,
int outOff,
int outLen)
Start outputting the results of the final calculation for this digest.
|
java.lang.String |
getAlgorithmName()
return the algorithm name
|
absorb, getByteLength, getDigestSize, reset, squeeze, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByteLengthgetDigestSize, reset, update, updatepublic SHAKEDigest()
public SHAKEDigest(int bitLength)
public SHAKEDigest(SHAKEDigest source)
public java.lang.String getAlgorithmName()
DigestgetAlgorithmName in interface DigestgetAlgorithmName in class KeccakDigestpublic int doFinal(byte[] out,
int outOff)
DigestdoFinal in interface DigestdoFinal in class KeccakDigestout - the array the digest is to be copied into.outOff - the offset into the out array the digest is to start at.public int doFinal(byte[] out,
int outOff,
int outLen)
Xofpublic int doOutput(byte[] out,
int outOff,
int outLen)
Xofprotected int doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits)
doFinal in class KeccakDigestprotected int doFinal(byte[] out,
int outOff,
int outLen,
byte partialByte,
int partialBits)