unsign method

List<int> unsign(
  1. dynamic message
)

Implementation

List<int> unsign(final /* BigInt | Iterable<int> | String */ message) {
  BigInt input;
  if (message is BigInt) {
    input = message;
  } else if (message is Iterable<int>) {
    input = _convertInput(message);
  } else if (message is String) {
    input = _convertInput(base64Decode(message));
  } else {
    throw ArgumentError('Unknown type');
  }
  final signedBigInt = input.modPow(key.e, key.n);
  final ret = bigIntToBytes(signedBigInt, outLen: blockSize);
  return ret;
}