PqPureDartClassicalProvider class final

The built-in pure-Dart backend: package:cryptography for X25519/Ed25519 and PqEcdsaP256 (PointyCastle, RFC-6979) for ECDSA-P256. Always present; the fallback when no native provider is registered.

Implemented types

Constructors

PqPureDartClassicalProvider()
const

Properties

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

Methods

ecdsaP256GenerateKeyPair() Future<({Uint8List publicKey, Uint8List secretKey})>
override
ecdsaP256PublicKeyFromPrivate(Uint8List secretKey) Future<Uint8List>
override
ecdsaP256Sign({required Uint8List secretKey, required Uint8List message}) Future<Uint8List>
override
ecdsaP256Verify({required Uint8List publicKey, required Uint8List message, required Uint8List signature}) Future<bool>
override
ed25519GenerateKeyPair({Uint8List? seed}) Future<({Uint8List publicKey, Uint8List secretKey})>
override
ed25519PublicKeyFromSeed(Uint8List seed) Future<Uint8List>
override
ed25519Sign({required Uint8List secretKey, required Uint8List publicKey, required Uint8List message}) Future<Uint8List>
override
ed25519Verify({required Uint8List publicKey, required Uint8List message, required Uint8List signature}) Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
x25519GenerateKeyPair({Uint8List? seed}) Future<({Uint8List publicKey, Uint8List secretKey})>
override
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.
override

Operators

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