ECMultiplier.cs 780 B

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