Mac
public class I2PHMac extends java.lang.Object implements Mac
コンストラクタ | 説明 |
---|---|
I2PHMac(java.security.MessageDigest digest) |
推奨されていません。
Use javax.crypto.Mac
|
I2PHMac(java.security.MessageDigest digest,
int sz) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
int |
doFinal(byte[] out,
int outOff) |
Compute the final statge 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 cipher (in bytes).
|
java.security.MessageDigest |
getUnderlyingDigest() |
|
void |
init(byte[] key) |
Initialise the MAC.
|
void |
reset() |
Reset the mac generator.
|
void |
update(byte in) |
add a single byte to the mac for processing.
|
void |
update(byte[] in,
int inOff,
int len) |
@Deprecated public I2PHMac(java.security.MessageDigest digest)
public I2PHMac(java.security.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 java.lang.String getAlgorithmName()
Mac
getAlgorithmName
インタフェース内 Mac
public java.security.MessageDigest getUnderlyingDigest()
public void init(byte[] key)
Mac
public int getMacSize()
Mac
getMacSize
インタフェース内 Mac
public void update(byte in)
Mac
public void update(byte[] in, int inOff, int len)
public int doFinal(byte[] out, int outOff)
Mac
doFinal leaves the MAC in the same state it was after the last init.