DartEcdsa class
A stub for Ecdsa (P256, P384, P521) implemented in pure Dart.
- Inheritance
-
- Object
- SignatureAlgorithm
- Ecdsa
- DartEcdsa
Constructors
- DartEcdsa.p256(HashAlgorithm hashAlgorithm)
- DartEcdsa.p384(HashAlgorithm hashAlgorithm)
- DartEcdsa.p521(HashAlgorithm hashAlgorithm)
Properties
- hashAlgorithm → HashAlgorithm
-
Used hash algorithm.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
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.
override
-
newKeyPairFromSeed(
List< int> seed) → Future<EcKeyPair> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> message, {required KeyPair keyPair, PublicKey? publicKey}) → Future<Signature> -
Calculates signature for the message.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
List< int> message, {required Signature signature}) → Future<bool> -
Verifies the signature.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited