ds.ov2.test
Enum Exponent_perf_host.Vector_exponent_variant

java.lang.Object
  extended by java.lang.Enum<Exponent_perf_host.Vector_exponent_variant>
      extended by ds.ov2.test.Exponent_perf_host.Vector_exponent_variant
All Implemented Interfaces:
Serializable, Comparable<Exponent_perf_host.Vector_exponent_variant>
Enclosing class:
Exponent_perf_host

public static enum Exponent_perf_host.Vector_exponent_variant
extends Enum<Exponent_perf_host.Vector_exponent_variant>

Enumeration for the different multi-power implementations.


Enum Constant Summary
MONT_RSA
          RSA power and Montgomery for multiplication, Vector.mont_rsa_exponent_mod
PURE_JAVA
          Pure Java, Montgomery multiplication used everywhere, Vector.exponent_mod.
SQUARED_RSA
          RSA power and sqared RSA multiplication, Vector.squared_rsa_exponent_mod
 
Method Summary
 short to_short()
          Convert this enumeration value into a short, to be used on the card.
static Exponent_perf_host.Vector_exponent_variant valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Exponent_perf_host.Vector_exponent_variant[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PURE_JAVA

public static final Exponent_perf_host.Vector_exponent_variant PURE_JAVA
Pure Java, Montgomery multiplication used everywhere, Vector.exponent_mod.


MONT_RSA

public static final Exponent_perf_host.Vector_exponent_variant MONT_RSA
RSA power and Montgomery for multiplication, Vector.mont_rsa_exponent_mod


SQUARED_RSA

public static final Exponent_perf_host.Vector_exponent_variant SQUARED_RSA
RSA power and sqared RSA multiplication, Vector.squared_rsa_exponent_mod

Method Detail

values

public static Exponent_perf_host.Vector_exponent_variant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Exponent_perf_host.Vector_exponent_variant c : Exponent_perf_host.Vector_exponent_variant.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Exponent_perf_host.Vector_exponent_variant valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

to_short

public short to_short()
Convert this enumeration value into a short, to be used on the card.