• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2025, Vol. 47 ›› Issue (12): 2139-2149.

• Computer Network and Znformation Security • Previous Articles     Next Articles

Several constructions of (almost) optimally extendable linear codes from MDS codes and NMDS codes

LI Wenting,HENG Ziling,LI Xiaoru   

  1. (1.School of Sciences,Chang’an University,Xi’an 710064;
    2.National Mobile Communications Research Laboratory,Southeast University,Nanjing 211111,China)
  • Received:2024-03-13 Revised:2024-06-20 Online:2025-12-25 Published:2026-01-06

Abstract: In the implementation of block ciphers, side channel attacks(SCAs) and fault injection attacks(FIAs) are crucial cryptanalysis methods. Let C  be a linear code over Fq  with a generator matrix G, and C′  be a linear code over Fq  with a generator matrix G′=[G:Ik], where Ik   is the identity matrix of order  k. If  d(C′⊥)=d(C⊥), then C  is said to be an optimally extendable linear code; if  d(C′⊥)= d(C⊥)-1, then C  is said to be an almost optimally extendable linear code. Optimally or almost optimally extendable linear codes effectively protect not only sensitive data stored in registers from SCAs and FIAs but also the entire algorithm. A class of almost optimally extendable linear codes with dimension 5 is constructed by special generator matrices, and its parameters and weight enumerators are obtained. In addition, it is proved that another 4 classes of NMDS (near maximum distance separable) codes with dimension 5 and 2 classes of NMDS codes with dimension 4 are optimally extendable linear codes. In particular, the parameters of the (almost) optimally extendable linear codes are different from those of known (almost) optimally extendable linear codes, and the  constructed codes have potential applications in direct sum masking.


Key words: linear code, extendable code, weight enumerator