|
Botan 3.13.0
Crypto and TLS for C&
|
#include <roughtime.h>
Public Member Functions | |
| void | append (const Link &new_link, size_t max_chain_size) |
| Chain ()=default | |
| Chain (std::string_view str) | |
| const std::vector< Link > & | links () const |
| Nonce | next_nonce (const Nonce &blind) const |
| std::vector< Response > | responses () const |
| std::string | to_string () const |
A chain of Roughtime responses
Definition at line 207 of file roughtime.h.
|
default |
|
explicit |
Parse a chain from its string representation
| str | the chain to parse |
Definition at line 254 of file roughtime.cpp.
References Botan::base64_decode(), and Botan::unlock().
| void Botan::Roughtime::Chain::append | ( | const Link & | new_link, |
| size_t | max_chain_size ) |
Append a link, dropping the oldest links if needed
| new_link | the link to append |
| max_chain_size | the maximum number of links to retain |
Definition at line 316 of file roughtime.cpp.
References Botan::Roughtime::nonce_from_blind(), and Botan::Roughtime::Link::nonce_or_blind().
|
inline |
Access the links of this chain
Definition at line 224 of file roughtime.h.
Compute the nonce to use for the next request
| blind | the blind to use |
Definition at line 312 of file roughtime.cpp.
References Botan::Roughtime::nonce_from_blind().
| std::vector< Response > Botan::Roughtime::Chain::responses | ( | ) | const |
Parse and validate every response in the chain
Definition at line 298 of file roughtime.cpp.
References Botan::Roughtime::Response::from_bits(), Botan::Roughtime::nonce_from_blind(), and responses().
Referenced by responses().
| std::string Botan::Roughtime::Chain::to_string | ( | ) | const |
Format this chain as a string
Definition at line 339 of file roughtime.cpp.
References Botan::base64_encode().