com.motorola.iden.crypto.spec
Class DHParameterSpec

java.lang.Object
  |
  +--com.motorola.iden.crypto.spec.DHParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class DHParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies the elliptic curves used to generate elliptic curve key-pairs.

MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2002 - 2004 Motorola, Inc. All Rights Reserved.

See Also:
[AlgorithmParameterSpec]

Constructor Summary
DHParameterSpec(byte[] p1, byte[] g1, byte[] q1)
          Constructs a parameter set for Diffie-Hellman, using a prime modulus p, a base generator g and q which is a prive factor of p-1 such that p = jq+1 and q>2^(m-1). m is the bit length of q.
 
Method Summary
 byte[] getG()
          Returns the base generator g.
 byte[] getP()
          Returns the prime modulus p.
 byte[] getQ()
          Returns the prime factor q.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHParameterSpec

public DHParameterSpec(byte[] p1,
                       byte[] g1,
                       byte[] q1)
Constructs a parameter set for Diffie-Hellman, using a prime modulus p, a base generator g and q which is a prive factor of p-1 such that p = jq+1 and q>2^(m-1). m is the bit length of q. See ANSI X9.42
Parameters:
p1 - the prime modulus
g1 - the base generator
q1 - the prime factor
Method Detail

getP

public byte[] getP()
Returns the prime modulus p.
Returns:
the prime modulus p

getQ

public byte[] getQ()
Returns the prime factor q.
Returns:
the prime factor q

getG

public byte[] getG()
Returns the base generator g.
Returns:
the base generator g