SecretKey class
A private key of the X-Wing hybrid KEM (X25519 + ML-KEM-768).
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inner → XhpkeSecretKey
-
Available on SecretKey, provided by the SecretKeyInternal extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fingerprint(
) → Fingerprint - Returns a 256-bit unique identifier for this key. For HPKE, that is the SHA256 hash of the raw public key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
{required Uint8List sessionKey, required Uint8List msgToOpen, required Uint8List msgToAuth, required Uint8List domain}) → Uint8List - Consumes a standalone cryptographic construct encrypted to this secret key. The method will deconstruct the given encapsulated key and ciphertext and will also verify the authenticity of the (unencrypted) message-to-auth (not included in the ciphertext).
-
publicKey(
) → PublicKey - Retrieves the public counterpart of the secret key.
-
toBytes(
) → Uint8List - Converts a private key into a 32-byte seed.
-
toDer(
) → Uint8List - Serializes a private key into a DER buffer.
-
toPem(
) → String - Serializes a private key into a PEM string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited