|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.front.RSA_card_protocol_stubs
public class RSA_card_protocol_stubs
Stub code for running methods on the card. Defines one stub method for each protocol step in RSA_card_protocol.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)
| Nested Class Summary | |
|---|---|
static class |
RSA_card_protocol_stubs.Commit_result
Result record for step commit of protocol gate. |
static class |
RSA_card_protocol_stubs.Finish_signature_result
Result record for step finish_signature of protocol resign. |
static class |
RSA_card_protocol_stubs.Get_signature_result
Result record for step get_signature of protocol resign. |
static class |
RSA_card_protocol_stubs.Make_sig_hash_result
Result record for step make_sig_hash of protocol resign. |
static class |
RSA_card_protocol_stubs.Respond_result
Result record for step respond of protocol gate. |
| Field Summary | |
|---|---|
private Host_protocol |
hp_allocate
Host protocol instance for step allocate of protocol allocate. |
private Host_protocol |
hp_commit
Host protocol instance for step commit of protocol gate. |
private Host_protocol |
hp_finish_signature
Host protocol instance for step finish_signature of protocol resign. |
private Host_protocol |
hp_get_signature
Host protocol instance for step get_signature of protocol resign. |
private Host_protocol |
hp_init_data
Host protocol instance for step init_data of protocol initialize. |
private Host_protocol |
hp_make_sig_hash
Host protocol instance for step make_sig_hash of protocol resign. |
private Host_protocol |
hp_respond
Host protocol instance for step respond of protocol gate. |
private PrintWriter |
out
The output channel for debugging information of the OV-chip protocol layer. |
private RSA_card_protocol_description |
protocol_description
A protocol description instance from RSA_card_protocol.id. |
private boolean |
with_apdu_script
Controls apdutool line printing. |
| Constructor Summary | |
|---|---|
RSA_card_protocol_stubs(RSA_card_protocol_description d,
PrintWriter o,
boolean script)
Stub constructor. |
|
| Method Summary | |
|---|---|
void |
allocate_call(CardChannel _cc,
int _short_bignat_size_host_arg,
int _long_bignat_size_host_arg,
int _attribute_length_host_arg,
int _mont_correction_len_host_arg)
Call step allocate of protocol allocate on the card. |
RSA_card_protocol_stubs.Commit_result |
commit_call(CardChannel _cc)
Call step commit of protocol gate on the card. |
void |
delayed_init()
Delayed initialization. |
RSA_card_protocol_stubs.Finish_signature_result |
finish_signature_call(CardChannel _cc,
BigInteger _data_host_response_host_arg)
Call step finish_signature of protocol resign on the card. |
RSA_card_protocol_stubs.Get_signature_result |
get_signature_call(CardChannel _cc)
Call step get_signature of protocol resign on the card. |
void |
init_data_call(CardChannel _cc,
Host_modulus _data_n_host_arg,
BigInteger _data_ptls_key_host_arg,
Host_vector _data_bases_host_arg,
Host_vector _data_base_factors_host_arg,
Host_vector _data_current_attributes_host_arg,
BigInteger _data_montgomerized_one_host_arg,
Host_vector _data_montgomery_corrections_host_arg)
Call step init_data of protocol initialize on the card. |
private void |
init_hp_allocate(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_allocate. |
private void |
init_hp_commit(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_commit. |
private void |
init_hp_finish_signature(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_finish_signature. |
private void |
init_hp_get_signature(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_get_signature. |
private void |
init_hp_init_data(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_init_data. |
private void |
init_hp_make_sig_hash(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_make_sig_hash. |
private void |
init_hp_respond(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_respond. |
RSA_card_protocol_stubs.Make_sig_hash_result |
make_sig_hash_call(CardChannel _cc,
BigInteger _data_host_alpha_host_arg,
Host_vector _data_remainders_host_arg)
Call step make_sig_hash of protocol resign on the card. |
RSA_card_protocol_stubs.Respond_result |
respond_call(CardChannel _cc,
BigInteger _data_gamma_beta_3_host_arg)
Call step respond of protocol gate on the card. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private RSA_card_protocol_description protocol_description
private PrintWriter out
private boolean with_apdu_script
private Host_protocol hp_allocate
init_hp_allocate
(which is called from the constructor).
private Host_protocol hp_init_data
init_hp_init_data
(which is called from delayed_init()).
private Host_protocol hp_get_signature
init_hp_get_signature
(which is called from delayed_init()).
private Host_protocol hp_make_sig_hash
init_hp_make_sig_hash
(which is called from delayed_init()).
private Host_protocol hp_finish_signature
init_hp_finish_signature
(which is called from delayed_init()).
private Host_protocol hp_commit
init_hp_commit
(which is called from delayed_init()).
private Host_protocol hp_respond
init_hp_respond
(which is called from delayed_init()).
| Constructor Detail |
|---|
public RSA_card_protocol_stubs(RSA_card_protocol_description d,
PrintWriter o,
boolean script)
delayed_init() at the appropriate moment.
d - protocol description instance for RSA_card_protocol.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_allocate(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_allocate.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public void allocate_call(CardChannel _cc,
int _short_bignat_size_host_arg,
int _long_bignat_size_host_arg,
int _attribute_length_host_arg,
int _mont_correction_len_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_short_bignat_size_host_arg - argument short_bignat_size to be converted to APDU_short_long_bignat_size_host_arg - argument long_bignat_size to be converted to APDU_short_attribute_length_host_arg - argument attribute_length to be converted to APDU_short_mont_correction_len_host_arg - argument mont_correction_len to be converted to APDU_short
CardException - in case of communication errors
private void init_hp_init_data(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_init_data.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public void init_data_call(CardChannel _cc,
Host_modulus _data_n_host_arg,
BigInteger _data_ptls_key_host_arg,
Host_vector _data_bases_host_arg,
Host_vector _data_base_factors_host_arg,
Host_vector _data_current_attributes_host_arg,
BigInteger _data_montgomerized_one_host_arg,
Host_vector _data_montgomery_corrections_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_data_n_host_arg - argument data.n to be converted to Modulus_data_ptls_key_host_arg - argument data.ptls_key to be converted to Bignat_data_bases_host_arg - argument data.bases to be converted to Vector_data_base_factors_host_arg - argument data.base_factors to be converted to Vector_data_current_attributes_host_arg - argument data.current_attributes to be converted to Vector_data_montgomerized_one_host_arg - argument data.montgomerized_one to be converted to Bignat_data_montgomery_corrections_host_arg - argument data.montgomery_corrections to be converted to Vector
CardException - in case of communication errors
private void init_hp_get_signature(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_get_signature.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public RSA_card_protocol_stubs.Get_signature_result get_signature_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_make_sig_hash(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_make_sig_hash.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public RSA_card_protocol_stubs.Make_sig_hash_result make_sig_hash_call(CardChannel _cc,
BigInteger _data_host_alpha_host_arg,
Host_vector _data_remainders_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_data_host_alpha_host_arg - argument data.host_alpha to be converted to Bignat_data_remainders_host_arg - argument data.remainders to be converted to Vector
CardException - in case of communication errors
private void init_hp_finish_signature(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_finish_signature.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public RSA_card_protocol_stubs.Finish_signature_result finish_signature_call(CardChannel _cc,
BigInteger _data_host_response_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_data_host_response_host_arg - argument data.host_response to be converted to Bignat
CardException - in case of communication errors
private void init_hp_commit(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_commit.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public RSA_card_protocol_stubs.Commit_result commit_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_respond(RSA_card_protocol_description d,
PrintWriter out,
boolean script)
hp_respond.
d - description instance for RSA_card_protocol.idout - the debugging out channel, null for disabling
debugging outputscript - whether this step prints apdutool lines
public RSA_card_protocol_stubs.Respond_result respond_call(CardChannel _cc,
BigInteger _data_gamma_beta_3_host_arg)
throws CardException
_cc - communication channel to the applet, must not be null_data_gamma_beta_3_host_arg - argument data.gamma_beta_3 to be converted to Bignat
CardException - in case of communication errorspublic void delayed_init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||