org.bouncycastle.crypto.macs

Class GOST28147Mac

Implemented Interfaces:
Mac

public class GOST28147Mac
extends java.lang.Object
implements Mac

implementation of GOST 28147-89 MAC

Constructor Summary

GOST28147Mac()

Method Summary

int
doFinal(byte[] out, int outOff)
String
getAlgorithmName()
int
getMacSize()
void
init(CipherParameters params)
void
reset()
void
update(byte in)
void
update(byte[] in, int inOff, int len)

Constructor Details

GOST28147Mac

public GOST28147Mac()

Method Details

doFinal

public int doFinal(byte[] out,
                   int outOff)
            throws DataLengthException,
                   IllegalStateException
Specified by:
doFinal in interface Mac

getAlgorithmName

public String getAlgorithmName()
Specified by:
getAlgorithmName in interface Mac

getMacSize

public int getMacSize()
Specified by:
getMacSize in interface Mac

init

public void init(CipherParameters params)
            throws IllegalArgumentException
Specified by:
init in interface Mac

reset

public void reset()
Specified by:
reset in interface Mac

update

public void update(byte in)
            throws IllegalStateException
Specified by:
update in interface Mac

update

public void update(byte[] in,
                   int inOff,
                   int len)
            throws DataLengthException,
                   IllegalStateException
Specified by:
update in interface Mac