estimator.ntru_parameters.NTRUParameters.normalize#
- NTRUParameters.normalize()[source]#
EXAMPLES:
We perform the normal form transformation if χ_e < χ_s and we got the samples:: For NTRU, m = n so we swap the secret and the noise:
>>> from estimator import * >>> Xs=ND.DiscreteGaussian(2.0) >>> Xe=ND.DiscreteGaussian(1.58) >>> NTRU.Parameters(n=512, q=8192, Xs=Xs, Xe=Xe, m=512).normalize() NTRUParameters(n=512, q=8192, Xs=D(σ=1.58), Xe=D(σ=2.00), m=512, tag=None, ntru_type='matrix')