PqClassicalProvider class abstract interface

The raw classical operations behind the hybrid layer. Implementations own only the cryptography; the callers keep their own length/validation checks.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Stable identifier for diagnostics (e.g. 'pure-dart-cryptography').
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

ecdsaP256GenerateKeyPair() → Future<({Uint8List publicKey, Uint8List secretKey})>
ecdsaP256PublicKeyFromPrivate(Uint8List secretKey) → Future<Uint8List>
ecdsaP256Sign({required Uint8List secretKey, required Uint8List message}) → Future<Uint8List>
ecdsaP256Verify({required Uint8List publicKey, required Uint8List message, required Uint8List signature}) → Future<bool>
ed25519GenerateKeyPair({Uint8List? seed}) → Future<({Uint8List publicKey, Uint8List secretKey})>
ed25519PublicKeyFromSeed(Uint8List seed) → Future<Uint8List>
ed25519Sign({required Uint8List secretKey, required Uint8List publicKey, required Uint8List message}) → Future<Uint8List>
ed25519Verify({required Uint8List publicKey, required Uint8List message, required Uint8List signature}) → Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
p256GenerateKeyPair({Uint8List? seed}) → Future<({Uint8List publicKey, Uint8List secretKey})>
p256SharedSecret({required Uint8List secretKey, required Uint8List remotePublicKey}) → Future<Uint8List>
P-256 ECDH. secretKey is a 32-byte scalar; remotePublicKey is 65-byte uncompressed SEC1 (0x04 || X || Y). Returns the 32-byte x-coordinate.
p384GenerateKeyPair({Uint8List? seed}) → Future<({Uint8List publicKey, Uint8List secretKey})>
p384SharedSecret({required Uint8List secretKey, required Uint8List remotePublicKey}) → Future<Uint8List>
P-384 ECDH. secretKey is a 48-byte scalar; remotePublicKey is 97-byte uncompressed SEC1. Returns the 48-byte x-coordinate.
toString() → String
A string representation of this object.
inherited
x25519GenerateKeyPair({Uint8List? seed}) → Future<({Uint8List publicKey, Uint8List secretKey})>
x25519SharedSecret({required Uint8List secretKey, required Uint8List remotePublicKey}) → Future<Uint8List>
X25519 ECDH between our 32-byte secretKey (which is also its seed) and a 32-byte remotePublicKey, returning the 32-byte shared secret.

Operators

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