public class CSHAKEDigest extends SHAKEDigest
bitsInQueue, dataQueue, fixedOutputLength, purpose, rate, squeezing, state
Constructor and Description |
---|
CSHAKEDigest(CSHAKEDigest source) |
CSHAKEDigest(int bitLength,
byte[] N,
byte[] S)
Base constructor.
|
CSHAKEDigest(int bitLength,
CryptoServicePurpose purpose,
byte[] N,
byte[] S)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
reset()
reset the digest back to it's initial state.
|
cryptoServiceProperties, doFinal, doFinal, doFinal, doFinal, getDigestSize
absorb, absorb, absorbBits, getByteLength, squeeze, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByteLength
public CSHAKEDigest(int bitLength, byte[] N, byte[] S)
bitLength
- security strength (in bits) of the underlying SHAKE function, 128 or 256.N
- the function name string, note this is reserved for use by NIST. Avoid using it if not required.S
- the customization string - available for local use.public CSHAKEDigest(int bitLength, CryptoServicePurpose purpose, byte[] N, byte[] S)
bitLength
- security strength (in bits) of the underlying SHAKE function, 128 or 256.purpose
- the purpose for constructing the CSHAKEDigestN
- the function name string, note this is reserved for use by NIST. Avoid using it if not required.S
- the customization string - available for local use.public CSHAKEDigest(CSHAKEDigest source)
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName
in interface Digest
getAlgorithmName
in class SHAKEDigest
public int doOutput(byte[] out, int outOff, int outLen)
Xof
doOutput
in interface Xof
doOutput
in class SHAKEDigest
out
- output array to write the output bytes to.outOff
- offset to start writing the bytes at.outLen
- the number of output bytes requested.public void reset()
Digest
reset
in interface Digest
reset
in class KeccakDigest