Botan 3.9.0
Crypto and TLS for C&
|
#include <uuid.h>
Public Member Functions | |
const std::vector< uint8_t > & | binary_value () const |
bool | is_valid () const |
bool | operator!= (const UUID &other) const |
bool | operator== (const UUID &other) const |
std::string | to_string () const |
UUID ()=default | |
BOTAN_FUTURE_EXPLICIT | UUID (const std::vector< uint8_t > &blob) |
BOTAN_FUTURE_EXPLICIT | UUID (RandomNumberGenerator &rng) |
BOTAN_FUTURE_EXPLICIT | UUID (std::string_view uuid_str) |
|
default |
Create an uninitialized UUID object
References BOTAN_FUTURE_EXPLICIT, to_string(), and UUID().
Referenced by operator!=(), operator==(), and UUID().
Botan::UUID::UUID | ( | RandomNumberGenerator & | rng | ) |
Create a random UUID
Definition at line 17 of file uuid.cpp.
References Botan::RandomNumberGenerator::randomize().
Botan::UUID::UUID | ( | const std::vector< uint8_t > & | blob | ) |
Load a UUID from a 16 byte vector
Definition at line 28 of file uuid.cpp.
References Botan::hex_encode().
Botan::UUID::UUID | ( | std::string_view | uuid_str | ) |
Decode a UUID string
Definition at line 36 of file uuid.cpp.
References Botan::fmt(), and Botan::hex_decode().
|
inline |
|
inline |
|
inline |
|
inline |
std::string Botan::UUID::to_string | ( | ) | const |
Convert the UUID to a string
Definition at line 58 of file uuid.cpp.
References Botan::hex_encode(), and is_valid().
Referenced by UUID().