computeRSAKeyPair method
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);
}