generatePrivateKey

abstract fun generatePrivateKey(algorithmId: AlgorithmId, options: KeyGenOptions? = null): String

Generates and securely stores a private key based on the provided algorithm and options, returning a unique alias that can be utilized to reference the generated key for future operations.

Return

A unique alias (String) that can be used to reference the stored key.

Implementations should ensure secure storage of the generated keys, protecting against unauthorized access and ensuring cryptographic strength according to the provided parameters.

Parameters

algorithmId

The algorithmId to use for key generation.

options

(Optional) Additional options to control key generation behavior.