Botan  2.7.0
Crypto and TLS for C++11
Namespaces | Functions
ct_utils.h File Reference
#include <botan/secmem.h>
#include <vector>

Go to the source code of this file.

Namespaces

 Botan
 
 Botan::CT
 

Functions

template<typename T >
void Botan::CT::cond_zero_mem (T cond, T *array, size_t elems)
 
template<typename T >
T Botan::CT::conditional_copy_mem (T value, T *to, const T *from0, const T *from1, size_t elems)
 
template<typename T >
T Botan::CT::expand_mask (T x)
 
template<typename T >
T Botan::CT::expand_top_bit (T a)
 
template<typename T >
T Botan::CT::is_equal (T x, T y)
 
template<typename T >
T Botan::CT::is_less (T a, T b)
 
template<typename T >
T Botan::CT::is_lte (T a, T b)
 
template<typename T >
T Botan::CT::is_zero (T x)
 
template<typename T >
void Botan::CT::poison (const T *p, size_t n)
 
template<typename T >
T Botan::CT::select (T mask, T from0, T from1)
 
template<typename T >
T Botan::CT::select2 (T mask0, T val0, T mask1, T val1, T val2)
 
template<typename T >
T Botan::CT::select3 (T mask0, T val0, T mask1, T val1, T mask2, T val2, T val3)
 
secure_vector< uint8_t > Botan::CT::strip_leading_zeros (const uint8_t in[], size_t length)
 
secure_vector< uint8_t > Botan::CT::strip_leading_zeros (const secure_vector< uint8_t > &in)
 
template<typename T >
void Botan::CT::unpoison (const T *p, size_t n)
 
template<typename T >
void Botan::CT::unpoison (T &p)
 
template<typename PredT , typename ValT >
ValT Botan::CT::val_or_zero (PredT pred_val, ValT val)