X25519FfiAlgo class final
X25519 Diffie–Hellman key agreement backed by OpenSSL 3 via Dart FFI.
The caller loads libcrypto (e.g. via tryLoadLibCrypto) and passes the resulting DynamicLibrary in. at_chops does no auto-resolution — consumers decide their own fallback strategy.
- Implemented types
Constructors
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
-
dh(
Uint8List privateKey, Uint8List peerPublicKey) → Future< Uint8List> -
Compute the shared secret from
privateKeyandpeerPublicKey.override -
generateKeyPair(
) → Future< ({Uint8List privateKey, Uint8List publicKey})> - Generate a fresh X25519 key pair via OpenSSL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publicKeyFromPrivate(
Uint8List privateKey) → Uint8List -
Derive the X25519 public key for a given 32-byte
privateKey, via OpenSSL. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited