8#ifndef BOTAN_UTILS_SAFE_INT_H_
9#define BOTAN_UTILS_SAFE_INT_H_
11#include <botan/exceptn.h>
20 Exception(
"Integer overflow detected at " + file +
":" +
std::to_string(line))
26inline size_t checked_add(
size_t x,
size_t y,
const char* file,
int line)
37#define BOTAN_CHECKED_ADD(x,y) checked_add(x,y,__FILE__,__LINE__)
Integer_Overflow_Detected(const std::string &file, int line)
ErrorType error_type() const noexcept override
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
size_t checked_add(size_t x, size_t y, const char *file, int line)