Botan 3.5.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 |
UUID & | operator= (const UUID &other)=default |
bool | operator== (const UUID &other) const |
std::string | to_string () const |
UUID () | |
UUID (const std::vector< uint8_t > &blob) | |
UUID (const UUID &other)=default | |
UUID (RandomNumberGenerator &rng) | |
UUID (std::string_view uuid_str) | |
|
inline |
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().
|
default |
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 |
Definition at line 57 of file uuid.h.
Referenced by Botan::TPM_PrivateKey::register_key(), and to_string().
|
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 Botan::TPM_PrivateKey::register_key().