post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros
ntru_err.h File Reference

error handling More...

Go to the source code of this file.

Macros

#define NTRU_ABORT(...)
 
#define NTRU_ABORT_DEBUG(...)
 
#define NTRU_WARN(...)
 
#define NTRU_WARN_DEBUG(...)
 

Detailed Description

error handling

This file provides error macros and functions for the NTRU cryptosystem.

Definition in file ntru_err.h.

Macro Definition Documentation

#define NTRU_ABORT (   ...)
Value:
{ \
fprintf(stderr, __VA_ARGS__); \
abort(); \
}

Definition at line 33 of file ntru_err.h.

#define NTRU_ABORT_DEBUG (   ...)
Value:
{ \
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 (   ...)
Value:
{ \
fprintf(stderr, __VA_ARGS__); \
}

Definition at line 47 of file ntru_err.h.

#define NTRU_WARN_DEBUG (   ...)
Value:
{ \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, " [file %s, line %d]:\n", \
__FILE__, __LINE__); \
}

Definition at line 52 of file ntru_err.h.