GMac Class

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

Definition

Namespace: Org.BouncyCastle.Crypto.Macs
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class GMac : IMac
Inheritance
Object    GMac
Implements
IMac

Remarks

GMac is an invocation of the GCM mode where no data is encrypted (i.e. all input data to the Mac is processed as additional authenticated data with the underlying GCM block cipher).

Constructors

GMac(GcmBlockCipher) Creates a GMAC based on the operation of a block cipher in GCM mode.
GMac(GcmBlockCipher, Int32) Creates a GMAC based on the operation of a 128 bit block cipher in GCM mode.

Properties

Methods

BlockUpdate(ReadOnlySpanByte) 
BlockUpdate(Byte, Int32, Int32) 
DoFinal(SpanByte) 
DoFinal(Byte, Int32) 
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetMacSize 
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init Initialises the GMAC - requires a ParametersWithIV providing a KeyParameter and a nonce.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Reset 
ToStringReturns a string that represents the current object.
(Inherited from Object)
Update 

See Also