Botan
1.10.16
|
Functions | |
template<typename T > | |
void | cond_zero_mem (T cond, T *array, size_t elems) |
template<typename T > | |
void | conditional_copy_mem (T value, T *to, const T *from0, const T *from1, size_t elems) |
template<typename T > | |
T | expand_mask (T x) |
template<typename T > | |
T | expand_top_bit (T a) |
template<typename T > | |
T | is_equal (T x, T y) |
template<typename T > | |
T | is_less (T x, T y) |
template<typename T > | |
T | is_lte (T x, T y) |
template<typename T > | |
T | is_zero (T x) |
template<typename T > | |
T | max (T a, T b) |
template<typename T > | |
T | min (T a, T b) |
template<typename T > | |
T | select (T mask, T from0, T from1) |
template<typename PredT , typename ValT > | |
ValT | val_or_zero (PredT pred_val, ValT val) |
|
inline |
|
inline |
|
inline |
Definition at line 33 of file ct_utils.h.
Referenced by Botan::bigint_cnd_abs(), Botan::bigint_cnd_add(), Botan::bigint_cnd_sub(), Botan::bigint_cnd_swap(), cond_zero_mem(), conditional_copy_mem(), and is_zero().
|
inline |
Definition at line 114 of file ct_utils.h.
|
inline |
Definition at line 63 of file ct_utils.h.
References is_zero().
|
inline |
Definition at line 69 of file ct_utils.h.
|
inline |
Definition at line 79 of file ct_utils.h.
|
inline |
Definition at line 57 of file ct_utils.h.
References expand_mask().
Referenced by is_equal(), Botan::BigInt::is_nonzero(), and Botan::PointGFp::negate().
|
inline |
Definition at line 120 of file ct_utils.h.
References expand_top_bit(), and select().
Referenced by Botan::OpenPGP_S2K::derive_key(), Botan::dl_work_factor(), Botan::multi_exponentiate(), Botan::operator+(), Botan::BigInt::operator+=(), Botan::operator-(), Botan::BigInt::operator-=(), Botan::operator^(), and Botan::Device_EntropySource::poll().
|
inline |
Definition at line 127 of file ct_utils.h.
References expand_top_bit(), and select().
Referenced by Botan::Base64_Encoder::Base64_Encoder(), Botan::Keccak_1600::clear(), Botan::Comb4P::clear(), Botan::X942_PRF::derive(), Botan::KDF2::derive(), Botan::gcd(), Botan::Hex_Encoder::Hex_Encoder(), Botan::ECB_Encryption::name(), Botan::ECB_Decryption::name(), Botan::MemoryRegion< word >::operator<(), Botan::OctetString::operator^=(), Botan::DataSource_Memory::peek(), Botan::CFB_Encryption::set_iv(), Botan::CFB_Decryption::set_iv(), Botan::XTS_Encryption::set_key(), Botan::XTS_Decryption::set_key(), and Botan::Buffered_Filter::write().
|
inline |
Definition at line 45 of file ct_utils.h.
Referenced by Botan::bigint_cnd_abs(), Botan::bigint_cnd_add(), Botan::bigint_cnd_sub(), Botan::bigint_cnd_swap(), cond_zero_mem(), conditional_copy_mem(), Botan::DataSource_Command::id(), max(), min(), Botan::Device_EntropySource::poll(), Botan::DataSource_Command::read(), and val_or_zero().
|
inline |