create
fun create(algorithm: SigningAlgorithm, keyId: String, keySizeInBits: Int = 2048, useSecureEnclave: Boolean = false)(source)
Generates a new signing key for algorithm and stores it under keyId.
Parameters
keySizeInBits
RSA key size in bits. Ignored for ECDSA and HMAC keys. Defaults to 2048.
useSecureEnclave
When true, generates the key inside the Secure Enclave. Only valid for ES256; ignored for all other algorithms (they always use the standard Keychain).