|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part5.Utilities
Nested Class Summary | |
static class |
Utilities.qResult
A class to hold the results from the q method. |
Method Summary | |
static java.math.BigInteger |
jacobi(java.math.BigInteger n,
java.math.BigInteger a)
A method to evaluate the Jacobi Symbol a/n . |
static java.math.BigInteger |
jl(java.math.BigInteger n,
java.math.BigInteger a)
A method to evaluate the Legendre/Jacobi Symbols a/n
using Algorithm 2.149 of The Handbook of Applied Cryptography. |
static java.math.BigInteger |
legendre(java.math.BigInteger p,
java.math.BigInteger a)
A method to evaluate the Legendre Symbol a/p where p is an odd prime. |
static java.util.AbstractList |
make1(int m,
java.math.BigInteger n,
java.math.BigInteger seed)
A method to generate a random big integer value with m bits using
a BBS Pseudo-Random Bit Generator. |
static java.math.BigInteger |
make2(int m,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger x)
A method to recreate a random big integer with m bits produced by make1() given the primes
p and q and the last value x (i.e., xm-1) of the internal sequence
generated by the BBS Pseudo-Random Bit Generator. |
static Utilities.qResult |
q(java.math.BigInteger n)
A method to compute quadratic residues and nonresidues for n . |
static boolean |
qTest(java.math.BigInteger n,
java.math.BigInteger x,
java.util.AbstractSet q)
A method to determine if x in a quaratic residue (or nonresidue) modulo
n where q is the set of quaratic residues (or nonresidues)
restricted to Zn* . |
static java.math.BigInteger |
rt(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger x)
A method to compute rtn(x) where n= p *q . |
static java.math.BigInteger |
sq(java.math.BigInteger n,
java.math.BigInteger x)
A method to compute sqn(x). |
static java.util.AbstractSet |
sRoot(java.math.BigInteger n,
java.math.BigInteger x)
A method to return the square roots of x modulo n . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Utilities.qResult q(java.math.BigInteger n) throws java.lang.Exception
n
.
java.lang.Exception
public static boolean qTest(java.math.BigInteger n, java.math.BigInteger x, java.util.AbstractSet q) throws java.lang.Exception
x
in a quaratic residue (or nonresidue) modulo
n
where q
is the set of quaratic residues (or nonresidues)
restricted to Zn*
.
java.lang.Exception
public static java.util.AbstractSet sRoot(java.math.BigInteger n, java.math.BigInteger x) throws java.lang.Exception
x
modulo n
.
java.lang.Exception
public static java.math.BigInteger legendre(java.math.BigInteger p, java.math.BigInteger a) throws java.lang.Exception
a/p
where p
is an odd prime.
java.lang.Exception
public static java.math.BigInteger jacobi(java.math.BigInteger n, java.math.BigInteger a) throws java.lang.Exception
a/n
.
java.lang.Exception
public static java.math.BigInteger jl(java.math.BigInteger n, java.math.BigInteger a) throws java.lang.Exception
a/n
using Algorithm 2.149 of The Handbook of Applied Cryptography.
java.lang.Exception
public static java.math.BigInteger sq(java.math.BigInteger n, java.math.BigInteger x) throws java.lang.Exception
java.lang.Exception
public static java.math.BigInteger rt(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger x) throws java.lang.Exception
p
*q
.
java.lang.Exception
public static java.util.AbstractList make1(int m, java.math.BigInteger n, java.math.BigInteger seed) throws java.lang.Exception
m
bits using
a BBS Pseudo-Random Bit Generator. The result is a list consisting of the
random number and the last value (xm-1) of the internal sequence
generated by the BBS Pseudo-Random Bit Generator.
n
- the product of the two prime p
and q
used in make2()
.
java.lang.Exception
public static java.math.BigInteger make2(int m, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger x) throws java.lang.Exception
m
bits produced by make1()
given the primes
p
and q
and the last value x
(i.e., xm-1) of the internal sequence
generated by the BBS Pseudo-Random Bit Generator.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |