PrecalculatedBox class abstract
A meta class that provides access to all libsodium box APIs working with precalculated key.
This class is a view on a Box that internally uses the *_afternm methods instead of normal encryption methods, as those are faster when en/decrypting multiple messages with the same partner. To create such a box, use Box.precalculate with the corresponding keys.
This class provides the dart interface for the crypto operations documented in https://libsodium.gitbook.io/doc/public-key_cryptography/authenticated_encryption#precalculation-interface. Please refer to that documentation for more details about these APIs.
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
-
detached(
{required Uint8List message, required Uint8List nonce}) → DetachedCipherResult - Provides crypto_box_detached_afternm.
-
dispose(
) → void - Disposes the internally used shared key.
-
easy(
{required Uint8List message, required Uint8List nonce}) → Uint8List - Provides crypto_box_easy_afternm.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openDetached(
{required Uint8List cipherText, required Uint8List mac, required Uint8List nonce}) → Uint8List - Provides crypto_box_open_detached_afternm.
-
openEasy(
{required Uint8List cipherText, required Uint8List nonce}) → Uint8List - Provides crypto_box_open_easy_afternm.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited