public class Haraka256Digest extends HarakaBase
Haraka256-256 with reference to Python Reference Impl from: https://github.com/kste/haraka
DIGEST_SIZE| Constructor and Description |
|---|
Haraka256Digest() |
Haraka256Digest(CryptoServicePurpose purpose) |
Haraka256Digest(Haraka256Digest digest) |
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] out,
int outOff)
close the digest, producing the final digest value.
|
java.lang.String |
getAlgorithmName()
return the algorithm name
|
void |
reset()
reset the digest back to it's initial state.
|
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.
|
getDigestSizepublic Haraka256Digest()
public Haraka256Digest(CryptoServicePurpose purpose)
public Haraka256Digest(Haraka256Digest digest)
public java.lang.String getAlgorithmName()
Digestpublic void update(byte in)
Digestin - the input byte to be entered.public void update(byte[] in,
int inOff,
int len)
Digestin - the byte array containing the data.inOff - the offset into the byte array where the data starts.len - the length of the data.public int doFinal(byte[] out,
int outOff)
Digestout - the array the digest is to be copied into.outOff - the offset into the out array the digest is to start at.public void reset()
Digest