GCM class

Galois/Counter Mode (GCM) implementation for authenticated encryption with associated data (AEAD).

This class implements the GCM mode, which provides authenticated encryption with associated data (AEAD) using a block cipher with a 16-byte block size.

Implemented types

Constructors

GCM(BlockCipher cipher)
Creates a GCM instance with the specified block cipher.

Properties

hashCode int
The hash code for this object.
no setterinherited
nonceLength int
Returns the length (in bytes) of the nonce required by the AEAD algorithm.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagLength int
Returns the length (in bytes) of the authentication tag produced by the AEAD algorithm.
final

Methods

clean() GCM
Cleans up resources used by the Galois/Counter Mode (GCM) instance.
override
decrypt(List<int> nonce, List<int> sealed, {List<int>? associatedData, List<int>? dst}) List<int>?
Decrypts sealed data using the Galois/Counter Mode (GCM) with associated data (AEAD).
override
encrypt(List<int> nonce, List<int> plaintext, {List<int>? associatedData, List<int>? dst}) List<int>
Encrypts data using the Galois/Counter Mode (GCM) with associated data (AEAD).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited