Classic McEliece

  • Algorithm type: Key encapsulation mechanism.
  • Main cryptographic assumption: Niederreiter‘s dual version of McEliece’s public key encryption using binary Goppa codes.
  • Principal submitters: Daniel J. Bernstein, Tung Chou, Tanja Lange, Ingo von Maurich, Rafael Misoczki, Ruben Niederhagen, Edoardo Persichetti, Christiane Peters, Peter Schwabe, Nicolas Sendrier, Jakub Szefer, Wen Wang.
  • Authors' website: https://classic.mceliece.org
  • Specification version: SUPERCOP-20221025.
  • Primary Source:
  • Ancestors of primary source:
    • SUPERCOP-20221025 “clean” and “avx2” implementations

Advisories

  • Classic-McEliece-460896, Classic-McEliece-460896f, Classic-McEliece-6960119, and Classic-McEliece-6960119f parameter sets fail memory leak testing on x86-64 when building with clang using optimization level -O2 and -O3. Care is advised when using the algorithm at higher optimization levels, and any other compiler and architecture.
  • Current implementation of the algorithm may not be constant-time. Additionally, environment specific constant-time leaks may not be documented; please report potential constant-time leaks when found.

Parameter set summary

Parameter setParameter set aliasSecurity modelClaimed NIST LevelPublic key size (bytes)Secret key size (bytes)Ciphertext size (bytes)Shared secret size (bytes)
Classic-McEliece-348864NAIND-CCA2126112064929632
Classic-McEliece-348864fNAIND-CCA2126112064929632
Classic-McEliece-460896NAIND-CCA235241601360815632
Classic-McEliece-460896fNAIND-CCA235241601360815632
Classic-McEliece-6688128NAIND-CCA2510449921393220832
Classic-McEliece-6688128fNAIND-CCA2510449921393220832
Classic-McEliece-6960119NAIND-CCA2510473191394819432
Classic-McEliece-6960119fNAIND-CCA2510473191394819432
Classic-McEliece-8192128NAIND-CCA2513578241412020832
Classic-McEliece-8192128fNAIND-CCA2513578241412020832

Classic-McEliece-348864 implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?‡
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNTFalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

‡For an explanation of what this denotes, consult the Explanation of Terms section at the end of this file.

Classic-McEliece-348864f implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNT,BMI1FalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-460896 implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNTFalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-460896f implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNT,BMI1FalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-6688128 implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNTFalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-6688128f implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNT,BMI1FalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-6960119 implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNTFalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-6960119f implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNT,BMI1FalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-8192128 implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNTFalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Classic-McEliece-8192128f implementation characteristics

Implementation sourceIdentifier in upstreamSupported architecture(s)Supported operating system(s)CPU extension(s) usedNo branching-on-secrets claimed?No branching-on-secrets checked by valgrind?Large stack usage?
Primary SourcecleanAllAllNoneFalseFalseTrue
Primary Sourceavx2x86_64Linux,DarwinAVX2,POPCNT,BMI1FalseFalseTrue

Are implementations chosen based on runtime CPU feature detection? Yes.

Explanation of Terms

  • Large Stack Usage: Implementations identified as having such may cause failures when running in threads or in constrained environments.