|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.test.Performance_mult_card
public class Performance_mult_card
Card/applet methods for testing Montgomery multiplication, demontgomerization and division.
Constructor Summary | |
---|---|
Performance_mult_card()
Empty constructor. |
Method Summary | |
---|---|
void |
demontgomerize(Bignat n,
Modulus m,
Bignat result,
short rounds)
Test Demontgomerization. |
void |
mont_mult(Bignat fac_1,
Bignat fac_2,
Modulus m,
Bignat result,
short rounds)
Test Montgomery multiplication. |
void |
remainder_divide(Bignat divident,
Bignat divisor,
Bignat remainder,
Bignat result,
short rounds)
Test division and remainder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Performance_mult_card()
Method Detail |
---|
public void mont_mult(Bignat fac_1, Bignat fac_2, Modulus m, Bignat result, short rounds)
rounds
calls to
Bignat.montgomery_mult
.
fac_1
- first factorfac_2
- second factorm
- modulusresult
- result referencerounds
- number of multiplication roundspublic void demontgomerize(Bignat n, Modulus m, Bignat result, short rounds)
rounds
calls to Bignat.demontgomerize
.
n
- number to demontgomerizem
- modulusresult
- result referencerounds
- number of demontgomerization roundspublic void remainder_divide(Bignat divident, Bignat divisor, Bignat remainder, Bignat result, short rounds)
rounds
calls to
Bignat.remainder_divide
.
divident
- divident argumentdivisor
- divisor argumentremainder
- reference for the remainder resultresult
- reference for the quotient result (may be null)rounds
- number of division rounds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |