plebble
|
#include <peer_t.h>
Public Types | |
typedef crypto::ec::sigmsg_hasher_t | sigmsg_hasher_t |
typedef sigmsg_hasher_t::value_type | sigmsg_hash_t |
Public Member Functions | |
handshake_t (role_t role, uint16_t pport) | |
handshake_t () | |
role_t | parse_role () const |
uint16_t | parse_version_fingerprint () const |
uint16_t | parse_pport () const |
uint16_t | parse_pin () const |
void | dump (const string &pfx, ostream &os) const |
Public Attributes | |
sigmsg_hash_t | msg |
Package Functions | |
handshake_t (role_t role, uint16_t pport) | |
handshake_t () | |
void | encode (uint16_t v, int offset) |
uint16_t | parse_version_fingerprint () |
uint16_t | parse_pport () |
role_t | parse_role () |
Package Attributes | |
sha256.hash_t | msg =new sha256.hash_t() |
c::handshake_t::handshake_t | ( | role_t | role, |
uint16_t | pport | ||
) |
References us.vcs::codehash, log, msg, us::gov::crypto::sha256::output_size, parse_pport(), parse_role(), parse_version_fingerprint(), and us::gov::id::peer_t::role.
References log.
|
inlinepackage |
References us.gov.id.peer_t.role_t.code(), encode(), msg, us::gov::id::peer_t.role, and us::gov::id::peer_t.version_fingerprint.
|
inlinepackage |
void c::handshake_t::dump | ( | const string & | pfx, |
ostream & | os | ||
) | const |
References msg, parse_pin(), parse_pport(), parse_role(), parse_version_fingerprint(), us::gov::id::peer_t::role_device, us::gov::id::peer_t::role_peer, and us::gov::id::peer_t::rolestr.
|
inlinepackage |
uint16_t c::handshake_t::parse_pin | ( | ) | const |
References parse_pport().
Referenced by dump().
|
inlinepackage |
References msg.
uint16_t c::handshake_t::parse_pport | ( | ) | const |
References msg.
Referenced by dump(), handshake_t(), parse_pin(), us::gov::id::peer_t::process_challenge_response(), and us::gov::id::peer_t::process_peer_challenge().
|
inlinepackage |
c::role_t c::handshake_t::parse_role | ( | ) | const |
References msg.
Referenced by dump(), handshake_t(), us::gov::id::peer_t::initiate_dialogue(), us::gov::id::peer_t::process_peer_challenge(), and us::gov::id::peer_t::process_request().
|
inlinepackage |
References msg.
uint16_t c::handshake_t::parse_version_fingerprint | ( | ) | const |
References msg.
Referenced by dump(), and handshake_t().
sigmsg_hash_t us::gov::id::peer_t::handshake_t::msg |
|
package |