Class FpNafMultiplier

  • All Implemented Interfaces:
    ECMultiplier

    class FpNafMultiplier
    extends java.lang.Object
    implements ECMultiplier
    Class implementing the NAF (Non-Adjacent Form) multiplication algorithm.
    • Constructor Summary

      Constructors 
      Constructor Description
      FpNafMultiplier()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ECPoint multiply​(ECPoint p, java.math.BigInteger k, PreCompInfo preCompInfo)
      D.3.2 pg 101
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FpNafMultiplier

        FpNafMultiplier()
    • Method Detail

      • multiply

        public ECPoint multiply​(ECPoint p,
                                java.math.BigInteger k,
                                PreCompInfo preCompInfo)
        D.3.2 pg 101
        Specified by:
        multiply in interface ECMultiplier
        Parameters:
        p - The ECPoint to be multiplied.
        k - The factor by which p i multiplied.
        Returns:
        p multiplied by k.
        See Also:
        org.gudy.bouncycastle.math.ec.ECMultiplier#multiply(org.gudy.bouncycastle.math.ec.ECPoint, java.math.BigInteger)