|
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.SHA3Digest
implementation of SHA-3 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 | |
SHA3Digest()
|
|
SHA3Digest(byte[] encodedState)
|
|
SHA3Digest(CryptoServicePurpose purpose)
|
|
SHA3Digest(int bitLength)
|
|
SHA3Digest(int bitLength,
CryptoServicePurpose purpose)
|
|
SHA3Digest(SHA3Digest source)
|
|
| Method Summary | |
Memoable |
copy()
Produce a copy of this object with its configuration and in its current state. |
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)
|
java.lang.String |
getAlgorithmName()
return the algorithm name |
byte[] |
getEncodedState()
Return an encoded byte array for the digest's internal state |
void |
reset(Memoable other)
Restore a copied object state into this object. |
| Methods inherited from class org.bouncycastle.crypto.digests.KeccakDigest |
absorb, absorb, absorbBits, copyIn, cryptoServiceProperties, getByteLength, getDigestSize, getEncodedState, 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 |
getDigestSize, reset, update, update |
| Constructor Detail |
public SHA3Digest()
public SHA3Digest(CryptoServicePurpose purpose)
public SHA3Digest(int bitLength)
public SHA3Digest(int bitLength,
CryptoServicePurpose purpose)
public SHA3Digest(byte[] encodedState)
public SHA3Digest(SHA3Digest source)
| Method Detail |
public java.lang.String getAlgorithmName()
Digest
getAlgorithmName in interface DigestgetAlgorithmName in class KeccakDigest
public int doFinal(byte[] out,
int outOff)
Digest
doFinal in interface DigestdoFinal in class KeccakDigest
protected int doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits)
doFinal in class KeccakDigestpublic byte[] getEncodedState()
EncodableDigest
getEncodedState in interface EncodableDigestpublic 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 Memoablepublic void reset(Memoable other)
MemoableImplementations of this method should try to avoid or minimise memory allocation to perform the reset.
reset in interface Memoableother - an object originally copied from an object of the same type as this instance.
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||