<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Hardware Benchmarking of Round 2 Candidates in the NIST Lightweight Cryptography Standardization Process</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>02/01/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10299084</idno>
					<idno type="doi">10.23919/DATE51398.2021.9473930</idno>
					<title level='j'>2021 Design, Automation &amp; Test in Europe Conference &amp; Exhibition (DATE)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Kamyar Mohajerani</author><author>Richard Haeussler</author><author>Rishub Nagpal</author><author>Farnoud Farahmand</author><author>Abubakr Abdulgadir</author><author>Jens-Peter Kaps</author><author>Kris Gaj</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Twenty five Round 2 candidates in the NIST Lightweight Cryptography (LWC) process have been implemented in hardware by groups from all over the world. All implementations compliant with the LWC Hardware API, proposed in 2019, have been submitted for hardware benchmarking to George Mason University's LWC benchmarking team. The received submissions were first verified for correct functionality and compliance with the hardware API's specification. Then, the execution times in clock cycles, as a function of input sizes, have been determined using behavioral simulation. The compatibility of all implementations with FPGA toolsets from three major vendors, Xilinx, Intel, and Lattice Semiconductor was verified. Optimized values of the maximum clock frequency and resource utilization metrics, such as the number of look-up tables (LUTs) and flip-flops (FFs), were obtained by running optimization tools, such as Minerva, ATHENa, and Xeda. The raw post-place and route results were then converted into values of the corresponding throughputs for long, medium-size, and short inputs. The results were presented in the form of easy to interpret graphs and tables, demonstrating the relative performance of all investigated algorithms. An effort was made to make the entire process as transparent as possible and results easily reproducible by other groups.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>A comprehensive framework for fair and efficient benchmarking of hardware implementations of lightweight cryptography was proposed in <ref type="bibr">[1]</ref>. This framework was based on the idea of the Lightweight Cryptography Hardware API <ref type="bibr">[2]</ref>, which was published in October 2019, and has remained stable since then.</p><p>The corresponding LWC Development Package has been built as a major revision of the CAESAR Development Package <ref type="bibr">[3]</ref>, <ref type="bibr">[4]</ref> by an extended team including representatives of the Technical University of Munich (TUM), Virginia Tech, and George Mason University. The first version of this package was published on October 14, 2019. Since then, this package was updated several times, including the most recent revision in October 2020. The first implementations of candidates in the Partially supported by the US Department of Commerce (NIST) using grant no. 70NANB18H219.</p><p>Lightweight Cryptography Standardization process, compliant with the LWC Hardware API and using the new development package, were reported by members of the Virginia Tech Signatures Analysis Lab in <ref type="bibr">[5]</ref>.</p><p>Before the start of Round 2 of the NIST Lightweight Cryptography Standardization Process in September 2019, multiple submission teams developed hardware implementations noncompliant with the proposed LWC API. These implementations used very divergent assumptions, interfaces, and optimization goals. Only 8 out 32 teams (ACE, DryGASCON, ForkAE, ISAP, Romulus, SKINNY, Subterranean 2.0, and WAGE) made their HDL code public, either as a part of the corresponding Round 2 submission package or the candidate website. Preliminary results reported in the algorithm specifications were based on the use of about a dozen different FPGA families and about the same number of standard-cell ASIC libraries. Only results obtained using the same FPGA family or the same ASIC library can be fairly compared with one another. As a result, before the start of this benchmarking effort, at most 6 FPGA implementations and 4 ASIC implementations could possibly be compared with one another. However, even such a limited comparison would be highly unfair because of the use of different interfaces, assumptions, and optimization targets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. METHODOLOGY</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. LWC Hardware API</head><p>Hardware designers participating in the hardware benchmarking of Round 2 LWC candidates are expected to follow Hardware API for Lightweight Cryptography defined in detail at <ref type="bibr">[2]</ref>. The major parts of this API include the minimum compliance criteria, interface, and communication protocol supported by the LWC core. The proposed API is intended to meet the requirements of all candidates submitted to the NIST Lightweight Cryptography standardization process, as well as all CAESAR candidates and current authenticated cipher and hash function standards. The main reasons for defining a common API for all hardware implementations of candidates submitted to the NIST Lightweight Cryptography standardization project are: a) Fairness of benchmarking, b) Compatibility among implementations of the same algorithm by different designers, and c) Ease of creating the supporting development package, aimed at simplifying and speeding up the design process.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. LWC Hardware Development Package</head><p>To make the benchmarking framework more efficient in terms of the hardware development time, the designers are provided with the following resources, compliant with the use of the proposed LWC Hardware API: a) VHDL code supporting the API protocol, common to all Lightweight Cryptography standardization process candidates, as well as all CAESAR candidates and AES-GCM (LWC rtl) b) Universal testbench, common for all API-compliant designs (LWC TB) c) Python app used to automatically generate test vectors (cryptotvgen) d) Reference implementations of a dummy authenticated cipher and a dummy hash function (dummy lwc) e) Implementer's Guide, describing all steps of the development and benchmarking process, including verification, experimental testing, and generation of results.</p><p>It should be stressed that the implementations of authenticated ciphers (with an optional hash functionality), compliant with the LWC Hardware API, can also be developed without using any of the aforementioned resources, by just following the specification of the LWC Hardware API directly.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. FPGA Platforms and Tools</head><p>For the purpose of this benchmarking study, the GMU group selected three benchmarking platforms representing FPGA families of three major vendors: Xilinx, Intel, and Lattice Semiconductor. The primary criteria for the selection of FPGA devices were as follows:</p><p>1) representing widely used low-cost, low-power FPGA families 2) capable of holding SCA-protected designs (possibly using up to four times more resources than unprotected designs) 3) supported by free versions of state-of-the-art industry tools. These criteria led to the selection of the following FPGA devices:</p><p>1) From Xilinx Artix-7 : xc7a12tcsg325- </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Optimization Target</head><p>Our underlying assumption is that the implementation of an LWC algorithm protected against side-channel attacks should take no more than all look-up tables (LUTs) of the selected Xilinx FPGA device, Artix-7 : xc7a12tcsg325-3. Taking into account that protected implementations typically take up to 3-4 times more LUTs than unprotected implementations, our unprotected design should take no more than one-fourth of the total number of LUTs, i.e., 2000 LUTs. At the same time, we assume that the benchmarked implementations are not permitted to use any family-specific embedded resources, such as Block RAMs, DSP units, or embedded multipliers. Any storage should be implemented using either flip-flops or distributed memory, which, in the case of Xilinx FPGAs, is built out of LUTs. The number of Artix-7 flip-flops is limited to 4000, as in this FPGA family, each LUT is accompanied by two flip-flops. The designs are also prohibited from using any family-specific primitives or megafunctions.</p><p>This proposed optimization target has been clearly communicated to all LWC submission teams through the document titled Suggested FPGA Design Goals, posted on the LWC hardware benchmarking project website <ref type="bibr">[2]</ref>, as well as announcements on the lwc-forum, and private communication.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. Functional Verification</head><p>All submitted implementations were first investigated in terms of compliance with the LWC Hardware API and the completeness of their deliverables, requested for benchmarking. Then, a comprehensive set of new test vectors, unknown in advance to hardware designers, was generated separately for each variant of each algorithm. These tests included multiple special cases, such as empty AD, empty plaintext, various widths of an incomplete last block, etc. If these test vectors passed, the implementation was judged functionally correct and compliant with the LWC Hardware API. If these test vectors failed, the source of failure was investigated in close collaboration with hardware designers. The designers were allowed to submit revised versions of their code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F. Timing Measurements</head><p>The testbench LWC TB, being a part of the LWC Development package, has been extended to include support for measurements of the execution times for authenticated encryption, authenticated decryption, and hashing. This testbench was used to measure the execution times for:</p><p>1) Input sizes used in the definitions of benchmarking metrics 2) All possible AD and plaintext lengths (in bytes) between 0 and 2 full input blocks, in increments of one byte. Only the execution times obtained experimentally, using the timing measurements, were used to calculate values of the corresponding throughputs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G. Synthesis, Implementation, and Optimization of Tool Options</head><p>The determination of the maximum clock frequency and the corresponding resource utilization was performed using tools specific for each FPGA vendor. For Artix-7 FPGAs, Minerva: An Automated Hardware Optimization Tool, described in <ref type="bibr">[6]</ref>, was used. The average time required to find the optimum requested clock frequency and the best optimization strategy was about 3.5 hours per algorithm variant. For Intel FPGAs, ATHENa -Automated Tool for Hardware EvaluatioN <ref type="bibr">[7]</ref>, was used. This tool supports all recent Intel FPGA families as well as older Xilinx FPGA families before Series 7. A new tool, Xeda <ref type="bibr">[8]</ref>, which stands for cross (X) electronic design automation, was developed. Xeda provides a layer of abstraction over simulation and synthesis tools and removes the difficulty associated with testing a design across multiple FPGA vendors. Additionally, Xeda allows user-made plugins, which can extend functionality to new tools or allow for postprocessing of synthesis and simulation results. For Lattice Semiconductor FPGAs, Xeda and a plugin developed to find the maximum clock frequency were used. The synthesis was performed using both the Lattice Synthesis Engine (LSE) and Synplify Pro. Only the better of the two results was reported.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>H. Performance Metrics</head><p>The following performance metrics have been evaluated as a part of this benchmarking project:</p><p>1) Resource utilization Number of LUTs for Artix-7 and ECP5 FPGAs, LEs for Cyclone 10 LP FPGAs, and flip-flops for all FPGAs, assuming no use of embedded memories (such as BRAMs), DSP units, and embedded multipliers. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. HARDWARE DESIGNS</head><p>A total of 30 designs were received. These designs covered 25 out of 32 Round 2 candidates. Candidates implemented independently by two different groups included Ascon, COMET, Gimli, TinyJAMBU, and Xoodyak. The following submissions were provided by co-authors of algorithms submitted to the NIST LWC standardization process: ACE, ESTATE, ForkAE, Gimli, ISAP, KNOT, LOCUS-AEAD/LOTUS-AEAD, Oribatida, Romulus, Spook, Subterranean 2.0, TinyJAMBU, WAGE, and Xoodyak. The implementation of DryGASCON was developed by an independent researcher, Ekawat Homsirikamol, in close collaboration with the author of the algorithm. An additional implementation of Gimli was contributed by members of the Chair of Security in Information Technology at the Technical University of Munich, Germany.</p><p>Most groups used VHDL. Four design teams used exclusively Verilog for the implementation of the entire LWC unit.</p><p>As a result, these implementations did not take advantage of the LWC Development Package, available only in VHDL. Algorithms implemented this way included Gimli, Romulus, Spook-v2, and Subterranean 2.0. The submission Xoodyak GMU2-v1 is implemented purely in Bluespec SystemVerilog, depending on its own Bluespec LWC development package <ref type="bibr">[9]</ref>. Three implementations modeled only the part unique to a given algorithm, its CryptoCore, in Verilog. These designs included DryGASCON, KNOT, and SpoC.</p><p>Ten submissions contained a single variant. In the remaining, the number of variants varied between 2 and 16, with an average of 2.7 per hardware design submission. Most of the variants of the same algorithm share a significant portion of the HDL source code and differ only in values of generics or constants. In some cases, a separate source code was provided for each variant.</p><p>The total number of implemented variants reached 88. We assigned to each variant a unique name. For algorithms implemented by a single group, this name consists of the name of the algorithm followed by a variant number. For algorithms implemented by two groups we add a group name abbreviation after the algorithm name. The abbreviations used are: CI for CINVESTAV-IPN, GMU for George Mason University, Graz for TU Graz, Austria, GT for Gimli Team, VT for Virginia Tech, TJT for TinyJAMBU Team, and XT for Xoodyak Team + Silvia. For Spook, exceptionally, the name of the variant is Spook-v2-v1. In this name, v2 indicates version 2 of Spook proposed in <ref type="bibr">[10]</ref>. Features of all variants are summarized in <ref type="bibr">[11]</ref>.</p><p>For almost all candidates, decryption can be performed with exactly the same speed as encryption. As a result, in the Results section, we focus only on the timing metrics related to encryption. The following candidates process AD significantly faster than plaintext: Xoodyak, TinyJAMBU, ESTATE, LOCUS &amp; LOTUS, Oribatida, and Romulus. The ratio of the hashing throughput to the plaintext processing throughput is 2.00 for Saturnin, 1.00 for ACE, DryGASCON, and Gimli, and the smallest for KNOT, PHOTON-Beetle, and Subterranean 2.0.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. RESULTS AND THEIR ANALYSIS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Throughputs for Long Inputs</head><p>The two-dimensional graphs Throughput vs. Number of Used LUTs are shown in Figs. <ref type="figure">1</ref> and<ref type="figure">2</ref>. The throughputs concern the cases of Plaintext (PT) only and Associated Data (AD) only, respectively. Both graphs present results for the Xilinx Artix-7 FPGA xc7a12tcsg325-3. The results apply to long inputs. We use the logarithmic scale on both axes. Dashed lines represent the same throughput over area ratio. In the legends of these figures, the algorithms are listed in the order of decreasing throughput. While the order of the symbols remains the same, the mapping of symbols to algorithms changes.</p><p>In these graphs, each candidate is represented by only one variant, selected according to the following rules. If a candidate has one or more variants with the area below 2520 LUTs (the area of the smallest implementation of AES-GCM available to us), the fastest variant meeting this criterion is selected. If a</p></div></body>
		</text>
</TEI>
