CDHParameters Class Reference

#include <asymmetrickeys.h>

class CDHParameters : public CBase

Inherits from

  • CDHParameters

    Detailed Description

    Concrete class representing the parameters common to both a Diffie-Hellman (DH) public and private key.

    Member Attribute Documentation

    iG

    RInteger iG[protected]

    The DH parameter, g (the generator)

    X = g^x mod n (note the case sensitivity)

    iN

    RInteger iN[protected]

    The DH parameter, n (a prime number)

    X = g^x mod n (note the case sensitivity)

    Constructor & Destructor Documentation

    CDHParameters ( RInteger &, RInteger & )

    IMPORT_CCDHParameters(RInteger &aN,
    RInteger &aG
    )[protected]

    Constructor

    ParameterDescription
    aNThe DH parameter, n
    aGThe DH parameter, g

    CDHParameters ( void )

    IMPORT_CCDHParameters(void)[protected]

    Default constructor

    ~CDHParameters ( void )

    IMPORT_C~CDHParameters(void)[virtual]

    Destructor

    Member Function Documentation

    G ( void )

    IMPORT_C const TInteger &G(void)const

    Gets the DH parameter, g

    Returns: An integer representing the DH parameter, g

    N ( void )

    IMPORT_C const TInteger &N(void)const

    Gets the DH parameter, n

    Returns: An integer representing the DH parameter, n