Methods and IP cores for reducing vulnerability to hardware attacks and/or improving processor performance
Abstract
In a general aspect, a GHASH semiconductor intellectual property (IP) core can include circuitry for calculating a GHASH function. The IP core can be configured to calculate the GHASH function by calculating the following quantities: X 0 = 0 ; X i + 1 = H k X i + ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn , where for any i and j; and ∑ n = 0 m - 1 h i j n = H j , where k > 1 and m > 1 .
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.
Claims (22 — 2 Independent, 20 Dependent)
- Claim 1Independent Claim
An AES GCM semiconductor intellectual property (IP) core comprising: circuitry for calculating a GHASH function, the calculating including: assigning X 0 as a 128-bit sequence 0 128; computing the GHASH function, the computing including iteratively calculating: X i + 1 = H k X i + ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn wherein for any i and any j: ∑ n = 0 m - 1 h ijn = H q wherein q is a function of j, and wherein i, k and m are respective natural numbers, H is a 128-bit value, C is a bit string of a size that is divisible by 128, values of h ijn are respective 128-bit values, k > 1, and m > 1; and circuitry for generating an AES GCM block protected against side-channel attacks in which an attacker discovers a key.
- Claim 2Depends on #1
The IP core according to claim 1, wherein addition, multiplication and raising to a power are in a finite field F of a characteristic p, p being a natural number.
- Claim 3Depends on #2
The IP core according to claim 2, wherein p=2.
- Claim 4Depends on #3
The IP core according to claim 3, wherein F=GF(2 128), GF being a Galois field.
- Claim 5Depends on #2
The IP core according claim 2, wherein elements of F are represented as respective polynomials over GF(p) modulo a polynomial P that is irreducible in GF(p), GF being a Galois field.
- Claim 6Depends on #5
The IP core according to claim 5, wherein F=GF(2 128).
- Claim 7Depends on #6
The IP core according to claim 6, wherein P=x 128 +x 7 +x 2 +x+1.
- Claim 8Depends on #1
The IP core according to claim 1, wherein the respective 128-bit values of h ijn are randomly and independently generated for every value of i.
- Claim 9Depends on #1
The IP core according to claim 1, wherein the addends of the sum ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn are calculated in parallel.
- Claim 10Depends on #1
The IP core according to claim 1, wherein the addends of the sum ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn are calculated using a pipeline.
- Claim 11Depends on #1
The IP core according to claim 1, wherein the addends of the sum ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn are calculated using several pipelines in parallel.
- Claim 12Independent Claim
A method comprising: using a data processor to calculate a GHASH function, the calculating including: assigning X 0 as a 128-bit sequence 0 128; computing the GHASH function, including iteratively calculating: X i + 1 = H k X i + ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn wherein for any i and any j: ∑ n = 0 m - 1 h ijn = H q wherein q is a function of j, and wherein i, k and m are respective natural numbers, His a 128-bit value, C is a bit string of a size that is divisible by 128, values of h ijn are respective 128-bit values, k > 1 and m > 1; and generating an AES GCM block protected against side-channel attacks in which an attacker discovers a key.
- Claim 13Depends on #12
The method according to claim 12, wherein addition, multiplication and raising to a power are in a finite field F of a characteristic p, p being a natural number.
- Claim 14Depends on #13
The method according to claim 13, wherein p=2.
- Claim 15Depends on #14
The method according to claim 14, wherein F=GF(2 128), GF being a Galois field.
- Claim 16Depends on #13
The method according to claim 13, wherein the elements of F are represented as polynomials over GF(p) modulo a polynomial P irreducible in GF(p), GF being a Galois field.
- Claim 17Depends on #16
The method according to claim 16, wherein F=GF(2 128).
- Claim 18Depends on #17
The method according to claim 17, wherein P=x 128 +x 7 +x 2 +x+1.
- Claim 19Depends on #12
The method according to claim 12, wherein the respective 128-bit values of h ijn are randomly and independently generated for every value of i.
- Claim 20Depends on #12
The method according to claim 12, wherein the addends of the sum ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn are calculated in parallel.
- Claim 21Depends on #12
The method according to claim 12, wherein the addends of the sum ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn are calculated using a pipeline.
- Claim 22Depends on #12
The method according to claim 12, wherein the addends of the sum ∑ j = 0 k - 1 ∑ n = 0 m - 1 C ki + j h ijn are calculated using several pipelines parallel.
Technical Overview & Description
RELATED APPLICATIONS This application is a national stage entry of International Application No. PCT/IL2021/050151, filed on Feb. 9, 2021, entitled “ Methods And IP Cores For Reducing Vulnerability To Hardware Attacks And/Or Improving Processor Performance ” , which claims priority to and the benefit of: U.S. provisional application No. 62/975,306 filed on Feb. 12, 2020 and entitled “ Practical Template Attack on HMAC based on SHA-2 ” ; U.S. provisional application No. 62/985,358 filed on Mar. 5, 2020 and entitled “ Methods and IP Core for Reducing Vulnerability to Side Channel Attacks ” ; and U.S. provisional application No. 63/050,805 filed on Jul. 12, 2020 and entitled “ Methods and IP Core for Reducing Vulnerability to Hardware Attacks and/or improving Processor Performance ” ; and each of these earlier applications is fully incorporated herein by reference. FIELD OF THE INVENTION Some described embodiments are in the field of increasing resistance of computer hardware to attack. Other described embodiments relate to improving performance of a data processor. BACKGROUND OF THE INVENTION Side Channel Attacks (SCA) such as differential power analysis (DPA), simple power analysis (SPA), and fault injection are a common category of cyber-attack used by hackers and intelligence agencies to penetrate sensitive systems in order to perform cryptographic key extraction. New types of side channel attacks are being conceived all the time. Any device that performs a cryptographic operation should withstand side channel attacks and several security certifications explicitly require such side channel attack resistance tests. SUMMARY OF THE INVENTION A broad aspect of the invention relates to improving resistance of hardware to side channel attacks. One aspect of some embodiments of the invention relates to increasing resistance of HMAC to template attacks by preventing the learning stage. In some exemplary embodiments of the invention, preventing application of hash function(
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 (15)
Non-Patent Literature (3)
- Crenne et al., Configurable memory security in embedded systems, ACM Transactions on Embedded Computing Systems (TECS), vol. 12, No. 3, Art. 71, pp. 1-23 (2013) (Year: 2013).
- International Search Report for PCT Application No. PCT/IL2021/050151, mailed on Jul. 15, 2021, 4 pages.
- International Preliminary Report on Patentability, for PCT/IL2021/050151, dated Jul. 11, 2022, 6 pages.