stream library

I/O helper structs for age file encryption and decryption.

The STREAM construction for online authenticated encryption, instantiated with ChaCha20-Poly1305 in 64KiB chunks, and a nonce structure of 11 bytes of big endian counter, and 1 byte of last block flag (0x00 / 0x01).

Functions

decrypt({required Uint8List key, required Uint8List ciphertext}) Uint8List
Wraps STREAM decryption under the given key.
encrypt({required Uint8List key, required Uint8List plaintext}) Uint8List
Wraps STREAM encryption under the given key.