Package tools.ec.EllipticCurve

Examples of tools.ec.EllipticCurve.Element.mul()


    EllipticCurve ec = new EllipticCurve(new BigInteger("43"),
        new BigInteger("4"), new BigInteger("34"));
    Element element1 = new Element(ec, new BigInteger("12"),
        new BigInteger("41"));

    assertEquals(element1, element1.mul(1));
    assertEquals(
        element1.add(element1).add(element1).add(element1)
            .add(element1), element1.mul(5));
    assertEquals(element1.mul(4), new Element(ec, new BigInteger("31"),
        new BigInteger("8")));
View Full Code Here


        new BigInteger("41"));

    assertEquals(element1, element1.mul(1));
    assertEquals(
        element1.add(element1).add(element1).add(element1)
            .add(element1), element1.mul(5));
    assertEquals(element1.mul(4), new Element(ec, new BigInteger("31"),
        new BigInteger("8")));
  }

  @Test
View Full Code Here

    assertEquals(element1, element1.mul(1));
    assertEquals(
        element1.add(element1).add(element1).add(element1)
            .add(element1), element1.mul(5));
    assertEquals(element1.mul(4), new Element(ec, new BigInteger("31"),
        new BigInteger("8")));
  }

  @Test
  public void testBigMul() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.