Botan 3.1.1
Crypto and TLS for C&
Classes | Namespaces | Macros | Functions
safeint.h File Reference

Internal Header. More...

#include <botan/exceptn.h>
#include <botan/internal/fmt.h>
#include <optional>
#include <string_view>

Go to the source code of this file.


class  Botan::Integer_Overflow_Detected


namespace  Botan


#define BOTAN_CHECKED_ADD(x, y)   checked_add(x, y, __FILE__, __LINE__)
#define BOTAN_CHECKED_MUL(x, y)   checked_mul(x, y)


size_t Botan::checked_add (size_t x, size_t y, const char *file, int line)
template<typename RT , typename AT >
RT Botan::checked_cast_to (AT i)
std::optional< size_t > Botan::checked_mul (size_t x, size_t y)

Detailed Description

Internal Header.

Definition in file safeint.h.

Macro Definition Documentation


#define BOTAN_CHECKED_ADD (   x,
)    checked_add(x, y, __FILE__, __LINE__)

Definition at line 72 of file safeint.h.


#define BOTAN_CHECKED_MUL (   x,
)    checked_mul(x, y)

Definition at line 73 of file safeint.h.