class I2PHMac extends Object
Constructor and Description |
---|
I2PHMac(MessageDigest digest)
Deprecated.
Use javax.crypto.Mac
|
I2PHMac(MessageDigest digest,
int sz) |
Modifier and Type | Method and Description |
---|---|
int |
doFinal(byte[] out,
int outOff) |
String |
getAlgorithmName() |
int |
getMacSize() |
MessageDigest |
getUnderlyingDigest() |
void |
init(byte[] key) |
void |
reset()
Reset the mac generator.
|
void |
update(byte in) |
void |
update(byte[] in,
int inOff,
int len) |
@Deprecated public I2PHMac(MessageDigest digest)
public I2PHMac(MessageDigest digest, int sz)
sz
- override the digest's size, nonstandard if different.
SEE NOTES in HMACGenerator about why this isn't compatible with standard HmacMD5public String getAlgorithmName()
public MessageDigest getUnderlyingDigest()
public void init(byte[] key)
public int getMacSize()
public void update(byte in)
public void update(byte[] in, int inOff, int len)
public int doFinal(byte[] out, int outOff)
public void reset()