I've recently heard about coding based cryptography and it seems very close to the LWE assumption in that it is based on the idea that the error is hard to identify. They are both post-quantum schemes too.

Is there a direct link between the two? (e.g., coding based can be seen as an instance of LWE under certain assumptions) or is there absolutely no relation?


1 Answer 1


Yes the two are definitely related, but it can be a bit complicated to describe it. This will be a sketch of some related points. I know mainly about coding theory, so I will point out a few obvious links. The experts here would be able to tell you more:

  1. Code based cryptography (take McEliece as an example) is based on randomizing a structured error correcting code, adding an error vector which is of weight exactly equal to the code correction capability and using the structure of the code as the trapdoor information. This is typically over the binary field, $n$ is the codeword length, $t$ is the error correction capability and the rate $k/n$ of the code is fixed (the code has $2^k$ codewords in the space $\mathbb{F}_2^n$ with $2^n$ vectors.

  2. Most closely related is LPN (learning parity with noise) based cryptography where corresponds to the decoding problem where $n$ is the number of samples, $k$ the length of the secret while the error is sampled according to a Bernoulli distribution of fixed rate $t/n.$ As the number of samples in LPN is unlimited, this problem actually corresponds to decoding a random code of rate arbitrarily close to $0.$

  3. While the security of many code-based cryptosystems relies on the hardness of the decoding problem, it can also be based on finding a “short” codeword for the Hamming metric. For LPN there are reductions which converts the decoding problem to finding a short codeword.

  4. Since the original code based systems were inefficient, other ones were proposed using different codes (quasicyclic instead of Goppa). Independently people proposed LWE over lattices and later on over rings as well. The Ring-LWE problems are the most closely related to decoding a classical code but I don't have deep knowledge about this area. The link between codes and lattices in general is quite deep and complicated, with Leech Lattice and Golay Codes playing a part. Conway and Sloane have a classical text of many hundreds of pages on lattices and links to classical codes is discussed there.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.