AttestationHashInput

data class AttestationHashInput : Asn1Encodable<Asn1Sequence> (source)

Canonical DER structure authenticated by DataAuthentication.Hash.

It mirrors a TbsCertificationRequest while deliberately omitting its public key and the single attestation-proof attribute. toTbsCsr adds those two values after key generation; TbsCertificationRequest.toHashInput performs the inverse operation. This makes the mapping explicit and keeps hash construction aligned with the actual TBS CSR.

Constructors

Link copied to clipboard
constructor(subjectName: List<RelativeDistinguishedName>, extensions: List<X509CertificateExtension> = emptyList(), version: Int = 0, attributes: List<Pkcs10CertificationRequestAttribute> = emptyList())

Types

Link copied to clipboard
object Companion : Asn1Decodable<Asn1Sequence, AttestationHashInput>

Properties

Link copied to clipboard
val attributes: List<Pkcs10CertificationRequestAttribute>
Link copied to clipboard
val subjectName: List<RelativeDistinguishedName>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
open override fun encodeToTlv(): Asn1Sequence
Link copied to clipboard
open fun encodeToTlvOrNull(): Asn1Sequence?
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>
Link copied to clipboard
Link copied to clipboard
fun toTbsCsr(publicKey: CryptoPublicKey, proof: Pkcs10CertificationRequestAttribute): TbsCertificationRequest

Completes this hash input with the attested publicKey and exactly one proof attribute.

Link copied to clipboard
open infix fun withImplicitTag(tag: Asn1Element.Tag): Asn1Element
open infix fun withImplicitTag(template: Asn1Element.Tag.Template): Asn1Element
open infix fun withImplicitTag(tagValue: ULong): Asn1Element