ALL: prefix external API structs/functions with ntru_
This commit is contained in:
parent
e8ec6103aa
commit
5df1ebbb45
@ -41,6 +41,6 @@ typedef struct {
|
|||||||
* small modulus
|
* small modulus
|
||||||
*/
|
*/
|
||||||
int p;
|
int p;
|
||||||
} pqc_context;
|
} ntru_context;
|
||||||
|
|
||||||
#endif /* NTRU_CONTEXT_H */
|
#endif /* NTRU_CONTEXT_H */
|
||||||
|
@ -78,7 +78,7 @@ static mp_digit get_urnd_int_small(int *sign)
|
|||||||
* @param ctx the NTRU context
|
* @param ctx the NTRU context
|
||||||
* @return newly allocated polynomial
|
* @return newly allocated polynomial
|
||||||
*/
|
*/
|
||||||
pb_poly *get_urnd_poly_small(pqc_context *ctx)
|
pb_poly *ntru_get_urnd_poly_small(ntru_context *ctx)
|
||||||
{
|
{
|
||||||
mp_int *chara = malloc(sizeof(mp_int));
|
mp_int *chara = malloc(sizeof(mp_int));
|
||||||
init_integer(chara);
|
init_integer(chara);
|
||||||
|
@ -28,6 +28,6 @@
|
|||||||
#include <tompoly.h>
|
#include <tompoly.h>
|
||||||
|
|
||||||
|
|
||||||
pb_poly *get_urnd_poly_small(pqc_context *ctx);
|
pb_poly *ntru_get_urnd_poly_small(ntru_context *ctx);
|
||||||
|
|
||||||
#endif /* NTRU_RAND_H */
|
#endif /* NTRU_RAND_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user