Side-channel resistant multiplicatively masked encryption engine with zero-value attack detection
Abstract
In one embodiment, a method comprises: combining, in a first adder circuit of a cryptographic engine, a round key with masked plaintext to generate an additively masked input; converting, in a first converter of the cryptographic engine, the additively masked input to a multiplicatively masked input; and performing, in a substitution box circuit of the cryptographic engine, a non-linear inverse operation on the multiplicatively masked input when the multiplicatively masked input is non-zero, and performing the non-linear inverse operation on a random non-zero value when the multiplicatively masked input is zero. Other embodiments are described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A method comprising: combining, in a first adder circuit of a cryptographic engine, a round key with masked plaintext to generate an additively masked input; converting, in a first converter of the cryptographic engine, the additively masked input to a multiplicatively masked input; and performing, in a substitution box (Sbox) circuit of the cryptographic engine, a non-linear inverse operation on the multiplicatively masked input when the multiplicatively masked input is non-zero and performing the non-linear inverse operation on a random non-zero value when the multiplicatively masked input is zero.
- Claim 2Depends on #1
The method of claim 1, further comprising detecting that the multiplicatively masked input is zero in a balanced zero-value detector.
- Claim 3Depends on #2
The method of claim 2, further comprising, in response to detecting that the multiplicatively masked input is zero: providing the random non-zero value to the Sbox circuit and to a second converter of the cryptographic engine, the second converter coupled to an output of the Sbox circuit; and converting, in the second converter, an output of the Sbox circuit to an additive output using the random non-zero value.
- Claim 4Depends on #1
The method of claim 1, further comprising: generating a mask value in a random number generator; and combining the mask value with plaintext to obtain the masked plaintext.
- Claim 5Depends on #4
The method of claim 4, further comprising: providing the mask value to a mask zero-value detector; and in response to detecting that the mask value is zero, providing the random non-zero value to the Sbox circuit instead of the multiplicatively masked input.
- Claim 6Depends on #1
The method of claim 1, wherein converting the additively masked input to the multiplicatively masked input comprises: multiplying the additively masked input with a reflected mask value to obtain a first product; multiplying the reflected mask value with a mask value to obtain a second product; and combining the first product and the second product to obtain the multiplicatively masked input.
- Claim 7Depends on #1
The method of claim 1, further comprising converting, in a second converter of the cryptographic engine, a multiplicative inverse output of the non-linear inverse operation to an additive inverse output.
- Claim 8Depends on #7
The method of claim 7, wherein converting the multiplicative inverse output to the additive inverse output comprises: multiplying a fresh mask value with an input mask value to obtain a first product; summing the first product with the multiplicative inverse output to obtain a sum; and merging the sum with an inverse of the input mask value to obtain the additive inverse output.
Technical Overview & Description
BACKGROUND Physical power/electromagnetic (EM) side-channel resistance is a desired property for Advanced Encryption Standard (AES) hardware. One manner of providing such protection is an additive-masked design, which incurs more than double area and power overheads of a base AES hardware, thereby limiting its usage. Another alternative is to perform multiplicative masking; however there remains a concern of an attack with zero-value inputs. Typical designs of this sort, even with zero-value detection, still can suffer from information leakage, particularly in the form of Hamming distance information leakage due to mask reuse. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a cryptographic circuit in accordance with an embodiment. FIG. 2 is a block diagram of an additive-to-multiplicative converter in accordance with an embodiment. FIG. 3 is a block diagram of a multiplicative-to-additive converter in accordance with an embodiment. FIG. 4 is a block diagram of a multiplicatively-masked Sbox circuit in accordance with an embodiment. FIG. 5 is a block diagram of a dual-rail zero-value detector in accordance with an embodiment. FIG. 6 is a block diagram of a mask zero-value detector in accordance with an embodiment. FIG. 7 is a flow diagram of a method in accordance with an embodiment. FIG. 8 illustrates an example computing system. FIG. 9 illustrates a block diagram of an example processor in accordance with an embodiment. DETAILED DESCRIPTION In various embodiments, cryptography in accordance with a given AES implementation provides for a side-channel resistant multiplicatively masked arrangement with balanced zero-value detection circuitry. To be compute efficient, embodiments may be configured to convert additively masked operands to multiplicatively masked operands before execution of a non-linear inverse operation. The balanced zero-value detector circuitry routes random operands for use in this inverse operation when a zero value is detected. Ther
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Raghavan, Kumar, et al.,
- “
- A Gbps SCA-Resistant Multiplicative-Masked ARS Engine in Intel 4 CMOS,
- ”
- 2022 Symposium on VLSI Technology
- &
- Circuits Digest of Technical Papers, 2022, 2 pages.
- International Searching Authority, International Search Report and Written Opinion dated Apr. 19, 2024 in International Application No. PCT/US2023/084043 (10 pages).
- Easttom,
- “