post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
Functions
/home/travis/build/hasufell/pqc/include/decrypt.h File Reference

public API, decryption More...

#include "ntru.h"
#include <fmpz_poly.h>
#include <fmpz.h>
Include dependency graph for 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 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 polynom 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

Decryption of a given encrypted string.

Parameters:
encr_msgthe encrypted message in the form of a string
priv_keythe polynom containing the private key to decrypt the message
priv_key_invthe inverse polynome to the private key
paramsthe ntru_params
Returns:
the decrypted string

Definition at line 92 of file ntru_decrypt.c.

 All Data Structures Files Functions Variables Typedefs Defines