SecretStreamPlainMessage constructor
const
SecretStreamPlainMessage(
- Uint8List message, {
- Uint8List? additionalData,
- @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;