generateRSAKeyPair

fun generateRSAKeyPair(modulus: Int = DEFAULT_RSA_KEY_MODULUS): KeyPair

Generate an RSA key pair.

Parameters

modulus

The modulus

Throws

If modulus is less than 2048