應用於電視晶片具抵抗旁道攻擊之高流通量SM4設計
An Area-Efficient High-Throughput SM4 Accelerator with SCA-Countermeasure for TV Applications
摘要
隨著數位時代來臨,面對越來越多的數位內容及更方便的傳播方式,數位版權管理的概念應運而生。
而在電視領域中,電視廠商必須取得授權實現DRM協定,才能正確解密並播放加密後的數位內容。DRM的標準主要分為日規和歐規,其中演算法是歐規的對稱式加密標準演算法。而近年來中國政府積極推動自己的規範,發布了一系列加密演算法,其中就是用來取代AES的。由於SM4本身演算法的設計比起AES所需的遞迴數大了接近三倍,所以如果要將SM4取代成AES,在維持相似流通量的情況下,對於設計是相當有挑戰性的。
而另一方面隨著旁道攻擊的興起,許多含有加密功能的產品也漸漸受到安全性的規範,必須要能抵抗旁道攻擊。在這次的論文中我們提出了高流通量及高時脈的SM4架構,並採用秘密拆分的方式結合調整SBOX計算結構以抵抗旁道攻擊。
此次硬體架構無抵抗旁道攻擊的版本面積為12.56K個邏輯閘,有抵抗旁道攻擊的版本面積為15.19K個邏輯閘,而此兩個版本流通量都能達到2Gbps且運行時脈為500MHz。此數據與流通量跟我們相似採用流水線設計的相比,面積減少了17.7\%。而在安全性方面採用相關性功耗分析方法做攻擊,結果顯示此次架構能抵抗超過一百萬條功耗軌跡的旁道攻擊。
而在電視領域中,電視廠商必須取得授權實現DRM協定,才能正確解密並播放加密後的數位內容。DRM的標準主要分為日規和歐規,其中演算法是歐規的對稱式加密標準演算法。而近年來中國政府積極推動自己的規範,發布了一系列加密演算法,其中就是用來取代AES的。由於SM4本身演算法的設計比起AES所需的遞迴數大了接近三倍,所以如果要將SM4取代成AES,在維持相似流通量的情況下,對於設計是相當有挑戰性的。
而另一方面隨著旁道攻擊的興起,許多含有加密功能的產品也漸漸受到安全性的規範,必須要能抵抗旁道攻擊。在這次的論文中我們提出了高流通量及高時脈的SM4架構,並採用秘密拆分的方式結合調整SBOX計算結構以抵抗旁道攻擊。
此次硬體架構無抵抗旁道攻擊的版本面積為12.56K個邏輯閘,有抵抗旁道攻擊的版本面積為15.19K個邏輯閘,而此兩個版本流通量都能達到2Gbps且運行時脈為500MHz。此數據與流通量跟我們相似採用流水線設計的相比,面積減少了17.7\%。而在安全性方面採用相關性功耗分析方法做攻擊,結果顯示此次架構能抵抗超過一百萬條功耗軌跡的旁道攻擊。
With the advent of the digital era, the concept of Digital Rights Management (DRM) has emerged in the face of more and more digital content and more convenient modes of communication. In the TV field, TV manufacturers must obtain authorization to implement the DRM protocol in order to correctly decrypt and display encrypted digital content. The DRM standard is mainly divided into Japanese and European regulations, and the AES algorithm is the symmetric encryption standard algorithm of the European standard.
In recent years, the Chinese government has actively promoted its own specification and released a series of encryption algorithms, of which SM4 is used to replace AES. Since the design of the SM4 algorithm itself is nearly three times larger than the number of recursions required for AES, replacing SM4 with AES is quite challenging for design while maintaining similar throughput. On the other hand, with the rise of side channel attacks, many products with encryption functions are gradually being regulated by security, and must be able to resist side-track attacks. In this thesis, we propose a high-throughput and high-clock-frequency SM4 architecture, and use a secret sharing approach combine the changing of sbox computing structure to resist side channel attack.
The version of the hardware architecture without countermeasure is 12.56K logic gates, and the version with countermeasure is 15.19K logic gates. Both versions can reach 2Gbps and operate at 500MHz. Compare this result with BMTSM4 whose specification is similar with us, the area decreased about 17.7\%.
In recent years, the Chinese government has actively promoted its own specification and released a series of encryption algorithms, of which SM4 is used to replace AES. Since the design of the SM4 algorithm itself is nearly three times larger than the number of recursions required for AES, replacing SM4 with AES is quite challenging for design while maintaining similar throughput. On the other hand, with the rise of side channel attacks, many products with encryption functions are gradually being regulated by security, and must be able to resist side-track attacks. In this thesis, we propose a high-throughput and high-clock-frequency SM4 architecture, and use a secret sharing approach combine the changing of sbox computing structure to resist side channel attack.
The version of the hardware architecture without countermeasure is 12.56K logic gates, and the version with countermeasure is 15.19K logic gates. Both versions can reach 2Gbps and operate at 500MHz. Compare this result with BMTSM4 whose specification is similar with us, the area decreased about 17.7\%.