ChaChaPolyCryptRaw class

This is an ChaCha20-Poly1305 symmetric encryption machine. Various modes and paddings are available.

This version of ChaChaPolyCrypt is raw. It expects keys and IVs to be Uint8List, and returns Uint8List. For a higher-level solution, see ChaChaPolyCrypt (not raw).

Constructors

ChaChaPolyCryptRaw({required Uint8List key})
Creates 'Crypt', serves as encrypter/decrypter of text.

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

decrypt({required Uint8List enc, required Uint8List iv, Uint8List? aad, int tagLength = 128}) Uint8List
Decrypts (with iv).
encrypt({required Uint8List inp, required Uint8List iv, Uint8List? aad, int tagLength = 128}) Uint8List
Encrypts (with iv).
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