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