clean method

  1. @override
ChaCha20Poly1305 clean()
override

Clears and releases the internal encryption key for ChaCha20-Poly1305 for security and memory management.

Implementation

@override
ChaCha20Poly1305 clean() {
  BinaryOps.zero(_key); // Securely zero the encryption key
  return this;
}