{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,21]],"date-time":"2026-11-21T23:14:10Z","timestamp":1795302850274,"version":"4.10.3"},"reference-count":48,"publisher":"International Association for Cryptologic Research","license":[{"start":{"date-parts":[[2024,1,9]],"date-time":"2024-01-09T00:00:00Z","timestamp":1704758400000},"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,3,5]]},"abstract":"<jats:p>BIKE is a post-quantum key encapsulation mechanism (KEM) selected for the 4th round of the NIST's standardization campaign. It relies on the hardness of the syndrome decoding problem for quasi-cyclic codes and on the indistinguishability of the public key from a random element, and provides the most competitive performance among round 4 candidates, which makes it relevant for future real-world use cases. Analyzing its side-channel resistance has been highly encouraged by the community and several works have already outlined various side-channel weaknesses and proposed ad-hoc countermeasures. However, in contrast to the well-documented research line on masking lattice-based algorithms, the possibility of generically protecting code-based algorithms by masking has only been marginally studied in a 2016 paper by Chen et al. in SAC 2015. At this stage of the standardization campaign, it is important to assess the possibility of fully masking BIKE scheme and the resulting cost in terms of performances.<\/jats:p>\n                  <jats:p>In this work, we provide the first high-order masked implementation of a code-based algorithm. We had to tackle many issues such as finding proper ways to handle large sparse polynomials, masking the key-generation algorithm or keeping the benefit of the bitslicing. In this paper, we present all the gadgets necessary to provide a fully masked implementation of BIKE, we discuss our different implementation choices and we propose a full proof of masking in the Ishai Sahai and Wagner (Crypto 2003) model.<\/jats:p>\n                  <jats:p>More practically, we also provide an open C-code masked implementation of the key-generation, encapsulation and decapsulation algorithms with extensive benchmarks. While the obtained performance is slower than existing masked lattice-based algorithms, we show that masking at order 1, 2, 3, 4 and 5 implies a performance penalty of x5.8, x14.2, x24.4, x38 and x55.6 compared to order 0 (unmasked and unoptimized BIKE). This scaling is encouraging and no Boolean to Arithmetic conversion has been used.<\/jats:p>","DOI":"10.62056\/aesgvua5v","type":"journal-article","created":{"date-parts":[[2024,4,9]],"date-time":"2024-04-09T15:27:10Z","timestamp":1712676430000},"update-policy":"https:\/\/doi.org\/10.62056\/adfjwm02dj","source":"Crossref","is-referenced-by-count":7,"title":["A provably masked implementation of BIKE Key Encapsulation Mechanism"],"prefix":"10.62056","author":[{"given":"Lo\u00efc","family":"Demange","sequence":"first","affiliation":[{"id":[{"id":"https:\/\/ror.org\/04emwm605","id-type":"ROR","asserted-by":"publisher"}],"name":"Thales Gennevilliers","place":["France"]},{"id":[{"id":"https:\/\/ror.org\/02kvxyf05","id-type":"ROR","asserted-by":"publisher"}],"name":"Inria Paris","place":["France"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9268-3034","authenticated-orcid":false,"given":"M\u00e9lissa","family":"Rossi","sequence":"additional","affiliation":[{"name":"ANSSI","place":["France"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"48349","published-online":{"date-parts":[[2024,4,9]]},"reference":[{"key":"ref1:SAC:CEMS15","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"293","DOI":"10.1007\/978-3-319-31301-6_18","article-title":"Masking Large Keys in Hardware: A Masked Implementation of\n  McEliece","volume-title":"SAC 2015","volume":"9566","author":"Cong Chen","year":"2016"},{"key":"ref2:NISTPQC-R4:BIKE22","article-title":"BIKE","author":"Nicolas Aragon","year":"2022"},{"key":"ref3:MTSB13","doi-asserted-by":"publisher","first-page":"2069","DOI":"10.1109\/ISIT.2013.6620590","article-title":"MDPC-McEliece: New McEliece variants from Moderate Density\n  Parity-Check codes","volume-title":"2013 IEEE International Symposium on Information Theory","author":"Rafael Misoczki","year":"2013"},{"key":"ref4:PQCRYPTO:MauGun14","doi-asserted-by":"publisher","first-page":"266","DOI":"10.1007\/978-3-319-11659-4_16","article-title":"Towards Side-Channel Resistant Implementations of\n  QC-MDPC McEliece Encryption on Constrained Devices","volume-title":"Post-Quantum Cryptography - 6th International Workshop,\n  PQCrypto 2014","author":"Ingo von Maurich","year":"2014"},{"key":"ref5:maurich_implementing_2015","doi-asserted-by":"publisher","DOI":"10.1145\/2700102","article-title":"Implementing QC-MDPC McEliece Encryption","volume":"14","author":"Ingo Von Maurich","year":"2015","journal-title":"ACM Trans. Embed. Comput. Syst.","ISSN":"https:\/\/id.crossref.org\/issn\/1539-9087","issn-type":"electronic"},{"key":"ref6:PQCRYPTO:MauHebGun16","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1007\/978-3-319-29360-8_1","article-title":"IND-CCA Secure Hybrid Encryption from QC-MDPC\n  Niederreiter","volume-title":"Post-Quantum Cryptography - 7th International Workshop,\n  PQCrypto 2016","author":"Ingo von Maurich","year":"2016"},{"key":"ref7:CHES:Chou16","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"280","DOI":"10.1007\/978-3-662-53140-2_14","article-title":"QcBits: Constant-Time Small-Key Code-Based Cryptography","volume-title":"CHES\u00a02016","volume":"9813","author":"Tung Chou","year":"2016"},{"key":"ref8:JCEng:DruGue19","doi-asserted-by":"publisher","first-page":"341","DOI":"10.1007\/s13389-018-00200-4","article-title":"A toolbox for software optimization of QC-MDPC\n  code-based cryptosystems","volume":"9","author":"Nir Drucker","year":"2019","journal-title":"Journal of Cryptographic Engineering"},{"key":"ref9:guimaraes_optimized_2019","article-title":"Optimized implementation of QC-MDPC code-based\n  cryptography","volume":"31","author":"Antonio Guimar\u00e3es","year":"2019","journal-title":"Concurrency and Computation: Practice and Experience"},{"key":"ref10:bischof_efficient_2020","isbn-type":"print","doi-asserted-by":"publisher","first-page":"34","DOI":"10.1007\/978-3-030-41025-4_3","article-title":"Efficient Microcontroller Implementation of BIKE","volume-title":"Innovative Security Solutions for Information\n  Technology and Communications","author":"Mario Bischof","year":"2020","ISBN":"https:\/\/id.crossref.org\/isbn\/9783030410254"},{"key":"ref11:PQCRYPTO:DruGueKos20","doi-asserted-by":"publisher","first-page":"35","DOI":"10.1007\/978-3-030-44223-1_3","article-title":"QC-MDPC Decoders with Several Shades of Gray","volume-title":"Post-Quantum Cryptography - 11th International Conference,\n  PQCrypto 2020","author":"Nir Drucker","year":"2020"},{"key":"ref12:TCHES:CheChoKra21","doi-asserted-by":"publisher","first-page":"97","DOI":"10.46586\/tches.v2021.i3.97-124","article-title":"Optimizing BIKE for the Intel Haswell and ARM\n  Cortex-M4","volume":"2021","author":"Ming-Shing Chen","year":"2021","journal-title":"IACR TCHES","ISSN":"https:\/\/id.crossref.org\/issn\/2569-2925","issn-type":"electronic"},{"key":"ref13:ACNS:CGKT22","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"833","DOI":"10.1007\/978-3-031-09234-3_41","article-title":"Carry-Less to BIKE Faster","volume-title":"ACNS 22","volume":"13269","author":"Ming-Shing Chen","year":"2022"},{"key":"ref14:Guo_Hlauschek_Johansson_Lahr_Nilsson_Schr\u00f6der_2022","doi-asserted-by":"publisher","first-page":"223","DOI":"10.46586\/tches.v2022.i3.223-263","article-title":"Don\u2019t Reject This: Key-Recovery Timing Attacks Due to\n  Rejection-Sampling in HQC and BIKE","volume":"2022","author":"Qian Guo","year":"2022","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems"},{"key":"ref15:AC:GuoJohSta16","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"789","DOI":"10.1007\/978-3-662-53887-6_29","article-title":"A Key Recovery Attack on MDPC with CCA Security Using\n  Decoding Errors","volume-title":"ASIACRYPT\u00a02016, Part\u00a0I","volume":"10031","author":"Qian Guo","year":"2016"},{"key":"ref16:EPRINT:Sendrier2021","article-title":"Secure Sampling of Constant-Weight Words ? Application to\n  BIKE","author":"Nicolas Sendrier","year":"2021"},{"key":"ref17:CHES:RHHM17","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"3","DOI":"10.1007\/978-3-319-66787-4_1","article-title":"A Side-Channel Assisted Cryptanalytic Attack Against\n  QcBits","volume-title":"CHES\u00a02017","volume":"10529","author":"Melissa Rossi","year":"2017"},{"key":"ref18:TCHES:SKCCP19","doi-asserted-by":"publisher","first-page":"180","DOI":"10.13154\/tches.v2019.i4.180-212","article-title":"Novel Side-Channel Attacks on Quasi-Cyclic Code-Based\n  Cryptography","volume":"2019","author":"Bo-Yeon Sim","year":"2019","journal-title":"IACR TCHES","ISSN":"https:\/\/id.crossref.org\/issn\/2569-2925","issn-type":"electronic"},{"key":"ref19:BIKE-key-reco","article-title":"BIKE Key-Recovery: Combining Power Consumption Analysis and\n  Information-Set Decoding","volume-title":"ACNS","author":"Agathe Cheriere","year":"2023"},{"key":"ref20:C:IshSahWag03","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-title":"CRYPTO\u00a02003","volume":"2729","author":"Yuval Ishai","year":"2003"},{"key":"ref21:CHES:RivPro10","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"413","DOI":"10.1007\/978-3-642-15031-9_28","article-title":"Provably Secure Higher-Order Masking of AES","volume-title":"CHES\u00a02010","volume":"6225","author":"Matthieu Rivain","year":"2010"},{"key":"ref22:FSE:CPRR13","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"410","DOI":"10.1007\/978-3-662-43933-3_21","article-title":"Higher-Order Side Channel Security and Mask Refreshing","volume-title":"FSE\u00a02013","volume":"8424","author":"Jean-S\u00e9bastien Coron","year":"2014"},{"key":"ref23:CCS:BBDFGS16","doi-asserted-by":"publisher","first-page":"116","DOI":"10.1145\/2976749.2978427","article-title":"Strong Non-Interference and Type-Directed Higher-Order\n  Masking","volume-title":"ACM CCS 2016","author":"Gilles Barthe","year":"2016"},{"key":"ref24:EC:BBEFGR18","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-title":"EUROCRYPT\u00a02018, Part\u00a0II","volume":"10821","author":"Gilles Barthe","year":"2018"},{"key":"ref25:cryptoeprint:2019:606","isbn-type":"print","doi-asserted-by":"publisher","first-page":"74","DOI":"10.1007\/978-3-030-42068-0_5","article-title":"An Efficient and Provable Masked Implementation of qTESLA","volume-title":"Smart Card Research and Advanced Applications","author":"Fran\u00e7ois G\u00e9rard","year":"2020","ISBN":"https:\/\/id.crossref.org\/isbn\/9783030420673"},{"key":"ref26:NISTPQC-R2:qTESLA19","article-title":"qTESLA","author":"Nina Bindel","year":"2019"},{"key":"ref27:10.1007\/978-3-031-14791-3_5","isbn-type":"print","doi-asserted-by":"crossref","first-page":"93","DOI":"10.1007\/978-3-031-14791-3_5","article-title":"Higher-Order Masked Saber","volume-title":"Security and Cryptography for Networks","author":"Suparna Kundu","year":"2022","ISBN":"https:\/\/id.crossref.org\/isbn\/9783031147913"},{"key":"ref28:NISTPQC-R3:SABER20","article-title":"SABER","author":"Jan-Pieter D'Anvers","year":"2020"},{"key":"ref29:NISTPQC:CRYSTALS-DILITHIUM22","article-title":"CRYSTALS-DILITHIUM","author":"Vadim Lyubashevsky","year":"2022"},{"key":"ref30:NISTPQC:CRYSTALS-KYBER22","article-title":"CRYSTALS-KYBER","author":"Peter Schwabe","year":"2022"},{"key":"ref31:Azouaoui_Bronchain_Cassiers_Hoffmann_Kuzovkova_Renes_Schneider_Sch\u00f6nauer_Standaert_van_Vredendaal_2023","doi-asserted-by":"publisher","first-page":"58","DOI":"10.46586\/tches.v2023.i4.58-79","article-title":"Protecting Dilithium against Leakage: Revisited Sensitivity\n  Analysis and Improved Implementations","volume":"2023","author":"Melissa Azouaoui","year":"2023","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems"},{"key":"ref32:TCHES:BGRSv21","doi-asserted-by":"publisher","first-page":"173","DOI":"10.46586\/tches.v2021.i4.173-214","article-title":"Masking Kyber: First- and Higher-Order Implementations","volume":"2021","author":"Joppe W. Bos","year":"2021","journal-title":"IACR TCHES","ISSN":"https:\/\/id.crossref.org\/issn\/2569-2925","issn-type":"electronic"},{"key":"ref33:10.1007\/978-3-031-17234-2_15","isbn-type":"print","doi-asserted-by":"crossref","first-page":"309","DOI":"10.1007\/978-3-031-17234-2_15","article-title":"Efficiently Masking Polynomial Inversion at\u00a0Arbitrary\n  Order","volume-title":"Post-Quantum Cryptography","author":"Markus Krausz","year":"2022","ISBN":"https:\/\/id.crossref.org\/isbn\/9783031172342"},{"key":"ref34:10.1007\/978-3-031-31371-4_4","isbn-type":"print","doi-asserted-by":"crossref","first-page":"94","DOI":"10.1007\/978-3-031-31371-4_4","article-title":"A Holistic Approach Towards Side-Channel Secure Fixed-Weight\n  Polynomial Sampling","volume-title":"Public-Key Cryptography \u2013 PKC 2023","author":"Markus Krausz","year":"2023","ISBN":"https:\/\/id.crossref.org\/isbn\/9783031313714"},{"key":"ref35:CHES:CorGroVad14","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\n  of Any Order","volume-title":"CHES\u00a02014","volume":"8731","author":"Jean-S\u00e9bastien Coron","year":"2014"},{"key":"ref36:CHES:Coron17","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"93","DOI":"10.1007\/978-3-319-66787-4_5","article-title":"High-Order Conversion from Boolean to Arithmetic Masking","volume-title":"CHES\u00a02017","volume":"10529","author":"Jean-S\u00e9bastien Coron","year":"2017"},{"key":"ref37:FSE:CGTV15","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-title":"FSE\u00a02015","volume":"9054","author":"Jean-S\u00e9bastien Coron","year":"2015"},{"key":"ref38:EC:DucDziFau14","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"423","DOI":"10.1007\/978-3-642-55220-5_24","article-title":"Unifying Leakage Models: From Probing Attacks to Noisy\n  Leakage","volume-title":"EUROCRYPT\u00a02014","volume":"8441","author":"Alexandre Duc","year":"2014"},{"key":"ref39:C:CJRR99","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"398","DOI":"10.1007\/3-540-48405-1_26","article-title":"Towards Sound Approaches to Counteract Power-Analysis\n  Attacks","volume-title":"CRYPTO'99","volume":"1666","author":"Suresh Chari","year":"1999"},{"key":"ref40:FOCS:Alekhnovich03","doi-asserted-by":"publisher","first-page":"298","DOI":"10.1109\/SFCS.2003.1238204","article-title":"More on Average Case vs Approximation Complexity","volume-title":"44th FOCS","author":"Michael Alekhnovich","year":"2003"},{"key":"ref41:1055873","doi-asserted-by":"publisher","first-page":"384","DOI":"10.1109\/TIT.1978.1055873","article-title":"On the inherent intractability of certain coding problems\n  (Corresp.)","volume":"24","author":"E. Berlekamp","year":"1978","journal-title":"IEEE Transactions on Information Theory"},{"key":"ref42:Niederreiter86","first-page":"159","article-title":"Knapsack-Type Cryptosystems and Algebraic Coding Theory","volume":"15","author":"H. Niederreiter","year":"1986","journal-title":"Problems of Control and Information Theory"},{"key":"ref43:C:FujOka99","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"537","DOI":"10.1007\/3-540-48405-1_34","article-title":"Secure Integration of Asymmetric and Symmetric Encryption\n  Schemes","volume-title":"CRYPTO'99","volume":"1666","author":"Eiichiro Fujisaki","year":"1999"},{"key":"ref44:TCC:HofHovKil17","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"341","DOI":"10.1007\/978-3-319-70500-2_12","article-title":"A Modular Analysis of the Fujisaki-Okamoto\n  Transformation","volume-title":"TCC\u00a02017, Part\u00a0I","volume":"10677","author":"Dennis Hofheinz","year":"2017"},{"key":"ref45:1057683","doi-asserted-by":"publisher","first-page":"21","DOI":"10.1109\/TIT.1962.1057683","article-title":"Low-density parity-check codes","volume":"8","author":"R. Gallager","year":"1962","journal-title":"IRE Transactions on Information Theory"},{"key":"ref46:EC:Coron14","series-title":"LNCS","doi-asserted-by":"publisher","first-page":"441","DOI":"10.1007\/978-3-642-55220-5_25","article-title":"Higher Order Masking of Look-Up Tables","volume-title":"EUROCRYPT\u00a02014","volume":"8441","author":"Jean-S\u00e9bastien Coron","year":"2014"},{"key":"ref47:D\u2019Anvers_Heinz_Pessl_Van_Beirendonck_Verbauwhede_2022","doi-asserted-by":"publisher","first-page":"115","DOI":"10.46586\/tches.v2022.i2.115-139","article-title":"Higher-Order Masked Ciphertext Comparison for Lattice-Based\n  Cryptography","volume":"2022","author":"Jan-Pieter D\u2019Anvers","year":"2022","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded\n  Systems"},{"key":"ref48:Lemire_2019","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3230636","article-title":"Fast Random Integer Generation in an Interval","volume":"29","author":"Daniel Lemire","year":"2019","journal-title":"ACM Transactions on Modeling and Computer Simulation"}],"container-title":["IACR Communications in Cryptology"],"original-title":[],"language":"en","deposited":{"date-parts":[[2024,12,10]],"date-time":"2024-12-10T16:25:28Z","timestamp":1733847928000},"score":1,"resource":{"primary":{"URL":"https:\/\/cic.iacr.org\/p\/1\/1\/23"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,4,9]]},"references-count":48,"URL":"https:\/\/doi.org\/10.62056\/aesgvua5v","archive":["Internet Archive","Internet Archive"],"relation":{},"ISSN":["3006-5496"],"issn-type":[{"value":"3006-5496","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,4,9]]},"assertion":[{"value":"2024-01-09","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-03-05","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"cc1-1-57"}}