Botan 3.5.0
Crypto and TLS for C&
|
#include <roughtime.h>
Public Types | |
using | microseconds32 = std::chrono::duration<uint32_t, std::micro> |
using | microseconds64 = std::chrono::duration<uint64_t, std::micro> |
using | sys_microseconds64 = std::chrono::time_point<std::chrono::system_clock, microseconds64> |
Public Member Functions | |
sys_microseconds64 | utc_midpoint () const |
microseconds32 | utc_radius () const |
bool | validate (const Ed25519_PublicKey &pk) const |
Static Public Member Functions | |
static Response | from_bits (const std::vector< uint8_t > &response, const Nonce &nonce) |
An Roughtime response.
Definition at line 57 of file roughtime.h.
using Botan::Roughtime::Response::microseconds32 = std::chrono::duration<uint32_t, std::micro> |
Definition at line 59 of file roughtime.h.
using Botan::Roughtime::Response::microseconds64 = std::chrono::duration<uint64_t, std::micro> |
Definition at line 60 of file roughtime.h.
using Botan::Roughtime::Response::sys_microseconds64 = std::chrono::time_point<std::chrono::system_clock, microseconds64> |
Definition at line 61 of file roughtime.h.
|
static |
Definition at line 175 of file roughtime.cpp.
References Botan::Roughtime::Nonce::get_nonce(), Botan::typecast_copy(), and Botan::verify_signature().
Referenced by Botan::Roughtime::Chain::responses().
|
inline |
Definition at line 67 of file roughtime.h.
|
inline |
Definition at line 69 of file roughtime.h.
bool Botan::Roughtime::Response::validate | ( | const Ed25519_PublicKey & | pk | ) | const |
Definition at line 229 of file roughtime.cpp.
References Botan::cast_char_ptr_to_uint8(), Botan::PK_Verifier::check_signature(), and Botan::PK_Verifier::update().