← Lab /Crypto & theory

GSRS and GLRS codes are efficiently distinguishable from random codes

GSRS and GLRS codes decompose into GRS subcodes and can be distinguished using a square code method

Crypto & theory arXiv 14 Apr 2026 Measurement Theory

Published as “Distinguishers for Skew and Linearized Reed-Solomon Codes”

Why it matters

The square-code distinguisher enables a McEliece-like scheme (ReSkew) with public-key sizes at least three times smaller than Classic McEliece.

Summary

The paper presents a polynomial-time square-code distinguisher for generalized skew Reed-Solomon (GSRS) and generalized linearized Reed-Solomon (GLRS) codes, showing they decompose into direct sums of classical GRS subcodes and that their square-code dimension follows a predictable formula; experiments on simulated codes confirm the theoretical predictions, but the authors note the distinguisher alone does not break the underlying cryptosystem.

What they found 2

  1. Both GSRS and GLRS codes decompose into direct sums of classical GRS subcodes.

    “We then prove that both GSRS and GLRS codes admit a decomposition into direct sums of classical GRS subcodes.”

  2. The square-code dimension of a GSRS code equals min k(m+1) - m(m+1), n.

    “squares of GSRS codes have dimension min k(m + 1) -m(m+1) , n (see Theorem 18)”

Caveats 3

  • Finally, we emphasize that the existence of a distinguisher does not immediately yield key recovery or a complete cryptographic break of a McEliece-like cryptosystem based on the respective code family.
  • While the distinguisher identifies GSRS and GLRS codes among random linear codes, constructing efficient attacks that recover secret keys from the public code remains an open problem.
  • did not showcase the shortening mechanism from Theorem 21 which makes the naive distinguisher from Lemma 20 applicable to a wider range of parameters.

What’s new here 4

  • Shows GSRS and GLRS codes can be expressed as direct sums of GRS subcodes.
  • Derives a closed-form bound on the square-code dimension for these codes.
  • Provides a polynomial-time distinguisher that works even under Hamming-metric isometric disguising and via shortening.
  • Offers experimental validation and quantifies a public-key size reduction of at least three-fold versus Classic McEliece (via the ReSkew instantiation).