设F是含有q个元素的有限域,其中q是一个奇素数p的正整数幂。文章利用F到Fp的迹映射Tr,构造Fp上两类3-重量线性码和一类2-重量线性码,并计算这些线性码的重量分布;所构造的这三类线性码可以用于密钥共享体制的构造。
Let F be a finite field with q elements, where q is a positive power of an odd prime p. In this paper, there are two classes of three-weight and a class of two-weight linear codes over Fp constructed by using the trace function Tr from F to Fp. The weight distributions of these classes of linear codes are also determined. In addition, these classes of linear codes can be used in secret sharing schemes.