SignatureAlgorithm
Signature algorithms (COSE "Algorithms" registry). ML-DSA ids from draft-ietf-cose-dilithium.
Properties
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Signature length in bytes.
For ML-DSA, the length of tr = H(pk, 64) (FIPS 204 Algorithm 6, line 7), the hash of the public key that signing starts from and that the expanded private key holds after ρ and K. A backend that imports an expanded key checks it against the public key, since a wrong tr only shows later, as signatures nobody can verify. Null for the other algorithms.
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.