CCF
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions | Variables
sharing.cpp File Reference
#include "sharing.h"
#include "ccf/crypto/entropy.h"
#include <stdexcept>

Namespaces

namespace  ccf
 
namespace  ccf::crypto
 
namespace  ccf::crypto::sharing
 

Typedefs

using ccf::crypto::sharing::element = uint64_t
 

Functions

element ccf::crypto::sharing::ct_reduce (element x)
 
void ccf::crypto::sharing::sample_secret_and_shares (Share &raw_secret, const std::span< Share > &shares, size_t threshold)
 
void ccf::crypto::sharing::recover_unauthenticated_secret (Share &raw_secret, const std::span< Share const > &shares, size_t threshold)
 

Variables

constexpr size_t ccf::crypto::sharing::SHIFT_OFFSET = 31
 
constexpr element ccf::crypto::sharing::prime