VerificationAlgorithm class final

An algorithm a PublicKey verifies with: a padding, a hash, and the smallest modulus it accepts, 2048 bits for each here and others in package:rind/rsa_legacy.dart. A PSS salt too long for a modulus raises that floor.

Constructors

VerificationAlgorithm.pssSha256Salt(int saltLength)
RSASSA-PSS with SHA-256 and a salt of exactly saltLength bytes, as SigningAlgorithm.pssSha256Salt signs, throwing RangeError unless it is 0 to 65535. A modulus too short for the salt refuses to verify with it.
VerificationAlgorithm.pssSha384Salt(int saltLength)
RSASSA-PSS with SHA-384 and a salt of exactly saltLength bytes, as SigningAlgorithm.pssSha384Salt signs, throwing RangeError unless it is 0 to 65535. A modulus too short for the salt refuses to verify with it.
VerificationAlgorithm.pssSha512Salt(int saltLength)
RSASSA-PSS with SHA-512 and a salt of exactly saltLength bytes, as SigningAlgorithm.pssSha512Salt signs, throwing RangeError unless it is 0 to 65535. A modulus too short for the salt refuses to verify 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 VerificationAlgorithm
RSASSA-PKCS1-v1_5 with SHA-256.
pkcs1Sha384 → const VerificationAlgorithm
RSASSA-PKCS1-v1_5 with SHA-384.
pkcs1Sha512 → const VerificationAlgorithm
RSASSA-PKCS1-v1_5 with SHA-512.
pssSha256 → const VerificationAlgorithm
RSASSA-PSS with SHA-256 and a salt as long as the hash.
pssSha256AnySalt → const VerificationAlgorithm
RSASSA-PSS with SHA-256 and a salt of any length.
pssSha384 → const VerificationAlgorithm
RSASSA-PSS with SHA-384 and a salt as long as the hash.
pssSha384AnySalt → const VerificationAlgorithm
RSASSA-PSS with SHA-384 and a salt of any length.
pssSha512 → const VerificationAlgorithm
RSASSA-PSS with SHA-512 and a salt as long as the hash.
pssSha512AnySalt → const VerificationAlgorithm
RSASSA-PSS with SHA-512 and a salt of any length.