为了满足高速即时通信对密码运算的性能要求,在研究AES-ECB典型设计的基础上,提出了一种基于多线程技术的AES-ECB改进设计方案;通过对算法中间迭代过程进行分割,并将其例化为多个子线程,改进了算法运行流程,实现了子线程间的“类流水”操作;实例性能分析表明,相比于单线程,多线程性能提高了约0.46~4.27倍;当线程数为12时,算法处理性能最低为520 Mb-ps,适用于对加解密速度要求高的应用场合.
To satisfy needs of the cryptographic performance in high speed real-time communications,after researching the typical design of AES-ECB,an improved design of AES-ECB based on multithread technology is proposed.By dividing the intermediate iterative process into some sub threads,the running flow of AES-ECB is improved,and sub threads can be organized like pipelining.The performance analysis results show that the multithread design can increase about 0.46 to 4.27 times than the single-thread design in performance,and when the sub thread number is 12,the speed can achieve 520 Mbps at least,which is suitable for applications with high requirements on the en/decryption speed.