An authenticated symmetric cipher.
Implementations must guarantee that decrypt throws CipherAuthError for any ciphertext that was not produced by encrypt with the same key. This property doubles as both integrity and authentication: a frame from a node that does not hold the shared key will never decrypt successfully.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrypt(
List< int> ciphertext) → Future<List< int> > -
Decrypts
ciphertext. -
encrypt(
List< int> plaintext) → Future<List< int> > -
Encrypts
plaintextand returns authenticated ciphertext. -
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