|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Applet_type>
ds.ov2.front.Applet_type
public enum Applet_type
Enumeration of the different RSA applets this class can deal with.
| Enum Constant Summary | |
|---|---|
MONT_RSA_APPLET
ID for the Montgomerizing RSA applet. |
|
PLAIN_RSA_APPLET
ID for the plain RSA applet. |
|
SQUARED_RSA_APPLET
ID for the squaring RSA applet. |
|
SQUARED4_RSA_APPLET
ID for the square 4 RSA applet. |
|
| Method Summary | |
|---|---|
byte[] |
applet_aid()
Applet name as byte array, like an AID. |
String |
applet_file()
Cap file for this applet type. |
String |
applet_name()
Applet name for this applet type. |
(package private) static Applet_type |
from_byte(byte byte_type)
Convert the applet-type byte constants (see RSA_data.PLAIN_RSA_APPLET and RSA_data.MONT_RSA_APPLET) into this enumeration type. |
int |
minimal_base_size()
Return a minimal default base size, depending on the applet type. |
boolean |
montgomerize()
Decide whether the communication for this applet type is montgomerized or not. |
int |
montgomery_digits()
Return the number of Montgomery digits that this applet uses. |
byte[] |
package_aid()
Package name as byte array, like an AID. |
String |
package_name()
Package name for this applet type. |
byte |
to_byte()
Convert from this enumeration to the byte constants used in the applet code, see RSA_data.PLAIN_RSA_APPLET and
RSA_data.MONT_RSA_APPLET. |
static Applet_type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Applet_type[] |
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 |
|---|
public static final Applet_type PLAIN_RSA_APPLET
RSA_data.PLAIN_RSA_APPLET.
public static final Applet_type MONT_RSA_APPLET
RSA_data.MONT_RSA_APPLET.
public static final Applet_type SQUARED_RSA_APPLET
x*y = ((x+y)^2 - x^2 -
y^2)/2. The applet communicates with the host by exchanging
the plain, unmontgomerized numbers. Corresponds to RSA_data.SQUARED_RSA_APPLET.
public static final Applet_type SQUARED4_RSA_APPLET
x*y = ((x+y)^2 -
(x-y)^2)/4. The applet communicates with the host by
exchanging the plain, unmontgomerized numbers. Corresponds to
RSA_data.SQUARED4_RSA_APPLET.
| Method Detail |
|---|
public static Applet_type[] values()
for (Applet_type c : Applet_type.values()) System.out.println(c);
public static Applet_type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean montgomerize()
public int montgomery_digits()
public int minimal_base_size()
public byte to_byte()
RSA_data.PLAIN_RSA_APPLET and
RSA_data.MONT_RSA_APPLET.
static Applet_type from_byte(byte byte_type)
RSA_data.PLAIN_RSA_APPLET and RSA_data.MONT_RSA_APPLET) into this enumeration type.
byte_type - applet-type byte
IllegalArgumentException - if byte_type is
not one of the valid constantspublic String package_name()
public byte[] package_aid()
public String applet_name()
public byte[] applet_aid()
public String applet_file()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||