- Inheritance
-
- Object
- DelegatingCipher
- DelegatingStreamingCipher
- FlutterStreamingCipher
- Implemented types
-
- Implementers
Methods
-
decrypt(SecretBox secretBox, {required SecretKey secretKey, List<int> aad = const <int>[], int keyStreamIndex = 0})
→ Future<List<int>>
-
Decrypts
SecretBox
and returns the bytes.
override
-
encrypt(List<int> clearText, {required SecretKey secretKey, List<int>? nonce, List<int> aad = const <int>[], int keyStreamIndex = 0})
→ Future<SecretBox>
-
Encrypts bytes and returns
SecretBox
.
Authenticates SecretBox
with macAlgorithm, decrypts it, and returns the cleartext.
override
-
newNonce()
→ List<int>
-
Generates a new nonce with the correct length (nonceLength).
inherited
-
newSecretKey()
→ Future<SecretKey>
-
Generates a new
SecretKey
with the correct length (secretKeyLength).
inherited
-
newSecretKeyFromBytes(List<int> bytes)
→ Future<SecretKey>
-
Constructs a new
SecretKey
from the bytes.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
reportError(Object error, StackTrace stackTrace)
→ void
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited