register

open suspend override fun register(context: Context, attestation: Attestation): Result<KeyPair>

Registers a new key pair for device binding without requiring user authentication.

Creates a new RSA key pair in the Android KeyStore with the specified attestation. The key pair can be accessed immediately without any authentication challenges.

Return

A Result containing the generated KeyPair on success, or an error on failure

Parameters

context

The Android context for cryptographic operations

attestation

The attestation configuration to apply to the key generation