|
post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
|
public API, encryption More...

Go to the source code of this file.
Functions | |
| string * | ntru_encrypt_string (const string *msg, const fmpz_poly_t pub_key, const fmpz_poly_t rnd, const ntru_params *params) |
public API, encryption
This file holds the public API of encryption of the pqc NTRU implementation and is meant to be installed on the client system.
Definition in file encrypt.h.
| string* ntru_encrypt_string | ( | const string * | msg, |
| const fmpz_poly_t | pub_key, | ||
| const fmpz_poly_t | rnd, | ||
| const ntru_params * | params | ||
| ) |
Encrypt a message in the form of a null-terminated char array and return a string.
| msg | the message |
| pub_key | the public key |
| rnd | the random poly (should have relatively small coefficients, but not restricted to {-1, 0, 1}) |
| params | ntru_params the ntru context |
Encrypt a message in the form of a null-terminated char array and return a string.
| msg | the message |
| pub_key | the public key |
| rnd | the random poly (should have relatively small coefficients, but not restricted to {-1, 0, 1}) |
| params | ntru_params the ntru context |
Definition at line 74 of file ntru_encrypt.c.
1.8.7