signBlock method

List<int> signBlock(
  1. dynamic message
)

Implementation

List<int> signBlock(final /* BigInt | Iterable<int> */ message) {
  BigInt input;
  if (message is BigInt) {
    input = message;
  } else if (message is Iterable<int>) {
    input = _convertInput(message);
  } else {
    throw ArgumentError('Unknown type');
  }
  final signedBigInt = input.modPow(_key.d, _key.n);
  return bigIntToBytes(signedBigInt);
}