DartChacha20Poly1305AeadMacAlgorithm class
A pure Dart implementation of AEAD_CHACHA20_POLY1305 message authentication.
Used by Chacha20.poly1305Aead and Xchacha20.poly1305Aead.
- Inheritance
-
- Object
- MacAlgorithm
- DartChacha20Poly1305AeadMacAlgorithm
Constructors
- DartChacha20Poly1305AeadMacAlgorithm({Chacha20? chacha20, Poly1305? poly1305, bool useStaticBuffer = false})
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- macLength → int
-
Number of bytes in the message authentication code.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsAad → bool
-
Whether the algorithm supports Associated Authenticated Data (AAD).
no setteroverride
Methods
-
calculateMac(
List< int> bytes, {required SecretKey secretKey, List<int> nonce = const <int>[], List<int> aad = const <int>[]}) → Future<Mac> -
Calculates message authentication code.
override
-
newMacSink(
{required SecretKey secretKey, List< int> nonce = const <int>[], List<int> aad = const <int>[]}) → Future<MacSink> -
Constructs a sink for calculating a Mac.
inherited
-
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.
override