computeRSAKeyPair method

Future<AsymmetricKeyPair<PublicKey, PrivateKey>> computeRSAKeyPair(
  1. SecureRandom secureRandom
)

Generate a PublicKey and PrivateKey pair

Returns a AsymmetricKeyPair based on the RSAKeyGenerator with custom parameters, including a SecureRandom

Implementation

Future<AsymmetricKeyPair<PublicKey, PrivateKey>> computeRSAKeyPair(
    SecureRandom secureRandom) async {
  return await compute(getRsaKeyPair, secureRandom);
}