org.bouncycastle.crypto.macs
Class HMac
java.lang.Object
org.bouncycastle.crypto.macs.HMac
- Mac
public class HMac
extends java.lang.Object
HMAC implementation based on RFC2104
H(K XOR opad, H(K XOR ipad, text))
HMac(Digest digest) - Base constructor for one of the standard digest algorithms that the
byteLength of the algorithm is know for.
|
HMac
public HMac(Digest digest)
Base constructor for one of the standard digest algorithms that the
byteLength of the algorithm is know for.
doFinal
public int doFinal(byte[] out,
int outOff)
- doFinal in interface Mac
getUnderlyingDigest
public Digest getUnderlyingDigest()
reset
public void reset()
Reset the mac generator.
- reset in interface Mac
update
public void update(byte in)
- update in interface Mac
update
public void update(byte[] in,
int inOff,
int len)
- update in interface Mac