org.bouncycastle.crypto.macs

Class OldHMac

public class OldHMac extends Object implements Mac

HMAC implementation based on RFC2104 H(K XOR opad, H(K XOR ipad, text))
Constructor Summary
OldHMac(Digest digest)
Method Summary
intdoFinal(byte[] out, int outOff)
StringgetAlgorithmName()
intgetMacSize()
DigestgetUnderlyingDigest()
voidinit(CipherParameters params)
voidreset()
Reset the mac generator.
voidupdate(byte in)
voidupdate(byte[] in, int inOff, int len)

Constructor Detail

OldHMac

public OldHMac(Digest digest)

Deprecated: uses incorrect pad for SHA-512 and SHA-384 use HMac.

Method Detail

doFinal

public int doFinal(byte[] out, int outOff)

getAlgorithmName

public String getAlgorithmName()

getMacSize

public int getMacSize()

getUnderlyingDigest

public Digest getUnderlyingDigest()

init

public void init(CipherParameters params)

reset

public void reset()
Reset the mac generator.

update

public void update(byte in)

update

public void update(byte[] in, int inOff, int len)