Aead class abstract
A meta class that provides access to all libsodium aead APIs.
Currently, only the crypto_aead_xchacha20poly1305_ietf_* APIs have been implemented.
This class provides the dart interface for the crypto operations documented in https://libsodium.gitbook.io/doc/secret-key_cryptography/aead/chacha20-poly1305/xchacha20-poly1305_construction. Please refer to that documentation for more details about these APIs.
Properties
- aBytes → int
-
Provides crypto_aead_xchacha20poly1305_ietf_ABYTES.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyBytes → int
-
Provides crypto_aead_xchacha20poly1305_ietf_KEYBYTES.
no setter
- nonceBytes → int
-
Provides crypto_aead_xchacha20poly1305_ietf_NPUBBYTES.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrypt(
{required Uint8List cipherText, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) → Uint8List - Provides crypto_aead_xchacha20poly1305_ietf_decrypt.
-
decryptDetached(
{required Uint8List cipherText, required Uint8List mac, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) → Uint8List - Provides crypto_aead_xchacha20poly1305_ietf_decrypt_detached.
-
encrypt(
{required Uint8List message, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) → Uint8List - Provides crypto_aead_xchacha20poly1305_ietf_encrypt.
-
encryptDetached(
{required Uint8List message, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) → DetachedCipherResult - Provides crypto_aead_xchacha20poly1305_ietf_encrypt_detached.
-
keygen(
) → SecureKey - Provides crypto_aead_xchacha20poly1305_ietf_keygen.
-
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