Top Description Classes
module bcprov

Package org.bouncycastle.crypto.macs


Classes for creating MACs and HMACs.

Class Summary

Modifier and TypeClass and Description
public class
Blake3Mac

Bouncy implementation of Blake3Mac.

public class
public class
CBCBlockCipherMac

standard CBC Block Cipher MAC - if no padding is specified the default of pad of zeroes is used.

public class
public class
CMac

CMAC - as specified at www.nuee.nagoya-u.ac.jp/labs/tiwata/omac/omac.html

CMAC is analogous to OMAC1 - see also en.wikipedia.org/wiki/CMAC

CMAC is a NIST recomendation - see csrc.nist.gov/CryptoToolkit/modes/800-38_Series_Publications/SP800-38B.pdf

CMAC/OMAC1 is a blockcipher-based message authentication code designed and analyzed by Tetsu Iwata and Kaoru Kurosawa.

public class
CMacWithIV

A non-NIST variant which allows passing of an IV to the underlying CBC cipher.

public class
DSTU7564Mac

Implementation of DSTU7564 MAC mode

public class
DSTU7624Mac

Implementation of DSTU7624 MAC mode

public class
GMac

The GMAC specialisation of Galois/Counter mode (GCM) detailed in NIST Special Publication 800-38D.

public class
GOST28147Mac

implementation of GOST 28147-89 MAC

public class
HMac

HMAC implementation based on RFC2104 H(K XOR opad, H(K XOR ipad, text))

public class
ISO9797Alg3Mac

DES based CBC Block Cipher MAC according to ISO9797, algorithm 3 (ANSI X9.19 Retail MAC) This could as well be derived from CBCBlockCipherMac, but then the property mac in the base class must be changed to protected

public class
KGMac

The GMAC specialisation of Galois/Counter mode (GCM) detailed in NIST Special Publication 800-38D as adapted for the Kalyna version of GCM.

public class
KMAC

KMAC - MAC with optional XOF mode.

pack-priv class
MacCFBBlockCipher

implements a Cipher-FeedBack (CFB) mode on top of a simple cipher.

public class
OldHMac

HMAC implementation based on RFC2104 H(K XOR opad, H(K XOR ipad, text))

public class
Poly1305

Poly1305 message authentication code, designed by D.

public class
SipHash

Implementation of SipHash as specified in "SipHash: a fast short-input PRF", by Jean-Philippe Aumasson and Daniel J.

public class
SipHash128

Implementation of SipHash with 128 bit output.

public class
SkeinMac

Implementation of the Skein parameterised MAC function in 256, 512 and 1024 bit block sizes, based on the Threefish tweakable block cipher.

public class
public class
Zuc128Mac

Zuc128 Mac implementation.

public class
Zuc256Mac

Zuc256 Mac implementation.