Botan
1.10.9
|
#include <tss.h>
Public Member Functions | |
bool | initialized () const |
RTSS_Share () | |
RTSS_Share (const std::string &hex_input) | |
byte | share_id () const |
size_t | size () const |
std::string | to_string () const |
Static Public Member Functions | |
static SecureVector< byte > | reconstruct (const std::vector< RTSS_Share > &shares) |
static std::vector< RTSS_Share > | split (byte M, byte N, const byte secret[], u16bit secret_len, const byte identifier[16], RandomNumberGenerator &rng) |
Botan::RTSS_Share::RTSS_Share | ( | const std::string & | hex_input | ) |
hex_input | the share encoded in hexadecimal |
Definition at line 107 of file tss.cpp.
References Botan::hex_decode().
|
inline |
Definition at line 69 of file tss.h.
Referenced by share_id().
|
static |
shares | the list of shares |
Definition at line 182 of file tss.cpp.
References Botan::make_u16bit(), r, Botan::same_mem(), share_id(), and size().
byte Botan::RTSS_Share::share_id | ( | ) | const |
Definition at line 112 of file tss.cpp.
References initialized().
Referenced by reconstruct().
|
inline |
Definition at line 64 of file tss.h.
Referenced by reconstruct().
|
static |
M | the number of shares needed to reconstruct |
N | the number of shares generated |
secret | the secret to split |
secret_len | the length of the secret |
identifier | the 16 byte share identifier |
rng | the random number generator to use |
Definition at line 126 of file tss.cpp.
References Botan::get_byte(), Botan::SHA_256::name(), Botan::Buffered_Computation::process(), Botan::MemoryRegion< T >::push_back(), Botan::RandomNumberGenerator::randomize(), and Botan::MemoryRegion< T >::size().
std::string Botan::RTSS_Share::to_string | ( | ) | const |
Definition at line 120 of file tss.cpp.
References Botan::hex_encode(), and Botan::MemoryRegion< T >::size().