diff options
Diffstat (limited to 'crypto/src/math/ec/ECPoint.cs')
-rw-r--r-- | crypto/src/math/ec/ECPoint.cs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/crypto/src/math/ec/ECPoint.cs b/crypto/src/math/ec/ECPoint.cs index eb7128e1d..8f0168e27 100644 --- a/crypto/src/math/ec/ECPoint.cs +++ b/crypto/src/math/ec/ECPoint.cs @@ -469,19 +469,9 @@ namespace Org.BouncyCastle.Math.EC * @param k The multiplicator. * @return <code>k * this</code>. */ - public override ECPoint Multiply( - BigInteger k) + public override ECPoint Multiply(BigInteger k) { - if (k.SignValue < 0) - throw new ArgumentException("The multiplicator cannot be negative", "k"); - - if (this.IsInfinity) - return this; - - if (k.SignValue == 0) - return Curve.Infinity; - - return Curve.GetMultiplier().Multiply(this, k); + return this.Curve.GetMultiplier().Multiply(this, k); } } |