Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AttestationChallenge

A generic representation of a challenge sent the server.

Link copied to clipboard
@Serializable
sealed class AttestationResponse
Link copied to clipboard
object BitLengthSerializer : KSerializer<BitLength>
Link copied to clipboard
object DigestSerializer : KSerializer<Digest>
Link copied to clipboard
Link copied to clipboard
object ECCurveSerializer : KSerializer<ECCurve>
Link copied to clipboard
class InstantLongSerializer : KSerializer<Instant>
Link copied to clipboard
@Serializable
data class KeyConstraints(val algorithmParameters: KeyConstraints.AlgorithmParameters, val keyProtection: KeyConstraints.KeyProtection? = null)

Constraints on the key to be created on the client. If properly set, allows for ridiculously hands-free key and attestation statement creation

Link copied to clipboard

Properties

Link copied to clipboard
val TbsCertificationRequest.challenge: KmmResult<ByteArray>

Tries to extract the challenge from a TBS CSR's subject name, given it is encoded into an RDN containing a KnownOIDs.serialNumber

Link copied to clipboard
val Pkcs10CertificationRequest.deviceName: String?

val TbsCertificationRequest.deviceName: String?

Tries to extract a device name from a TBS CSR's attribute with OID WardenDefaults.OIDs.DEVICE_NAME.

Functions

Link copied to clipboard
fun TbsCertificationRequest.attestationStatementForChallenge(challenge: AttestationChallenge): KmmResult<Attestation>

Tries to extract an attestation statement from a TBS CSR based on the proofOID specified in challenge

Link copied to clipboard
fun TbsCertificationRequest.attestationStatementForOid(oid: ObjectIdentifier): KmmResult<Attestation>

Tries to extract an attestation statement from a TBS CSR, given it is present as an attribute with oid