Generator matrix over GF(16)
| Polynomial | g₀ = 1 | g₁ = α | g₂ = α² | g₃ = α³ |
|---|
Crypto Lab · S10
Turn extension-field symbols into a binary matrix, measure rank, and test the exact decoding boundary of a small Gabidulin code.
Not a cryptosystem. This lesson implements code mathematics only.
01 · Change the metric
Each symbol belongs to GF(2⁴) = GF(2)[α]/(α⁴ + α + 1). Hamming weight counts nonzero extension-field symbols. Rank weight expands each symbol in the ordered basis (1, α, α², α³) and takes the binary matrix rank.
Current computation
| Basis row | v₀ | v₁ | v₂ | v₃ |
|---|
02 · Build the code
For message (a₀,a₁), the encoder evaluates the linearized polynomial f(x)=a₀x+a₁x² at g=(1,α,α²,α³). The four evaluation points are linearly independent over GF(2). Every figure below is recomputed from all 256 messages.
| Polynomial | g₀ = 1 | g₁ = α | g₂ = α² | g₃ = α³ |
|---|
03 · Cross the guarantee
This finite decoder checks every one of the 256 codewords and returns a word only when exactly one lies at rank distance at most t=1. It is an auditable exhaustive decoder—not Gabidulin’s efficient algebraic algorithm.
Decoder verdict
Complete beyond-radius control
This checks the entire finite error set, not a random sample. “Correct” means recovering the transmitted zero message; “miscorrected” means returning a different codeword within the decoder’s radius.
No census has run in this page session.
04 · Keep the claim bounded
| Name | What this lesson establishes | What it does not establish |
|---|---|---|
| Gabidulin code | Executable MRD code mathematics in a 256-word teaching space. | No encryption, KEM, security reduction, production parameters, or efficient decoder. |
| GPT / Faure–Loidreau | Named as historical rank-code public-key constructions. | Not implemented; this code demo does not transfer security to them. Published structural attacks must be assessed per construction. |
| RQC | Named as a structured rank-metric KEM considered by NIST. | Not implemented or endorsed. NIST IR 8309 records that its Round-2 parameter sets were reduced below 128-bit security and it did not advance. |
| Classic McEliece / HQC | Useful comparison labs in the same broad code-based family. | They use Hamming-metric constructions; they are not Gabidulin or rank-metric schemes. |
Secondary orientation: Gabidulin, “Schemes Based on Rank Codes,” in the Encyclopedia of Cryptography, Security and Privacy, 3rd ed. (2025), DOI entry 388.