Botan 3.4.0
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.

Classes

class  Botan::Integer_Overflow_Detected
 

Namespaces

namespace  Botan
 

Macros

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

Functions

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

◆ BOTAN_CHECKED_ADD

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

Definition at line 73 of file safeint.h.

◆ BOTAN_CHECKED_MUL

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