post quantum cryptography
Highly optimized implementation of the NTRUEncrypt algorithm
 All Data Structures Files Functions Variables Typedefs Macros Pages
ntru_poly_ascii.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 FH Bielefeld
3  *
4  * This file is part of a FH Bielefeld project.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  */
21 
28 #ifndef NTRU_POLY_ASCII_H_
29 #define NTRU_POLY_ASCII_H_
30 
31 
32 #include "ntru_common.h"
33 #include "ntru_params.h"
34 #include "ntru_string.h"
35 
36 #include <fmpz_poly.h>
37 #include <fmpz.h>
38 
39 
59 string *
60 bin_poly_to_ascii(const fmpz_poly_t poly,
61  const ntru_params *params);
62 
83 string *
84 bin_poly_arr_to_ascii(const fmpz_poly_t **bin_poly_arr,
85  const uint32_t poly_c,
86  const ntru_params *params);
87 
101 string *
102 poly_to_ascii(const fmpz_poly_t poly,
103  const ntru_params *params);
104 
118 string *
119 poly_arr_to_ascii(const fmpz_poly_t **poly_array,
120  const uint32_t poly_c,
121  const ntru_params *params);
122 
136 string *
137 poly_to_base64(const fmpz_poly_t poly,
138  const ntru_params *params);
139 
154 string *
155 poly_arr_to_base64(const fmpz_poly_t **poly_arr,
156  const uint32_t poly_c,
157  const ntru_params *params);
158 
159 
160 #endif /* NTRU_POLY_ASCII_H_ */
string * poly_to_base64(const fmpz_poly_t poly, const ntru_params *params)
string * poly_arr_to_ascii(const fmpz_poly_t **poly_array, const uint32_t poly_c, const ntru_params *params)
string * bin_poly_to_ascii(const fmpz_poly_t poly, const ntru_params *params)
string * bin_poly_arr_to_ascii(const fmpz_poly_t **bin_poly_arr, const uint32_t poly_c, const ntru_params *params)
NTRU parameters.
string * poly_arr_to_base64(const fmpz_poly_t **poly_arr, const uint32_t poly_c, const ntru_params *params)
common macros/functions
header for ntru_string.c
string * poly_to_ascii(const fmpz_poly_t poly, const ntru_params *params)