|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.digests.KeccakDigest
org.bouncycastle.crypto.digests.SHAKEDigest
org.bouncycastle.crypto.digests.CSHAKEDigest
Customizable SHAKE function.
| Field Summary |
| Fields inherited from class org.bouncycastle.crypto.digests.KeccakDigest |
bitsInQueue, dataQueue, fixedOutputLength, purpose, rate, squeezing, state |
| Constructor Summary | |
CSHAKEDigest(byte[] encodedState)
|
|
CSHAKEDigest(CSHAKEDigest source)
|
|
CSHAKEDigest(int bitLength,
byte[] N,
byte[] S)
Base constructor. |
|
CSHAKEDigest(int bitLength,
CryptoServicePurpose purpose,
byte[] N,
byte[] S)
Base constructor. |
|
| Method Summary | |
Memoable |
copy()
Produce a copy of this object with its configuration and in its current state. |
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 |
byte[] |
getEncodedState()
Return an encoded byte array for the digest's internal state |
void |
reset()
reset the digest back to it's initial state. |
void |
reset(Memoable other)
Restore a copied object state into this object. |
| Methods inherited from class org.bouncycastle.crypto.digests.SHAKEDigest |
cryptoServiceProperties, doFinal, doFinal, doFinal, doFinal, getDigestSize |
| Methods inherited from class org.bouncycastle.crypto.digests.KeccakDigest |
absorb, absorb, absorbBits, copyIn, getByteLength, getEncodedState, squeeze, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.bouncycastle.crypto.ExtendedDigest |
getByteLength |
| Methods inherited from interface org.bouncycastle.crypto.Digest |
update, update |
| Constructor Detail |
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 CSHAKEDigest(byte[] encodedState)
| Method Detail |
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName in interface DigestgetAlgorithmName in class SHAKEDigest
public int doOutput(byte[] out,
int outOff,
int outLen)
Xof
doOutput in interface XofdoOutput in class SHAKEDigestpublic void reset()
Digest
reset in interface Digestreset in class KeccakDigestpublic byte[] getEncodedState()
EncodableDigest
getEncodedState in interface EncodableDigestgetEncodedState in class SHAKEDigestpublic Memoable copy()
MemoableThe returned object may be used simply to store the state, or may be used as a similar object starting from the copied state.
copy in interface Memoablecopy in class SHAKEDigestpublic void reset(Memoable other)
MemoableImplementations of this method should try to avoid or minimise memory allocation to perform the reset.
reset in interface Memoablereset in class SHAKEDigest
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||