SealedBox class abstract final

libsodium crypto_box_seal / crypto_box_seal_open (TSP Rev 3 §8.3).

nonce  = Blake2b-192(epk ‖ pk)
k      = HSalsa20(X25519(esk, pk), 0^16)
sealed = epk ‖ Poly1305 tag ‖ XSalsa20(pt)

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

open(Uint8List sealed, X25519KeyAgreement recipient) → Future<Uint8List>
Opens a sealed box with the recipient's key agreement capability.
seal(List<int> plaintext, List<int> recipientPublicKey, {List<int>? ephemeralSecretKey}) → Uint8List
Seals plaintext to recipientPublicKey.

Constants

overhead → const int
Bytes a sealed box adds to its plaintext.