Module ntru::types
[−]
[src]
NTRU type definitions
This module includes all the needed structs and enums for NTRU encryption library. All of them with their needed methods.
Structs
IntPoly |
A polynomial with integer coefficients. |
KeyPair |
NTRU encryption key pair |
PrivPoly |
Private polynomial, can be ternary or product-form |
PrivateKey |
NTRU encryption private key |
ProdPoly |
A product-form polynomial, i.e. a polynomial of the form f1*f2+f3 where f1,f2,f3 are very sparsely populated ternary polynomials. |
PublicKey |
NTRU encryption public key |
TernPoly |
A ternary polynomial, i.e. all coefficients are equal to -1, 0, or 1. |
Enums
Error |
The error enum |
Constants
MAX_DEGREE |
Max |
MAX_ONES |
|