Embodiments described herein generally relate to the field of electronic devices and, more particularly, protection of authentication tag computation against power and electromagnetic side-channel attacks.
In cryptographic operations for computing systems, authentication tags are calculated for security, including, for example the authentication tag generated for AES-GCM (Advanced Encryption Standard-Galois Counter Mode) encryption operation. AES-GCM may be used to transfer sensitive data, with the generated authentication tag being required to decrypt the encrypted data.
A side-channel attack (SCA) is an attack based on leaked information in a computing system. A side-channel attack may be in the form of observation of power consumption, electromagnetic emissions, or other signal leakages from a circuit. In existing technology, a AES engine implemented for encryption operation may be DPA (Differential Power Analysis)-protected to provide protection of the engine from such side-channel attacks.
However, protection of the AES engine does not provide protection for computation of the authentication tag. If an attacker is able to determine the value of a secret authentication key through a side-channel attack, the attacker may be capable of applying the obtained authentication key in altering data or authentication tags, thus defeating the cryptographic operations.
Embodiments described here are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.
Embodiments described herein are directed to protection of authentication tag computation against power and electromagnetic side-channel attacks.
The Advanced Encryption Standard (AES) algorithm in Galois Counter Mode (GCM), known as AES-GCM, is an authentication encryption algorithm developed by the National Institute for Standard and Technology (NIST). AES-GCM is an authenticated encryption mode that uses the AES block cipher in counter mode with a polynomial MAC based on Galois field multiplication. The output of calculation in AES-GCM is a ciphertext C and an authentication tag AT, the authentication tag being necessary, together with other values (an initialization vector IV and additional authenticated data A), for successful authenticated decryption. The AES-GCM authentication technology may be utilized in numerous operations, including, for example, transfer among different dies in a computing package device.
The generation of the authentication tag utilizes a secret authentication key H. However, if the authentication key H can be determined by an attacker, the encryption of data may be compromised. In particular, the nonlinear multiplication operations in a system may be subject to a side channel attack in which leakage of electromagnetic or power signals in connection with the calculation of the authentication tag is utilized by an attacker in an attempt to determine the H value.
The authentication tag in AES-GCM is computed as follows:
Authentication Tag (AT)=(. . . ((A×H) ΛD1)×H). . . ΛL)×H) ΛEk(C0)
In operation of a system utilizing AES-GCM, DPA (Differential Power Analysis) and DEMA (Differential Electromagnetic Analysis) attacks may made by exploiting power and electromagnetic (EM) side-channel leakages during multiplication to generate the authentication tag. If an attacker can determine the authentication key H value through a side-channel attack, the attacker then can alter data and the authentication tag.
Post-Quantum Cryptography
Post-Quantum Cryptography (also referred to as “quantum-proof”, “quantum-safe”, “quantum-resistant”, or simply “PQC”) takes a futuristic and realistic approach to cryptography. It prepares those responsible for cryptography as well as end-users to know the cryptography is outdated; rather, it needs to evolve to be able to successfully address the evolving computing devices into quantum computing and post-quantum computing.
It is well-understood that cryptography allows for protection of data that is communicated online between individuals and entities and stored using various networks. This communication of data can range from sending and receiving of emails, purchasing of goods or services online, accessing banking or other personal information using websites, etc.
Conventional cryptography and its typical factoring and calculating of difficult mathematical scenarios may not matter when dealing with quantum computing. These mathematical problems, such as discrete logarithm, integer factorization, and elliptic-curve discrete logarithm, etc., are not capable of withstanding an attack from a powerful quantum computer. Shor, P.W. “Algorithms for quantum computation: discrete logarithms and factoring”. Proceedings 35th Annual Symposium on Foundations of Computer Science. IEEE Comput. Soc. Press. doi:10.1109/sfcs.1994.365700. ISBN 0818665807. Although any post-quantum cryptography could be built on the current cryptography, the novel approach would need to be intelligent, fast, and precise enough to resist and defeat any attacks by quantum computers.
Today's PQC is mostly focused on the following approaches: 1) hash-based cryptography based on Merkle's hash tree public-key signature system of 1979, which is built upon a one-message-signature idea of Lamport and Diffie; 2) code-based cryptography, such as McEliece's hidden-Goppa-code public-key encryption system; 3) lattice-based cryptography based on Hoffstein-Pipher-Silverman public-key-encryption system of 1998; 4) multivariate-quadratic equations cryptography based on Patarin's Hidden Field Equation (HFE) public-key-signature system of 1996 that is further based on the Matumoto-Imai proposal; 5) supersingular elliptical curve isogeny cryptography that relies on supersingular elliptic curves and supersingular isogeny graphs; and 6) symmetric key quantum resistance, such as HBS.
One area that is being explored to counter quantum computing challenges is hash-based signatures (HBS) since these schemes have been around for a long while and possess the necessary basic ingredients, such as relying on symmetric cryptography building blocks (e.g., hash functions), to counter the quantum counting and post-quantum computing challenges. HBS schemes are regarded as fast signature algorithms working with fast platform secured-boot, which is regarded as the most resistant to quantum attacks.
For example, as illustrated with respect to
Similarly, as illustrated with respect to
For example, WOTS scheme 200 of
Now, for example,
Countermeasures for Side Channel Attacks on Authentication Tag Calculation
In some embodiments, an apparatus, system, or process provides for protection against DPA/DEMA attacks in the calculation of the authentication tag in an authentication encryption algorithm, and in particular in AES-GCM.
Power and EM leakages occur due to multiple different factors, the factors including at least algorithm leakage (multiplication), data dependent leakage (A, Di's, intermediate results) and implementation aspects. As used herein, A refers to an Additional Authenticated Data (AAD) value to provide additional integrity and authenticity check on the encrypted data, and Di refers to encrypted data values. The sources of these leakages are respectively the multiplier utilized in generation the authentication key, the registers to store values, and the wires in the device implementation.
In some embodiments, an apparatus, system, or process includes one or more of the following countermeasures to protect against side channel attacks in relation to the calculation of the authentication tag:
(1) Multiplication leakages may be reduced or prevented through input data (A, Di's) randomizations. In some embodiments, each data is randomized with new random values that are generated locally to avoid latency overhead.
(2) Leakages due to register updates may be reduced or prevented through the storage of the randomized intermediate results in the registers.
(3) (a) Implementation specific leakages may be reduced or prevented by providing multiplexing between multiple sources for driving sensitive intermediate nodes, and thus avoid exposing actual intermediate results in calculation. An embodiment may include, but is not limited to, the inclusion of multiplexers (MUXs) in device generation. In some embodiments, each random number added with input data (A, Di's) is multiplied by H and accumulated in another register that is exclusive ORed (XORed) with the randomized intermediate result only at the end of tag computation through operation of multiplexers that should be maintained in hardware optimization.
(b) The implementation of an apparatus or system to calculate the authentication tag may include optimization of the circuit, including the potential elimination of the multiplexing of intermediate results. In some embodiments, one or more protection operations are provided to prevent the elimination of such multiplexing during the optimization of the circuit.
However, the operation of the processing element 300 may allow access to power and EM side-channel leakage 350, which may thus allow for an attacker to determine the authentication key H utilized in the authentication tag calculation 315, and thus potentially modify data and authentication tag values.
More specifically, the power and EM side-channel leakage 350 may include algorithm/multiplication leakage 352 in the calculation of the authentication tag; data/register leakage 354 in connection with the storing values in registers in the calculation; and implementation/wire leakage in which the implementation of calculation allows for detection of values in calculation.
In some embodiments, an apparatus, system, or process includes one or more side channel attack countermeasure technologies 330 to repel the power and EM side channel attacks on the operation of the processing element 300, wherein the countermeasures may include:
(1) Multiplication countermeasures 332 in which data randomization is introduced. The multiplication countermeasures are further illustrated in
(2) Data and register countermeasures 334 in which randomized intermediate results are stored in the registers. The data and register countermeasures are further illustrated in
(3) Implementation countermeasures 336 in which multiplexing of sources driving sensitive intermediate nodes is provided to avoid exposing actual intermediate results in calculation. Embodiments may include the implementation of multiplexer elements in an apparatus or system to provide the multiplexing of sources. In some embodiments, the countermeasures further include one or more operations to maintain the multiplexing for intermediate nodes during circuit optimization. For example, a synthesis tool may be directed to maintain multiplexing in device generation (for example, a directive not to optimize multiplexers within a circuit) to avoid the elimination of the protection provided by the multiplexing as this could result in exposing actual intermediate results in calculation. The implementation countermeasures are further illustrated in
As illustrated in
In some embodiments, the following sequence of operations are provided for an input block Di (from input block 414):
1: Clock i: t1,i+1=((DiΛmi) Λt1,i)×H
2: Clock i+1: lfsr(mi)×H
3: Clock i+2: t2,i+1=(miΛt2,i)×H.
In Operation 1, Di represents the current 128-bit input data block (either Additional Authentication Data (A) or Ciphertext Data (D)); mi represents the current 128-bit random number; t1,i represents the current state of the t1 register, which is initialized by zero before starting a new AES-GCM operation; and H stands for the 128-bit authentication key. The value in register m in this clock cycle remain unchanged.
In Operation 2, one or more dummy operations may be provided, wherein a dummy operation may be any operation utilizing the multiplier 422 that is not necessary for the AES-GCM calculation of the authentication tag. For example, the dummy operation may include applying the current lfsr (linear feedback shift register) output with input of mi, which is multiplied with H. This calculation provides the dummy operation between processing the randomized data at Operation 1 and accumulating the random number at Operation 3. The value of register m is unchanged in this cycle.
However, the inclusion of a dummy operation is not required in all embodiments. Other embodiments may provide one or more operations that allow for protection of calculation values utilizing other randomization. For example, the AES-GCM hardware may support multiple authentication tag calculation simultaneously, using multiple sets of registers t1, t2. In an embodiment, different calculations may be interleaved randomly, thus eliminating the need for dummy operations.
In Operation 3, the current value of register m (mi) is reused, with such value XORed with the current value of the random accumulator register t2 (t2,i), with the XORed result being multiplied with H, and thus updating t2. However, it is noted that between Operation 1 and Operation 3 there is a hamming weight that corresponds to the value of the secret authentication key H. In some embodiments, Operation 2 is provided to remove any observable correlation (e.g., a hamming distance) between Operations 1 and 3 that may otherwise be obtained by measuring power/EM leakage for these operations.
In some embodiments, the above three operations (Operations 1, 2, and 3) are computed in 3 consecutive cycles following the availability of Di. After completion of Operation 3, the process includes updating the pseudo-random generator state/register m in each following cycle until the next data block arrives. In a round-based AES engine, it can be expected that the next data block will be available after 7 cycles (for AES128) or 11 cycles (for AES256) after Operation 3. These intermediate cycles that provide for updating register m ensure that the random number (mi+1) that will be used for the next data Di+1 i is different from the previously used mi's.
In some embodiments, the following operations are provided for processing the next data value Di+1 at clock j:
4: Clock j: t1,i+2=((Di+1Λmi+1) Λt1,i+1)×H
5: Clock j+1: lfsr(mi+1)×H
6: Clock j+1: t2,i+2=(m1+1Λt2,i+1)×H.
In some embodiments, the above procedures are continued for all data blocks followed by a single block of length information. For generating the final GCM authentication tag, the encrypted value of the first counter value Ek(c0) 436 from the AES engine is XORed with t1 followed by XORing with t2, as follows:
7: tag=Ek(c0) Λt1 Λt2.
In some embodiments, Operation 7 is performed only after processing all data blocks and the length block. In other words, this operation is performed only at the time for generating the final authentication tag value, when the Ek(c0) value is available to the DPA protected GCM tag computation unit provided in
For the hardware implementation of the authentication tag calculation as illustrated in
In some embodiments, a Linear Feedback Shift Register (LFSR) 412 is utilized (as illustrated in
The first embodiment for generation of an authentication tag 400 illustrated
R1=random
R2=random
R3=R1ΛR2
T1=T2=T3=0
For each 128-bit data block D for the alternative embodiment, the following operations are provided in the calculation of the authentication tag:
a: T1=(T1ΛD ΛR1)×H
b: T2=(T2ΛR2)×H
C: T3=(T3ΛR3)×H
d: R1=lfsr1(R1)
e: R2=lfsr2(R2)
f: R3=R1ΛR2
In some embodiments, Operations a, b and c are executed in consecutive cycles, followed by Operations d, e and f being executed in a single cycle.
In some embodiments, for processing of each data block D, the execution order of Operations a, b and c can be randomized, thereby providing further protection from power and EM side-channel leakage in the calculation of the authentication tag value.
In some embodiments, a first data block D is received 520, and the data is masked, utilizing one or more random values, and is multiplied with the authentication key H 525. One or more dummy calculations are then performed with one or more random values 530 (thereby removing observable correlation between actual calculation operations), followed by performing accumulation of the generated random values 535.
If there are additional data blocks for calculation 540, then one or more intermediate calculations may be performed with random values 545 during remaining clock cycles, followed by receiving the next data block D 550. The process then proceeds with masking the received data block utilizing one or more random values, and multiplying by the authentication key H 525.
If there are no additional data blocks for calculation 540, then the process proceeds with unmasking the values and calculating the final authentication tag 560.
In some embodiments, the process 600 includes storing the intermediate values in registers 620, such as register m 402, register t1 404, and register t2 406 in
If there is additional data for calculations 625 to be performed in the generation of the authentication tag, the process continues with receiving additional data and the performance of calculation 610, generation of intermediate values based at least in part on one or more random values 615, and storing of intermediate values in registers 620. If there is no additional data for calculation 625, then the process includes completing calculation of the authentication tag 630, such as provided in
In some embodiments, in order to combat side-channel attack based on the circuit implementation, the process includes implementing multiplexing of the sources driving the intermediate nodes to avoid exposing the actual intermediate results 720. In a particular example, as illustrated in
In some embodiments, a process 750 includes commencing a process for optimization of a circuit for calculation of an authentication tag 755. As an example, this may include optimizing a circuit design for the calculation illustrated in
For example, the process 750 may include a synthesis directive to maintain multiplexers in the logic synthesis 770. Such directive may be in the form of a “Do Not Optimize” command in relation to the one or more multiplexers.
The process 750 then provides for performing the circuit optimization process including the one or more protective operations 775. For example, the optimization process may include synthesizing the hardware for the authentication tag calculation, the synthesis including optimization of the netlist for the circuit while retaining the one or more multiplexers to provide implementation countermeasures to prevent side-channel attack on the resulting circuit.
In some embodiments, the optimized circuit hardware may then be generated based on the synthesis result 780, and ultimately performing authentication tag calculation utilizing the generated hardware.
As used in this application, the terms “system” and “component” and “module” are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution, examples of which are provided by the exemplary computing architecture 800. For example, a component can be, but is not limited to being, a process running on a processor, a processor, a hard disk drive or solid state drive (SSD), multiple storage drives (of optical and/or magnetic storage medium), an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a server and the server can be a component. One or more components can reside within a process and/or thread of execution, and a component can be localized on one computer and/or distributed between two or more computers. Further, components may be communicatively coupled to each other by various types of communications media to coordinate operations. The coordination may involve the unidirectional or bi-directional exchange of information. For instance, the components may communicate information in the form of signals communicated over the communications media. The information can be implemented as signals allocated to various signal lines. In such allocations, each message is a signal. Further embodiments, however, may alternatively employ data messages. Such data messages may be sent across various connections. Exemplary connections include parallel interfaces, serial interfaces, and bus interfaces.
The computing architecture 800 includes various common computing elements, such as one or more processors, multi-core processors, co-processors, memory units, chipsets, controllers, peripherals, interfaces, oscillators, timing devices, video cards, audio cards, multimedia input/output (I/O) components, power supplies, and so forth. The embodiments, however, are not limited to implementation by the computing architecture 800. In some embodiments, the computing elements are to provide for countermeasures against DPA/DEMA side-channel attacks in the calculation of the authentication tag in an authentication encryption algorithm.
As shown in
An embodiment of system 800 can include, or be incorporated within, a server-based gaming platform, a game console, including a game and media console, a mobile gaming console, a handheld game console, or an online game console. In some embodiments system 800 is a mobile phone, smart phone, tablet computing device or mobile Internet device. Data processing system 800 can also include, couple with, or be integrated within a wearable device, such as a smart watch wearable device, smart eyewear device, augmented reality device, or virtual reality device. In some embodiments, data processing system 800 is a television or set top box device having one or more processors 802 and a graphical interface generated by one or more graphics processors 808.
In some embodiments, the one or more processors 802 each include one or more processor cores 807 to process instructions which, when executed, perform operations for system and user software. In some embodiments, each of the one or more processor cores 807 is configured to process a specific instruction set 809. In some embodiments, instruction set 809 may facilitate Complex Instruction Set Computing (CISC), Reduced Instruction Set Computing (RISC), or computing via a Very Long Instruction Word (VLIW). Multiple processor cores 807 may each process a different instruction set 809, which may include instructions to facilitate the emulation of other instruction sets. Processor core 807 may also include other processing devices, such a Digital Signal Processor (DSP).
In some embodiments, the processor 802 includes cache memory 804. Depending on the architecture, the processor 802 can have a single internal cache or multiple levels of internal cache. In some embodiments, the cache memory 804 is shared among various components of the processor 802. In some embodiments, the processor 802 also uses an external cache (e.g., a Level-3(L3) cache or Last Level Cache (LLC)) (not shown), which may be shared among processor cores 807 using known cache coherency techniques. A register file 806 is additionally included in processor 802 which may include different types of registers for storing different types of data (e.g., integer registers, floating point registers, status registers, and an instruction pointer register). Some registers may be general-purpose registers, while other registers may be specific to the design of the processor 802.
In some embodiments, one or more processor(s) 802 are coupled with one or more interface bus(es) 810 to transmit communication signals such as address, data, or control signals between processor 802 and other components in the system. The interface bus 810, in one embodiment, can be a processor bus, such as a version of the Direct Media Interface (DMI) bus. However, processor buses are not limited to the DMI bus, and may include one or more Peripheral Component Interconnect buses (e.g., PCI, PCI Express), memory buses, or other types of interface buses. In one embodiment the processor(s) 802 include an integrated memory controller 816 and a platform controller hub 830. The memory controller 816 facilitates communication between a memory device and other components of the system 800, while the platform controller hub (PCH) 830 provides connections to I/O devices via a local I/O bus.
Memory device 820 can be a dynamic random-access memory (DRAM) device, a static random-access memory (SRAM) device, flash memory device, phase-change memory device, or some other memory device having suitable performance to serve as process memory. In one embodiment the memory device 820 can operate as system memory for the system 800, to store data 822 and instructions 821 for use when the one or more processors 802 execute an application or process. Memory controller hub 816 also couples with an optional external graphics processor 812, which may communicate with the one or more graphics processors 808 in processors 802 to perform graphics and media operations. In some embodiments a display device 811 can connect to the processor(s) 802. The display device 811 can be one or more of an internal display device, as in a mobile electronic device or a laptop device, or an external display device attached via a display interface (e.g., DisplayPort, etc.). In one embodiment the display device 811 can be a head mounted display (HMD) such as a stereoscopic display device for use in virtual reality (VR) applications or augmented reality (AR) applications.
In some embodiments the platform controller hub 830 enables peripherals to connect to memory device 820 and processor 802 via a high-speed I/O bus. The I/O peripherals include, but are not limited to, an audio controller 846, a network controller 834, a firmware interface 828, a wireless transceiver 826, touch sensors 825, a data storage device 824 (e.g., hard disk drive, flash memory, etc.). The data storage device 824 can connect via a storage interface (e.g., SATA) or via a peripheral bus, such as a Peripheral Component Interconnect bus (e.g., PCI, PCI Express). The touch sensors 825 can include touch screen sensors, pressure sensors, or fingerprint sensors. The wireless transceiver 826 can be a Wi-Fi transceiver, a Bluetooth transceiver, or a mobile network transceiver such as a 3G, 4G, Long Term Evolution (LTE), or 5G transceiver. The firmware interface 828 enables communication with system firmware, and can be, for example, a unified extensible firmware interface (UEFI). The network controller 834 can enable a network connection to a wired network. In some embodiments, a high-performance network controller (not shown) couples with the interface bus 810. The audio controller 846, in one embodiment, is a multi-channel high definition audio controller. In one embodiment the system 800 includes an optional legacy I/O controller 840 for coupling legacy (e.g., Personal System 2 (PS/2)) devices to the system. The platform controller hub 830 can also connect to one or more Universal Serial Bus (USB) controllers 842 connect input devices, such as keyboard and mouse 843 combinations, a camera 844, or other USB input devices.
In some embodiments, one or more non-transitory computer-readable storage mediums having stored thereon executable computer program instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising performing a process for calculation of an authentication tag for a data encryption operation, including generating one or more random values utilizing a pseudo-random number generator; receiving a plurality of data blocks for calculation, and performing calculation utilizing the received plurality of data blocks and the one or more random values to generate intermediate values; performing a data accumulation operation to accumulate random values in calculation of the data blocks; and calculating the authentication tag based at least in part on the generated intermediate values and the accumulated random values.
In some embodiments, calculating the authentication tag is further based on a received counter value.
In some embodiments, calculation of the authentication tag is performed after processing of all of the plurality of data blocks.
In some embodiments, the instructions further include instructions for performing one or more dummy operations between processing of a data block of the plurality of data blocks and performing the data accumulation operation for a random value.
In some embodiments, the instructions further include instructions for storing the intermediate values in a first register and storing the accumulated random values in a second register.
In some embodiments, the instructions further include instructions for multiplexing between multiple sources in providing the intermediate values for calculation of the authentication tag.
In some embodiments, the instructions further include instructions for performing optimization of the calculation of the authentication tag, including performing one or more protective operations to maintain the multiplexing between multiple sources in providing the intermediate values.
In some embodiments, the multiplexing includes implementation of one or more multiplexers that are utilized in calculating a final value for the authentication tag.
In some embodiments, the data encryption operation is an AES-GCM (Advanced Encryption Standard-Galois Counter Mode) encryption operation.
In some embodiments, a system includes one or more processors including one or more processing cores, the one or more processor to calculate an authentication tag for a data encryption operation; and a memory for storage of data, including data for one or more secure operations, wherein the one or more processors are to generate one or more random values utilizing a pseudo-random number generator; receive a plurality of data blocks for calculation, and perform calculation utilizing the received plurality of data blocks and the one or more random values to generate intermediate values; perform a data accumulation operation to accumulate random values in calculation of the data blocks; and calculate the authentication tag based at least in part on the generated intermediate values and the accumulated random values.
In some embodiments, calculating the authentication tag is further based on a received counter value; and calculation of the authentication tag is performed after processing of all of the plurality of data blocks.
In some embodiments, the one or more processors are further to upon processing a data block, update a state or value for the pseudo-random number generator during one or more clock cycles prior to receiving a next data block.
In some embodiments, the system further includes a plurality of registers including at least a first register and a second register, wherein the one or more processors are further to store the intermediate values in the first register and store the accumulated random values in the second register.
In some embodiments, the system further includes one or more multiplexers to multiplex between multiple sources in providing the intermediate values for calculation of the authentication tag.
In some embodiments, the one or more multiplexers are utilized in calculating a final value for the authentication tag.
In some embodiments, the data encryption operation is an AES-GCM (Advanced Encryption Standard-Galois Counter Mode) encryption operation.
In some embodiments, a method for calculation of an authentication tag for an AES-GCM (Advanced Encryption Standard-Galois Counter Mode) data encryption operation, including generating one or more random values utilizing a pseudo-random number generator; receiving a plurality of data blocks for calculation, and performing calculation utilizing the received plurality of data blocks and the one or more random values to generate intermediate values; performing a data accumulation operation to accumulate random values in calculation of the data blocks; and calculating the authentication tag based at least in part on the generated intermediate values, the accumulated random values, and a received counter value.
In some embodiments, calculation of the authentication tag is performed after processing of all of the plurality of data blocks.
In some embodiments, the method further includes storing the intermediate values in a first register storing the accumulated random values in a second register.
In some embodiments, the method further includes multiplexing between multiple sources in providing the intermediate values for calculation of the authentication tag.
In some embodiments, an apparatus includes means for performing a process for calculation of an authentication tag for a data encryption operation, including generating one or more random values utilizing a pseudo-random number generator; means for receiving a plurality of data blocks for calculation, and performing calculation utilizing the received plurality of data blocks and the one or more random values to generate intermediate values; means for performing a data accumulation operation to accumulate random values in calculation of the data blocks; and means for calculating the authentication tag based at least in part on the generated intermediate values and the accumulated random values.
In some embodiments, the means for calculating the authentication tag is further based on a received counter value.
In some embodiments, calculation of the authentication tag is performed after processing of all of the plurality of data blocks.
In some embodiments, the apparatus further includes means for performing one or more dummy operations between processing of a data block of the plurality of data blocks and performing the data accumulation operation for a random value.
In some embodiments, the apparatus further includes means for storing the intermediate values in a first register and storing the accumulated random values in a second register.
In some embodiments, the apparatus further includes means for multiplexing between multiple sources in providing the intermediate values for calculation of the authentication tag.
In some embodiments, the apparatus further includes means for performing optimization of the calculation of the authentication tag, including performing one or more protective operations to maintain the multiplexing between multiple sources in providing the intermediate values.
In some embodiments, the multiplexing includes implementation of one or more multiplexers that are utilized in calculating a final value for the authentication tag.
In some embodiments, the data encryption operation is an AES-GCM (Advanced Encryption Standard-Galois Counter Mode) encryption operation.
In the description above, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the described embodiments. It will be apparent, however, to one skilled in the art that embodiments may be practiced without some of these specific details. In other instances, well-known structures and devices are shown in block diagram form. There may be intermediate structure between illustrated components. The components described or illustrated herein may have additional inputs or outputs that are not illustrated or described.
Various embodiments may include various processes. These processes may be performed by hardware components or may be embodied in computer program or machine-executable instructions, which may be used to cause a general-purpose or special-purpose processor or logic circuits programmed with the instructions to perform the processes. Alternatively, the processes may be performed by a combination of hardware and software.
Portions of various embodiments may be provided as a computer program product, which may include a computer-readable medium having stored thereon computer program instructions, which may be used to program a computer (or other electronic devices) for execution by one or more processors to perform a process according to certain embodiments. The computer-readable medium may include, but is not limited to, magnetic disks, optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically-erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or other type of computer-readable medium suitable for storing electronic instructions. Moreover, embodiments may also be downloaded as a computer program product, wherein the program may be transferred from a remote computer to a requesting computer.
Many of the methods are described in their most basic form, but processes can be added to or deleted from any of the methods and information can be added or subtracted from any of the described messages without departing from the basic scope of the present embodiments. It will be apparent to those skilled in the art that many further modifications and adaptations can be made. The particular embodiments are not provided to limit the concept but to illustrate it. The scope of the embodiments is not to be determined by the specific examples provided above but only by the claims below.
If it is said that an element “A” is coupled to or with element “B,” element A may be directly coupled to element B or be indirectly coupled through, for example, element C. When the specification or claims state that a component, feature, structure, process, or characteristic A “causes” a component, feature, structure, process, or characteristic B, it means that “A” is at least a partial cause of “B” but that there may also be at least one other component, feature, structure, process, or characteristic that assists in causing “B.” If the specification indicates that a component, feature, structure, process, or characteristic “may”, “might”, or “could” be included, that particular component, feature, structure, process, or characteristic is not required to be included. If the specification or claim refers to “a” or “an” element, this does not mean there is only one of the described elements.
An embodiment is an implementation or example. Reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “other embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least some embodiments, but not necessarily all embodiments. The various appearances of “an embodiment,” “one embodiment,” or “some embodiments” are not necessarily all referring to the same embodiments. It should be appreciated that in the foregoing description of exemplary embodiments, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various novel aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed embodiments requires more features than are expressly recited in each claim. Rather, as the following claims reflect, novel aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims are hereby expressly incorporated into this description, with each claim standing on its own as a separate embodiment.
This Application is a continuation of and claims the benefit of and priority to U.S. application Ser. No. 17/024,107, entitled PROTECTION OF AUTHENTICATION TAG COMPUTATION AGAINST POWER AND ELECTROMAGNETIC SIDE-CHANNEL ATTACKS, by Santosh Ghosh, et al., filed Sep. 17, 2020, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 17024107 | Sep 2020 | US |
Child | 18066913 | US |