MlDsaPublicKey

data class MlDsaPublicKey(val algorithm: Algorithm, val encoded: ByteString) : PublicKey

An ML-DSA (FIPS 204) public key.

Parameters

algorithm
encoded

the raw encoded public key bytes as specified in FIPS 204.

Constructors

Link copied to clipboard
constructor(algorithm: Algorithm, encoded: ByteString)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open val curve: EcCurve?

The EcCurve for this key if it is an elliptic curve key, or null if not an EC key.

Link copied to clipboard
val encoded: ByteString

Functions

Link copied to clipboard
open override fun toCoseKey(additionalLabels: Map<CoseLabel, DataItem>): CoseKey

Creates a CoseKey object for the key.

Link copied to clipboard

Serializes this public key as a CBOR DataItem encoding a COSE_Key.

Link copied to clipboard
Link copied to clipboard
open suspend override fun toJwk(additionalClaims: JsonObject?): JsonObject

Encodes the public key as a JSON Web Key according to RFC 7517.

Link copied to clipboard
open suspend override fun toJwkThumbprint(digestAlgorithm: Algorithm): ByteString

Gets the Json Web Key Thumbprint.

Link copied to clipboard
open override fun toPem(): String

Encode this key in PEM format.

Link copied to clipboard

Encodes this public key as a DER-encoded SubjectPublicKeyInfo sequence.