|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.test.Data_protocol_stubs
public class Data_protocol_stubs
Stub code for running methods on the card. Defines one stub method for each protocol step in Data_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 |
Data_protocol_stubs.Check_data_result
Result record for step check_data of protocol check_data. |
static class |
Data_protocol_stubs.Data_perf_answer_to_challenge_result
Result record for step data_perf_answer_to_challenge of protocol data_perf_proof. |
static class |
Data_protocol_stubs.Data_perf_proof_commit_result
Result record for step data_perf_proof_commit of protocol data_perf_proof. |
static class |
Data_protocol_stubs.Data_performance_send_result
Result record for step data_performance_send of protocol data_performance_send. |
Field Summary | |
---|---|
private Host_protocol |
hp_check_data
Host protocol instance for step check_data of protocol check_data. |
private Host_protocol |
hp_data_perf_answer_to_challenge
Host protocol instance for step data_perf_answer_to_challenge of protocol data_perf_proof. |
private Host_protocol |
hp_data_perf_proof_commit
Host protocol instance for step data_perf_proof_commit of protocol data_perf_proof. |
private Host_protocol |
hp_data_performance_receive
Host protocol instance for step data_performance_receive of protocol data_performance_receive. |
private Host_protocol |
hp_data_performance_send
Host protocol instance for step data_performance_send of protocol data_performance_send. |
private Host_protocol |
hp_set_size
Host protocol instance for step set_size of protocol set_size. |
private PrintWriter |
out
The output channel for debugging information of the OV-chip protocol layer. |
private Data_protocol_description |
protocol_description
A protocol description instance from Data_protocol.id. |
private boolean |
with_apdu_script
Controls apdutool line printing. |
Constructor Summary | |
---|---|
Data_protocol_stubs(Data_protocol_description d,
PrintWriter o,
boolean script)
Stub constructor. |
Method Summary | |
---|---|
Data_protocol_stubs.Check_data_result |
check_data_call(CardChannel _cc,
Resizable_buffer _buf_0_host_arg,
Resizable_buffer _buf_1_host_arg,
Resizable_buffer _buf_2_host_arg,
Resizable_buffer _buf_3_host_arg,
Resizable_buffer _buf_4_host_arg)
Call step check_data of protocol check_data on the card. |
Data_protocol_stubs.Data_perf_answer_to_challenge_result |
data_perf_answer_to_challenge_call(CardChannel _cc,
Resizable_buffer _buf_4_host_arg)
Call step data_perf_answer_to_challenge of protocol data_perf_proof on the card. |
Data_protocol_stubs.Data_perf_proof_commit_result |
data_perf_proof_commit_call(CardChannel _cc,
Resizable_buffer _buf_0_host_arg)
Call step data_perf_proof_commit of protocol data_perf_proof on the card. |
long |
data_performance_receive_call(CardChannel _cc,
Resizable_buffer _buf_0_host_arg)
Call step data_performance_receive of protocol data_performance_receive on the card. |
Data_protocol_stubs.Data_performance_send_result |
data_performance_send_call(CardChannel _cc)
Call step data_performance_send of protocol data_performance_send on the card. |
private void |
init_hp_check_data(Data_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_check_data . |
private void |
init_hp_data_perf_answer_to_challenge(Data_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_data_perf_answer_to_challenge . |
private void |
init_hp_data_perf_proof_commit(Data_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_data_perf_proof_commit . |
private void |
init_hp_data_performance_receive(Data_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_data_performance_receive . |
private void |
init_hp_data_performance_send(Data_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_data_performance_send . |
private void |
init_hp_set_size(Data_protocol_description d,
PrintWriter out,
boolean script)
Initialization method for hp_set_size . |
int[] |
set_size_call(CardChannel _cc,
int[] _buf_sizes_host_arg,
boolean _performance_test_host_arg)
Call step set_size of protocol set_size on the card. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Data_protocol_description protocol_description
private PrintWriter out
private boolean with_apdu_script
private Host_protocol hp_check_data
init_hp_check_data
(which is called from the constructor).
private Host_protocol hp_set_size
init_hp_set_size
(which is called from the constructor).
private Host_protocol hp_data_performance_receive
init_hp_data_performance_receive
(which is called from the constructor).
private Host_protocol hp_data_performance_send
init_hp_data_performance_send
(which is called from the constructor).
private Host_protocol hp_data_perf_proof_commit
init_hp_data_perf_proof_commit
(which is called from the constructor).
private Host_protocol hp_data_perf_answer_to_challenge
init_hp_data_perf_answer_to_challenge
(which is called from the constructor).
Constructor Detail |
---|
public Data_protocol_stubs(Data_protocol_description d, PrintWriter o, boolean script)
d
- protocol description instance for Data_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_check_data(Data_protocol_description d, PrintWriter out, boolean script)
hp_check_data
.
d
- description instance for Data_protocol.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic Data_protocol_stubs.Check_data_result check_data_call(CardChannel _cc, Resizable_buffer _buf_0_host_arg, Resizable_buffer _buf_1_host_arg, Resizable_buffer _buf_2_host_arg, Resizable_buffer _buf_3_host_arg, Resizable_buffer _buf_4_host_arg) throws CardException
_cc
- communication channel to the applet, must not be null_buf_0_host_arg
- argument buf_0_buf_1_host_arg
- argument buf_1_buf_2_host_arg
- argument buf_2_buf_3_host_arg
- argument buf_3_buf_4_host_arg
- argument buf_4
CardException
- in case of communication errorsprivate void init_hp_set_size(Data_protocol_description d, PrintWriter out, boolean script)
hp_set_size
.
d
- description instance for Data_protocol.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic int[] set_size_call(CardChannel _cc, int[] _buf_sizes_host_arg, boolean _performance_test_host_arg) throws CardException
_cc
- communication channel to the applet, must not be null_buf_sizes_host_arg
- argument buf_sizes to be converted to APDU_short_array_performance_test_host_arg
- argument performance_test to be converted to APDU_boolean
CardException
- in case of communication errorsprivate void init_hp_data_performance_receive(Data_protocol_description d, PrintWriter out, boolean script)
hp_data_performance_receive
.
d
- description instance for Data_protocol.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic long data_performance_receive_call(CardChannel _cc, Resizable_buffer _buf_0_host_arg) throws CardException
_cc
- communication channel to the applet, must not be null_buf_0_host_arg
- argument buf_0
CardException
- in case of communication errorsprivate void init_hp_data_performance_send(Data_protocol_description d, PrintWriter out, boolean script)
hp_data_performance_send
.
d
- description instance for Data_protocol.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic Data_protocol_stubs.Data_performance_send_result data_performance_send_call(CardChannel _cc) throws CardException
_cc
- communication channel to the applet, must not be null
CardException
- in case of communication errorsprivate void init_hp_data_perf_proof_commit(Data_protocol_description d, PrintWriter out, boolean script)
hp_data_perf_proof_commit
.
d
- description instance for Data_protocol.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic Data_protocol_stubs.Data_perf_proof_commit_result data_perf_proof_commit_call(CardChannel _cc, Resizable_buffer _buf_0_host_arg) throws CardException
_cc
- communication channel to the applet, must not be null_buf_0_host_arg
- argument buf_0
CardException
- in case of communication errorsprivate void init_hp_data_perf_answer_to_challenge(Data_protocol_description d, PrintWriter out, boolean script)
hp_data_perf_answer_to_challenge
.
d
- description instance for Data_protocol.idout
- the debugging out channel, null
for disabling
debugging outputscript
- whether this step prints apdutool linespublic Data_protocol_stubs.Data_perf_answer_to_challenge_result data_perf_answer_to_challenge_call(CardChannel _cc, Resizable_buffer _buf_4_host_arg) throws CardException
_cc
- communication channel to the applet, must not be null_buf_4_host_arg
- argument buf_4
CardException
- in case of communication errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |