post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
|
header for ntru_file.c More...
Go to the source code of this file.
Functions | |
string * | read_file (char const *const filename) |
bool | write_file (string const *wstring, char const *const filename) |
string* read_file | ( | char const *const | filename | ) |
Reads a file and returns a newly allocated string.
filename | file to open |
Definition at line 50 of file ntru_file.c.
bool write_file | ( | string const * | wstring, |
char const *const | filename | ||
) |
Write a string to a file. The file will be pruned or created if it does not exist.
wstring | the string to write to the file |
filename | the name of the file to write to |
Definition at line 107 of file ntru_file.c.