7#include <botan/mem_ops.h>
9#include <botan/internal/ct_utils.h>
13uint8_t
ct_compare_u8(
const uint8_t x[],
const uint8_t y[],
size_t len) {
21 return (equal_content & equal_size).as_bool();
static constexpr Mask< T > is_lte(T x, T y)
static constexpr Mask< T > expand(T v)
static constexpr Mask< T > is_equal(T x, T y)
constexpr CT::Mask< T > is_equal(const T x[], const T y[], size_t len)
uint8_t ct_compare_u8(const uint8_t x[], const uint8_t y[], size_t len)
bool constant_time_compare(std::span< const uint8_t > x, std::span< const uint8_t > y)