create
fun create(algorithm: SigningAlgorithm, keyId: String, keySizeInBits: Int = 2048, strongBoxPreference: SecureHardwarePreference = SecureHardwarePreference.None)(source)
Generates a new signing key for algorithm and stores it in the Android Keystore under the alias keyId.
Parameters
keySizeInBits
RSA key size in bits (ignored for ECDSA and HMAC keys). Defaults to 2048.
strongBoxPreference
Controls whether the key is generated inside StrongBox. Defaults to SecureHardwarePreference.None.