openikev2::DiffieHellman Class Reference

This abstract class represents a Diffie-Hellman exchange. More...

#include <diffiehellman.h>

List of all members.

Public Member Functions

virtual ByteArraygetPublicKey () const=0
 Gets the public key.
virtual void generateSharedSecret (const ByteArray &peer_public_key)=0
 Generates the DiffieHellman shared secret.
virtual ByteArraygetSharedSecret () const=0
 Gets the shared secret.

Public Attributes

Enums::DH_ID group_id
 Diffie-Hellman group id.


Detailed Description

This abstract class represents a Diffie-Hellman exchange.

Author:
Alejandro Perez Mendez, Pedro J. Fernandez Ruiz <alejandro_perez@dif.um.es, pedroj.fernandez@dif.um.es>


Member Function Documentation

virtual ByteArray& openikev2::DiffieHellman::getPublicKey (  )  const [pure virtual]

Gets the public key.

Returns:
The public key

virtual void openikev2::DiffieHellman::generateSharedSecret ( const ByteArray peer_public_key  )  [pure virtual]

Generates the DiffieHellman shared secret.

Parameters:
peer_public_key The public key of the peer.

virtual ByteArray& openikev2::DiffieHellman::getSharedSecret (  )  const [pure virtual]

Gets the shared secret.

It is needed to call generateSharedSecret() before call this method

Returns:
The shared secret


Generated on Fri Jul 27 11:04:50 2007 for libopenikev2 by  doxygen 1.5.1