Aead class abstract

A meta class that provides access to all libsodium aead APIs.

Currently, crypto_aead_chacha20poly1305_* and 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/original_chacha20-poly1305_construction or 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_chacha20poly1305_ABYTES.
no setter
hashCode int
The hash code for this object.
no setterinherited
keyBytes int
Provides crypto_aead_chacha20poly1305_KEYBYTES.
no setter
nonceBytes int
Provides crypto_aead_chacha20poly1305_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_chacha20poly1305_decrypt.
decryptDetached({required Uint8List cipherText, required Uint8List mac, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) Uint8List
Provides crypto_aead_chacha20poly1305_decrypt_detached.
encrypt({required Uint8List message, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) Uint8List
Provides crypto_aead_chacha20poly1305_encrypt.
encryptDetached({required Uint8List message, required Uint8List nonce, required SecureKey key, Uint8List? additionalData}) DetachedCipherResult
Provides crypto_aead_chacha20poly1305_encrypt_detached.
keygen() SecureKey
Provides crypto_aead_chacha20poly1305_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