SecretStreamPlainMessage constructor

const SecretStreamPlainMessage(
  1. Uint8List message, {
  2. Uint8List? additionalData,
  3. @Default(SecretStreamMessageTag.message) SecretStreamMessageTag tag,
})

Default constructor

Implementation

const factory SecretStreamPlainMessage(
  /// The message that should be encrypted.
  Uint8List message, {
  /// Additional data, that should be used to generate authentication data.
  ///
  /// See https://libsodium.gitbook.io/doc/secret-key_cryptography/secretstream#encryption
  Uint8List? additionalData,

  /// The message tag that should be attached to the encrypted message.
  ///
  /// See https://libsodium.gitbook.io/doc/secret-key_cryptography/secretstream#encryption
  /// and https://libsodium.gitbook.io/doc/secret-key_cryptography/secretstream#constants
  @Default(SecretStreamMessageTag.message) SecretStreamMessageTag tag,
}) = _SecretStreamPlainMessage;