| Constructor and Description |
|---|
Blake3Mac(Blake3Digest pDigest)
Create a blake3Mac with the specified digest.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] out,
int outOff)
Compute the final stage of the MAC writing the output to the out
parameter.
|
java.lang.String |
getAlgorithmName()
Return the name of the algorithm the MAC implements.
|
int |
getMacSize()
Return the block size for this MAC (in bytes).
|
void |
init(CipherParameters pParams)
Initialise the MAC.
|
void |
reset()
Reset the MAC.
|
void |
update(byte in)
add a single byte to the mac for processing.
|
void |
update(byte[] in,
int inOff,
int len) |
public Blake3Mac(Blake3Digest pDigest)
pDigest - the base digest.public java.lang.String getAlgorithmName()
MacgetAlgorithmName in interface Macpublic void init(CipherParameters pParams)
Macpublic int getMacSize()
MacgetMacSize in interface Macpublic void update(byte in)
Macpublic void update(byte[] in,
int inOff,
int len)
public int doFinal(byte[] out,
int outOff)
MacdoFinal leaves the MAC in the same state it was after the last init.