seal method

(Uint8List, Uint8List) seal({
  1. required Uint8List msgToSeal,
  2. required Uint8List msgToAuth,
  3. required Uint8List domain,
})

Encrypts a message to this public key.

Returns a tuple of (sessionKey, ciphertext) where:

  • sessionKey is a 1120-byte encapsulated key needed for decryption

  • ciphertext is the encrypted message

  • msgToSeal: The plaintext to encrypt

  • msgToAuth: Additional authenticated data (not encrypted, but bound)

  • domain: Application-specific domain separator

Implementation

(Uint8List, Uint8List) seal({
  required Uint8List msgToSeal,
  required Uint8List msgToAuth,
  required Uint8List domain,
}) => _inner.seal(msgToSeal: msgToSeal, msgToAuth: msgToAuth, domain: domain);