DH | AlgorithmParameterGenerator |
BigInteger p
[read] - the prime modulus, p
BigInteger g
[read] - the base, g
BigInteger order
[optional, read] - the order of the subgroup generated
by g (see comment below)
order
parameter is present, then encryption or key agreement
will be done in the subgroup of the given order generated by g.
I.e. the random value k used to calculate g^{k} will be a
"short exponent" in the range [1, order]. Implementations MAY exclude 1 and order
from this range, if the definition of the encryption or key agreement algorithm
allows it (since they occur with negligable probability, this will not affect security).
order
, if present, should be at least 2^{160},
and preferably prime.
DSA | AlgorithmParameterGenerator |
BigInteger p
[read] - the prime modulus, p
BigInteger q
[read] - a prime factor of p-1, q
BigInteger g
[read] - h^{(p-1)/q} mod p,
where h is less than p-1 and g > 1
Modulus | Seed | Counter |
512 bits | b869c82b 35d70e1b 1ff91b28 e37a62ec dc34409b
| 123 |
768 bits | 77d0f8c4 dad15eb8 c4f2f8d6 726cefd9 6d5bb399
| 263 |
1024 bits | 8d515589 4229d5e6 89ee01e6 018a237e 2cae64cd
| 92 |
These seed values come from Appendix B of Sun/Javasoft's JCE specification.
ElgamalSig | AlgorithmParameterGenerator |
BigInteger p
[read] - the prime modulus, p
BigInteger g
[read] - the base, g
Author: David Hopwood <david.hopwood@zetnet.co.uk> Current maintainer: David Hopwood <david.hopwood@zetnet.co.uk> Copyright © 1995-2001 The Cryptix Foundation Limited and David Hopwood. All rights reserved. Cryptix is a trademark of The Cryptix Foundation Limited. |