platformCreateKeySettings

actual fun platformCreateKeySettings(challenge: ByteString, algorithm: Algorithm, userAuthenticationRequired: Boolean, validFrom: Instant, validUntil: Instant): CreateKeySettings
expect fun platformCreateKeySettings(challenge: ByteString, algorithm: Algorithm, userAuthenticationRequired: Boolean, validFrom: Instant, validUntil: Instant): CreateKeySettings

Gets a CreateKeySettings object for creating auth-bound keys that works with the SecureArea returned returned by platformSecureAreaProvider.

Parameters

challenge

the challenge to use in the generated attestation, if the SecureArea supports that.

curve

the curve to use.

keyPurposes

the key purposes

userAuthenticationRequired

set to true to require user authentication, false otherwise.

validFrom

when the key should be valid from.

validUntil

when the key should be valid until.

actual fun platformCreateKeySettings(challenge: <Error class: unknown class>, algorithm: <Error class: unknown class>, userAuthenticationRequired: Boolean, validFrom: <Error class: unknown class>, validUntil: <Error class: unknown class>): <Error class: unknown class>