gnu.crypto.mac

Class OMAC

public class OMAC extends Object implements IMac

The One-Key CBC MAC, OMAC. This message authentication code is based on a block cipher in CBC mode.

References:

  1. Tetsu Iwata and Kaoru Kurosawa, OMAC: One-Key CBC MAC.
Constructor Summary
OMAC(IBlockCipher cipher)
Method Summary
Objectclone()
byte[]digest()
voiddigest(byte[] out, int off)
voidinit(Map attrib)
intmacSize()
Stringname()
voidreset()
booleanselfTest()
voidupdate(byte b)
voidupdate(byte[] buf, int off, int len)

Constructor Detail

OMAC

public OMAC(IBlockCipher cipher)

Method Detail

clone

public Object clone()

digest

public byte[] digest()

digest

public void digest(byte[] out, int off)

init

public void init(Map attrib)

macSize

public int macSize()

name

public String name()

reset

public void reset()

selfTest

public boolean selfTest()

update

public void update(byte b)

update

public void update(byte[] buf, int off, int len)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.