#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 | ) |
|
Definition at line 153 of file roughtime.cpp.
153 {
154 if(nonce.size() != 64) {
155 throw Invalid_Argument("Roughtime nonce must be 64 bytes long");
156 }
157 m_nonce = typecast_copy<std::array<uint8_t, 64>>(nonce.data());
158}
◆ Nonce() [3/4]
◆ Nonce() [4/4]
Botan::Roughtime::Nonce::Nonce |
( |
const std::array< uint8_t, 64 > & | nonce | ) |
|
|
inline |
◆ 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 |
Definition at line 40 of file roughtime.h.
40{ return m_nonce == rhs.m_nonce; }
The documentation for this class was generated from the following files: