ECDSASign class
ECDSA signature implementation. Extends AsymmetricSign and provides ECC-based digital signature operations.
- Inheritance
-
- Object
- ExpirationBase
- Sign
- AsymmetricSign
- ECDSASign
- Annotations
-
- @includeInBarrelFile
Constructors
- ECDSASign(InputECDSASign input)
Properties
- algorithm → CryptoAlgorithm
-
The cryptographic algorithm associated with this object.
no setteroverride
- expirationDate → DateTime?
-
The expiration date, or null if not set.
no setterinherited
- expirationTimes → int?
-
Maximum number of allowed usages before expiration.
no setterinherited
- expirationTimesRemaining → int?
-
Remaining number of allowed usages.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyId → Digest
-
Returns the SHA-256 hash of the key material as a hex string.
no setterinherited
- privateKey → String?
-
The private key as a string (optional).
finalinherited
- publicKey → String
-
The public key as a string.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
incrementUse(
) → void -
Increments the usage counter for expiration times.
inherited
-
isExpired(
) → bool -
Returns true if the object is expired.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> data) → List<int> -
Signs the given data and returns the signature as bytes.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
List< int> data, List<int> signature) → bool -
Verifies the given data against a signature.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createFull(
InputECDSASign input) → ECDSASign - Creates an ECDSASign with full control over all parameters.
-
generateKeyPair(
{String curve = 'prime256v1'}) → Future< Map< String, String> > -
Generates an ECC key pair (PEM format)
override