|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.test.Exponent_perf_card
public class Exponent_perf_card
Methods for the vector_exp protocol.
Field Summary | |
---|---|
Bignat |
result
The result. |
private RSA_exponent |
rsa_exponent
The cipher used for exponentiations. |
private RSA_exponent |
square_exponent
The cipher for the squarings if squared multiplication is used. |
private Bignat |
temp_1
First temporary. |
private Bignat |
temp_2
Second temporary. |
private Bignat |
temp_3
Third temporary. |
Constructor Summary | |
---|---|
Exponent_perf_card(Bignats bignats)
Constructor. |
Method Summary | |
---|---|
void |
vector_exp_init(Modulus modulus,
short variant,
boolean keep_modulus)
Initialization method of the vector_exp_init step. |
void |
vector_exp(Vector base,
Vector exponent,
Modulus modulus,
short base_factor_size,
Vector base_factors,
Bignat one_or_correction,
short variant,
boolean doit)
Computation method for the vector_exp_1 and vector_exp_2 steps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final RSA_exponent rsa_exponent
Bignats.rsa_exponent
.
private final RSA_exponent square_exponent
Bignats.square_exp
.
public final Bignat result
Bignats.r_1
. Must contain the same
reference as Exponent_perf_description.result
.
private final Bignat temp_1
Bignats.r_2
.
private final Bignat temp_2
Bignats.r_3
.
private final Bignat temp_3
Bignats.r_4
.
Constructor Detail |
---|
public Exponent_perf_card(Bignats bignats)
bignats
.
bignats
- data allocation instanceMethod Detail |
---|
public void vector_exp_init(Modulus modulus, short variant, boolean keep_modulus)
modulus
- modulusvariant
- multi-power implementation to usekeep_modulus
- true if the modulus is the same as in the
last test and it therefore should not be installed again; false
to reinstall the modulus in all the ciphers.public void vector_exp(Vector base, Vector exponent, Modulus modulus, short base_factor_size, Vector base_factors, Bignat one_or_correction, short variant, boolean doit)
doit
is true. Stores the
moduluar multi-power bases[0]^exponent[0] *
bases[1]^exponent[1] ... mod modulus
in result
.
base
- the basesexponent
- the exponentsmodulus
- modulusbase_factor_size
- number of bases for which base_factors
contains precomputed products (only relevant for
the PURE_JAVA variant)base_factors
- the precomputed products of the basesone_or_correction
- a montgomerized one or a suitable
Montgomery correction factorvariant
- the implementation variant to use, 0 for Exponent_perf_host.Vector_exponent_variant.PURE_JAVA
, 1 for
Exponent_perf_host.Vector_exponent_variant.MONT_RSA
, 2
for Exponent_perf_host.Vector_exponent_variant.SQUARED_RSA
doit
- if false skip to call to the multi-power method to
measure the transmission overhead
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |