ds.ov2.front
Class State

java.lang.Object
  extended by ds.ov2.front.State

public class State
extends Object

Static global state class for the host driver code for the OV-chip RSA applets. The parameters here are always needed for the OV-chip front office. More parameters that are only needed in the test frames are in Test_state.

Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.14 $
Last Commit:
$Date: 2010-03-12 15:40:20 $ by $Author: tews $

Field Summary
static Reference<Integer> attribute_number
          Number of attributes.
static Reference<Integer> base_length
          Length of the bases and the RSA key in bits.
static Reference<Boolean> base_length_set
          Whether base_length has been set by the user.
static Reference<Integer> exponent_length
          Length of the attributes and other exponents in bits.
static Reference<Boolean> exponent_length_set
          True if exponent_length has been set by the user.
static Reference<Security_parameter.Calibration> security_calibration
          Calibration data to use for the Security_parameter methods.
static int security_year
          Year for choosing the security parameter.
 
Constructor Summary
protected State()
          Static class, object creation disabled.
 
Method Summary
static int make_exponent_length(int base_length)
          Computes an exponent length that matches the base_length argument.
static void update_exponent_length()
          Update exponent_length to match a (supposedly) changed base_length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

security_year

public static int security_year
Year for choosing the security parameter. See Security_parameter.exponent_length_for_modulus_length.


security_calibration

public static Reference<Security_parameter.Calibration> security_calibration
Calibration data to use for the Security_parameter methods. Set to Security_parameter.rsa_768_break_2009 by option -768.


base_length_set

public static Reference<Boolean> base_length_set
Whether base_length has been set by the user.


base_length

public static Reference<Integer> base_length
Length of the bases and the RSA key in bits. This is the pure number size, without counting any Mongomery digits.


exponent_length

public static Reference<Integer> exponent_length
Length of the attributes and other exponents in bits.


exponent_length_set

public static Reference<Boolean> exponent_length_set
True if exponent_length has been set by the user.


attribute_number

public static Reference<Integer> attribute_number
Number of attributes.

Constructor Detail

State

protected State()
Static class, object creation disabled.

Method Detail

make_exponent_length

public static int make_exponent_length(int base_length)
Computes an exponent length that matches the base_length argument.

Parameters:
base_length - length of the base in bits
Returns:
exponent length in bits

update_exponent_length

public static void update_exponent_length()
Update exponent_length to match a (supposedly) changed base_length.