ECMultiplier.cs 655 B

123456789101112131415161718
  1. namespace Renci.SshNet.Security.Org.BouncyCastle.Math.EC.Multiplier
  2. {
  3. /**
  4. * Interface for classes encapsulating a point multiplication algorithm
  5. * for <code>ECPoint</code>s.
  6. */
  7. internal interface ECMultiplier
  8. {
  9. /**
  10. * Multiplies the <code>ECPoint p</code> by <code>k</code>, i.e.
  11. * <code>p</code> is added <code>k</code> times to itself.
  12. * @param p The <code>ECPoint</code> to be multiplied.
  13. * @param k The factor by which <code>p</code> is multiplied.
  14. * @return <code>p</code> multiplied by <code>k</code>.
  15. */
  16. ECPoint Multiply(ECPoint p, BigInteger k);
  17. }
  18. }