post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
Functions
/home/travis/build/hasufell/pqc/src/ntru_mem.c File Reference

memory management More...

#include "ntru_mem.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for ntru_mem.c:

Go to the source code of this file.

Functions

void * ntru_malloc (size_t size)
void * ntru_calloc (size_t nmemb, size_t size)

Detailed Description

memory management

This file provides functions for memory management.

Definition in file ntru_mem.c.


Function Documentation

void* ntru_calloc ( size_t  nmemb,
size_t  size 
)

Allocate memory of size and return a void pointer. The memory is zeroed.

Parameters:
nmembamount of blocks to allocate
sizeof the memory blocks to allocate in bytes
Returns:
void pointer to the beginning of the allocated memory block

Definition at line 56 of file ntru_mem.c.

void* ntru_malloc ( size_t  size)

Allocate memory of size and return a void pointer.

Parameters:
sizeof the memory to allocate in bytes
Returns:
void pointer to the beginning of the allocated memory block

Definition at line 38 of file ntru_mem.c.

 All Data Structures Files Functions Variables Typedefs Defines