public class Keccak256 extends DigestEngine
| 构造器和说明 |
|---|
Keccak256()
Create the engine.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Digest |
copy()
Clone the current state.
|
protected Digest |
copyState(com.arxanfintech.common.crypto.core.cryptohash.KeccakCore dst) |
protected void |
doInit()
This function is called at object creation time; the implementation should
use it to perform initialization tasks.
|
protected void |
doPadding(byte[] out,
int off)
Perform the final padding and store the result in the provided buffer.
|
protected void |
engineReset()
Reset the hash algorithm state.
|
int |
getBlockLength()
Return the "block length" for the hash function.
|
int |
getDigestLength()
Get the natural hash function output length (in bytes).
|
protected void |
processBlock(byte[] data)
Process one block of data.
|
java.lang.String |
toString()
Get the display name for this function (e.g.
|
copyState, digest, digest, digest, flush, getBlockBuffer, getBlockCount, getInternalBlockLength, reset, update, update, updatepublic Digest copy()
Digestpublic int getDigestLength()
Digestprotected void engineReset()
DigestEngineengineReset 在类中 DigestEngineprotected void processBlock(byte[] data)
DigestEngineprocessBlock 在类中 DigestEnginedata - the data blockprotected void doPadding(byte[] out,
int off)
DigestEngineDigestEngine.flush() and then DigestEngine.update(byte) with the
appropriate padding data in order to get the full input data.doPadding 在类中 DigestEngineout - the output bufferoff - the output offsetprotected void doInit()
DigestEngineDigest.getDigestLength()doInit 在类中 DigestEnginepublic int getBlockLength()
DigestReturn the "block length" for the hash function. This
value is naturally defined for iterated hash functions
(Merkle-Damgard). It is used in HMAC (that's what the
HMAC specification
names the "B" parameter).
If the function is "block-less" then this function may
return -n where n is an integer such that the
block length for HMAC ("B") will be inferred from the
key length, by selecting the smallest multiple of n
which is no smaller than the key length. For instance, for
the Fugue-xxx hash functions, this function returns -4: the
virtual block length B is the HMAC key length, rounded up to
the next multiple of 4.
-nprotected Digest copyState(com.arxanfintech.common.crypto.core.cryptohash.KeccakCore dst)
Copyright © 2018. All Rights Reserved.