WrappedKey class
A symmetric key encrypted ("sealed") to one device's DevicePublicKey.
Produced by Identity.wrapFor and consumed by Identity.unwrap on the target device. Opaque to everyone else.
Constructors
-
WrappedKey({required List<
int> ephemeralPublicKey, required List<int> nonce, required List<int> ciphertext}) -
Creates a wrap from its parts.
const
-
WrappedKey.fromBytes(List<
int> bytes) -
Builds a WrappedKey from its toBytes encoding.
factory
Properties
-
ciphertext
→ List<
int> -
The AEAD ciphertext of the wrapped key, including its authentication tag.
final
-
ephemeralPublicKey
→ List<
int> -
The sender's one-time X25519 public key for this wrap.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nonce
→ List<
int> -
The AEAD nonce (12 bytes).
final
- 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
-
toBytes(
) → List< int> -
A flat encoding:
ephemeralPublicKey(32) ‖ nonce(12) ‖ ciphertext. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited