#include <DiffieHellman.h>
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 |
Definition at line 73 of file DiffieHellman.h.
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(); }
OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::~ECDH_PRIME_256_V1_CEUM | ( | ) |
Definition at line 225 of file DiffieHellman.cpp.
int OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::compute_shared_secret | ( | const DDS::OctetSeq & | pub_key | ) | [virtual] |
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] |
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 }
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.
int OpenDDS::Security::SSL::ECDH_PRIME_256_V1_CEUM::pub_key | ( | DDS::OctetSeq & | dst | ) | [virtual] |
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 }