ECDSASigner class

Implemented types

Constructors

ECDSASigner([Digest? _digest, Mac? _kMac])
If _digest is not null it is used to hash the message before signing and verifying, otherwise, the message needs to be hashed by the user of this ECDSASigner object. If _kMac is not null, RFC 6979 is used for k calculation with the given Mac. Keep in mind that, to comply with RFC 69679, _kMac must be HMAC with the same digest used to hash the message.

Properties

algorithmName String
Get this algorithm's standard name.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateSignature(Uint8List message) Signature
Sign the passed in message (usually the output of a hash function)
override
init(bool forSigning, CipherParameters params) → void
Init this Signer. The params argument can be: -A ParametersWithRandom containing a PrivateKeyParameter or a raw PrivateKeyParameter for signing -An PublicKeyParameter for verifying.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset the signer to its original state.
override
toString() String
A string representation of this object.
inherited
verifySignature(Uint8List message, covariant ECSignature signature) bool
Verify the message against the signature.
override

Operators

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

Static Properties

factoryConfig → FactoryConfig
Intended for internal use.
final