clean method

  1. @override
GCM clean()
override

Cleans up resources used by the Galois/Counter Mode (GCM) instance.

This method clears sensitive data and resources, such as the subkey used for encryption and decryption.

Returns:

  • A reference to the cleaned GCM instance.

Note: Cleaning the GCM instance is important for security to prevent potential data leaks.

Implementation

@override
GCM clean() {
  zero(_subkey);
  return this;
}