CoseKeyParams

Wrapper to handle parameters for different COSE public key types.

Inheritors

Types

Link copied to clipboard
sealed class EcKeyParams<T> : CoseKeyParams

COSE EC public key parameters Since this is used as part of a COSE-specific DTO, every property is nullable

Link copied to clipboard
data class EcYBoolParams(val curve: CoseEllipticCurve? = null, val x: ByteArray? = null, val y: Boolean? = null, val d: ByteArray? = null) : CoseKeyParams.EcKeyParams<Boolean>
Link copied to clipboard
data class EcYByteArrayParams(val curve: CoseEllipticCurve? = null, val x: ByteArray? = null, val y: ByteArray? = null, val d: ByteArray? = null) : CoseKeyParams.EcKeyParams<ByteArray>

COSE EC public key parameters without point compression, i.e. the y coordinate being a ByteArray. Since this is used as part of a COSE-specific DTO, every property is nullable

Link copied to clipboard
data class RsaParams(val n: ByteArray? = null, val e: ByteArray? = null, val d: ByteArray? = null) : CoseKeyParams

COSE RSA public key params. Since this is used as part of a COSE-specific DTO, every property is nullable

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun toCryptoPublicKey(): KmmResult<CryptoPublicKey>