decrypt function

BigInt decrypt(
  1. RSAPrivateKey privateKey,
  2. BigInt c
)

Implementation

BigInt decrypt(RSAPrivateKey privateKey, BigInt c) {
  BigInt result = c.modPow(privateKey.privateExponent!, privateKey.modulus!);
  return result;
}