{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,7]],"date-time":"2026-10-07T05:09:10Z","timestamp":1791349750203,"version":"4.3.1"},"reference-count":42,"publisher":"PeerJ","license":[{"start":{"date-parts":[[2026,7,3]],"date-time":"2026-07-03T00:00:00Z","timestamp":1783036800000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000780","name":"European Union","doi-asserted-by":"crossref","award":["101225691"],"award-info":[{"award-number":["101225691"]}],"id":[{"id":"10.13039\/501100000780","id-type":"DOI","asserted-by":"crossref"}]},{"name":"QARC and by Dutch Research Council (NWO)","award":["TTW PREDATOR 19782, TTW BASES 20858"],"award-info":[{"award-number":["TTW PREDATOR 19782, TTW BASES 20858"]}]},{"name":"CiCS Project of the Research Programme Gravitation","award":["024.006.037"],"award-info":[{"award-number":["024.006.037"]}]},{"name":"Open Competition Project ESCAPE","award":["OCENW.XL.23.112"],"award-info":[{"award-number":["OCENW.XL.23.112"]}]},{"name":"European Cybersecurity Competence Centre","award":["101225691"],"award-info":[{"award-number":["101225691"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"abstract":"<jats:p>We present the first unified hardware implementation of the post-quantum schemes Module-Lattice-Based Digital Signature Algorithm (ML-DSA) and Module-Lattice-Based Key Encapsulation Mechanism (ML-KEM) protected against side-channel attacks using first-order masking. Rather than proposing new masking gadgets, we focus on hardware-optimized instantiations and integration of state-of-the-art masked components, including masked domain conversions, sampling, and message decoder. In addition, we propose an optimized masked decomposition algorithm with a formal security proof, reducing the number of required operations compared to prior approaches. The complete implementation was functionally verified against the reference software implementations and evaluated on an Field Programmable Gate Array (FPGA) platform. Side-channel resistance was assessed using the Test Vector Leakage Assessment (TVLA) methodology, showing no first-order leakage under the tested conditions. To facilitate reproducibility and further research, we publicly release the full hardware source code together with the collected side-channel trace datasets.<\/jats:p>","DOI":"10.7717\/peerj-cs.4003","type":"journal-article","created":{"date-parts":[[2026,7,3]],"date-time":"2026-07-03T08:47:19Z","timestamp":1783068439000},"page":"e4003","source":"Crossref","is-referenced-by-count":1,"title":["Two birds, one mask: side-channel-resistant unified hardware for ML-DSA and ML-KEM"],"prefix":"10.7717","volume":"12","author":[{"given":"Patrik","family":"Dobias","sequence":"first","affiliation":[{"name":"Department of Telecommunications, Technical University of Brno, Brno, Czech Republic"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Aikata","family":"Aikata","sequence":"additional","affiliation":[{"name":"Technische Universit\u00e4t Graz, Graz, Austria"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Azade","family":"Rezaeezade","sequence":"additional","affiliation":[{"name":"Radboud University Nijmegen, Nijmegen, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lejla","family":"Batina","sequence":"additional","affiliation":[{"name":"Radboud University Nijmegen, Nijmegen, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lukas","family":"Malina","sequence":"additional","affiliation":[{"name":"Department of Telecommunications, Technical University of Brno, Brno, Czech Republic"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8282-7180","authenticated-orcid":true,"given":"Tom\u00e1\u0161","family":"Gerlich","sequence":"additional","affiliation":[{"name":"Department of Telecommunications, Technical University of Brno, Brno, Czech Republic"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"4443","published-online":{"date-parts":[[2026,7,3]]},"reference":[{"issue":"3","key":"10.7717\/peerj-cs.4003\/ref-1","doi-asserted-by":"publisher","first-page":"366","DOI":"10.46586\/tches.v2023.i3.366-390","article-title":"Kavach: lightweight masking techniques for polynomial arithmetic in lattice-based cryptography","volume":"2023","author":"Aikata","year":"2023a","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"issue":"2","key":"10.7717\/peerj-cs.4003\/ref-2","doi-asserted-by":"publisher","first-page":"747","DOI":"10.1109\/tcsi.2022.3219555","article-title":"KaLi: a crystal for post-quantum security using Kyber and Dilithium","volume":"70","author":"Aikata","year":"2023b","journal-title":"IEEE Transactions on Circuits and Systems I: Regular Papers"},{"issue":"4","key":"10.7717\/peerj-cs.4003\/ref-3","doi-asserted-by":"publisher","first-page":"58","DOI":"10.46586\/tches.v2023.i4.58-79","article-title":"Protecting Dilithium against leakage: revisited sensitivity analysis and improved implementations","volume":"2023","author":"Azouaoui","year":"2023","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"key":"10.7717\/peerj-cs.4003\/ref-4","first-page":"116","article-title":"Strong non-interference and type-directed higher-order masking","author":"Barthe","year":"2016"},{"key":"10.7717\/peerj-cs.4003\/ref-5","doi-asserted-by":"crossref","first-page":"354","DOI":"10.1007\/978-3-319-78375-8_12","article-title":"Masking the GLP lattice-based signature scheme at any order","volume-title":"Advances in Cryptology\u2014EUROCRYPT 2018","author":"Barthe","year":"2018"},{"key":"10.7717\/peerj-cs.4003\/ref-6","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1007\/978-3-540-88702-7_1","article-title":"Introduction to post-quantum cryptography","volume-title":"Post-Quantum Cryptography","author":"Bernstein","year":"2009"},{"key":"10.7717\/peerj-cs.4003\/ref-7","article-title":"KyberSlash: exploiting secret-dependent division timings in Kyber implementations. Cryptology ePrint Archive, Paper 2024\/1049","author":"Bernstein","year":"2024"},{"key":"10.7717\/peerj-cs.4003\/ref-8","article-title":"Keccak sponge function family main document","author":"Bertoni","year":"2009"},{"key":"10.7717\/peerj-cs.4003\/ref-9","article-title":"Building power analysis resistant implementations of Keccak","volume":"142","author":"Bertoni","year":"2010"},{"issue":"4","key":"10.7717\/peerj-cs.4003\/ref-10","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":"Bos","year":"2021","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"issue":"4","key":"10.7717\/peerj-cs.4003\/ref-11","doi-asserted-by":"publisher","first-page":"553","DOI":"10.46586\/tches.v2022.i4.553-588","article-title":"Bitslicing arithmetic\/boolean masking conversions for fun and profit: with application to lattice-based kems","volume":"2022","author":"Bronchain","year":"2022","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"issue":"86","key":"10.7717\/peerj-cs.4003\/ref-12","doi-asserted-by":"publisher","first-page":"5196","DOI":"10.21105\/joss.05196","article-title":"SCALib: a side-channel analysis library","volume":"8","author":"Cassiers","year":"2023","journal-title":"Journal of Open Source Software"},{"key":"10.7717\/peerj-cs.4003\/ref-13","doi-asserted-by":"crossref","first-page":"398","DOI":"10.1007\/3-540-48405-1_26","article-title":"Towards sound approaches to counteract power-analysis attacks","volume-title":"Advances in Cryptology\u2014CRYPTO\u2019 99","author":"Chari","year":"1999"},{"issue":"1","key":"10.7717\/peerj-cs.4003\/ref-14","doi-asserted-by":"publisher","first-page":"322","DOI":"10.1109\/tcad.2022.3174142","article-title":"Low-cost shuffling countermeasures against side-channel attacks for NTT-based post-quantum cryptography","volume":"42","author":"Chen","year":"2023","journal-title":"IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems"},{"key":"10.7717\/peerj-cs.4003\/ref-15","first-page":"188","article-title":"Secure conversion between boolean and arithmetic masking of any order","volume-title":"Cryptographic Hardware and Embedded Systems\u2014CHES 2014","author":"Coron","year":"2014"},{"issue":"4","key":"10.7717\/peerj-cs.4003\/ref-16","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":"Coron","year":"2023","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"issue":"2","key":"10.7717\/peerj-cs.4003\/ref-17","doi-asserted-by":"publisher","first-page":"e2746","DOI":"10.7717\/peerj-cs.2746","article-title":"Efficient unified architecture for post-quantum cryptography: combining Dilithium and Kyber","volume":"11","author":"Dobias","year":"2025","journal-title":"PeerJ Computer Science"},{"key":"10.7717\/peerj-cs.4003\/ref-18","article-title":"SoK: reassessing side-channel vulnerabilities and countermeasures in PQC implementations. Cryptology ePrint Archive","author":"Dobias","year":"2025"},{"issue":"3","key":"10.7717\/peerj-cs.4003\/ref-19","doi-asserted-by":"publisher","first-page":"89","DOI":"10.46586\/tches.v2018.i3.89-120","article-title":"Composable masking schemes in the presence of physical defaults & the robust probing model","volume":"2018","author":"Faust","year":"2018","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"issue":"1","key":"10.7717\/peerj-cs.4003\/ref-20","doi-asserted-by":"publisher","first-page":"414","DOI":"10.46586\/tches.v2022.i1.414-460","article-title":"Masked accelerators and instruction set extensions for post-quantum cryptography","volume":"2022","author":"Fritzmann","year":"2021","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"key":"10.7717\/peerj-cs.4003\/ref-21","first-page":"115","article-title":"A testing methodology for side-channel resistance validation","volume":"7","author":"Goodwill","year":"2011"},{"key":"10.7717\/peerj-cs.4003\/ref-22","doi-asserted-by":"crossref","first-page":"3","DOI":"10.1007\/3-540-44709-1_2","article-title":"A sound method for switching between boolean and arithmetic masking","volume-title":"Cryptographic Hardware and Embedded Systems\u2014CHES 2001","author":"Goubin","year":"2001"},{"key":"10.7717\/peerj-cs.4003\/ref-23","article-title":"First-order masked Kyber on ARM cortex-m4. Cryptology ePrint Archive, Paper 2022\/058","author":"Heinz","year":"2022"},{"key":"10.7717\/peerj-cs.4003\/ref-24","first-page":"463","article-title":"Private circuits: securing hardware against probing attacks","volume-title":"Advances in Cryptology\u2014CRYPTO 2003, volume 2729 of Lecture Notes in Computer Science","author":"Ishai","year":"2003"},{"issue":"2","key":"10.7717\/peerj-cs.4003\/ref-25","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3587037","article-title":"A configurable CRYSTALS-Kyber hardware implementation with side-channel protection","volume":"23","author":"Jati","year":"2024","journal-title":"ACM Transactions on Embedded Computing Systems"},{"key":"10.7717\/peerj-cs.4003\/ref-26","article-title":"A masked pure-hardware implementation of Kyber cryptographic algorithm. Cryptology ePrint Archive, Paper 2022\/1547","author":"Kamucheka","year":"2022"},{"key":"10.7717\/peerj-cs.4003\/ref-27","first-page":"104","article-title":"Timing attacks on implementations of diffie-hellman, RSA, DSS, and other systems","volume-title":"Advances in Cryptology\u2014CRYPTO \u201996, 16th Annual International Cryptology Conference, Santa Barbara, California, USA, August 18\u201322, 1996, Proceedings, volume 1109 of Lecture Notes in Computer Science","author":"Kocher","year":"1996"},{"key":"10.7717\/peerj-cs.4003\/ref-28","doi-asserted-by":"crossref","first-page":"3","DOI":"10.1007\/978-3-319-49445-6_1","article-title":"Breaking cryptographic implementations using deep learning techniques","volume-title":"Security, Privacy, and Applied Cryptography Engineering","author":"Maghrebi","year":"2016"},{"key":"10.7717\/peerj-cs.4003\/ref-29","doi-asserted-by":"crossref","first-page":"344","DOI":"10.1007\/978-3-030-21568-2_17","article-title":"Masking Dilithium","volume-title":"Applied Cryptography and Network Security","author":"Migliore","year":"2019"},{"issue":"5","key":"10.7717\/peerj-cs.4003\/ref-30","doi-asserted-by":"publisher","first-page":"7","DOI":"10.1109\/mdat.2023.3298805","article-title":"Securing CRYSTALS-Kyber in FPGA using duplication and clock randomization","volume":"41","author":"Moraitis","year":"2024","journal-title":"IEEE Design & Test"},{"key":"10.7717\/peerj-cs.4003\/ref-31","article-title":"Module-lattice-based digital signature standard","author":"NIST","year":"2024a"},{"key":"10.7717\/peerj-cs.4003\/ref-32","article-title":"Module-lattice-based key-encapsulation mechanism standard","author":"NIST","year":"2024b"},{"key":"10.7717\/peerj-cs.4003\/ref-33","article-title":"X2X: low-randomness and high-throughput A2B and B2A conversions for d + 1 shares in hardware. Cryptology ePrint Archive, Paper 2024\/114","author":"Norga","year":"2024"},{"issue":"1","key":"10.7717\/peerj-cs.4003\/ref-34","doi-asserted-by":"publisher","first-page":"142","DOI":"10.46586\/tches.v2018.i1.142-174","article-title":"Practical CCA2-secure and masked ring-LWE implementation","volume":"2018","author":"Oder","year":"2018","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"key":"10.7717\/peerj-cs.4003\/ref-35","article-title":"Improved ML-DSA hardware implementation with first order masking countermeasure. Cryptology ePrint Archive, Paper 2024\/1817","author":"Raj","year":"2024"},{"key":"10.7717\/peerj-cs.4003\/ref-36","first-page":"307","article-title":"Generic side-channel attacks on CCA-secure lattice-based PKE and KEMs","author":"Ravi","year":"2020"},{"key":"10.7717\/peerj-cs.4003\/ref-37","doi-asserted-by":"crossref","first-page":"683","DOI":"10.1007\/978-3-662-48324-4_34","article-title":"A masked ring-LWE implementation","volume-title":"Cryptographic Hardware and Embedded Systems\u2013CHES 2015","author":"Reparaz","year":"2015"},{"key":"10.7717\/peerj-cs.4003\/ref-38","article-title":"Efficient boolean-to-arithmetic mask conversion in hardware. Cryptology ePrint Archive, Paper 2024\/1633","author":"Shahmirzadi","year":"2024"},{"issue":"1","key":"10.7717\/peerj-cs.4003\/ref-39","doi-asserted-by":"publisher","first-page":"296","DOI":"10.46586\/tches.v2022.i1.296-322","article-title":"Curse of re-encryption: a generic power\/EM analysis on post-quantum KEMs","volume":"2022","author":"Ueno","year":"2021","journal-title":"IACR Transactions on Cryptographic Hardware and Embedded Systems"},{"key":"10.7717\/peerj-cs.4003\/ref-40","article-title":"Practical side-channel attack on masked message encoding in latticed-based KEM. Cryptology ePrint Archive, Paper 2022\/859","author":"Wang","year":"2022"},{"issue":"3","key":"10.7717\/peerj-cs.4003\/ref-41","doi-asserted-by":"publisher","first-page":"504","DOI":"10.1109\/tcsii.2025.3528751","article-title":"A hardware-friendly shuffling countermeasure against side-channel attacks for Kyber","volume":"72","author":"Xu","year":"2025","journal-title":"IEEE Transactions on Circuits and Systems II: Express Briefs"},{"issue":"12","key":"10.7717\/peerj-cs.4003\/ref-42","doi-asserted-by":"publisher","first-page":"5025","DOI":"10.1109\/tcsi.2023.3288600","article-title":"Side channel security oriented evaluation and protection on hardware implementations of Kyber","volume":"70","author":"Zhao","year":"2023","journal-title":"IEEE Transactions on Circuits and Systems I: Regular Papers"}],"container-title":["PeerJ Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/peerj.com\/articles\/cs-4003.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-4003.xml","content-type":"application\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-4003.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-4003.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,3]],"date-time":"2026-07-03T08:47:25Z","timestamp":1783068445000},"score":1,"resource":{"primary":{"URL":"https:\/\/peerj.com\/articles\/cs-4003"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,7,3]]},"references-count":42,"alternative-id":["10.7717\/peerj-cs.4003"],"URL":"https:\/\/doi.org\/10.7717\/peerj-cs.4003","archive":["CLOCKSS","LOCKSS","Portico"],"relation":{},"ISSN":["2376-5992"],"issn-type":[{"value":"2376-5992","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,7,3]]},"article-number":"e4003"}}