BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
fc::diffie_hellman Struct Reference

#include <dh.hpp>

Public Member Functions

 diffie_hellman ()
 
bool generate_params (int s, uint8_t g)
 
bool generate_pub_key ()
 
bool compute_shared_key (const char *buf, uint32_t s)
 
bool compute_shared_key (const std::vector< char > &pubk)
 
bool validate ()
 

Public Attributes

std::vector< char > p
 
std::vector< char > pub_key
 
std::vector< char > priv_key
 
std::vector< char > shared_key
 
bool valid
 
uint8_t g
 

Detailed Description

Definition at line 8 of file dh.hpp.

Constructor & Destructor Documentation

fc::diffie_hellman::diffie_hellman ( )
inline

Definition at line 9 of file dh.hpp.

Member Function Documentation

bool fc::diffie_hellman::compute_shared_key ( const char *  buf,
uint32_t  s 
)

Definition at line 89 of file dh.cpp.

bool fc::diffie_hellman::compute_shared_key ( const std::vector< char > &  pubk)

Definition at line 123 of file dh.cpp.

bool fc::diffie_hellman::generate_params ( int  s,
uint8_t  g 
)

Definition at line 13 of file dh.cpp.

bool fc::diffie_hellman::generate_pub_key ( )

Definition at line 48 of file dh.cpp.

bool fc::diffie_hellman::validate ( )

Definition at line 32 of file dh.cpp.

Member Data Documentation

uint8_t fc::diffie_hellman::g

Definition at line 21 of file dh.hpp.

std::vector<char> fc::diffie_hellman::p

Definition at line 16 of file dh.hpp.

std::vector<char> fc::diffie_hellman::priv_key

Definition at line 18 of file dh.hpp.

std::vector<char> fc::diffie_hellman::pub_key

Definition at line 17 of file dh.hpp.

std::vector<char> fc::diffie_hellman::shared_key

Definition at line 19 of file dh.hpp.

bool fc::diffie_hellman::valid

Definition at line 20 of file dh.hpp.


The documentation for this struct was generated from the following files: