UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
ct_utils.hpp File Reference
#include <cstdint>
#include <cstddef>
#include <cstring>
#include <array>
#include "secp256k1/ct/ops.hpp"

Go to the source code of this file.

Namespaces

namespace  secp256k1
 
namespace  secp256k1::ct
 
namespace  secp256k1::ct::ct_compare_detail
 

Functions

bool secp256k1::ct::ct_equal (const void *a, const void *b, std::size_t len) noexcept
 
template<std::size_t N>
bool secp256k1::ct::ct_equal (const std::array< std::uint8_t, N > &a, const std::array< std::uint8_t, N > &b) noexcept
 
void secp256k1::ct::ct_memcpy_if (void *dst, const void *src, std::size_t len, bool flag) noexcept
 
void secp256k1::ct::ct_memswap_if (void *a, void *b, std::size_t len, bool flag) noexcept
 
bool secp256k1::ct::ct_is_zero (const void *data, std::size_t len) noexcept
 
template<std::size_t N>
bool secp256k1::ct::ct_is_zero (const std::array< std::uint8_t, N > &data) noexcept
 
void secp256k1::ct::ct_memzero (void *data, std::size_t len) noexcept
 
std::uint8_t secp256k1::ct::ct_select_byte (std::uint8_t a, std::uint8_t b, bool flag) noexcept
 
void secp256k1::ct::ct_compare_detail::ct_cmp_pair (std::uint64_t wa, std::uint64_t wb, std::uint64_t &gt, std::uint64_t &lt) noexcept
 
std::uint64_t secp256k1::ct::ct_compare_detail::ct_load_be (const std::uint8_t *p) noexcept
 
int secp256k1::ct::ct_compare (const void *a, const void *b, std::size_t len) noexcept