Module ntru::types [] [src]

NTRUEncrypt type definitions

This module includes all the needed structs and enums for NTRUEncrypt. All of them with their needed methods.

Structs

NtruEncKeyPair

NtruEncrypt key pair

NtruEncPrivKey

NtruEncrypt private key

NtruEncPubKey

NtruEncrypt public key

NtruIntPoly

A polynomial with integer coefficients.

NtruPrivPoly

Private polynomial, can be ternary or product-form

NtruProdPoly

A product-form polynomial, i.e. a polynomial of the form f1*f2+f3 where f1,f2,f3 are very sparsely populated ternary polynomials.

NtruTernPoly

A ternary polynomial, i.e. all coefficients are equal to -1, 0, or 1.

Enums

NtruError

The error enum

Constants

NTRU_MAX_DEGREE

Max N value for all param sets; +1 for ntru_invert_...()

NTRU_MAX_ONES

max(df1, df2, df3, dg)