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

public API, decryption More...

#include <ntru.h>
#include <fmpz_poly.h>
#include <fmpz.h>
Include dependency graph for ntru_decrypt.h:

Go to the source code of this file.

Functions

stringntru_decrypt_string (const string *encr_msg, const fmpz_poly_t priv_key, const fmpz_poly_t priv_key_inv, const ntru_params *params)
 

Detailed Description

public API, decryption

This file holds the public API of decryption of the pqc NTRU implementation and is meant to be installed on the client system.

Definition in file ntru_decrypt.h.

Function Documentation

string* ntru_decrypt_string ( const string encr_msg,
const fmpz_poly_t  priv_key,
const fmpz_poly_t  priv_key_inv,
const ntru_params params 
)

Decryption of a given encrypted string.

Parameters
encr_msgthe encrypted message in the form of a string
priv_keythe polynomial containing the private key to decrypt the message
priv_key_invthe inverse polynome to the private key
paramsthe ntru_params
Returns
the decrypted string or NULL on failure