BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ diffie_hellman()

fc::diffie_hellman::diffie_hellman ( )

Definition at line 9 of file dh.hpp.

Member Function Documentation

◆ compute_shared_key() [1/2]

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

Definition at line 89 of file dh.cpp.

◆ compute_shared_key() [2/2]

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

Definition at line 123 of file dh.cpp.

◆ generate_params()

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

Definition at line 13 of file dh.cpp.

◆ generate_pub_key()

bool fc::diffie_hellman::generate_pub_key ( )

Definition at line 48 of file dh.cpp.

◆ validate()

bool fc::diffie_hellman::validate ( )

Definition at line 32 of file dh.cpp.

Member Data Documentation

◆ g

uint8_t fc::diffie_hellman::g

Definition at line 21 of file dh.hpp.

◆ p

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

Definition at line 16 of file dh.hpp.

◆ priv_key

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

Definition at line 18 of file dh.hpp.

◆ pub_key

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

Definition at line 17 of file dh.hpp.

◆ shared_key

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

Definition at line 19 of file dh.hpp.

◆ valid

bool fc::diffie_hellman::valid

Definition at line 20 of file dh.hpp.

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