|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.bignat.Inverse_mod_256
class Inverse_mod_256
Modular inverse modulo 256 for Java Card (currently unused). Can be
used to compute Modulus.last_digit_inverse on the Card.
Currently unused, because the last_digit_inverse is much more
conviniently computed in Host_modulus.
Static class.
For a number of general topics see also the package description.
| Constructor Summary | |
|---|---|
protected |
Inverse_mod_256()
Static class, object construction disabled. |
| Method Summary | |
|---|---|
static short |
get_inverse(short n)
Modular inverse modulo 256. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Inverse_mod_256()
| Method Detail |
|---|
public static short get_inverse(short n)
x such that x * n == 1 (modulo 256). Uses the iterative method of the
extended
eucledian algorithm.
The inverse does only exists for odd arguments.
n - n
n modulo 256
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||