OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM Class Reference

#include <DiffieHellman.h>

Inheritance diagram for OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ECDH_PRIME_256_V1_CEUM ()
 ~ECDH_PRIME_256_V1_CEUM ()
int init ()
int pub_key (DDS::OctetSeq &dst)
int compute_shared_secret (const DDS::OctetSeq &pub_key)
const char * kagree_algo () const

Detailed Description

Definition at line 73 of file DiffieHellman.h.


Constructor & Destructor Documentation

OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::ECDH_PRIME_256_V1_CEUM (  ) 

Definition at line 223 of file DiffieHellman.cpp.

References init().

00223 { init(); }

Here is the call graph for this function:

OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::~ECDH_PRIME_256_V1_CEUM (  ) 

Definition at line 225 of file DiffieHellman.cpp.

00225 {}


Member Function Documentation

int OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::compute_shared_secret ( const DDS::OctetSeq pub_key  )  [virtual]
Returns:
int 0 on success; 1 on failure.

Implements OpenDDS::Security::SSL::DHAlgorithm.

Definition at line 424 of file DiffieHellman.cpp.

References OpenDDS::Security::SSL::DHAlgorithm::k_, and OpenDDS::Security::SSL::DHAlgorithm::shared_secret_.

00426   {
00427     ecdh_shared_secret_from_octets secret(k_);
00428     return secret(pub_key, shared_secret_);
00429   }

int OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::init ( void   )  [virtual]
Returns:
int 0 on success; 1 on failure.

Implements OpenDDS::Security::SSL::DHAlgorithm.

Definition at line 293 of file DiffieHellman.cpp.

References OpenDDS::Security::SSL::DHAlgorithm::k_.

Referenced by ECDH_PRIME_256_V1_CEUM().

00294   {
00295     if (k_) return 0;
00296 
00297     ecdh_constructor ecdh;
00298     k_ = ecdh();
00299 
00300     if (k_) {
00301       return 0;
00302 
00303     } else {
00304       return 1;
00305     }
00306   }

Here is the caller graph for this function:

const char* OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::kagree_algo (  )  const [inline, virtual]

Implements OpenDDS::Security::SSL::DHAlgorithm.

Definition at line 94 of file DiffieHellman.h.

00094 { return "ECDH+prime256v1-CEUM"; }

int OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::pub_key ( DDS::OctetSeq dst  )  [virtual]
Returns:
int 0 on success; 1 on failure.

Implements OpenDDS::Security::SSL::DHAlgorithm.

Definition at line 359 of file DiffieHellman.cpp.

References OpenDDS::Security::SSL::DHAlgorithm::k_.

00360   {
00361     ecdh_pubkey_as_octets pubkey(k_);
00362     return pubkey(dst);
00363   }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1