|
Monero
|
#include <algorithm>#include <functional>#include <boost/endian/conversion.hpp>#include <boost/asio/ip/udp.hpp>#include <boost/date_time/posix_time/posix_time_types.hpp>#include <boost/format.hpp>#include <boost/algorithm/string/predicate.hpp>#include "common/apply_permutation.h"#include "transport.hpp"#include "messages/messages-common.pb.h"
Classes | |
| struct | hw::trezor::trezor_usb_desc_t |
Namespaces | |
| namespace | hw |
| namespace | hw::trezor |
Macros | |
| #define | MONERO_DEFAULT_LOG_CATEGORY "device.trezor.transport" |
| #define | PROTO_HEADER_SIZE 6 |
| #define | REPLEN 64 |
Typedefs | |
| using | json = rapidjson::Document |
Functions | |
| bool | hw::trezor::t_serialize (const std::string &in, std::string &out) |
| bool | hw::trezor::t_serialize (const epee::wipeable_string &in, std::string &out) |
| bool | hw::trezor::t_serialize (const json_val &in, std::string &out) |
| std::string | hw::trezor::t_serialize (const json_val &in) |
| bool | hw::trezor::t_deserialize (const std::string &in, std::string &out) |
| bool | hw::trezor::t_deserialize (std::string &in, epee::wipeable_string &out) |
| bool | hw::trezor::t_deserialize (const std::string &in, json &out) |
| static std::string | hw::trezor::json_get_string (const rapidjson::Value &in) |
| uint64_t | hw::trezor::pack_version (uint32_t major, uint32_t minor, uint32_t patch) |
| static ssize_t | hw::trezor::get_device_idx (uint16_t id_vendor, uint16_t id_product) |
| static bool | hw::trezor::is_device_supported (ssize_t device_idx) |
| static size_t | hw::trezor::message_size (const google::protobuf::Message &req) |
| static size_t | hw::trezor::serialize_message_buffer_size (size_t msg_size) |
| static void | hw::trezor::serialize_message_header (void *buff, uint16_t tag, uint32_t len) |
| static void | hw::trezor::deserialize_message_header (const void *buff, uint16_t &tag, uint32_t &len) |
| static void | hw::trezor::serialize_message (const google::protobuf::Message &req, size_t msg_size, uint8_t *buff, size_t buff_size) |
| static void | hw::trezor::assert_port_number (uint32_t port) |
| static void | hw::trezor::parse_udp_path (std::string &host, int &port, std::string path) |
| void | hw::trezor::enumerate (t_transport_vect &res) |
| void | hw::trezor::sort_transports_by_env (t_transport_vect &res) |
| std::shared_ptr< Transport > | hw::trezor::transport (const std::string &path) |
| void | hw::trezor::throw_failure_exception (const messages::common::Failure *failure) |
| std::ostream & | hw::trezor::operator<< (std::ostream &o, hw::trezor::Transport const &t) |
| std::ostream & | hw::trezor::operator<< (std::ostream &o, std::shared_ptr< hw::trezor::Transport > const &t) |
Variables | |
| static trezor_usb_desc_t | hw::trezor::TREZOR_DESC_T1 = {1, 0x534C, 0x0001} |
| static trezor_usb_desc_t | hw::trezor::TREZOR_DESC_T2 = {2, 0x1209, 0x53C1} |
| static trezor_usb_desc_t | hw::trezor::TREZOR_DESC_T2_BL = {3, 0x1209, 0x53C0} |
| static trezor_usb_desc_t | hw::trezor::TREZOR_DESCS [] |
| static size_t | hw::trezor::TREZOR_DESCS_LEN = sizeof(TREZOR_DESCS)/sizeof(TREZOR_DESCS[0]) |
| #define MONERO_DEFAULT_LOG_CATEGORY "device.trezor.transport" |
| #define PROTO_HEADER_SIZE 6 |
| #define REPLEN 64 |
| using json = rapidjson::Document |