push abstract method

Stream<Uint8List> push({
  1. required Stream<Uint8List> messageStream,
  2. required SecureKey key,
})

Provides crypto_secretstream_xchacha20poly1305_(init_)push.

Transforms the messageStream of plaintext messages to an encrypted stream using crypto_secretstream_xchacha20poly1305_push with the given key. This is simply a shortcut for pushEx in case you only have plain messages and don't care about additional data or tags.

See pushEx for more details on then encryption process.

Implementation

Stream<Uint8List> push({
  required Stream<Uint8List> messageStream,
  required SecureKey key,
});