GMac(GcmBlockCipher, Int32) Constructor
Creates a GMAC based on the operation of a 128 bit block cipher in GCM mode.
Namespace: Org.BouncyCastle.Crypto.MacsAssembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
Org.BouncyCastle.Crypto.Macs.GMac = function(cipher, 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.
This will produce an authentication code the length of the block size of the cipher.