Botan 3.6.1
Crypto and TLS for C&
int_utils.h File Reference

Internal Header. More...

#include <botan/concepts.h>
#include <botan/exceptn.h>
#include <botan/strong_type.h>
#include <botan/types.h>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  Botan
 

Functions

template<std::unsigned_integral T>
constexpr std::optional< TBotan::checked_add (T a, T b)
 
template<std::unsigned_integral T, std::unsigned_integral... Ts>
requires all_same_v<T, Ts...>
constexpr std::optional< TBotan::checked_add (T a, T b, Ts... rest)
 
template<typename RT , typename AT >
requires std::integral<strong_type_wrapped_type<RT>> && std::integral<strong_type_wrapped_type<AT>>
constexpr RT Botan::checked_cast_to (AT i)
 
template<typename RT , typename ExceptionType , typename AT >
requires std::integral<strong_type_wrapped_type<RT>> && std::integral<strong_type_wrapped_type<AT>>
constexpr RT Botan::checked_cast_to_or_throw (AT i, std::string_view error_msg_on_fail)
 
template<std::unsigned_integral T>
constexpr std::optional< TBotan::checked_mul (T a, T b)
 
template<std::unsigned_integral T>
constexpr std::optional< TBotan::checked_sub (T a, T b)
 
template<std::unsigned_integral T>
constexpr size_t Botan::index_of_first_set_byte (T v)
 
template<std::unsigned_integral T>
constexpr T Botan::swar_in_range (T v, T lower, T upper)
 
template<std::unsigned_integral T>
constexpr T Botan::swar_lt (T a, T b)
 

Detailed Description

Internal Header.

Definition in file int_utils.h.