|
post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
|
header for ntru_mem.c More...
#include <stdlib.h>
Go to the source code of this file.
Macros | |
| #define | REALLOC(ptr, size) |
Functions | |
| void * | ntru_malloc (size_t size) |
| void * | ntru_calloc (size_t nmemb, size_t size) |
| #define REALLOC | ( | ptr, | |
| size | |||
| ) |
Realloc macro which checks if reallocation worked via a temporary pointer.
Definition at line 38 of file ntru_mem.h.
| void* ntru_calloc | ( | size_t | nmemb, |
| size_t | size | ||
| ) |
Allocate memory of size and return a void pointer. The memory is zeroed.
| nmemb | amount of blocks to allocate |
| size | of the memory blocks to allocate in bytes |
Definition at line 56 of file ntru_mem.c.
| void* ntru_malloc | ( | size_t | size | ) |
Allocate memory of size and return a void pointer.
| size | of the memory to allocate in bytes |
Definition at line 38 of file ntru_mem.c.
1.8.7