8 #ifndef BOTAN_UTILS_SAFE_INT_H_
9 #define BOTAN_UTILS_SAFE_INT_H_
11 #include <botan/exceptn.h>
26 inline 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__)
ErrorType error_type() const noexceptoverride
Integer_Overflow_Detected(const std::string &file, int line)
size_t checked_add(size_t x, size_t y, const char *file, int line)
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
std::string to_string(ErrorType type)
Convert an ErrorType to string.