PARAMS: use forward declaration

This commit is contained in:
hasufell 2014-06-05 16:32:04 +02:00
parent cd6e477f31
commit 5db9b014c6
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -33,11 +33,14 @@
#include <stdint.h>
typedef struct ntru_params ntru_params;
/**
* NTRU cryptosystem is specified by
* the following triple.
*/
typedef struct {
struct ntru_params {
/**
* maximal degree N - 1 for
* all polynomials
@ -51,6 +54,7 @@ typedef struct {
* small modulus
*/
uint32_t p;
} ntru_params;
};
#endif /* NTRU_PARAMS_H */