FlutterEcdsa class

Ecdsa that uses platform APIs in Android, iOS, and Mac OS X.

Constructors

FlutterEcdsa.p256(HashAlgorithm hashAlgorithm, {String? androidCryptoProvider, Ecdsa? fallback})
ECDSA-P256
FlutterEcdsa.p384(HashAlgorithm hashAlgorithm, {String? androidCryptoProvider, Ecdsa? fallback})
ECDSA-P384
FlutterEcdsa.p521(HashAlgorithm hashAlgorithm, {String? androidCryptoProvider, Ecdsa? fallback})
ECDSA-P521

Properties

androidCryptoProvider String?
Optional Android provider name (such as "BC").
final
fallback → Ecdsa?
Fallback implementation.
final
hashAlgorithm ↔ HashAlgorithm
Used hash algorithm.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isSupportedPlatform bool
Whether this algorithm is expected to be able to use platform APIs.
no setter
keyPairType → KeyPairType<KeyPairData, PublicKey>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

newKeyPair() Future<EcKeyPair>
Generates a new KeyPair for this algorithm.
newKeyPairFromSeed(List<int> seed) Future<EcKeyPair>
Generates a new KeyPair that uses the seed bytes.
newSignatureWand() Future<SignatureWand>
Generates a new SignatureWand that has a random KeyPair.
inherited
newSignatureWandFromKeyPair(KeyPair keyPair) Future<SignatureWand>
Generates a new SignatureWand that uses the given KeyPair.
inherited
newSignatureWandFromSeed(List<int> seed) Future<SignatureWand>
Generates a new SignatureWand that uses the given seed bytes.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(List<int> message, {required KeyPair keyPair}) Future<Signature>
Signs bytes.
signString(String message, {required KeyPair keyPair}) Future<Signature>
Signs a string.
inherited
toString() String
A string representation of this object.
inherited
verify(List<int> message, {required Signature signature}) Future<bool>
Verifies whether bytes was signed with signature.
verifyString(String message, {required Signature signature}) Future<bool>
Verifies whether a string was signed with signature.
inherited

Operators

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