SubjectPublicKeyInfo

A decoded SubjectPublicKeyInfo (RFC 5280 §4.1.2.7): the public key of an X.509 certificate, and on its own the raw public key of DTLS RawPublicKey mode (RFC 7250 §3). keyType and publicKey are what dev.kcoap.crypto.CryptoBackend.verify and keyAgreement take.

Recognized algorithms: Ed25519 and X25519 (RFC 8410), X448, P-256 and P-384 (RFC 5480), ML-DSA-44/65/87 (draft-ietf-lamps-dilithium-certificates). Algorithm parameters other than the named curve are not checked.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The DER encoding this was decoded from.

Link copied to clipboard

The type of the public key.

Link copied to clipboard

The public key in the raw encoding of keyType: an uncompressed SEC1 point 04 || x || y for P-256 and P-384 (a compressed one is expanded with Sec1), the plain key bytes otherwise.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String