public class SSL3Mac extends java.lang.Object implements Mac
The difference is that padding is concatenated versus XORed with the key
H(K + opad, H(K + ipad, text))
| Constructor and Description |
|---|
SSL3Mac(Digest digest)
Deprecated.
Base constructor for one of the standard digest algorithms that the byteLength of
the algorithm is know for.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] out,
int outOff)
Deprecated.
Compute the final stage of the MAC writing the output to the out
parameter.
|
java.lang.String |
getAlgorithmName()
Deprecated.
Return the name of the algorithm the MAC implements.
|
int |
getMacSize()
Deprecated.
Return the block size for this MAC (in bytes).
|
Digest |
getUnderlyingDigest()
Deprecated.
|
void |
init(CipherParameters params)
Deprecated.
Initialise the MAC.
|
void |
reset()
Deprecated.
Reset the mac generator.
|
void |
update(byte in)
Deprecated.
add a single byte to the mac for processing.
|
void |
update(byte[] in,
int inOff,
int len)
Deprecated.
|
public SSL3Mac(Digest digest)
digest - the digest.public java.lang.String getAlgorithmName()
MacgetAlgorithmName in interface Macpublic Digest getUnderlyingDigest()
public void init(CipherParameters params)
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.