SignatureAlgorithm

Signature algorithms (COSE "Algorithms" registry). ML-DSA ids from draft-ietf-cose-dilithium.

Entries

Link copied to clipboard

ECDSA P-256 with SHA-256; signatures are raw r || s as in COSE.

Link copied to clipboard

ECDSA P-384 with SHA-384; raw r || s.

Link copied to clipboard

Ed25519 (COSE "EdDSA" with an OKP Ed25519 key).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val coseId: Int
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

Signature length in bytes.

Link copied to clipboard

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

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.