post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
|
error handling More...
Go to the source code of this file.
Defines | |
#define | NTRU_ABORT(...) |
#define | NTRU_ABORT_DEBUG(...) |
#define | NTRU_WARN(...) |
#define | NTRU_WARN_DEBUG(...) |
error handling
This file provides error macros and functions for the NTRU cryptosystem.
Definition in file ntru_err.h.
#define NTRU_ABORT | ( | ... | ) |
{ \ fprintf(stderr, __VA_ARGS__); \ abort(); \ }
Definition at line 33 of file ntru_err.h.
#define NTRU_ABORT_DEBUG | ( | ... | ) |
{ \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, " [file %s, line %d]:\n", \
__FILE__, __LINE__); \
abort(); \
}
Definition at line 39 of file ntru_err.h.
#define NTRU_WARN | ( | ... | ) |
{ \ fprintf(stderr, __VA_ARGS__); \ }
Definition at line 47 of file ntru_err.h.
#define NTRU_WARN_DEBUG | ( | ... | ) |
{ \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, " [file %s, line %d]:\n", \
__FILE__, __LINE__); \
}
Definition at line 52 of file ntru_err.h.