{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,27]],"date-time":"2026-10-27T12:02:47Z","timestamp":1793102567260,"version":"4.5.0"},"reference-count":57,"publisher":"International Association for Cryptologic Research","license":[{"start":{"date-parts":[[2024,4,9]],"date-time":"2024-04-09T00:00:00Z","timestamp":1712620800000},"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,6,3]]},"abstract":"<jats:p>\n                    We present a solution to the open problem of designing a linear-time, unbiased and timing attack-resistant shuffling algorithm for fixed-weight sampling. Although it can be implemented without timing leakages of secret data in any architecture, we illustrate with ARMv7-M and ARMv8-A implementations; for the latter, we take advantage of architectural features such as NEON and conditional instructions, which are representative of features available on architectures targeting similar systems, such as Intel. Our proposed algorithm improves asymptotically upon the current approach based on constant-time sorting networks (\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mrow>\n                        <mml:mi>O<\/mml:mi>\n                        <mml:mo stretchy=\"false\">(<\/mml:mo>\n                        <mml:mi>n<\/mml:mi>\n                        <mml:mo stretchy=\"false\">)<\/mml:mo>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    versus\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mrow>\n                        <mml:mi>O<\/mml:mi>\n                        <mml:mo stretchy=\"false\">(<\/mml:mo>\n                        <mml:mi>n<\/mml:mi>\n                        <mml:msup>\n                          <mml:mi>log<\/mml:mi>\n                          <mml:mn>2<\/mml:mn>\n                        <\/mml:msup>\n                        <mml:mi>n<\/mml:mi>\n                        <mml:mo stretchy=\"false\">)<\/mml:mo>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    ), and an implementation of the new algorithm applied to NTRU is also faster in practice, by a factor of up to\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mrow>\n                        <mml:mn>6.91<\/mml:mn>\n                        <mml:mtext>\u00a0<\/mml:mtext>\n                        <mml:mo stretchy=\"false\">(<\/mml:mo>\n                        <mml:mn>591<\/mml:mn>\n                        <mml:mi>%<\/mml:mi>\n                        <mml:mo stretchy=\"false\">)<\/mml:mo>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    on ARMv8-A cores and\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mrow>\n                        <mml:mn>12.89<\/mml:mn>\n                        <mml:mtext>\u00a0<\/mml:mtext>\n                        <mml:mo stretchy=\"false\">(<\/mml:mo>\n                        <mml:mn>1189<\/mml:mn>\n                        <mml:mi>%<\/mml:mi>\n                        <mml:mo stretchy=\"false\">)<\/mml:mo>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    on the Cortex-M4; it also requires fewer uniform random bits. This translates into performance improvements for NTRU encapsulation, compared to state-of-the-art implementations, of up to 50% on ARMv8-A cores and 72% on the Cortex-M4, and small improvements to key generation (up to 2.7% on ARMv8-A cores and 6.1% on the Cortex-M4), with negligible impact on code size and a slight improvement in RAM usage for the Cortex-M4.\n                  <\/jats:p>","DOI":"10.62056\/a6n59qgxq","type":"journal-article","created":{"date-parts":[[2024,7,8]],"date-time":"2024-07-08T11:52:04Z","timestamp":1720439524000},"update-policy":"https:\/\/doi.org\/10.62056\/adfjwm02dj","source":"Crossref","is-referenced-by-count":4,"title":["Efficient isochronous fixed-weight sampling with applications to NTRU"],"prefix":"10.62056","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6001-2172","authenticated-orcid":false,"given":"D\u00e9cio","family":"Filho","sequence":"first","affiliation":[{"id":[{"id":"https:\/\/ror.org\/04wffgt70","id-type":"ROR","asserted-by":"publisher"}],"name":"Universidade Estadual de Campinas (UNICAMP)","place":["Campinas, S\u00e3o Paulo, Brazil"],"department":["Instituto de Computa\u00e7\u00e3o"]},{"id":[{"id":"https:\/\/ror.org\/01585b035","id-type":"ROR","asserted-by":"publisher"}],"name":"State University of Londrina","place":["Londrina, Paran\u00e1, Brazil"],"department":["Department of Electrical Engineering"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5825-9133","authenticated-orcid":false,"given":"Tom\u00e1s","family":"Silva","sequence":"additional","affiliation":[{"id":[{"id":"https:\/\/ror.org\/04wffgt70","id-type":"ROR","asserted-by":"publisher"}],"name":"Universidade Estadual de Campinas (UNICAMP)","place":["Campinas, S\u00e3o Paulo, Brazil"],"department":["Instituto de Matem\u00e1tica, Estat\u00edstica e Computa\u00e7\u00e3o Cient\u00edfica"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5139-0158","authenticated-orcid":false,"given":"Julio","family":"L\u00f3pez","sequence":"additional","affiliation":[{"id":[{"id":"https:\/\/ror.org\/04wffgt70","id-type":"ROR","asserted-by":"publisher"}],"name":"Universidade Estadual de Campinas (UNICAMP)","place":["Campinas, S\u00e3o Paulo, Brazil"],"department":["Instituto de Computa\u00e7\u00e3o"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"48349","published-online":{"date-parts":[[2024,7,8]]},"reference":[{"key":"ref1:Grover","series-title":"STOC '96","isbn-type":"print","doi-asserted-by":"crossref","first-page":"212","DOI":"10.1145\/237814.237866","article-title":"A Fast Quantum Mechanical Algorithm for Database Search","volume-title":"Proceedings of the Twenty-Eighth Annual ACM Symposium on\n  Theory of Computing","author":"Lov K. Grover","year":"1996","ISBN":"https:\/\/id.crossref.org\/isbn\/0897917855"},{"key":"ref2:Shor1997","doi-asserted-by":"publisher","first-page":"1484","DOI":"10.1137\/S0097539795293172","article-title":"Polynomial-Time Algorithms for Prime Factorization and\n  Discrete Logarithms on a Quantum Computer","volume":"26","author":"Peter W. Shor","year":"1997","journal-title":"SIAM J. Comput.","ISSN":"https:\/\/id.crossref.org\/issn\/0097-5397","issn-type":"electronic"},{"key":"ref3:NTRUPreprint","article-title":"NTRU: a new high speed public key cryptosystem","author":"Jeffrey Hoffstein","year":"1996"},{"key":"ref4:NISTPQC-R3:NTRU20","article-title":"NTRU","author":"Cong Chen","year":"2020"},{"key":"ref5:NIST:2017","article-title":"Post-Quantum Cryptography Standardization: Call for\n  Proposals Announcement","author":"National Institute of Standards","year":"2017"},{"key":"ref6:IEEE_Std1363.1","doi-asserted-by":"publisher","DOI":"10.1109\/IEEESTD.2009.4800404","article-title":"IEEE Standard Specification for Public Key Cryptographic\n  Techniques Based on Hard Problems over Lattices","author":"Institute of Electrical","year":"2009"},{"key":"ref7:ASC_X9.98","article-title":"Lattice-Based Polynomial Public Key Establishment\n  Algorithm for the Financial Services Industry.","author":"American National Standards Institute","year":"2017"},{"key":"ref8:CHES:HRSS17","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"232","DOI":"10.1007\/978-3-319-66787-4_12","article-title":"High-Speed Key Encapsulation from NTRU","volume-title":"Cryptographic Hardware and Embedded Systems \u2013 CHES\u00a02017","volume":"10529","author":"Andreas H\u00fclsing","year":"2017"},{"key":"ref9:FisherYates:StatisticalTables","article-title":"Statistical tables for biological, agricultural and medical\n  research","author":"R. A. Fisher","year":"1938"},{"key":"ref10:Durstenfeld:RandomPermutation","doi-asserted-by":"publisher","first-page":"420","DOI":"10.1145\/364520.364540","article-title":"Algorithm 235: Random Permutation","volume":"7","author":"Richard Durstenfeld","year":"1964","journal-title":"Commun. ACM","ISSN":"https:\/\/id.crossref.org\/issn\/0001-0782","issn-type":"electronic"},{"key":"ref11:Knuth:TAOCP2","isbn-type":"print","volume-title":"The Art of Computer Programming, Volume 2: Seminumerical\n  Algorithms","author":"Donald E. Knuth","year":"1997","ISBN":"https:\/\/id.crossref.org\/isbn\/9780201896848"},{"key":"ref12:Rao:RandomPermutations","first-page":"305","article-title":"Generation of Random Permutations of Given Number of\n  Elements Using Random Sampling Numbers","volume":"23","author":"C. Radhakrishna Rao","year":"1961","journal-title":"Sankhy\u0101: The Indian Journal of Statistics, Series A\n  (1961-2002)","ISSN":"https:\/\/id.crossref.org\/issn\/0581-572X","issn-type":"electronic"},{"key":"ref13:Sandelius:Randomization","doi-asserted-by":"crossref","first-page":"472","DOI":"10.1111\/j.2517-6161.1962.tb00474.x","article-title":"A Simple Randomization Procedure","volume":"24","author":"Martin Sandelius","year":"1962","journal-title":"Journal of the Royal Statistical Society. Series B\n  (Methodological)","ISSN":"https:\/\/id.crossref.org\/issn\/0035-9246","issn-type":"electronic"},{"key":"ref14:Bacher:MergeShuffle","series-title":"CEUR Workshop Proceedings","first-page":"43","article-title":"MergeShuffle: a very fast, parallel random permutation\n  algorithm","volume-title":"Proceedings of the 11th International Conference on Random\n  and Exhaustive Generation of Combinatorial Structures, GASCom 2018, Athens,\n  Greece, June 18-20, 2018","volume":"2113","author":"Axel Bacher","year":"2018"},{"key":"ref15:Bacher:RandomPermutationsCoinTossing","doi-asserted-by":"publisher","DOI":"10.1145\/3009909","article-title":"Generating Random Permutations by Coin Tossing: Classical\n  Algorithms, New Analysis, and Modern Implementation","volume":"13","author":"Axel Bacher","year":"2017","journal-title":"ACM Trans. Algorithms","ISSN":"https:\/\/id.crossref.org\/issn\/1549-6325","issn-type":"electronic"},{"key":"ref16:Danba:NTRU-AVX2","article-title":"Optimizing NTRU using AVX2","author":"Oussama Danba","year":"2019"},{"key":"ref17:Batcher:SortingNetworks","series-title":"AFIPS '68 (Spring)","isbn-type":"print","doi-asserted-by":"publisher","first-page":"307","DOI":"10.1145\/1468075.1468121","article-title":"Sorting Networks and Their Applications","volume-title":"Proceedings of the April 30\u2013May 2, 1968, Spring Joint\n  Computer Conference","author":"K. E. Batcher","year":"1968","ISBN":"https:\/\/id.crossref.org\/isbn\/9781450378970"},{"key":"ref18:CHES:BerChoSch13","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"250","DOI":"10.1007\/978-3-642-40349-1_15","article-title":"McBits: Fast Constant-Time Code-Based Cryptography","volume-title":"Cryptographic Hardware and Embedded Systems \u2013 CHES\u00a02013","volume":"8086","author":"Daniel J. Bernstein","year":"2013"},{"key":"ref19:SAC:BCLv17","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"235","DOI":"10.1007\/978-3-319-72565-9_12","article-title":"NTRU Prime: Reducing Attack Surface at Low Cost","volume-title":"SAC 2017: 24th Annual International Workshop on Selected\n  Areas in Cryptography","volume":"10719","author":"Daniel J. Bernstein","year":"2017"},{"key":"ref20:EPRINT:Sendrier21","article-title":"Secure Sampling of Constant-Weight Words \u2013 Application to\n  BIKE","author":"Nicolas Sendrier","year":"2021"},{"key":"ref21:STOC:Ajtai96","doi-asserted-by":"publisher","first-page":"99","DOI":"10.1145\/237814.237838","article-title":"Generating Hard Instances of Lattice Problems (Extended\n  Abstract)","volume-title":"28th Annual ACM Symposium on Theory of Computing","author":"Mikl\u00f3s Ajtai","year":"1996"},{"key":"ref22:Micciancio:2002a","series-title":"The Springer International Series in Engineering and\n  Computer Science","isbn-type":"print","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4615-0897-7","article-title":"Complexity of Lattice Problems: A Cryptographic\n  Perspective","volume":"671","author":"Daniele Micciancio","year":"2002","ISBN":"https:\/\/id.crossref.org\/isbn\/9781461352938","ISSN":"https:\/\/id.crossref.org\/issn\/0893-3405","issn-type":"electronic"},{"key":"ref23:Knuth:TAOCP3","isbn-type":"print","article-title":"The Art of Computer Programming, Volume 3: Sorting and\n  Searching","author":"Donald E. Knuth","year":"1998","ISBN":"https:\/\/id.crossref.org\/isbn\/0201896850"},{"key":"ref24:C:Kocher96","series-title":"Lecture Notes in Computer Science","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-title":"Advances in Cryptology \u2013 CRYPTO'96","volume":"1109","author":"Paul C. Kocher","year":"1996"},{"key":"ref25:TTMM02","first-page":"803","article-title":"Cryptanalysis of Block Ciphers Implemented on Computers with\n  Cache","volume-title":"Proceedings of the International Symposium on Information\n  Theory and Its Applications, ISITA 2002","author":"Yukiyasu Tsunoo","year":"2002"},{"key":"ref26:CHES:TSSSM03","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"62","DOI":"10.1007\/978-3-540-45238-6_6","article-title":"Cryptanalysis of DES Implemented on Computers with Cache","volume-title":"Cryptographic Hardware and Embedded Systems \u2013 CHES\u00a02003","volume":"2779","author":"Yukiyasu Tsunoo","year":"2003"},{"key":"ref27:CacheAES:2004","article-title":"Cache-timing attacks on AES","author":"Daniel J. Bernstein","year":"2004"},{"key":"ref28:Lemire:FastRandom","doi-asserted-by":"publisher","DOI":"10.1145\/3230636","article-title":"Fast Random Integer Generation in an Interval","volume":"29","author":"Daniel Lemire","year":"2019","journal-title":"ACM Trans. Model. Comput. Simul.","ISSN":"https:\/\/id.crossref.org\/issn\/1049-3301","issn-type":"electronic"},{"key":"ref29:NISTPQC-R3:NTRUPrime20","article-title":"NTRU Prime","author":"Daniel J. Bernstein","year":"2020"},{"key":"ref30:NISTPQC-R2:NTRUPrime19","article-title":"NTRU Prime","author":"Daniel J. Bernstein","year":"2019"},{"key":"ref31:HackersDelight","isbn-type":"print","volume-title":"Hacker's Delight","author":"Henry S. Warren","year":"2012","ISBN":"https:\/\/id.crossref.org\/isbn\/0321842685"},{"key":"ref32:NISTPQC-R4:ClassicMcEliece22","article-title":"Classic McEliece","author":"Martin R. Albrecht","year":"2022"},{"key":"ref33:NISTPQC-R4:BIKE22","article-title":"BIKE","author":"Nicolas Aragon","year":"2022"},{"key":"ref34:NISTPQC-R4:HQC22","article-title":"HQC","author":"Carlos Aguilar-Melchor","year":"2022"},{"key":"ref35:NISTPQC-ADD-R1:Wave23","article-title":"Wave","author":"Gustavo Banegas","year":"2023"},{"key":"ref36:ARMv8A-ARM:2023","article-title":"Arm\u00ae Architecture Reference Manual for A-profile\n  architecture","author":"ARM Limited","year":"2023"},{"key":"ref37:DOIT:2023","article-title":"Data Operand Independent Timing Instruction Set Architecture\n  (ISA) Guidance","author":"Intel Corporation","year":"2023"},{"key":"ref38:DOIT-instructions:2023","article-title":"Data Operand Independent Timing Instructions","author":"Intel Corporation","year":"2023"},{"key":"ref39:FEAT-DIT","article-title":"How is instruction timing affected by the FEAT_DIT\n  architectural feature?","author":"ARM Limited"},{"key":"ref40:Gu:2023","article-title":"Constant-Time Wasmtime, for Real This Time: End-to-End\n  Verified Zero-Overhead Constant-Time Programming for the Web and Beyond","author":"Garrett Gu","year":"2023"},{"key":"ref41:gofetch","article-title":"GoFetch: Breaking Constant-Time Cryptographic\n  Implementations Using Data Memory-Dependent Prefetchers","volume-title":"USENIX Security","author":"Boru Chen","year":"2024"},{"key":"ref42:deGroot:Cortex","article-title":"A Performance Study of X25519 on Cortex-M3 and M4","author":"Wouter de Groot","year":"2015"},{"key":"ref43:Pornin:CTMul","article-title":"Constant-Time Multiplication","author":"Thomas Pornin","year":"2018"},{"key":"ref44:TCHES:GHJLNS22","doi-asserted-by":"publisher","first-page":"223","DOI":"10.46586\/tches.v2022.i3.223-263","article-title":"Don't 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":"ref45:Bernstein:2018","article-title":"Divergence bounds for random fixed-weight vectors obtained\n  by sorting","author":"Daniel J. Bernstein","year":"2018"},{"key":"ref46:Johnson:M1","article-title":"Apple M1 Microarchitecture Research","author":"Dougall Johnson","year":"2022"},{"key":"ref47:A72optguide:2015","article-title":"Cortex\u00ae-A72 Software Optimization Guide","author":"ARM Limited","year":"2015"},{"key":"ref48:Fog:Microarchitecture","article-title":"The microarchitecture of Intel, AMD, and VIA CPUs","author":"Agner Fog","year":"2022"},{"key":"ref49:Lam:SWPipelining","doi-asserted-by":"publisher","first-page":"318","DOI":"10.1145\/960116.54022","article-title":"Software Pipelining: An Effective Scheduling Technique for\n  VLIW Machines","volume":"23","author":"M. Lam","year":"1988","journal-title":"SIGPLAN Not.","ISSN":"https:\/\/id.crossref.org\/issn\/0362-1340","issn-type":"electronic"},{"key":"ref50:PQM4","article-title":"pqm4: Testing and Benchmarking NIST PQC on ARM\n  Cortex-M4","author":"Matthias J. Kannwischer","year":"2019"},{"key":"ref51:GazzoniFilho:NTRU-AMX","doi-asserted-by":"publisher","DOI":"10.62056\/a3txommol","article-title":"Fast polynomial multiplication using matrix multiplication\n  accelerators with applications to NTRU on Apple M1\/M3 SoCs","volume":"1","author":"D\u00e9cio Luiz Gazzoni Filho","year":"2024","journal-title":"IACR Communications in Cryptology","ISSN":"https:\/\/id.crossref.org\/issn\/3006-5496","issn-type":"electronic"},{"key":"ref52:PQCRYPTO:NguGaj21","doi-asserted-by":"publisher","first-page":"234","DOI":"10.1007\/978-3-030-81293-5_13","article-title":"Fast NEON-Based Multiplication for Lattice-Based NIST\n  Post-quantum Cryptography Finalists","volume-title":"Post-Quantum Cryptography - 12th International Workshop,\n  PQCrypto 2021","author":"Duc Tri Nguyen","year":"2021"},{"key":"ref53:Chen:2023","isbn-type":"print","doi-asserted-by":"publisher","first-page":"177","DOI":"10.1007\/978-3-031-56235-8_9","article-title":"Algorithmic Views of Vectorized Polynomial Multipliers \u2013\n  NTRU","volume-title":"Progress in Cryptology \u2013 INDOCRYPT 2023","author":"Han-Ting Chen","year":"2024","ISBN":"https:\/\/id.crossref.org\/isbn\/9783031562358"},{"key":"ref54:djbsort","article-title":"djbsort","author":"Daniel J. Bernstein","year":"2019"},{"key":"ref55:CCS:BCDMNN16","doi-asserted-by":"publisher","first-page":"1006","DOI":"10.1145\/2976749.2978425","article-title":"Frodo: Take off the Ring! Practical, Quantum-Secure Key\n  Exchange from LWE","volume-title":"ACM CCS 2016: 23rd Conference on Computer and Communications\n  Security","author":"Joppe W. Bos","year":"2016"},{"key":"ref56:ISO:FrodoKEM","article-title":"FrodoKEM: Learning With Errors Key Encapsulation\n  Preliminary Draft Standard","author":"International Organization for Standardization","year":"2023"},{"key":"ref57:Dirvin:Armv8.1-M","article-title":"Next-generation Armv8.1-M architecture: Delivering\n  enhanced machine learning and signal processing for the smallest embedded\n  devices","author":"Rhonda Dirvin","year":"2019"}],"container-title":["IACR Communications in Cryptology"],"original-title":[],"language":"en","deposited":{"date-parts":[[2024,12,10]],"date-time":"2024-12-10T16:26:56Z","timestamp":1733848016000},"score":1,"resource":{"primary":{"URL":"https:\/\/cic.iacr.org\/p\/1\/2\/14"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,7,8]]},"references-count":57,"URL":"https:\/\/doi.org\/10.62056\/a6n59qgxq","archive":["Internet Archive","Internet Archive"],"relation":{},"ISSN":["3006-5496"],"issn-type":[{"value":"3006-5496","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,7,8]]},"assertion":[{"value":"2024-04-09","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-06-03","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"cc1-2-40"}}