EncryptedPayload constructor

const EncryptedPayload({
  1. required Uint8List ciphertext,
  2. required Uint8List key,
  3. required Uint8List tag,
  4. required Uint8List nonce,
  5. required Uint8List aad,
  6. String algorithm = 'chacha20-poly1305',
})

Implementation

const EncryptedPayload({
  required this.ciphertext,
  required this.key,
  required this.tag,
  required this.nonce,
  required this.aad,
  this.algorithm = 'chacha20-poly1305',
});