decrypt method

  1. @override
ECPoint decrypt(
  1. ECPair pair
)
override

Decrypt an EC pair producing the original ECPoint.

Implementation

@override
ECPoint decrypt(ECPair pair) {
  if (_key == null) {
    throw StateError('ECElGamalEncryptor is not initialised');
  }
  return (pair.y - (pair.x * _key!.d)!)!;
}