Sender class

A stateful HPKE sender context for multi-message encryption.

Each call to seal encrypts a message using an auto-incrementing nonce, ensuring unique ciphertexts even for identical plaintexts.

The corresponding Receiver must process messages in the same order they were sealed.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Wipes the keys of this context held in Rust memory. Every later use of the sender throws a StateError, and disposing it again does nothing. Without a dispose, the keys are only wiped if the garbage collector finalizes the sender, which is not guaranteed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
seal({required Uint8List msgToSeal, required Uint8List msgToAuth}) → Uint8List
Encrypts a message using the next nonce in the sequence.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited