{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,14]],"date-time":"2026-10-14T09:58:37Z","timestamp":1791971917361,"version":"4.3.4"},"reference-count":54,"publisher":"International Association for Cryptologic Research","license":[{"start":{"date-parts":[[2024,7,9]],"date-time":"2024-07-09T00:00:00Z","timestamp":1720483200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["IACR CiC"],"accepted":{"date-parts":[[2024,9,2]]},"abstract":"<jats:p>Masking schemes are key in thwarting side-channel attacks due to their robust theoretical foundation. Transitioning from Boolean to arithmetic (B2A) masking is a necessary step in various cryptography schemes, including hash functions, ARX-based ciphers, and lattice-based cryptography. While there exists a significant body of research focusing on B2A software implementations, studies pertaining to hardware implementations are quite limited, with the majority dedicated solely to creating efficient Boolean masked adders. In this paper, we present first- and second-order secure hardware implementations to perform B2A mask conversion efficiently without using masked adder structures. We first introduce a first-order secure low-latency gadget that executes a B2A2k in a single cycle. Furthermore, we propose a second-order secure B2A2k gadget that has a latency of only 4 clock cycles. Both gadgets are independent of the input word size k. We then show how these new primitives lead to improved B2Aq hardware implementations that perform a B2A mask conversion of integers modulo an arbitrary number. Our results show that our new gadgets outperform comparable solutions by more than a magnitude in terms of resource requirements and are at least 3 times faster in terms of latency and throughput. All gadgets have been formally verified and proven secure in the glitch-robust PINI security model. We additionally confirm the security of our gadgets on an FPGA platform using practical TVLA tests.<\/jats:p>","DOI":"10.62056\/a3c0l2isfg","type":"journal-article","created":{"date-parts":[[2024,10,7]],"date-time":"2024-10-07T11:13:33Z","timestamp":1728299613000},"update-policy":"https:\/\/doi.org\/10.62056\/adfjwm02dj","source":"Crossref","is-referenced-by-count":2,"title":["Efficient Boolean-to-Arithmetic Mask Conversion in Hardware"],"prefix":"10.62056","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9549-268X","authenticated-orcid":false,"given":"Aein","family":"Shahmirzadi","sequence":"first","affiliation":[{"id":[{"id":"https:\/\/ror.org\/03sdv7269","id-type":"ROR","asserted-by":"publisher"}],"name":"PQShield","place":["Prama House, 267 Banbury Rd, Summertown, Oxford, OX2 7HT, UK"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9769-7649","authenticated-orcid":false,"given":"Michael","family":"Hutter","sequence":"additional","affiliation":[{"id":[{"id":"https:\/\/ror.org\/03sdv7269","id-type":"ROR","asserted-by":"publisher"}],"name":"PQShield","place":["Prama House, 267 Banbury Rd, Summertown, Oxford, OX2 7HT, UK"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"48349","published-online":{"date-parts":[[2024,10,7]]},"reference":[{"key":"ref1:Koc96","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"104","DOI":"10.1007\/3-540-68697-5_9","article-title":"Timing Attacks on Implementations of Diffie-Hellman,\n  RSA, DSS, and Other Systems","volume":"1109","author":"Paul Kocher","year":"1996"},{"key":"ref2:KJJ99","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"388","DOI":"10.1007\/3-540-48405-1_25","article-title":"Differential Power Analysis","volume":"1666","author":"Paul Kocher","year":"1999"},{"key":"ref3:Aumasson2010SHA3Blake","volume-title":"SHA-3 Proposal BLAKE","author":"Jean-Philippe Aumasson","year":"2010"},{"key":"ref4:Ferguson2010TheSkeinHash","volume-title":"The Skein Hash Function Family","author":"Niels Ferguson","year":"2010"},{"key":"ref5:needham1997tea","volume-title":"TEA Extensions","author":"Roger M. Needham","year":"1997"},{"key":"ref6:Bernstein2008ChaCha","first-page":"3","article-title":"ChaCha, a Variant of Salsa20","author":"Daniel J. Bernstein","year":"2008"},{"key":"ref7:Goubin2001SoundMethodSwitching","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"3","DOI":"10.1007\/3-540-44709-1_2","article-title":"A Sound Method for Switching between Boolean and Arithmetic\n  Masking","volume":"2162","author":"Louis Goubin","year":"2001"},{"key":"ref8:Coron2015ConversionFromArithmetic","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"130","DOI":"10.1007\/978-3-662-48116-5_7","article-title":"Conversion from Arithmetic to Boolean Masking with\n  Logarithmic Complexity","volume":"8731","author":"Jean-S\u00e9bastien Coron","year":"2015"},{"key":"ref9:Biryukov2017OptimalFirstOrder","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"22","DOI":"10.1007\/978-3-319-75208-2_2","article-title":"Optimal First-Order Boolean Masking for Embedded IoT\n  Devices","volume":"10728","author":"Alex Biryukov","year":"2017"},{"key":"ref10:Won2017EfficientConversionMethod","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"120","DOI":"10.1007\/978-3-319-64647-3_8","article-title":"Efficient Conversion Method from Arithmetic to Boolean\n  Masking in Constrained Devices","volume":"10348","author":"Yoo-Seung Won","year":"2017"},{"key":"ref11:Komano2019IntegrativeAccelerationOf","doi-asserted-by":"publisher","first-page":"585","DOI":"10.2197\/IPSJJIP.27.585","article-title":"Integrative Acceleration of First-order Boolean Masking for\n  Embedded IoT Devices","volume":"27","author":"Yuichi Komano","year":"2019","journal-title":"Journal of Information Processing"},{"key":"ref12:Barthe2018MaskingTheGLP","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"354","DOI":"10.1007\/978-3-319-78375-8_12","article-title":"Masking the GLP Lattice-Based Signature Scheme at Any\n  Order","volume":"10821","author":"Gilles Barthe","year":"2018"},{"key":"ref13:Schneider2019EfficientlyMaskingBinomial","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"534","DOI":"10.1007\/978-3-030-17259-6_18","article-title":"Efficiently Masking Binomial Sampling at Arbitrary Orders\n  for Lattice-Based Crypto","volume":"11443","author":"Tobias Schneider","year":"2019"},{"key":"ref14:Bache2020HighSpeedMasking","doi-asserted-by":"publisher","first-page":"483","DOI":"10.13154\/TCHES.V2020.I3.483-507","article-title":"High-Speed Masking for Polynomial Comparison in\n  Lattice-based KEMs","volume":"2020","author":"Florian Bache","year":"2020","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref15:Bhasin2021AttackingAndDefending","doi-asserted-by":"publisher","first-page":"334","DOI":"10.46586\/TCHES.V2021.I3.334-359","article-title":"Attacking and Defending Masked Polynomial Comparison for\n  Lattice-Based Cryptography","volume":"2021","author":"Shivam Bhasin","year":"2021","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref16:Bronchain2022BitslicingArithmeticBoolean","doi-asserted-by":"publisher","first-page":"553","DOI":"10.46586\/TCHES.V2022.I4.553-588","article-title":"Bitslicing Arithmetic\/Boolean Masking Conversions for Fun\n  and Profit with Application to Lattice-Based KEMs","volume":"2022","author":"Olivier Bronchain","year":"2022","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref17:Coron2023HigherOrderPolynomial","doi-asserted-by":"publisher","first-page":"153","DOI":"10.46586\/TCHES.V2023.I1.153-192","article-title":"High-order Polynomial Comparison and Masking Lattice-based\n  Encryption","volume":"2023","author":"Jean-S\u00e9bastien Coron","year":"2023","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref18:Hutter2016ConstantTimeHigher","volume-title":"Constant Time Higher-Order Boolean-to-Arithmetic Masking","author":"Michael Hutter","year":"2016"},{"key":"ref19:Hutter2016ConstantTimeHigher_JOCE","doi-asserted-by":"publisher","first-page":"173","DOI":"10.1007\/S13389-018-0191-Z","article-title":"Constant-Time Higher-Order Boolean-to-Arithmetic Masking","volume":"9","author":"Michael Hutter","year":"2019","journal-title":"Journal of Cryptographic Engineering"},{"key":"ref20:Coron2017HigherOrderConversion","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"93","DOI":"10.1007\/978-3-319-66787-4_5","article-title":"Higher-Order Conversion from Boolean to Arithmetic\n  Masking","volume":"10529","author":"Jean-S\u00e9bastien Coron","year":"2017"},{"key":"ref21:Bettale2018ImprovedHigherOrder","doi-asserted-by":"publisher","first-page":"22","DOI":"10.13154\/TCHES.V2018.I2.22-45","article-title":"Improved High-Order Conversion From Boolean to Arithmetic\n  Masking","volume":"2018","author":"Luk Bettale","year":"2018","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref22:Coron2023ImprovedGadgetsFor","doi-asserted-by":"publisher","first-page":"110","DOI":"10.46586\/TCHES.V2023.I4.110-145","article-title":"Improved Gadgets for the High-Order Masking of Dilithium","volume":"2023","author":"Jean-S\u00e9bastien Coron","year":"2023","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref23:Schneider2015ArithmeticAdditionOver","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"559","DOI":"10.1007\/978-3-319-28166-7_27","article-title":"Arithmetic Addition Over Boolean Masking\u2014Towards First-\n  and Second-Order Resistance in Hardware","volume":"9092","author":"Tobias Schneider","year":"2015"},{"key":"ref24:Gross2016ConcealingSecretsIn","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"89","DOI":"10.1007\/978-3-319-54669-8_6","article-title":"Concealing Secrets in Embedded Processors Designs","volume":"10146","author":"Hannes Gro\u00df","year":"2016"},{"key":"ref25:Beirendonck2021ASideChannel","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3429983","article-title":"A Side-Channel-Resistant Implementation of SABER","volume":"17","author":"Michiel Van Beirendonck","year":"2021","journal-title":"ACM Journal on Emerging Technologies in Computing Systems\n  (JETC)"},{"key":"ref26:Fritzmann2022MaskedAcceleratorsAnd","doi-asserted-by":"publisher","first-page":"414","DOI":"10.46586\/TCHES.V2022.I1.414-460","article-title":"Masked Accelerators and Instruction Set Extensions for\n  Post-Quantum Cryptography","volume":"2022","author":"Tim Fritzmann","year":"2022","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref27:Bache2022BooleanMaskingFor","doi-asserted-by":"publisher","DOI":"10.3390\/app12052274","article-title":"Boolean Masking for Arithmetic Additions at Arbitrary Order\n  in Hardware","volume":"12","author":"Florian Bache","year":"2022","journal-title":"Applied Sciences"},{"key":"ref28:Cassiers2023CompressReducingArea","volume-title":"Compress: Reducing Area and Latency of Masked Pipelined\n  Circuits","author":"Ga\u00ebtan Cassiers","year":"2023"},{"key":"ref29:Norga2024MaskConversionFor","volume-title":"Mask Conversions for d+1 Shares in Hardware, with\n  Application to Lattice-based PQC","author":"Quinten Norga","year":"2024"},{"key":"ref30:Cassier2022ComposableAndEfficient","volume-title":"Composable and Efficient Masking Schemes for Side-channel\n  Secure Implementations","author":"Ga\u00ebtan Cassiers","year":"2022"},{"key":"ref31:DBLP:conf\/ches\/GoubinP99","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"158","DOI":"10.1007\/3-540-48059-5_15","article-title":"DES and Differential Power Analysis","volume":"1717","author":"Louis Goubin","year":"1999"},{"key":"ref32:DBLP:conf\/ches\/CoronG00","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"231","DOI":"10.1007\/3-540-44499-8_18","article-title":"On Boolean and Arithmetic Masking against Differential\n  Power Analysis","volume":"1965","author":"Jean-S\u00e9bastien Coron","year":"2000"},{"key":"ref33:DBLP:conf\/asiacrypt\/BalaschFGPS17","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"724","DOI":"10.1007\/978-3-319-70694-8_25","article-title":"Consolidating Inner Product Masking","volume":"10624","author":"Josep Balasch","year":"2017"},{"key":"ref34:DBLP:conf\/ches\/GolicT02","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"198","DOI":"10.1007\/3-540-36400-5_16","article-title":"Multiplicative Masking and Power Analysis of AES","volume":"2523","author":"Jovan Dj. Golic","year":"2002"},{"key":"ref35:Ishai2003PrivateCircuits","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"463","DOI":"10.1007\/978-3-540-45146-4_27","article-title":"Private Circuits: Securing Hardware against Probing\n  Attacks","volume":"2729","author":"Yuval Ishai","year":"2003"},{"key":"ref36:DBLP:conf\/ches\/MangardPO05","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"157","DOI":"10.1007\/11545262_12","article-title":"Successfully Attacking Masked AES Hardware\n  Implementations","volume":"3659","author":"Stefan Mangard","year":"2005"},{"key":"ref37:DBLP:conf\/ches\/MoradiME10","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"125","DOI":"10.1007\/978-3-642-15031-9_9","article-title":"Correlation-Enhanced Power Analysis Collision Attack","volume":"6225","author":"Amir Moradi","year":"2010"},{"key":"ref38:DBLP:journals\/tches\/FaustGPPS18","doi-asserted-by":"publisher","first-page":"89","DOI":"10.13154\/TCHES.V2018.I3.89-120","article-title":"Composable Masking Schemes in the Presence of Physical\n  Defaults & the Robust Probing Model","volume":"2018","author":"Sebastian Faust","year":"2018","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref39:DBLP:conf\/crypto\/ReparazBNGV15","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"764","DOI":"10.1007\/978-3-662-47989-6_37","article-title":"Consolidating Masking Schemes","volume":"9215","author":"Oscar Reparaz","year":"2015"},{"key":"ref40:silver","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"787","DOI":"10.1007\/978-3-030-64837-4_26","article-title":"SILVER - Statistical Independence and Leakage\n  Verification","volume":"12491","author":"David Knichel","year":"2020"},{"key":"ref41:Nikova2006ThresholdImplementationsAgainst","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"529","DOI":"10.1007\/11935308_38","article-title":"Threshold Implementations Against Side-Channel Attacks and\n  Glitches","volume":"4307","author":"Svetla Nikova","year":"2006"},{"key":"ref42:DBLP:conf\/ccs\/GrossMK16","doi-asserted-by":"publisher","DOI":"10.1145\/2996366.2996426","article-title":"Domain-Oriented Masking: Compact Masked Hardware\n  Implementations with Arbitrary Protection Order","author":"Hannes Gro\u00df","year":"2016"},{"key":"ref43:DBLP:conf\/eurocrypt\/BartheBDFGS15","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"457","DOI":"10.1007\/978-3-662-46800-5_18","article-title":"Verified Proofs of Higher-Order Masking","volume":"9056","author":"Gilles Barthe","year":"2015"},{"key":"ref44:DBLP:conf\/ccs\/BartheBDFGSZ16","doi-asserted-by":"publisher","first-page":"116","DOI":"10.1145\/2976749.2978427","article-title":"Strong Non-Interference and Type-Directed Higher-Order\n  Masking","author":"Gilles Barthe","year":"2016"},{"key":"ref45:DBLP:journals\/tifs\/CassiersS20","doi-asserted-by":"publisher","first-page":"2542","DOI":"10.1109\/TIFS.2020.2971153","article-title":"Trivially and Efficiently Composing Masked Gadgets With\n  Probe Isolating Non-Interference","volume":"15","author":"Ga\u00ebtan Cassiers","year":"2020","journal-title":"IEEE Transactions on Information Forensics and Security"},{"key":"ref46:DBLP:phd\/dnb\/Knichel23","volume-title":"Formal Verification and Automated Masking of Cryptographic\n  Hardware","author":"David Knichel","year":"2023"},{"key":"ref47:DBLP:journals\/tc\/CassiersGLS21","doi-asserted-by":"publisher","first-page":"1677","DOI":"10.1109\/TC.2020.3022979","article-title":"Hardware Private Circuits: From Trivial Composition to Full\n  Verification","volume":"70","author":"Ga\u00ebtan Cassiers","year":"2021","journal-title":"IEEE Transactions on Computers"},{"key":"ref48:DBLP:journals\/tc\/KoggeS73","doi-asserted-by":"publisher","first-page":"786","DOI":"10.1109\/TC.1973.5009159","article-title":"A Parallel Algorithm for the Efficient Solution of a\n  General Class of Recurrence Equations","volume":"22","author":"Peter M. Kogge","year":"1973","journal-title":"IEEE Transactions on Computers"},{"key":"ref49:DBLP:journals\/tches\/MeyerBR19","doi-asserted-by":"publisher","first-page":"119","DOI":"10.13154\/TCHES.V2019.I3.119-147","article-title":"Consolidating Security Notions in Hardware Masking","volume":"2019","author":"Lauren De Meyer","year":"2019","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref50:Knichel2022AutomatedGenerationOf","doi-asserted-by":"publisher","first-page":"589","DOI":"10.46586\/TCHES.V2022.I1.589-629","article-title":"Automated Generation of Masked Hardware","volume":"2022","author":"David Knichel","year":"2022","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems (TCHES)"},{"key":"ref51:Coron2014SecureConversionBetween","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"188","DOI":"10.1007\/978-3-662-44709-3_11","article-title":"Secure Conversion between Boolean and Arithmetic Masking of\n  Any Order","volume":"8731","author":"Jean-S\u00e9bastien Coron","year":"2014"},{"key":"ref52:cw305","volume-title":"CW305 Artix FPGA Target","author":"NewAE"},{"key":"ref53:TVLA","volume-title":"A Testing Methodology for Side-Channel Resistance\n  Validation","author":"Gilbert Goodwill","year":"2011"},{"key":"ref54:DBLP:conf\/ches\/SchneiderM15","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"495","DOI":"10.1007\/978-3-662-48324-4_25","article-title":"Leakage Assessment Methodology - A Clear Roadmap for\n  Side-Channel Evaluations","volume":"9293","author":"Tobias Schneider","year":"2015"}],"container-title":["IACR Communications in Cryptology"],"original-title":[],"language":"en","deposited":{"date-parts":[[2024,12,10]],"date-time":"2024-12-10T16:28:47Z","timestamp":1733848127000},"score":1,"resource":{"primary":{"URL":"https:\/\/cic.iacr.org\/p\/1\/3\/46"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,10,7]]},"references-count":54,"URL":"https:\/\/doi.org\/10.62056\/a3c0l2isfg","archive":["Internet Archive","Internet Archive"],"relation":{},"ISSN":["3006-5496"],"issn-type":[{"value":"3006-5496","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,10,7]]},"assertion":[{"value":"2024-07-09","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-09-02","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"cc1-3-122"}}