gnu.crypto.key.dh

Class GnuDHKeyPairGenerator

public class GnuDHKeyPairGenerator extends Object implements IKeyPairGenerator

An implementation of a Diffie-Hellman keypair generator.

Reference:

  1. Diffie-Hellman Key Agreement Method
    Eric Rescorla.

Version: $Revision: 1.2 $

Field Summary
static StringDH_PARAMETERS
Property name of an optional DHGenParameterSpec instance to use for this generator.
static StringEXPONENT_SIZE
Property name of the size in bits (Integer) of the private exponent (x).
static StringPRIME_SIZE
Property name of the size in bits (Integer) of the public prime (p).
static StringSOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use.
Method Summary
KeyPairgenerate()
Stringname()
voidsetup(Map attributes)

Field Detail

DH_PARAMETERS

public static final String DH_PARAMETERS
Property name of an optional DHGenParameterSpec instance to use for this generator.

EXPONENT_SIZE

public static final String EXPONENT_SIZE
Property name of the size in bits (Integer) of the private exponent (x).

PRIME_SIZE

public static final String PRIME_SIZE
Property name of the size in bits (Integer) of the public prime (p).

SOURCE_OF_RANDOMNESS

public static final String SOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use. The default is to use a classloader singleton from PRNG.

Method Detail

generate

public KeyPair generate()

name

public String name()

setup

public void setup(Map attributes)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.