public class SHA3 extends Object
| Constructor and Description |
|---|
SHA3(int r,
int c,
int n)
Initialise Keccak sponge
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest()
Squeeze the Keccak sponge
|
byte[] |
digest(byte[] msg)
Absorb the last part of the message and squeeze the Keccak sponge
|
byte[] |
digest(byte[] msg,
int msglen)
Absorb the last part of the message and squeeze the Keccak sponge
|
void |
reset() |
void |
update(byte[] msg)
Absorb the more of the message message to the Keccak sponge
|
void |
update(byte[] msg,
int msglen)
Absorb the more of the message message to the Keccak sponge
|
public SHA3(int r,
int c,
int n)
r - The bitratec - The capacitypublic void reset()
public void update(byte[] msg)
msg - The partial messagepublic void update(byte[] msg,
int msglen)
msg - The partial messagemsglen - The length of the partial messagepublic byte[] digest()
public byte[] digest(byte[] msg)
msg - The rest of the messagepublic byte[] digest(byte[] msg,
int msglen)
msg - The rest of the messagemsglen - The length of the partial messageCopyright © 2020. All rights reserved.