Prime-modulus LWE encodings, ensembles, and search games #
Framed binary encodings, sample distributions, and finite search games for learning with errors
over ZMod q with prime modulus q, supporting the normal-form and search-to-decision finite
probability bounds in NormalForm and SearchToDecision.
In the uniform-secret model (realEnsemble, searchGame), a sample draws a uniform secret s,
a uniform matrix A, and independent errors e from noise, encoding [A * s + e | A] via
encMatrix. In the error-secret (normal-form) model (publicMatrixLawErrorSecret,
realEnsembleErrorSecret, searchGameErrorSecret), s is instead drawn with independent
coordinates from noise. The comparison distribution uniformEnsemble encodes a uniform matrix
of the same shape.
Main definitions #
Cslib.Crypto.PrimeLWE.encZMod,Cslib.Crypto.PrimeLWE.encZModVec,Cslib.Crypto.PrimeLWE.encMatrix: binary encodings ofZMod qelements, vectors, and matrices.Cslib.Crypto.PrimeLWE.publicMatrixLawErrorSecret: law of[A * s + e | A]withsdrawn from the error distribution.Cslib.Crypto.PrimeLWE.realEnsemble,Cslib.Crypto.PrimeLWE.realEnsembleErrorSecret,Cslib.Crypto.PrimeLWE.uniformEnsemble: encoded matrix ensembles for uniform-secret, error-secret, and uniform samples.Cslib.Crypto.PrimeLWE.searchGame,Cslib.Crypto.PrimeLWE.searchGameErrorSecret: finite search games overZMod qwith uniform or error-distributed secrets.
Main results #
Cslib.Crypto.PrimeLWE.uniform_bind_publicMatrix: for any fixed secrets, uniformAand uniform erroremake[A * s + e | A]uniform.
References #
With a uniform matrix A and a uniform error e, the public matrix [A * s + e | A] is
uniform, whatever the secret s.