GMac(GcmBlockCipher, Int32) Constructor

Creates a GMAC based on the operation of a 128 bit block cipher in GCM mode.

Definition

Namespace: Org.BouncyCastle.Crypto.Macs
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public GMac(
	GcmBlockCipher cipher,
	int macSizeBits
)

Parameters

cipher  GcmBlockCipher
the cipher to be used in GCM mode to generate the MAC.
macSizeBits  Int32
the mac size to generate, in bits. Must be a multiple of 8, between 32 and 128 (inclusive). Sizes less than 96 are not recommended, but are supported for specialized applications.

Remarks

This will produce an authentication code the length of the block size of the cipher.

See Also