generate

suspend fun generate(): DeviceKey

A new P-256 key, made in software from the platform's cryptographically secure random source. Kept in memory only.

Throws

when this platform's cryptographic provider cannot run here.