public class _KeccakDigest extends Object implements Digest
Following the naming conventions used in the C source code to enable easy review of the implementation.
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
bitsInQueue |
protected byte[] |
dataQueue |
protected int |
fixedOutputLength |
protected int |
rate |
protected boolean |
squeezing |
protected long[] |
state |
| 构造器和说明 |
|---|
_KeccakDigest(_KeccakDigest source) |
_KeccakDigest() |
_KeccakDigest(int bitLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
absorb(byte[] data,
int off,
int len) |
protected void |
absorbBits(int data,
int bits) |
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) |
String |
getAlgorithmName()
return the algorithm name
|
int |
getBufferSize()
Return the size of block that the compression function is applied to in bytes.
|
int |
getDigestSize()
return the size, in bytes, of the digest produced by this message digest.
|
void |
reset()
reset the digest back to it's initial state.
|
protected void |
squeeze(byte[] output,
int offset,
long outputLength) |
void |
update(byte in)
update the message digest with a single byte.
|
void |
update(byte[] in,
int inOff,
int len)
update the message digest with a block of bytes.
|
protected long[] state
protected byte[] dataQueue
protected int rate
protected int bitsInQueue
protected int fixedOutputLength
protected boolean squeezing
public _KeccakDigest()
public _KeccakDigest(int bitLength)
public _KeccakDigest(_KeccakDigest source)
public String getAlgorithmName()
DigestgetAlgorithmName 在接口中 Digestpublic int getDigestSize()
DigestgetDigestSize 在接口中 Digestpublic void update(byte in)
Digestpublic void update(byte[] in,
int inOff,
int len)
Digestpublic int doFinal(byte[] out,
int outOff)
Digestprotected int doFinal(byte[] out,
int outOff,
byte partialByte,
int partialBits)
public void reset()
Digestpublic int getBufferSize()
getBufferSize 在接口中 Digestprotected void absorb(byte[] data,
int off,
int len)
protected void absorbBits(int data,
int bits)
protected void squeeze(byte[] output,
int offset,
long outputLength)
Copyright © 2022. All rights reserved.