Accelerating quantum-resistant cryptographic hash-based signature computations
By directly loading digest messages into a configurable buffer position during iterative hash calculations, the inefficiencies of quantum-resistant cryptographic hash-based signature computations on constrained devices are addressed, enhancing performance and reducing power consumption.
Patent Information
- Application Number
- JP2024520759
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2024-10-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Quantum-resistant cryptographic hash-based signature computations are inefficient and power-consuming on constrained devices due to memory copies and bus latency in conventional hardware architectures, making them unsuitable for time-sensitive applications.
Directly loading at least a portion of the digest message into a configurable position within the input buffer during iterative hash calculations to bypass memory copies and bus latency, thereby speeding up quantum-resistant cryptographic hash-based signature computations.
This approach significantly reduces computational time and power consumption, making quantum-resistant cryptographic hash-based signature computations more suitable for constrained devices.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Background technology]
[0001] background The increasing computerization of society and the associated expansion of the Internet-of-Things (IoT) have made the world increasingly vulnerable to various cyber attacks. These cyber attacks can have significant impacts on information security as well as physical safety. To thwart cyber attacks, numerous security measures are implemented in computing devices to prevent unauthorized access to or manipulation of the device's data and communications. Some of these security measures employ digital signature schemes and are often based on asymmetric cryptography algorithms, including Rivest-Shamir-Adleman (RSA) and Elliptic Curve Digital Signature Algorithm (ECDSA). In these asymmetric cryptography algorithms, the security aspect is based on the enormous time required for decryption using classical computing techniques.
[0002] However, advances in quantum computing may render these commonly used asymmetric cryptographic algorithms vulnerable to cyberattacks. This is because quantum computers can compute exponentially faster than classical computers. For example, quantum computing algorithms such as Shor's algorithm and Grover's algorithm may achieve quadratic speedup over brute force searches. In response, cryptographic algorithms that are considered secure against cyberattacks have been developed that are run by quantum computers. However, many of these quantum-resistant cryptographic algorithms take excessively long to compute, making most implementations unsuitable for many applications, such as on constrained devices. Summary of the Invention [Problem to be solved by the invention]
[0003] overview This document describes techniques and apparatus for accelerating quantum-resistant cryptographic hash-based signature computation. Upon receiving an input message, one or more processors implement a hash manager. The hash manager is configured to initialize variables, load the input message and the initialized variables into an input buffer, and perform a hash-based signature computation. The hash-based signature computation is repeated for a predetermined number of iterations, each iteration including directly loading at least a portion of a digest message into a configurable location in the input buffer. In doing so, this iterative hash computation method bypasses memory copies and bus latencies, accelerating quantum-resistant cryptographic hash-based signature computation.
[0004] This Summary is provided to introduce simplified concepts for accelerating quantum-resistant cryptographic hash-based signature computations, which are further described below in the Detailed Description and illustrated in the Figures. This Summary is not intended to identify essential features of the claimed subject matter, nor is it intended for use in determining the scope of the claimed subject matter. [Brief description of the drawings]
[0005] This document describes in detail one or more aspects of accelerating quantum-resistant cryptographic hash-based signature computations with reference to the following drawings: [Figure 1] FIG. 1 illustrates an example operating environment including an example computing device capable of implementing cryptographic techniques and other security functions in accordance with one or more aspects disclosed herein. [Diagram 2] FIG. 1 illustrates one example of an integrated circuit component implemented as a cryptographic co-processor. [Diagram 3] FIG. 2 illustrates the operation of a hash manager when executed by a processor. [Figure 4]FIG. 2 illustrates an example of a method implemented by a hash manager to speed up iterative hash-based signature calculations. [Diagram 5] FIG. 13 illustrates an example of a method implemented by a hash manager to speed up iterative hash-based signature computation by directly loading at least a portion of a digest message into a configurable location in an input buffer and performing the hash computation for a predetermined number of iterations. [Figure 6] FIG. 1 illustrates integrated circuit components implemented as a System-on-Chip (SoC) that can implement various aspects of accelerating iterative hash-based signature computation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0006] The use of the same numbers in various instances may indicate similar features and components.
[0007] Detailed Description Overview Computing devices often include integrated circuits with security circuits and software that provide safeguards against defects, attacks, and other potential compromise events. The security circuits and software may implement many security paradigms, such as those that comply with guidelines including those outlined by the National Institute of Standards and Technology (NIST) and / or the Public-Key Cryptography Standards (PKCS). For example, during a firmware update, security circuits and software that comply with PKCS standards may use digital signatures (e.g., cryptographic signatures) to verify the authenticity and integrity of data received and executed by the computing device. A digital signature scheme is a mathematical scheme used to verify a digital message or document. A valid digital signature can assure a recipient that a message was generated by a known sender ("authenticity") and was not manipulated during transmission ("integrity"). In doing so, the security circuits and software reduce the opportunity for information to be inadvertently disclosed or for some functionality to be used in a harmful or otherwise unauthorized manner.
[0008] In today's computing environment, malicious actors may uncover encrypted data or attack computing devices at a myriad of levels using numerous attack vectors. For example, recent developments in quantum computing have significantly weakened the protection of many of these security paradigms, which are premised on attacks using classical computing techniques. As a result, attackers using quantum computing may be able to gain unauthorized access to or control of computing devices or device data through a variety of cyber attacks. For example, a computing device may cryptographically encrypt sensitive data and transmit the encrypted data over a network. An attacker connected to the network may obtain the encrypted data and use quantum computing to decrypt the encrypted data. In another example, an attacker may be able to inject malware into a firmware update of a computing device, such as a Wi-Fi router or an IoT device. If an attacker succeeds in installing a rogue code segment into a computing device without the computing device verifying the authenticity or integrity of the firmware update, the unauthorized reconfiguration of the computing device may leak sensitive or confidential data or cause the device to operate unintendedly, posing a potential safety risk to human operators.
[0009] To counter these potential attacks on computing devices and attempt secure data transmission, this disclosure describes the integration of quantum-resistant security paradigms. One such software-based security paradigm that is theorized to be resistant to quantum computer cyber attacks is iterated hash-based signature computation ("hash computation"). A hash-based signature scheme combines a one-time signature scheme (e.g., the Lamport one-time signature scheme) with a Merkle tree structure (e.g., a technique for combining many keys in a single large structure). A one-time signature scheme is constructed from a cryptographically secure one-way function, such as a cryptographic hash function (e.g., a hash algorithm, a trap function, an irreversible function).
[0010] A cryptographic hash function is a mathematical function that maps an input data stream of any length (the "input message") to a fixed-length output (the "digest message"). An iterative hash calculation involves repeating a cryptographic hash function a number of iterations. This iterative hash calculation method ensures that any change to the input message has a very high probability of completely changing the message digest (e.g., the avalanche effect). Cryptographic hash functions are therefore effective for secure and efficient digital information transmission and processing.
[0011] However, the approach of implementing quantum-resistant software-based security paradigms in security circuits that employ hardware architectures for iterative hashing is not well suited for time-sensitive and constrained devices. For example, while performing an iterative hashing in a conventional hardware architecture, the cryptographic processor may perform numerous bus transactions during one iteration to transmit and retrieve results. In addition, the cryptographic processor may reprogram the hash engine and load new inputs for each iteration. Thus, the time required to perform one hashing in an iterative hashing scheme is often twice as long as the time to perform one hashing in a non-iterative hashing scheme. Performing each of the aforementioned operations for each iteration while running a computationally intensive algorithm such as a hashing algorithm can be significantly slower and more power-hungry in constrained devices.
[0012] In contrast, this document describes techniques and apparatus aimed at accelerating quantum-resistant cryptographic hash-based signature computations by directly loading at least a portion of the digest message into a configurable location in an input buffer. In doing so, this iterative hash computation method bypasses memory copies and bus latencies, accelerating quantum-resistant cryptographic hash-based signature computations.
[0013] The following description describes an operating environment, techniques that may be used in the operating environment, example methods, and a System on Chip (SoC) in which components of the operating environment may be embodied. In the context of this disclosure, references to the operating environment are made by way of example only.
[0014] Operating environment In the following description, references are made to the operating environment, technologies that may be used in the operating environment, and various devices or systems in which components of the operating environment may be embodied. In the context of this disclosure, references to the operating environment are made by way of example only.
[0015] 1 illustrates an exemplary operating environment 100 including an exemplary computing device 102 capable of implementing cryptographic techniques and other security features. Examples of computing devices 102 include a smartphone 102-1, a tablet computer 102-2, a wireless router 102-3, a set-top box 102-4, a network-attached storage (NAS) device 102-5, a wearable computing device 102-6 (e.g., a computerized watch), and an automobile 102-7. Although not shown, the computing device 102 may be implemented as any of a mobile station (e.g., a fixed or mobile STA), a mobile communication device, a client device, a home automation and control system, an entertainment system, a game console, a personal media device, a health monitoring device, a drone, a camera, an Internet appliance capable of wireless Internet access and browsing, an IoT device, a security system, and the like. It should be noted that the electronic device 102 may be wearable, non-wearable but mobile, or relatively stationary (e.g., a desktop, an appliance). It should also be noted that the electronic device 102 may be used with or embedded within many electronic devices 102 or peripherals, such as in an automobile or as an accessory to a laptop computer. The computing device 102 may implement cryptographic or security functions for any suitable purpose, such as enabling security features of a particular type of computing device, enabling secure network access, encrypting data for storage, verifying software signatures, authenticating a user or other device, signing electronic files or documents, etc. The computing device 102 may provide other functionality or may include components or interfaces omitted from FIG. 1 for clarity or visual brevity.
[0016] The computing device 102 includes a printed circuit board assembly (PCBA) 104 on which the components and interconnects of the computing device are embodied. Alternatively or additionally, the components of the computing device 102 may be embodied on other substrates, such as flexible circuit materials or other insulating materials. Although not shown, the computing device 102 may also include a housing, various human input devices, a display, a battery pack, an antenna, etc. In general, the electrical and electromechanical components of the computing device 102 are assembled on a printed circuit board (PCB) 104 to form the PCBA 104. The various components (e.g., processor and memory) of the PCBA 104 are then programmed and tested to verify the correct functionality of the PCBA 104. The PCBA 104 is connected to other parts of the computing device 102 or assembled with other parts of the computing device 102 into a housing.
[0017] As shown, PCBA 104 includes one or more processors 106 and computer-readable medium 108. Processor 106 may be any suitable single-core or multi-core processor (e.g., application processor (AP), digital-signal processor (DSP), central processing unit (CPU), graphics processing unit (GPU)). Processor 106 may be configured to execute instructions or commands stored in computer-readable medium 110 to implement operating system 112 and hash manager 114 having initialization module 116, encryption module 118, and / or hash module 120 stored in computer-readable storage medium 110. The computer-readable storage medium 110 may include one or more non-transitory storage devices, such as random access memory (RAM, dynamic RAM (DRAM), non-volatile RAM (NVRAM), or static RAM (SRAM)), read-only memory (ROM, or flash memory), hard drives, SSDs, or any type of media suitable for storing electronic instructions, each connected to a computer system bus. The term "coupled" can refer to two or more elements that are in direct contact (physically, electrically, magnetically, optically, etc.) or to two or more elements that are not in direct contact with each other, but still cooperate and / or interact with each other.
[0018] The PCBA 104 may also include I / O ports 122 and a communication system 124. The I / O ports 122 allow the computing device 102 to interact with other devices or a user. The I / O ports 122 may include any combination of internal or external ports, such as USB ports, audio ports, Serial ATA (SATA) ports, PCI-express based ports or card slots, secure digital input / output (SDIO) slots, and / or other legacy ports. A variety of peripherals may be operatively coupled to the I / O ports 122, such as human-input devices (HID), external computer-readable storage media, or other peripherals.
[0019] The communication system 124 may enable communication of device data, such as received data, transmitted data, or other information described herein, and may provide connectivity to one or more networks and other devices connected thereto. Exemplary communication systems include NFC transceivers, WPAN radios conforming to the various IEEE 802.15 (Bluetooth®) standards, WLAN radios conforming to any of the various IEEE 802.11 (WiFi®) standards, WWAN (3GPP® compliant) radios for mobile phones, wireless metropolitan area network (WMAN) radios conforming to the various IEEE 802.16 (WiMAX®) standards, infrared (IR) transceivers conforming to the Infrared Data Association (IrDA) protocol, and wired local area network (LAN) Ethernet transceivers. Device data communicated via the communication system 124 may be packetized or framed depending on the communication protocol or standard by which the computing device 102 communicates. The communication system 124 may include a wired interface, such as an Ethernet or fiber optic interface, for communication over a local network, an intranet, or the Internet. Alternatively or additionally, the communication system 124 may include a wireless interface that facilitates communication over a wireless network, such as a wireless LAN, a cellular network, or a WPAN.
[0020] Although not shown, computing device 102 may also include a system bus, interconnect, crossbar, or data transfer system that couples various components within the device. The system bus or interconnect may include any one or combination of a variety of bus structures, such as a memory bus or memory controller, a peripheral bus, a universal serial bus, and / or a processor or local bus utilizing any of a variety of bus architectures.
[0021] The PCBA 104 further includes an integrated circuit component 126. In various implementations, the integrated circuit component 126 may be a secure root of trust (RoT) application-specific integrated circuit (ASIC) component including a cryptographic coprocessor, processor, microcontroller, microprocessor, system on chip (SoC), etc. operably connected to the processor 106 (e.g., a host processor). The integrated circuit component 126 (e.g., a hash engine, a hash accelerator) may be implemented as an embedded system security having the computational power to perform the necessary calculations to verify the authenticity and integrity of the downloaded software. The integrated circuit component 126 may be communicatively coupled to the secure non-volatile computer-readable storage medium 108 via a private interface. In some implementations, the integrated circuit component 126 may include a hash engine (e.g., a processor configured to perform a hash function). In another implementation, the integrated circuit component 126 may be a hash engine.
[0022] More particularly, consider one example of integrated circuit component 126 implemented as a cryptographic coprocessor 202, shown in Figure 2. This is just one example, as integrated circuit component 126 may be implemented as a cryptographic microprocessor, microcontroller, SoC, etc. In this implementation, cryptographic coprocessor 202 may operate as a hash engine. In other implementations, integrated circuit component 126 may be a SoC having a component that includes, for example, a processor operating as a hash engine.
[0023] As shown in FIG. 2, the cryptographic coprocessor 202 may include an arithmetical and logical unit 204 (ALU 204), a register file 206, a control unit 208, a hardware counter 210, and an input / output (I / O) unit 212. The ALU 204 may be configured to perform arithmetic and logical operations on received data. The register file 206 may be an array of processor registers (e.g., control registers) that act as a high-speed semi-temporary memory configured for fast data access during processing of a program or function. The registers may be tightly coupled to the ALU 204 or other execution units to allow the cryptographic coprocessor 202 to quickly access working data. To further facilitate access to data, the register file may include multiple read ports or multiple write ports that allow the ALU 204 and / or the execution units to simultaneously retrieve multiple operands in a single cycle. The cryptographic coprocessor 202, or the ALU 204 and its execution units, may access the register file using a register address space that is separate from the system address space. In some cases, registers are numbered so that they can be accessed via a register address space. A register file may be formed from flip-flops to speed up reading and writing bits of data. The control unit 208 may be configured to control the flow of data throughout the system. Hardware counters 210 (e.g., hardware performance counters, processor performance counters) may count events, transactions, or iterations that take place at the processor level. For example, the hardware counters 210 may count the number of cycles and instructions that a program has executed. The I / O unit 212 may include ports that are operatively interfaced with other components of the device.
[0024] Technology for accelerating hash calculations In one aspect, the computing device 102 may implement steps for verifying a hash-based signature. For example, the processor 106 may receive an input message (e.g., a firmware update, a configuration data file) as well as a digital signature signed with the same private key. To verify the integrity and authenticity of the input message, an iterative hash calculation may be performed to generate a digest message of the input message. In another aspect, the computing device 102 may implement steps for public key calculation and public key signature.
[0025] In some aspects, upon receiving an input message, the processor 106, operatively coupled to the computer-readable medium 108 and the integrated circuit component 126, may perform a fetch / execute cycle and cycle through instructions of the hash manager 114 stored on the computer-readable medium 108. In another implementation, upon receiving an input message, the processor 106 may load the input message into the integrated circuit component 126 and instruct the integrated circuit component 126 to perform a fetch / execute cycle and cycle through instructions of the hash manager 114 stored on the computer-readable medium 108.
[0026] FIG. 3 illustrates the operation of the hash manager 114 (not shown) when executed by a processor (e.g., processor 106). In one aspect, the hash manager 114 selects 302 a mode. The mode selection 302 may be a binary decision including a mode configured for a single hash calculation and a mode configured for an iterative hash calculation. If the selected mode 302 indicates an iterative hash calculation 304, the hash manager 114 may execute the initialization module 116. The initialization module 116 may initialize 306 variables for the iterative hash calculation. For example, the processor may program values for input message length, copy offset, copy length, update offset, and update length variables. The values of these variables may be used to identify a byte index within the input message. The processor may further program the number of iterations desired to perform the hash calculation and assign this value to a variable referred to herein as an iteration counter. For example, the processor may be programmed to assign a value of 255 to the iteration counter variable, thereby performing the hash calculation 256 times. The values of the variables for the iterative hash calculation may be loaded into configurable locations within an input buffer (eg, a register file of the cryptographic co-processor 202).
[0027] Next, or in parallel with the operation of the initialization module 116, the hash manager 114 may load 308 the input message into a configurable location in the input buffer of the integrated circuit component 126. Once the input message and variables for the iterative hash calculation are loaded, the hash manager 114 may trigger 310 the execution of the iterative hash calculation on the integrated circuit component 126.
[0028] FIG. 4 illustrates an example method 400 implemented by the hash manager 114 to accelerate iterative hash calculation. In one aspect, the hash manager 114 (not shown) can determine a selected mode. If the selected mode indicates iterative hash calculation, the hash manager 114 can execute the encryption module 118. The encryption module 118 can implement various encryption techniques, such as splitting the input message into n message blocks ("chunking") 404 or adding data to the beginning, middle, or end of the input message ("padding") 406. In some implementations, the encryption module 118 can incorporate random data into the input message ("salting"). In another implementation, some or all of the operations of the encryption module 118 may be included in the hash module 120.
[0029] Further to the above description, the input message may be a bit string (e.g., 256-bit, 512-bit) that includes a concatenation of substrings, such as a prefix, a suffix, a secret seed, and / or a counter, of various lengths, various orders, and various index positions within the input message. In an implementation, the input message may be 55 bytes long with a 22-byte prefix, a 1-byte counter, and a 32-byte secret seed. In this implementation, the 22-byte prefix may be padding data prepended to the input message, the 1-byte counter may be a section of the input message in which the hash module 120 monotonically increases the value by 1 bit during an iteration, and the 32-byte secret seed may include bytes of the input message or bytes of the digest message. In an implementation, the 1-byte counter may increase or decrease non-monotonically. In yet other implementations, the 1-byte counter may be initialized with a value configured for a use case that includes hash-based signature verification or public key calculation and signing.
[0030] The hash manager 114 may then execute the hash module 120. The hash module 120 may include performing 408 a hash calculation, decrementing 410 an iteration counter, determining whether the iteration counter is greater than zero 412, loading at least a portion of the digest message if the iteration counter is greater than zero 414, determining whether a one-byte counter is present in the input message 416, and incrementing 418 the one-byte counter if present. More specifically, the hash engine may perform 408 a hash calculation using the input message as input. The hash engine may perform a cryptographic hash function to generate the digest message. The hash engine may implement any cryptographic hash function that conforms to a particular standard, such as SHA256. Depending on the cryptographic hash function used, the digest message may have different lengths.
[0031] After performing 408 the hash calculation, or in parallel with performing, the hash module 120 may decrement the iteration counter by one count value 410. If the iteration counter value is greater than zero 412, the hash module 116 may load 414 at least a portion of the digest message directly into a configurable location in the input buffer. Next, or in parallel with loading at least a portion of the digest message, the hash manager 114 may determine 416 whether a one byte counter is present in the input message. If a one byte counter is present in the input message, the hash module 120 may increment 418 the one byte counter by one count value. Once the one byte counter in the input message is incremented, the hash module 120 may continue and repeat the operations of the hash module 120 until the iteration counter count is not greater than zero. If a one byte counter is not present in the input message, the hash module 120 may continue and repeat the operations of the hash module 120 until the iteration counter count is not greater than zero. Once the iteration counter value is no longer greater than zero, the hash module 120 may stop execution and the hash manager 114 may forward the result of the iterative hash calculation (e.g., the digest message) to a processor (e.g., a hash-based message authentication code (HMAC) core, a host processor) 420.
[0032] By directly loading at least a portion of the digest message into a configurable location in the input buffer for a predetermined number of iterations, bus latencies associated with bus transactions are avoided and quick access memory is utilized to speed up the hash calculation. Additionally, at least a portion of the digest message can be loaded into a configurable location in the input buffer to update the secret seed of a previous input message, thereby allowing the hash engine to run without having to be reprogrammed.
[0033] Exemplary Methods This section describes an example method for accelerating iterative hash calculations. FIG. 5 illustrates an example method 500 implemented by a hash manager (e.g., hash manager 114) for accelerating iterative hash calculations by directly loading at least a portion of a digest message into a configurable location in an input buffer and performing the hash calculation for a predetermined number of iterations. As shown, an input buffer 502 includes an input message 504 having a prefix 506, a one-byte counter 508, and a secret seed 510. The prefix 506 may be, for example, 22 bytes in length. For example, the one-byte counter may start with an 8-bit binary value equal to zero (e.g., 00000000 in binary). The secret seed 510 may be, for example, 32 bytes in length. The input buffer 502 may further include variables initialized by an initialization module (not shown). The update offset 512 variable may be a 6-bit or 8-bit string equal to 22. The copy length 514 variable may be a 6-bit or 8-bit string equal to 23. The copy length (not shown) variable may be a 6-bit or 8-bit string equal to the length of the digest message. In an implementation, the copy length may be equal to at least a portion of the length of the digest message. The update length (not shown) may be a 6-bit or 8-bit string equal to the length of a 1-byte counter. Additionally, the input buffer may include an 8-bit iteration counter 516 variable. For example, the iteration counter may be initialized to a count value of 255 (e.g., 11111111 in binary). The iteration counter may determine the number of iterations the hash calculation is repeated.
[0034] FIG. 5 further illustrates a hash module 518. In one aspect, the hash module 518 is implemented by a hash engine (not shown). For example, the hash engine may be a cryptographic co-processor implementing the cryptographic hash function SHA256. The hash engine may perform an iterative hash calculation using the input message as an input. For example, the hash module 518 may perform 520 a hash calculation, which may result in a digest message (not shown). The hash module 518 may then decrement 522 an iteration counter. For example, the iteration counter 516 may be decremented to a count value of 254 (e.g., 11111110 in binary). The hash module 518 may then determine whether the value of the iteration counter 516 is greater than zero. If the value of the iteration counter 516 is not greater than zero, the hash module 518 may stop executing, and a hash manager (not shown) may forward the digest message to the processor. If the value of the iteration counter 516 is greater than zero, the hash module 518 may load at least a portion of the digest message 526 into a configurable location in the input buffer 502. For example, a hash engine performing SHA256 may generate a 32-byte digest message. The hash module 518 may load bits of the digest message into a secret seed section of the input message, replacing the old secret seed. As a result, the input message is updated with at least a portion of the 32-byte digest message. The hash module 518 may then determine whether a one-byte counter 528 is present in the input message 504. If the hash module 518 determines that a one-byte counter 508 is present in the input message, the hash module may increment the one-byte counter 530. For example, the one-byte counter 508 may increase to a count value of one (e.g., 00000001 in binary). In doing so, the hash module 120 may monotonically increase the value of the one-byte counter 508 by one bit per iteration.For example, if the value of the one-byte counter 508 increases monotonically, the input message may be salted. If the one-byte counter 508 is not present in the input message 504, the hash module 518 may proceed to perform the next hash calculation 520. In this manner, at least a portion of the digest message of a given iteration may be directly loaded back into a configurable location in the input buffer 502 to update the input message for the next hash calculation (the "iterative hash calculation"). In doing so, this iterative hash calculation method bypasses memory copies and bus latencies, accelerating quantum-resistant cryptographic hash-based signature calculations.
[0035] System on a Chip FIG. 6 illustrates an integrated circuit component (e.g., integrated circuit component 126) implemented as an SoC 600 that can implement various aspects of accelerating an iterative hash calculation. The SoC 600 may be a single chip including components fabricated on the same semiconductor substrate. Alternatively, the SoC may be multiple such chips glued together with epoxy. The SoC 600 may be implemented in any suitable device, such as a smartphone, a mobile phone, a netbook, a tablet computer, a server, a wireless router, network attached storage, a camera, a smart appliance, a printer, a set-top box, or any suitable type of device. Although described with reference to an SoC, the entities of FIG. 6 may be implemented as an ASIC, a field-programmable gate array (FPGA), or the like.
[0036] SoC 600 may be integrated with electronic circuitry including components described in the operating systems listed herein. SoC 600 may also include an integrated data bus (not shown) coupling various components of the SoC for data communication between the components. The integrated data bus or other components of SoC 600 may be exposed or accessible via an external port, such as a JTAG port. For example, components of SoC 600 may be tested, configured, or programmed (e.g., flashed) via the external port at various stages of manufacturing.
[0037] In this example, the SoC 600 includes a computer-readable storage medium 602, one or more processors 604, a hash engine 606, and an I / O unit 608. The computer-readable storage medium 602 may include one or more non-transitory storage devices, such as RAM ((DRAM, NVRAM, or SRAM), ROM, or flash memory), hard drives, SSDs, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus. The computer-readable storage medium 602 may include all or a portion of the instructions of a hash manager (e.g., hash manager 114). The processor 604 may implement the instructions of the hash manager. In some implementations, any secure root of trust (RoT) component may be implemented as the hash engine 604, including a cryptographic processor. Additionally, the hash engine 604 may implement any cryptographic hash function, such as SHA256.
[0038] Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific functions or acts described herein, including the order in which they are performed.
[0039] example The following section provides examples.
[0040] Example 1: A computer-implemented method includes loading a first input message into an input buffer and a hash engine computing a hash calculation using the first input message as an input. The hash calculation results in a digest message. The computer-implemented method further includes loading at least a portion of the digest message directly into a configurable location in the input buffer and repeating the hash calculation a predetermined number of iterations. Each iterative hash calculation results in at least a portion of the digest message being loaded directly into the input buffer at a configurable location to be used as input for use in a subsequent iteration of the iterative hash calculation.
[0041] Example 2: The computer-implemented method of example 1, wherein the hash engine is a cryptographic processor that implements a cryptographic hash function.
[0042] Example 3: The computer-implemented method of example 1, wherein the digest message is 32 bytes in length.
[0043] Example 4: The computer implemented method of example 1, wherein the input buffer is a register file of a hash engine.
[0044] Example 5: The computer-implemented method of Example 1, wherein loading at least a portion of the digest message directly into a configurable location within the input buffer is implemented without loading the digest message into memory external to the hash engine.
[0045] Example 6: The computer-implemented method of example 1, wherein the first input message is a bit string that includes a concatenation of a prefix, a counter, and a secret seed.
[0046] Example 7: The computer implemented method of example 5, wherein the first input message is 56 bytes long.
[0047] Example 8: The computer-implemented method of example 1, wherein the secret seed is replaced by directly loading at least a portion of the digest message into a configurable location in the input buffer.
[0048] Example 9: The computer-implemented method of example 1, wherein repeating the hash calculation is performed 256 times.
[0049] Example 10: The computer-implemented method of example 1, further comprising decrementing the iteration counter and, if an input message to the repeated hash calculation includes a one-byte counter, incrementing the one-byte counter.
[0050] Example 11: The computer-implemented method of example 10, wherein the iteration counter is assigned a value in the range of 0 to 255 upon initialization.
[0051] Example 12: The computer-implemented method of example 11, wherein the iteration counter is loaded into a register of the hash engine.
[0052] Example 13: The computer-implemented method of example 10, wherein the one-byte counter begins with a value configured for hash-based signature verification.
[0053] Example 14: The computer-implemented method of example 13, wherein the one-byte counter monotonically increases.
[0054] Example 15: A computing device comprising at least one processor and at least one computer-readable storage medium comprising instructions that, when executed by the at least one processor, cause the processor to perform a method as described in any one of the preceding examples.
[0055] conclusion Although implementations of techniques and apparatus for enabling accelerated quantum-resistant cryptographic hash-based signature computations have been described in feature- and / or method-specific language, it should be understood that the subject matter of the appended claims is not necessarily limited to the particular features or methods described. Rather, the particular features and methods are disclosed as example implementations for enabling accelerated quantum-resistant cryptographic hash-based signature computations.
Claims
1. 1. A computer-implemented method comprising: loading a first input message into an input buffer; a hash engine using the first input message as an input to compute a hash computation; a digest message is generated as a result of the hash calculation; The computer-implemented method comprises: loading at least a portion of the digest message directly into a configurable location within the input buffer; repeating the hash calculation a predetermined number of times; wherein each of the repeated hash calculations loads at least a portion of a digest message directly into the configurable location within the input buffer for use as input in a subsequent iteration of the repeated hash calculation.
2. 10. The computer-implemented method of claim 1, wherein the hash engine is a cryptographic processor that implements a cryptographic hash function.
3. 2. The computer-implemented method of claim 1, wherein the digest message is 32 bytes in length.
4. 2. The computer-implemented method of claim 1, wherein the input buffer is a register file of the hash engine.
5. 2. The computer-implemented method of claim 1, wherein loading at least a portion of the digest message directly into the configurable location within the input buffer is implemented without loading the digest message into memory external to the hash engine.
6. 2. The computer-implemented method of claim 1, wherein the first input message is a bit string comprising a concatenation of a prefix, a counter, and a secret seed.
7. 7. The computer implemented method of claim 6, wherein the first input message is 56 bytes in length.
8. 2. The computer-implemented method of claim 1, wherein the first input message includes a secret seed loaded into the configurable location in the buffer memory, and wherein the secret seed is replaced by loading at least a portion of the digest message directly into the configurable location in the input buffer.
9. 2. The computer-implemented method of claim 1, wherein the repeating of the hash calculation is performed 256 times.
10. decrementing an iteration counter; if an input message to said repeated hash calculations includes a one-byte counter, incrementing the one-byte counter; The computer implemented method of claim 1 further comprising:
11. 11. The computer-implemented method of claim 10, wherein the iteration counter is assigned a value in the range of 0 to 255 upon initialization.
12. 12. The computer-implemented method of claim 11, wherein the iteration counter is loaded into a register of the hash engine.
13. 11. The computer-implemented method of claim 10, wherein the one-byte counter begins with a value configured for hash-based signature verification.
14. 14. The computer-implemented method of claim 13, wherein the one-byte counter is monotonically increasing.
15. At least one processor; At least one computer readable storage medium comprising instructions which, when executed by said at least one processor, cause said processor to perform a method according to any one of the preceding claims; A computing device comprising:
Citation Information
Patent Citations
Hash value calculation processing system
JP1992148372A
Hash device
JP2001282106A
Cryptographic architecture for cipher substitution
JP2022541057A
Method and apparatus for generic multi-stage nested hash processing
US20090141887A1
Verifying Authenticity of Input Using a Hashing Algorithm
US20130166514A1
