java.lang.Object | |
↳ | org.bouncycastle.crypto.macs.HMac |
HMAC implementation based on RFC2104 H(K XOR opad, H(K XOR ipad, text))
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Base constructor for one of the standard digest algorithms that the
byteLength of the algorithm is know for.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compute the final stage of the MAC writing the output to the out
parameter.
| |||||||||||
Return the name of the algorithm the MAC implements.
| |||||||||||
Return the block size for this MAC (in bytes).
| |||||||||||
Initialise the MAC.
| |||||||||||
Reset the mac generator.
| |||||||||||
add a single byte to the mac for processing.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.Mac
|
Base constructor for one of the standard digest algorithms that the byteLength of the algorithm is know for.
digest | the digest. |
---|
Compute the final stage of the MAC writing the output to the out parameter.
doFinal leaves the MAC in the same state it was after the last init.
out | the array the MAC is to be output to. |
---|---|
outOff | the offset into the out buffer the output is to start at. |
Return the name of the algorithm the MAC implements.
Return the block size for this MAC (in bytes).
Initialise the MAC.
params | the key and other data required by the MAC. |
---|
Reset the mac generator.
add a single byte to the mac for processing.
in | the byte to be processed. |
---|