ArticleslgStudy

computer science

McEliece cryptosystem

McEliece cryptosystem is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand McEliece cryptosystem rather than just read about it. In short: In cryptography, the McEliece cryptosystem is an asymmetric encryption algorithm developed in 1978 by Robert McEliece. It was the first such scheme to use randomization in the encryption process.

Key takeaways

  • McEliece cryptosystem belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect McEliece cryptosystem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of McEliece cryptosystem from memory before moving on to harder problems.

Reference excerpt

In cryptography, the McEliece cryptosystem is an asymmetric encryption algorithm developed in 1978 by Robert McEliece. It was the first such scheme to use randomization in the encryption process. The algorithm has never gained much acceptance in the cryptographic community, but is a candidate for "post-quantum cryptography", as it is immune to attacks using Shor's algorithm and – more generally – measuring coset states using Fourier sampling. The algorithm is based on the hardness of decoding a general linear code (which is known to be NP-hard). For a description of the private key, an error-correcting code is selected for which an efficient decoding algorithm is known, and that is able to correct t {\displaystyle t} errors. The original algorithm uses binary Goppa codes (subfield codes of algebraic geometry codes of a genus-0 curve over finite fields of characteristic 2); these codes can be efficiently decoded, thanks to an algorithm due to Patterson. The public key is derived from the private key by disguising the selected code as a general linear code. For this, the code's generator matrix G {\displaystyle G} is perturbated by two randomly selected invertible matrices S {\displaystyle S} and P {\displaystyle P} (see below). Variants of this cryptosystem exist, using different types of codes. Most of them were proven less secure; they were broken by structural decoding. McEliece with Goppa codes has resisted cryptanalysis so far. The most effective attacks known use information-set decoding algorithms. A 2008 paper describes both an attack and a fix. Another paper shows that for quantum computing, key sizes must be increased by a factor of four due to improvements in information set decoding. The McEliece cryptosystem has some advantages over, for example, RSA. The encryption and decryption are faster. For a long time, it was thought that McEliece could not be used to produce signatures. However, a signature scheme can be constructed based on the Niederreiter scheme, the dual variant of the McEliece scheme. One of the main disadvantages of McEliece is that the private and public keys are large matrices. For a standard selection of parameters, the public key is 512 kilobits long.

Scheme definition McEliece consists of three algorithms: a probabilistic key generation algorithm that produces a public and a private key, a probabilistic encryption algorithm, and a deterministic decryption algorithm. All users in a McEliece deployment share a set of common security parameters: n , k , t {\displaystyle n,k,t} .

Key generation The principle is that Alice chooses a linear code C {\displaystyle C} from some family of codes for which she knows an efficient decoding algorithm, and to make C {\displaystyle C} public knowledge but keep the decoding algorithm secret. Such a decoding algorithm requires not just knowing C {\displaystyle C} , in the sense of knowing an arbitrary generator matrix, but requires one to know the parameters used when specifying C {\displaystyle C} in the chosen family of codes. For instance, for binary Goppa codes, this information would be the Goppa polynomial and the code locators. Therefore, Alice may publish a suitably obfuscated generator matrix of C {\displaystyle C} . More specifically, the steps are as follows:

Alice selects a binary ( n , k ) {\displaystyle (n,k)} -linear code C {\displaystyle C} capable of (efficiently) correcting t {\displaystyle t} errors from some large family of codes, e.g. binary Goppa codes. This choice should give rise to an efficient decoding algorithm A {\displaystyle A} . Let also G {\displaystyle G} be any generator matrix for C {\displaystyle C} . Any linear code has many generator matrices, but often there is a natural choice for this family of codes. Knowing this would reveal A {\displaystyle A} so it should be kept secret. Alice selects a random k × k {\displaystyle k\times k} binary non-singular matrix S {\displaystyle S} . Alice selects a random n × n {\displaystyle n\times n} permutation matrix P {\displaystyle P} . Alice computes the k × n {\displaystyle k\times n} matrix G ^ = S G P {\displaystyle {\hat {G}}=SGP} . Alice's public key is ( G ^ , t ) {\displaystyle ({\hat {G}},t)} ; her private key is ( S , P , A ) {\displaystyle (S,P,A)} . Note that A {\displaystyle A} could be encoded and stored as the parameters used for selecting C {\displaystyle C} .

Message encryption Suppose Bob wishes to send a message m {\displaystyle m} to Alice whose public key is ( G ^ , t ) {\displaystyle ({\hat {G}},t)} :

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with McEliece cryptosystem

Start with the simplest possible case. Write down what McEliece cryptosystem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to McEliece cryptosystem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about McEliece cryptosystem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of McEliece cryptosystem

In research
McEliece cryptosystem appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses McEliece cryptosystem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
McEliece cryptosystem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Code-based cryptography, Post-quantum cryptography, Public-key encryption schemes, so understanding it makes those chapters shorter.
In everyday life
Look for McEliece cryptosystem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “McEliece cryptosystem” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study McEliece cryptosystem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what McEliece cryptosystem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain McEliece cryptosystem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is McEliece cryptosystem in simple terms?

In cryptography, the McEliece cryptosystem is an asymmetric encryption algorithm developed in 1978 by Robert McEliece. It was the first such scheme to use randomization in the encryption process.

Why does McEliece cryptosystem matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study McEliece cryptosystem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on McEliece cryptosystem.

Tags

  • Code-based cryptography
  • Post-quantum cryptography
  • Public-key encryption schemes

Keep exploring