|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.test.Exponent_perf_stubs
public class Exponent_perf_stubs
Stub code for running methods on the card. Defines one stub method for each protocol step in Exponent_perf.id. The stub methods are the top entry point into the OV-chip protocol layer for host driver code. Each stub method performs the following actions:
BigInteger to
Bignat)
| Field Summary | |
|---|---|
private Host_protocol |
hp_set_vector_length
Host protocol instance for step set_vector_length of protocol Vector_length. |
private Host_protocol |
hp_vector_exp_1
Host protocol instance for step vector_exp_1 of protocol Vector_exp. |
private Host_protocol |
hp_vector_exp_2
Host protocol instance for step vector_exp_2 of protocol Vector_exp. |
private Host_protocol |
hp_vector_exp_choose_mod
Host protocol instance for step vector_exp_choose_mod of protocol Vector_exp. |
private Host_protocol |
hp_vector_exp_init
Host protocol instance for step vector_exp_init of protocol Vector_exp. |
private Host_protocol |
hp_vector_exp_result
Host protocol instance for step vector_exp_result of protocol Vector_exp. |
private PrintWriter |
out
The output channel for debugging information of the OV-chip protocol layer. |
private Exponent_perf_description |
protocol_description
A protocol description instance from Exponent_perf.id. |
private boolean |
with_apdu_script
Controls apdutool line printing. |
| Constructor Summary | |
|---|---|
Exponent_perf_stubs(Exponent_perf_description d,
PrintWriter o,
boolean script)
Stub constructor. |
|
| Method Summary | |
|---|---|
private void |
init_hp_set_vector_length(Exponent_perf_description d,
PrintWriter out,
boolean script)
Initialization method for hp_set_vector_length. |
private void |
init_hp_vector_exp_1(Exponent_perf_description d,
PrintWriter out,
boolean script)
Initialization method for hp_vector_exp_1. |
private void |
init_hp_vector_exp_2(Exponent_perf_description d,
PrintWriter out,
boolean script)
Initialization method for hp_vector_exp_2. |
private void |
init_hp_vector_exp_choose_mod(Exponent_perf_description d,
PrintWriter out,
boolean script)
Initialization method for hp_vector_exp_choose_mod. |
private void |
init_hp_vector_exp_init(Exponent_perf_description d,
PrintWriter out,
boolean script)
Initialization method for hp_vector_exp_init. |
private void |
init_hp_vector_exp_result(Exponent_perf_description d,
PrintWriter out,
boolean script)
Initialization method for hp_vector_exp_result. |
void |
set_vector_length_call(CardChannel _cc,
int _n1_host_arg,
int _n2_host_arg)
Call step set_vector_length of protocol Vector_length on the card. |
long |
vector_exp_1_call(CardChannel _cc)
Call step vector_exp_1 of protocol Vector_exp on the card. |
long |
vector_exp_2_call(CardChannel _cc)
Call step vector_exp_2 of protocol Vector_exp on the card. |
void |
vector_exp_choose_mod_call(CardChannel _cc,
int _vector_exp_variant_host_arg)
Call step vector_exp_choose_mod of protocol Vector_exp on the card. |
void |
vector_exp_init_call(CardChannel _cc,
Host_vector _bignats_base_host_arg,
Host_vector _bignats_exponent_host_arg,
Host_modulus _vec_exp_modulus_host_arg,
int _n1_host_arg,
Host_vector _bignats_base_factors_host_arg,
BigInteger _one_or_correction_host_arg,
boolean _keep_modulus_host_arg)
Call step vector_exp_init of protocol Vector_exp on the card. |
BigInteger |
vector_exp_result_call(CardChannel _cc)
Call step vector_exp_result of protocol Vector_exp on the card. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Exponent_perf_description protocol_description
private PrintWriter out
private boolean with_apdu_script
private Host_protocol hp_set_vector_length
init_hp_set_vector_length
(which is called from the constructor).
private Host_protocol hp_vector_exp_choose_mod
init_hp_vector_exp_choose_mod
(which is called from the constructor).
private Host_protocol hp_vector_exp_init
init_hp_vector_exp_init
(which is called from the constructor).
private Host_protocol hp_vector_exp_1
init_hp_vector_exp_1
(which is called from the constructor).
private Host_protocol hp_vector_exp_2
init_hp_vector_exp_2
(which is called from the constructor).
private Host_protocol hp_vector_exp_result
init_hp_vector_exp_result
(which is called from the constructor).
| Constructor Detail |
|---|
public Exponent_perf_stubs(Exponent_perf_description d,
PrintWriter o,
boolean script)
d - protocol description instance for Exponent_perf.ido - channel for printing debugging information, pass null
for disabling debugging informationscript - if true, print apdutool lines for all APDUs as part
of the debugging information.| Method Detail |
|---|
private void init_hp_set_vector_length(Exponent_perf_description d,
PrintWriter out,
boolean script)
hp_set_vector_length.
d - description instance for Exponent_perf.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public void set_vector_length_call(CardChannel _cc,
int _n1_host_arg,
int _n2_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_n1_host_arg - argument n1 to be converted to APDU_short_n2_host_arg - argument n2 to be converted to APDU_short
CardException - in case of communication errors
private void init_hp_vector_exp_choose_mod(Exponent_perf_description d,
PrintWriter out,
boolean script)
hp_vector_exp_choose_mod.
d - description instance for Exponent_perf.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public void vector_exp_choose_mod_call(CardChannel _cc,
int _vector_exp_variant_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_vector_exp_variant_host_arg - argument vector_exp_variant to be converted to APDU_short
CardException - in case of communication errors
private void init_hp_vector_exp_init(Exponent_perf_description d,
PrintWriter out,
boolean script)
hp_vector_exp_init.
d - description instance for Exponent_perf.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public void vector_exp_init_call(CardChannel _cc,
Host_vector _bignats_base_host_arg,
Host_vector _bignats_exponent_host_arg,
Host_modulus _vec_exp_modulus_host_arg,
int _n1_host_arg,
Host_vector _bignats_base_factors_host_arg,
BigInteger _one_or_correction_host_arg,
boolean _keep_modulus_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_bignats_base_host_arg - argument bignats.base to be converted to Vector_bignats_exponent_host_arg - argument bignats.exponent to be converted to Vector_vec_exp_modulus_host_arg - argument vec_exp_modulus to be converted to Modulus_n1_host_arg - argument n1 to be converted to APDU_short_bignats_base_factors_host_arg - argument bignats.base_factors to be converted to Vector_one_or_correction_host_arg - argument one_or_correction to be converted to Bignat_keep_modulus_host_arg - argument keep_modulus to be converted to APDU_boolean
CardException - in case of communication errors
private void init_hp_vector_exp_1(Exponent_perf_description d,
PrintWriter out,
boolean script)
hp_vector_exp_1.
d - description instance for Exponent_perf.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public long vector_exp_1_call(CardChannel _cc)
throws CardException
_cc - communication channel to the applet, must not be null
CardException - in case of communication errors
private void init_hp_vector_exp_2(Exponent_perf_description d,
PrintWriter out,
boolean script)
hp_vector_exp_2.
d - description instance for Exponent_perf.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public long vector_exp_2_call(CardChannel _cc)
throws CardException
_cc - communication channel to the applet, must not be null
CardException - in case of communication errors
private void init_hp_vector_exp_result(Exponent_perf_description d,
PrintWriter out,
boolean script)
hp_vector_exp_result.
d - description instance for Exponent_perf.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public BigInteger vector_exp_result_call(CardChannel _cc)
throws CardException
_cc - communication channel to the applet, must not be null
CardException - in case of communication errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||