ECMultiplier.cs 710 B

12345678910111213141516171819202122
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Math.EC.Multiplier
  3. {
  4. /**
  5. * Interface for classes encapsulating a point multiplication algorithm
  6. * for <code>ECPoint</code>s.
  7. */
  8. public interface ECMultiplier
  9. {
  10. /**
  11. * Multiplies the <code>ECPoint p</code> by <code>k</code>, i.e.
  12. * <code>p</code> is added <code>k</code> times to itself.
  13. * @param p The <code>ECPoint</code> to be multiplied.
  14. * @param k The factor by which <code>p</code> is multiplied.
  15. * @return <code>p</code> multiplied by <code>k</code>.
  16. */
  17. ECPoint Multiply(ECPoint p, BigInteger k);
  18. }
  19. }
  20. #endif