Botan 3.5.0
Crypto and TLS for C&
|
Classes | |
class | Chain |
class | Link |
class | Nonce |
class | Response |
class | Roughtime_Error |
struct | Server_Information |
Functions | |
std::array< uint8_t, request_min_size > | encode_request (const Nonce &nonce) |
Nonce | nonce_from_blind (const std::vector< uint8_t > &previous_response, const Nonce &blind) |
std::vector< uint8_t > | online_request (std::string_view uri, const Nonce &nonce, std::chrono::milliseconds timeout) |
std::vector< Server_Information > | servers_from_str (std::string_view str) |
Variables | |
const unsigned | request_min_size = 1024 |
std::array< uint8_t, request_min_size > Botan::Roughtime::encode_request | ( | const Nonce & | nonce | ) |
An Roughtime request.
Definition at line 168 of file roughtime.cpp.
References Botan::Roughtime::Nonce::get_nonce().
Referenced by online_request().
Nonce Botan::Roughtime::nonce_from_blind | ( | const std::vector< uint8_t > & | previous_response, |
const Nonce & | blind ) |
Definition at line 237 of file roughtime.cpp.
References Botan::HashFunction::create_or_throw(), and Botan::Roughtime::Nonce::get_nonce().
Referenced by Botan::Roughtime::Chain::append(), Botan::Roughtime::Chain::next_nonce(), and Botan::Roughtime::Chain::responses().
std::vector< uint8_t > Botan::Roughtime::online_request | ( | std::string_view | url, |
const Nonce & | nonce, | ||
std::chrono::milliseconds | timeout = std::chrono::seconds(3) ) |
Makes an online Roughtime request via UDP and returns the Roughtime response.
url | Roughtime server UDP endpoint (host:port) |
nonce | the nonce to send to the server |
timeout | a timeout on the UDP request |
Definition at line 349 of file roughtime.cpp.
References encode_request(), and Botan::OS::open_socket_udp().
std::vector< Server_Information > Botan::Roughtime::servers_from_str | ( | std::string_view | str | ) |
Definition at line 380 of file roughtime.cpp.
References Botan::base64_decode(), and name.
const unsigned Botan::Roughtime::request_min_size = 1024 |
Definition at line 23 of file roughtime.h.