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.
