|
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.KeccakDigest
org.bouncycastle.crypto.digests.SHAKEDigest
implementation of SHAKE based on following KeccakNISTInterface.c from https://keccak.noekeon.org/
Following the naming conventions used in the C source code to enable easy review of the implementation.
| Field Summary |
| Fields inherited from class org.bouncycastle.crypto.digests.KeccakDigest |
bitsInQueue, dataQueue, fixedOutputLength, purpose, rate, squeezing, state |
| Constructor Summary | |
SHAKEDigest()
|
|
SHAKEDigest(CryptoServicePurpose purpose)
|
|
SHAKEDigest(int bitStrength)
Base constructor. |
|
SHAKEDigest(int bitStrength,
CryptoServicePurpose purpose)
Base constructor. |
|
SHAKEDigest(SHAKEDigest source)
Clone constructor |
|
| Method Summary | |
protected CryptoServiceProperties |
cryptoServiceProperties()
|
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 |
int |
getDigestSize()
return the size, in bytes, of the digest produced by this message digest. |
| Methods inherited from class org.bouncycastle.crypto.digests.KeccakDigest |
absorb, absorb, absorbBits, getByteLength, reset, 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 |
reset, update, update |
| Constructor Detail |
public SHAKEDigest()
public SHAKEDigest(CryptoServicePurpose purpose)
public SHAKEDigest(int bitStrength)
bitStrength - the security strength in bits of the XOF.
public SHAKEDigest(int bitStrength,
CryptoServicePurpose purpose)
bitStrength - the security strength in bits of the XOF.purpose - the purpose of the digest will be used for.public SHAKEDigest(SHAKEDigest source)
source - the other digest to be copied.| Method Detail |
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName in interface DigestgetAlgorithmName in class KeccakDigestpublic int getDigestSize()
Digest
getDigestSize in interface DigestgetDigestSize in class KeccakDigest
public int doFinal(byte[] out,
int outOff)
Digest
doFinal in interface DigestdoFinal in class KeccakDigest
public int doFinal(byte[] out,
int outOff,
int outLen)
Xof
doFinal in interface Xofout - output array to write the output bytes to.outOff - offset to start writing the bytes at.outLen - the number of output bytes requested.
public int doOutput(byte[] out,
int outOff,
int outLen)
Xof
doOutput in interface Xofout - output array to write the output bytes to.outOff - offset to start writing the bytes at.outLen - the number of output bytes requested.
protected int doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits)
doFinal in class KeccakDigest
protected int doFinal(byte[] out,
int outOff,
int outLen,
byte partialByte,
int partialBits)
protected CryptoServiceProperties cryptoServiceProperties()
cryptoServiceProperties in class KeccakDigest
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||