SigningAlgorithm class final

An algorithm a KeyPair signs with: a padding and a hash.

Each signs as the VerificationAlgorithm of the same name verifies.

Constructors

SigningAlgorithm.pssSha256Salt(int saltLength)
RSASSA-PSS with SHA-256, MGF1-SHA-256, and a salt of saltLength bytes, throwing RangeError unless it is 0 to 65535. A modulus too short for the salt refuses to sign with it.
SigningAlgorithm.pssSha384Salt(int saltLength)
RSASSA-PSS with SHA-384, MGF1-SHA-384, and a salt of saltLength bytes, throwing RangeError unless it is 0 to 65535. A modulus too short for the salt refuses to sign with it.
SigningAlgorithm.pssSha512Salt(int saltLength)
RSASSA-PSS with SHA-512, MGF1-SHA-512, and a salt of saltLength bytes, throwing RangeError unless it is 0 to 65535. A modulus too short for the salt refuses to sign with it.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Constants

pkcs1Sha256 → const SigningAlgorithm
RSASSA-PKCS1-v1_5 with SHA-256.
pkcs1Sha384 → const SigningAlgorithm
RSASSA-PKCS1-v1_5 with SHA-384.
pkcs1Sha512 → const SigningAlgorithm
RSASSA-PKCS1-v1_5 with SHA-512.
pssSha256 → const SigningAlgorithm
RSASSA-PSS with SHA-256, MGF1-SHA-256, and a salt as long as the hash.
pssSha384 → const SigningAlgorithm
RSASSA-PSS with SHA-384, MGF1-SHA-384, and a salt as long as the hash.
pssSha512 → const SigningAlgorithm
RSASSA-PSS with SHA-512, MGF1-SHA-512, and a salt as long as the hash.