SigningAlgorithm enum

Supported C2PA signing algorithms.

These correspond to the COSE algorithm identifiers used by the c2pa-rs SigningAlg enum.

Inheritance
Available extensions

Values

es256 → const SigningAlgorithm

ECDSA with SHA-256 (recommended default).

const SigningAlgorithm('ES256')
es384 → const SigningAlgorithm

ECDSA with SHA-384.

const SigningAlgorithm('ES384')
es512 → const SigningAlgorithm

ECDSA with SHA-512.

const SigningAlgorithm('ES512')
ps256 → const SigningAlgorithm

RSASSA-PSS with SHA-256.

const SigningAlgorithm('PS256')
ps384 → const SigningAlgorithm

RSASSA-PSS with SHA-384.

const SigningAlgorithm('PS384')
ps512 → const SigningAlgorithm

RSASSA-PSS with SHA-512.

const SigningAlgorithm('PS512')
ed25519 → const SigningAlgorithm

Edwards-curve Digital Signature Algorithm.

const SigningAlgorithm('ED25519')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
label String
The string label for this algorithm (e.g. ES256).
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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.
inherited

Operators

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

Static Methods

fromString(String? value) SigningAlgorithm?
Parses a string into a SigningAlgorithm.

Constants

values → const List<SigningAlgorithm>
A constant List of the values in this enum, in order of their declaration.