generateAttestation

suspend fun generateAttestation(secureArea: SecureArea, challenge: ByteString, secret: String? = null): DeviceAttestationResult

An implementation of DeviceCheck.generateAttestation for DeviceAttestationSoftware.

Return

a DeviceAttestationResult containing a DeviceAttestation which can be sent to the party requesting the attestation.

Parameters

secureArea

a platform-specific SecureArea to store the key.

challenge

should come from the party requesting the attestation, for freshness.

secret

optional secret for identifying the client.