SubtleCryptoECDSAP256Keys class

A Keys implementation that uses the SubtleCrypto Web api.

The keys are ECDSA on the P-256 curve (also known as secp256r1) and use SHA-256 as the hash function.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
private_key CryptoKey
getter/setter pair
public_key CryptoKey
getter/setter pair
public_key_DER Uint8List
The DER encoded public-key of these Keys.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorize(Uint8List message) Future<Uint8List>
Signs a message using the private-key of these Keys. Returns a signature on the message.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

new_keys({bool extractable = false}) Future<SubtleCryptoECDSAP256Keys>
This function generates a new key-pair using the SubtleCrypto generateKey method.
of_the_cryptokeys({required CryptoKey public_key, required CryptoKey private_key}) Future<SubtleCryptoECDSAP256Keys>
verify({required Uint8List message, required Uint8List signature, required Uint8List public_key_DER}) Future<bool>
Verifies a signature on a message by an ECDSA P-256 curve key-pair (also known as secp256r1) using SHA-256 as the hash function.