generate

suspend fun generate(): SealPrivateKey

A fresh key pair from the platform provider's own key generator. Throws IllegalStateException if the process has replaced the platform CSPRNG (the JDK provider draws key generation from it, and this is the key encodePkcs8 persists) or the provider fails its self-test.