IAIK ECC
version 2.18

iaik.security.ecc.math.algorithms
Class Power

java.lang.Object
  extended byiaik.security.ecc.math.algorithms.Power

public class Power
extends java.lang.Object

Provides a static method for calculating x^p where x is a field element.


Method Summary
static FieldElement calcPow(FieldElement g, int e)
          A simple square and multiply implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calcPow

public static FieldElement calcPow(FieldElement g,
                                   int e)
A simple square and multiply implementation.

Parameters:
g - of g^e
e - of g^e
Returns:
g^e

IAIK ECC
version 2.18

IAIK-ECC 2.18, (c) 2002 IAIK, (c) 2003 SIC