首页 | 本学科首页   官方微博 | 高级检索  
     

AES加密算法中的S盒及其C语言实现
引用本文:魏凤兰,汤秀芬,米晨. AES加密算法中的S盒及其C语言实现[J]. 宁夏工程技术, 2005, 4(1): 42-44
作者姓名:魏凤兰  汤秀芬  米晨
作者单位:西北第二民族学院,教务处成人教育中心,宁夏,银川,750021;宁夏大学,物理电气信息学院,宁夏,银川,750021;宁夏大学,设备与物资管理处,宁夏,银川,750021
摘    要:详细叙述了算法中S盒的构造,并给出了其C语言实现的程序代码.S盒由有限域GF(2^8)上所有元素的乘法逆元及在域GF(2)上的仿射变换构成,经过S盒的非线性字节代换,密的差分均匀性和线性偏差都达到较理想的状态,提高了AES算法抗击差分密码分析及线性密码分析的能力.在AES算法中,Nr轮的加密过程都要对状态矩阵中的字节求其在有限域GF(2^8)上的乘法逆元和作GF(2)上的仿射变换,这些都要多次用到大运算量的非线性字节变换操作,为此可以通过一定的算法先算出GF(2^8)上所有元素的乘法逆元并作相应的仿射变换以形成对字节代换的代换表,即S盒,然后通过查表的方法进行加密过程中的字节代换,从而缩短明的加密时间,提高AES加密算法的整体效率.

关 键 词:AES  加密  有限域  仿射变换  S盒
文章编号:1671-7244(2005)01-0042-03
修稿时间:2004-09-27

S-box in AES encipher algorithm and its C language implementation
WEI Feng-lan,TANG Xiu-fen,MI Chen. S-box in AES encipher algorithm and its C language implementation[J]. Ningxia Engineering Technology, 2005, 4(1): 42-44
Authors:WEI Feng-lan  TANG Xiu-fen  MI Chen
Affiliation:WEI Feng lan1,TANG Xiu fen2,MI Chen3
Abstract:The paper described detailedly the construction of S box in AES and gave its source program code of C language. The S box was constituted with the multiplication inverse element affined transformation in GF(2) of all elements of limited field GF(28),with S box 's nonlinear byte changed,ciphered text attained the ideal status of the even of difference and the linear of deviation,and increased the capability of the AES algorithm of anti beating the difference cipher of analysis and linear cipher of analysis. In AES algorithm,the round of Nr of encipher procedure must compute the multiplication inverse element in limited field GF(28) and affined transformation in GF(2) to the byte of the status matrix,and these all needed to use many times the big quantity transform operation of nonlinear byte,for this,through the certain algorithm to calculate multiplication inverse element of all elements of the GF(28) and affined transformation forming the generation changes table to byte generation changes,it's S box,then through the method of the looking table to finish the byte generation changes of encrypt proceed,thereby shortened the encipher time of the plain text and increased the whole efficiency of AES encrypt algorithm.
Keywords:AES  encipher  limited field  affined transformation  S-box
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号