An optimized Bitsliced Masked Adder for ARM Thumb-2 Controllers

Enrico Pozzobon, Sebastian Renner, J. Mottok, V. Matousek
{"title":"An optimized Bitsliced Masked Adder for ARM Thumb-2 Controllers","authors":"Enrico Pozzobon, Sebastian Renner, J. Mottok, V. Matousek","doi":"10.1109/AE54730.2022.9919884","DOIUrl":null,"url":null,"abstract":"The modular addition is used as a non-linear operation in ARX ciphers because it achieves the requirement of introducing non-linearity in a cryptographic primitive while only taking one clock cycle to execute on most modern architectures. This makes ARX ciphers especially fast in software implementations, but comes at the cost of making it harder to protect against side-channel information leakages using Boolean masking: the best known 2-shares masked adder for ARM Thumb micro-controllers takes 83 instructions to add two 32-bit numbers together. Our approach is to operate in bitsliced mode, performing 32 additions in parallel on a 32-bit microcontroller. We show that, even after taking into account the cost of bitslicing before and after the encryption, it is possible to achieve a higher throughput on the tested ciphers (CRAX and ChaCha20) when operating in bitsliced mode. Furthermore, we prove that no first-order information leakage is happening in either simulated power traces and power traces acquired from real hardware, after sufficient countermeasures are put into place to guard against pipeline leakages.","PeriodicalId":113076,"journal":{"name":"2022 International Conference on Applied Electronics (AE)","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-09-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Applied Electronics (AE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/AE54730.2022.9919884","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The modular addition is used as a non-linear operation in ARX ciphers because it achieves the requirement of introducing non-linearity in a cryptographic primitive while only taking one clock cycle to execute on most modern architectures. This makes ARX ciphers especially fast in software implementations, but comes at the cost of making it harder to protect against side-channel information leakages using Boolean masking: the best known 2-shares masked adder for ARM Thumb micro-controllers takes 83 instructions to add two 32-bit numbers together. Our approach is to operate in bitsliced mode, performing 32 additions in parallel on a 32-bit microcontroller. We show that, even after taking into account the cost of bitslicing before and after the encryption, it is possible to achieve a higher throughput on the tested ciphers (CRAX and ChaCha20) when operating in bitsliced mode. Furthermore, we prove that no first-order information leakage is happening in either simulated power traces and power traces acquired from real hardware, after sufficient countermeasures are put into place to guard against pipeline leakages.
针对ARM拇指-2控制器优化的位切片掩码加法器
模块化加法在ARX密码中用作非线性操作,因为它满足了在密码原语中引入非线性的要求,而在大多数现代体系结构中只需要一个时钟周期即可执行。这使得ARX密码在软件实现中特别快,但代价是使用布尔屏蔽使防止侧信道信息泄漏变得更加困难:ARM Thumb微控制器中最著名的2-share掩码加法器需要83条指令才能将两个32位数字相加。我们的方法是在位切片模式下操作,在32位微控制器上并行执行32个加法。我们表明,即使在考虑了加密之前和之后的位切片成本之后,在位切片模式下操作时,测试密码(CRAX和ChaCha20)也有可能实现更高的吞吐量。此外,我们证明,在采取足够的对策来防止管道泄漏之后,无论是模拟的电源走线还是从真实硬件获取的电源走线都不会发生一阶信息泄漏。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信