{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,16]],"date-time":"2026-09-16T07:07:26Z","timestamp":1789542446257,"version":"build-2803163510"},"reference-count":0,"publisher":"Universitatsbibliothek der Ruhr-Universitat Bochum","issue":"4","license":[{"start":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T00:00:00Z","timestamp":1789084800000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["TCHES"],"abstract":"<jats:p>Good circuits of cryptographic components must balance performance and area. Lower circuit depth increases performance, while fewer gates decrease area. A trade-off exists between gate count and depth. Optimizing the gate count of a circuit under depth constraints is always significant.In this paper, we study how to obtain an S-box circuit with fewer gate count from a given circuit, while constraining the depth of the outputs. Unlike the linear layer, the S-box circuit involves more linear and nonlinear gates, so optimizing it requires more computations. To solve this problem, Boyar and Peralta proposed a layerby- layer algorithm. They first divide an S-box into several linear and nonlinear layers. The outputs of each layer are sub-targets. Boyar-Peralta\u2019s algorithm must generate all sub-targets in the current layer before proceeding to the next layer. Jeon et al. improved this layer-by-layer algorithm at CHES 2025. In their algorithm, new sub-targets in the next layer can be activated flexibly, without waiting for all sub-targets in the current layer to be generated. Because the local sub-targets in their algorithm change at each stage, we refer to Jeon et al.\u2019s algorithm as the stage-by-stage algorithm. Neither Boyar-Peralta\u2019s nor Jeon et al.\u2019s algorithms initially handle the final targets. As a likely consequence, their algorithms may find optimal sub-circuits for sub-targets but obtain only suboptimal circuits for the final targets. By defining the weighted distance from the final target, we propose a new end-to-end algorithm for optimizing the circuit. The distance from the sub-targets does not need to be considered independently. Besides, two new techniques are presented to speed up this end-to-end algorithm significantly. We have also given several heuristic optimizations to improve the performance. As a result, we improved all circuits given by Jeon et al. under different depth constraints.<\/jats:p>","DOI":"10.46586\/tches.v2026.i4.786-814","type":"journal-article","created":{"date-parts":[[2026,9,16]],"date-time":"2026-09-16T06:55:52Z","timestamp":1789541752000},"page":"786-814","source":"Crossref","is-referenced-by-count":0,"title":["An Efficient End-to-end Algorithm for Optimizing the S-box Circuit"],"prefix":"10.46586","volume":"2026","author":[{"given":"Yao","family":"Sun","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Min","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ting","family":"Li","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"25480","published-online":{"date-parts":[[2026,9,11]]},"container-title":["IACR Transactions on Cryptographic Hardware and Embedded Systems"],"original-title":[],"link":[{"URL":"https:\/\/tches.iacr.org\/index.php\/TCHES\/article\/download\/13260\/12771","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/tches.iacr.org\/index.php\/TCHES\/article\/download\/13260\/12771","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,16]],"date-time":"2026-09-16T06:55:53Z","timestamp":1789541753000},"score":1,"resource":{"primary":{"URL":"https:\/\/tches.iacr.org\/index.php\/TCHES\/article\/view\/13260"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,11]]},"references-count":0,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2026,9,11]]}},"URL":"https:\/\/doi.org\/10.46586\/tches.v2026.i4.786-814","relation":{},"ISSN":["2569-2925"],"issn-type":[{"value":"2569-2925","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,11]]}}}