AEAD class abstract
Contract for an Authenticated Encryption with Associated Data (AEAD) cipher — encryption that also authenticates the ciphertext and any associated (unencrypted) data.
- Implemented types
- Implementers
Constructors
- AEAD()
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.
no setteroverride
- 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.
no setteroverride
Methods
-
clean(
) → AEAD -
Clears any sensitive information or states held by the AEAD instance, ensuring that
no secrets are left in memory after use.
override
-
decrypt(
List< int> nonce, List<int> ciphertext, {List<int> ? associatedData, List<int> ? dst}) → BuBytes? -
Decrypts the provided ciphertext along with a nonce, and optional associated data.
Returns the plaintext and may write the result into the
dstif provided. Returnsnullif decryption fails due to authentication failure.override -
encrypt(
List< int> nonce, List<int> plaintext, {List<int> ? associatedData, List<int> ? dst}) → BuBytes -
Encrypts the provided plaintext along with a nonce, and optional associated data.
Returns the ciphertext and may write the result into the
dstif provided.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