#include <roughtime.h>
Definition at line 32 of file roughtime.h.
◆ Nonce() [1/4]
| Botan::Roughtime::Nonce::Nonce |
( |
| ) |
|
|
default |
◆ Nonce() [2/4]
| Botan::Roughtime::Nonce::Nonce |
( |
const std::vector< uint8_t > & | nonce | ) |
|
|
explicit |
Definition at line 158 of file roughtime.cpp.
158 : m_nonce{} {
159 if(nonce.size() != 64) {
160 throw Invalid_Argument("Roughtime nonce must be 64 bytes long");
161 }
163}
constexpr void typecast_copy(ToR &&out, const FromR &in)
References Botan::typecast_copy().
◆ Nonce() [3/4]
Definition at line 165 of file roughtime.cpp.
165: m_nonce(rng.random_array<64>()) {}
◆ Nonce() [4/4]
| Botan::Roughtime::Nonce::Nonce |
( |
const std::array< uint8_t, 64 > & | nonce | ) |
|
|
inlineexplicit |
◆ get_nonce()
| const std::array< uint8_t, 64 > & Botan::Roughtime::Nonce::get_nonce |
( |
| ) |
const |
|
inline |
◆ operator==()
| bool Botan::Roughtime::Nonce::operator== |
( |
const Nonce & | rhs | ) |
const |
|
inline |
The documentation for this class was generated from the following files: