White-box processing for encoding large integer values

By employing partially and fully encoded lookup tables in ECC and RSA algorithms, the solution addresses memory and performance limitations, securing large integer operations against side-channel attacks and maintaining cryptographic integrity in untrusted environments.

JP2024540262APending Publication Date: 2024-10-31ARRIS ENTERPRISES LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024526011
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-11-03
Filing Date
2022-11-02
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing cryptographic systems, particularly those using white-box cryptography, face challenges in securely processing large integer operations like ECC and RSA due to memory and performance limitations imposed by look-up tables, making them vulnerable to side-channel attacks.

Method used

Implementing partially and fully encoded lookup tables to protect secret keys in ECC and RSA algorithms, using operations like wbIsOdd and wbRotateLeft/Right, which operate on encoded secrets without revealing the original key values, and utilizing random permutations to ensure security against attackers with full access to the execution environment.

Benefits of technology

The solution provides secure and fast processing of large integer operations, effectively hiding the private keys from attackers and mitigating side-channel attacks, ensuring the integrity of cryptographic operations in untrusted environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024540262000001_ABST
    Figure 2024540262000001_ABST
Patent Text Reader

Abstract

A method and apparatus are disclosed for securely processing an input to generate an output in accordance with one or more encoded secrets. In one embodiment, the method comprises: 1 , s 2 ,..., s n A set of secrets S consisting of the first secret s 1 generating a first data structure based on a random encoding of the input and the encoded secret s 2 ,..., s n and performing a plurality of cryptographic operations according to the secret to compute an output according to each secret in a white-box implementation, the white-box implementation having at least one further data structure that operates on a random encoding of the secret.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 275,284, filed November 3, 2021, the contents of which are incorporated by reference in their entirety herein. background 1. Field

[0002] The present disclosure relates to systems and methods for performing cryptographic operations, and in particular to systems and methods for securely processing inputs to generate outputs for use in cryptographic processes such as encryption and decryption. 2. Description of Related Technology [Background technology]

[0003] The goal of most cryptography is to enable the distribution of information in a way that prevents disclosure to unauthorized entities. This goal is met through the use of cryptographic systems and protocols such as the Advanced Encryption Standard (AES), Data Encryption Standard (DES), Triple Data Encryption Standard (TDES), Rivest-Shamir-Adleman (RSA), Elliptic Curve Cryptography (ECC), etc.

[0004] In systems that implement such cryptosystems, it is assumed that an attacker only has access to the inputs and outputs of the algorithms that perform the cryptographic operations, with the actual processing being performed invisibly in a "black box". To conform to this model, the black box must provide a secure processing environment. Active research in this area includes improved special-purpose cryptosystems (e.g., lightweight block ciphers, authentication schemes, homomorphic public key algorithms) and their cryptanalysis.

[0005] Although such systems are effective, they are still vulnerable to attacks: for example, protocols may be deployed in the wrong context, with improperly implemented algorithms, or with inappropriate parameters, providing entry points for attackers.

[0006] New cryptanalysis techniques incorporate additional side-channel information that can be observed during the execution of cryptographic algorithms, such as execution timing, electromagnetic emissions, and power consumption. Mitigating such side-channel attacks is challenging because it is difficult to discorrelate this side-channel information from operations on a secret key. Furthermore, platforms often impose size and performance requirements that make the deployment of protective techniques difficult.

[0007] To further exacerbate the aforementioned problems, instead of devices with secure processors, more and more applications are being run on open devices using general purpose processors (e.g., personal computers, laptops, tablets, and smartphones).

[0008] In response to the aforementioned problems, many systems use "white-box" techniques, where it is assumed that the attacker has full access to the software implementation of the cryptographic algorithms, i.e. the binaries are fully visible and modifiable by the attacker, and the attacker has full control over the execution platform (CPU calls, memory registers, etc.). In such systems, the implementation itself is the only line of defense.

[0009] White-box cryptography was originally published by Chow et al. (Stanley Chow, Philip A. Eisen, Harold Johnson, and Paul C. van Oorschot. A white-box DES implementation for DRM applications. In Proceedings of the ACM Workshop on Security and Privacy in Digital Rights Management (DRM 2002), volume 2696 of Lecture Notes in Computer Science, pages 1-15. Springer, 2002, hereby incorporated by reference). The core idea of ​​white-box cryptography is to mathematically modify a program such that it operates directly on encrypted, encoded secrets, which are never present in clear text form. Because these secrets never exist in clear text form, an attacker can have full visibility and control of the application and still be unable to exploit them or derive any value from them. White-boxes can be static or dynamic. A static white-box has a fixed secret that is hard-coded at construction time. A dynamic white-box (as shown) can receive encoded secrets at run time.

[0010] Table-based white-box transformations construct random bijections with application functions. These constructions are emitted as look-up tables (LUTs) to hide the underlying secrets and other state values ​​in the white-box implementation.

[0011] The lookup tables (LUTs) used in current white-box implementations impose a practical limit on the word size of operations that can be protected. Typically, this is a word of around 8 bits, which is ideal for ciphers such as AES. However, the ECC and RSA algorithms use arithmetic on very large integers. For example, ECC typically operates on integers of 256 bits or more, and RSA typically operates on integers of 2048 bits or more. To fully support white-box operations on these integers, the lookup tables would either require very large memory to store or would be infeasibly slow. overview Summary of the Invention

[0012] To address the above-mentioned requirements, this document discloses a system and method for securely processing an input to generate an output according to one or more encoded secrets. In one embodiment, the method comprises: n In a white-box implementation, the input and encoded secret units s1, s2, ..., s n and performing a plurality of cryptographic operations to compute an output according to the one or more encoded secrets, the cryptographic operations being performed according to at least one data structure including at least one partially encoded lookup table. Another embodiment is demonstrated by an apparatus for securely processing an input to generate an output according to one or more encoded secrets, the apparatus including a processor and a memory communicatively coupled to the processor, the memory storing processor instructions including processor instructions for performing the aforementioned operations.

[0013] The discussed features, functions, and advantages may be achieved independently in various embodiments of the invention or may be combined in yet other embodiments, further details of which can be seen with reference to the following description and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Reference is now made to the drawings, in which like reference numbers represent corresponding parts throughout. [Brief description of the drawings]

[0015] [Figure 1A] 1A and 1B are diagrams of a cryptographic system that processes an input message to generate an output message. [Figure 1B] 1A and 1B are diagrams of a cryptographic system that processes an input message to generate an output message. [Diagram 2] FIG. 2 illustrates a white-box compiler that applies an encoding to isOdd during construction. [Diagram 3] FIG. 3 illustrates a baseline white-box implementation of rotateRight and rotateLeft, encoded as lookup tables wbRotateRight and wbRotateLeft, respectively. [Figure 4] FIG. 4 illustrates example operations that may be used to securely process an input to produce an output. [Diagram 5] FIG. 5 illustrates one embodiment of pseudocode for computing the relationship y=xs mod m in a white-box implementation. [Figure 6] FIG. 6 illustrates one embodiment in which pseudocode for computing y=x mod m for given x and m using Barrett's reduction algorithm. [Figure 7] FIG. 7 illustrates one embodiment of pseudocode for performing ECC point multiplication calculations. [Figure 8] FIG. 8 illustrates an example computer system that may be used to implement processing elements of the geolocation system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] In the following description, reference is made to the accompanying drawings which form a part hereof, and which show, by way of illustration, several embodiments, It is understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the present disclosure. White-box cryptosystems

[0017] White-box systems operate on data elements (such as secret keys) by encoding them so that an attacker cannot recover them in their clear-text form. White-box implementations are created using mathematically modified functions that operate directly on the encoded data elements without decrypting them. This ensures that secrets always remain encoded, thus protecting the implementation from attackers with full access to and control of the execution environment. This is described, for example, in the Chow reference cited above.

[0018] 1A and 1B are diagrams of a cryptographic system that processes an input message to generate an output message, and its corresponding white-box implementation.

[0019] As shown in FIG. 1A, the algorithm calculates functions f1, f2, and f n (102A, 102B, and 102N, respectively).

[0020] In FIG. 1B, in the original algorithm A(m, S) with input message m and secret S, each operation f1, f2, ... f n In a classical white-box implementation of the algorithm, the lookup tables T1, T2, ..., T n (104A, 104B, and 104N, respectively). The encoding is done by applying two sequences of random bijections, δ1, δ2, ... , δ to the input and output of each operation. n+1where ρ(S) represents an encoded secret (e.g., a secret key), which is either statically linked or dynamically provided to the white-box implementation.

[0021] In the white-box implementation shown in FIG. 1B, this involves applying the bijection δ and ρ(S) as inputs to a lookup table T1 to obtain an intermediate output, applying the intermediate output and ρ(S) to a lookup table T2 to generate a second intermediate output, and then providing the second intermediate output and ρ(S) to a lookup table T3 to obtain the output

number

number

number

number

number

number

number

number

[0022] Disclosed herein are methods for protecting ECC and RSA keys that are compatible with standard white-box encoding. These implementations are fast and secure against attackers limited to side-channel access of the implementation. The methods involve utilizing white-box operations, which can be directly invoked by the algorithm in question, to hide the private key.

[0023] White-box techniques aim to make it difficult to extract keys from a cryptographic implementation. We present a method for protecting secret keys in ECC and RSA algorithms, where an attacker is assumed to possess the encoded secret key ρ(s) and only has side-channel access to the implementation.

[0024] The private key s is stored as a list of permuted bytes. s is typically between 1024 and 4096 bytes long, and therefore requires between 128 and 512 bytes of storage. When creating a white-box program, a lookup table with 256 entries (each entry is one byte) is first created. This table defines a permutation on the bytes. After applying the permutation, we assume that the list of bytes represents s, and replace each byte with the result. Thus, the stored value ρ(s)=(ρ(s1), ρ(s2), ..., ρ(s n )) in which each s i is a byte and ρ is a permutation. This list of bytes is then stored in a white-box program. The number of possible permutations is 256!, which is approximately 21678 , which provides a high degree of security: since the lookup table is unknown to the attacker, the list of bytes appears completely random.

[0025] In one embodiment applicable to RSA cryptographic processes, for a private key s and modulus m, the decrypted message y = x s We wish to compute the RSA decryption of an encrypted message x such that x mod m. The message x may contain, for example, a document, an email message, a key, secure data, or a portion of media content (such as audiovisual information). To hide the private key s, a standard white-box encoding is used to compute the encoded key s' = ρ(s). The encoded key s' is used in place of s in the untrusted environment. Since the original key s is uniformly random and ρ is a randomly chosen bijection, the encoded key s' also has a uniformly random distribution. This means that it is computationally infeasible to recover the secret key s from the encoded key s', provided that the bijection ρ is kept secret and never transmitted outside the secure network (this is not required). To account for the encoding of the keys, the RSA algorithm is modified to incorporate two white-box operations wbIsOdd and pwbIsOdd.

[0026] The first operation is pwbIsOdd. The operation pwbIsOdd is a partially encoded white-box operation that returns 1 if the encoded byte is odd and 0 if the encoded byte is even. The second operation is wbRotateRight. The operation wbRotateRight is a fully encoded white-box operation that performs a circular right bit-shift of the encoded byte. This modified algorithm allows RSA to compute the decryption using the encoded private key s' without directly decrypting the bytes of s' into cleartext.

[0027] In a second embodiment used with ECC having a white-box encoded private key, for a private key s and a point P, we wish to compute the ECC point multiplication operation Q = s P. Computing the ECC point multiplication operation allows the generation of decrypted information from encrypted information.

[0028] To hide the private key s, compute the encoded key s' = ρ(s) using standard white-box encoding. The encoded key s' is used in place of s in the untrusted environment. Again, since the original key s is uniformly random and ρ is a randomly chosen bijection, the encoded key s' also has a uniformly random distribution. This means that it is computationally infeasible to recover the secret key s from the encoded key s', provided that the bijection ρ is kept secret and never transmitted outside the secure network (this is not required).

[0029] The ECC point multiplication algorithm is modified to incorporate two white-box operations. The first such operation is pwbIsOdd. The pwbIsOdd operation is a partially encoded white-box operation that returns 1 if the encoded byte is odd and 0 if the encoded byte is even. The second such operation is wbRotateLeft. The wbRotateLeft operation is a fully encoded white-box operation that performs a circular left bit shift of the encoded byte. Because the point multiplication algorithm is the only part of the ECC that references the private key, this modified algorithm allows the ECC to be performed using the encoded private key s' without directly decrypting the bytes of s' to cleartext. Lookup tables wbIsOdd and pwbIsOdd

[0030] P even in the interval [0,2w-1 ] is a randomly generated permutation of the set of even integers in P odd in the interval [0,2 w-1 ] is a randomly generated permutation of the set of odd integers in T={0,1} w Let T be a finite, non-empty alphabet, where w denotes the size (in bits) of a unit of the encoded secret. In a typical implementation, w=8 corresponds to an array of 8-bit words known as bytes. For ECC secret keys, n is typically ≥ 32, and for RSA secret keys, n is typically ≥ 256. The baseline lookup table isOdd is a permutation of the interleaved permutations P even and P odd (each of size 2w-1), such that for all x ∈ T there exists y ∈ T such that y = isOdd(x) is odd if x is odd and even if x is even, and Pr[isOdd(x) = x] x∈T <= 2 -w Multiple versions of isOdd may be generated by a white-box compiler at construction time for further variety.

[0031] FIG. 2 illustrates a white-box compiler that applies an encoding to isOdd at construction time. The isOdd baseline 202 is an encoded lookup table with a random secret encoding ρ. The fully encoded table wbIsOdd lookup table 206 has a random output bijection g generated by the white-box compiler at construction time. The partially encoded table pwbIsOdd 204 instead applies a bitwise AND(1) operation to the output of isOdd with AND: T→T, so that pwbIsOdd returns an integer value of either 0 or 1 that can be used in non-white-box operations or conditional logic. For the wbIsOdd lookup table 206, the secret encoding ρ removes the correlation between the secret s and the index in the encoded table. The output encoding g removes any correlation between the encoded output being odd and the original value being odd, so the fully encoded lookup table wbIsOdd does not give an attacker any information about the value of any given input or output value. The partially encoded lookup table pwbIsOdd returns that the underlying encoded value is odd, such that for all encoded inputs x ∈ T there exists y ∈ T such that y = pwbIsOdd(x) = AND(g -1 (wbIsOdd(x)), 1) = AND(isOdd(ρ -1 (x)),1)

[0032] In this scenario, the output value y is a function of the underlying input ρ -1An integer truth value (0 or 1) indicating that (x) is odd. Due to the randomized implementation of the isOdd baseline, when pwbIsOdd is used standalone it does not leak any other information about x. Omitting or undoing the white-box encoding is not recommended as it would allow a white-box attacker to gain information about the underlying data. Furthermore, the use of conditional logic in a white-box implementation facilitates the use of side-channel attacks, which may further reduce the difficulty of the attack. However, it is noted that these exposures may be deemed necessary for practical reasons. Lookup tables wbRotateRight and wbRotateLeft

[0033] For all x = (x w-1 , x w-2 , ..., x0)2, we define the rotateRight and rotateLeft baselines as vectors of size 2 representing binary right and left circular bit shift operations, respectively. w , respectively, as a zero-indexed lookup table as follows: rotateRight(x) := (x0, x w-1 , ..., x1)2 rotateLeft(x) := (x w-2 , x w-3 , ..., x w-1 )2

[0034] FIG. 3 shows a white-box implementation of the rotateRight and rotateLeft baselines, encoded as lookup tables wbRotateRight and wbRotateLeft, respectively, with random bijections g1, g2:T → T generated by the white-box compiler at construction time.

[0035] The input encoding g1 removes the correlation between the input value x and the index in the encoded table. The output encoding g2 removes any correlation between the rotated encoded output and the original rotated input, and therefore the encoded lookup tables wbRoateRight and wbRotateLeft do not give an attacker any information about the value of any given input or output value.

[0036] Unlike pwbIsOdd, there is no reason to omit or undo the output encoding of these operations. However, it is noted that these operations, when used in conjunction with an implementation of pwbIsOdd, allow an unconstrained white-box attacker to fully recover any protected value by simply shifting w times in the same direction and setting bits of the cloned value based on the output of pwbIsOdd.

[0037] Figure 4 shows the n units s1, s2,..., s n 2 illustrates an example operation that may be used to securely process an input to generate an output according to an encoded secret s′ having the following structure: n In one embodiment, an encoded secret s′ having the encoded secrets s1, s2, ..., s n is in bytes.

[0038] In step 404, the white-box implementation generates a message m and encoded secrets s1, s2, ..., s n In one embodiment, this is performed according to at least one data structure including at least one partially encoded lookup table. RSA with white-box encoded private key

[0039] In a first embodiment, the plurality of cryptographic operations are performed by applying an RSA decryption or encryption operation to an output y, such that the relation y=xs mod m. In this embodiment, an iterative square and reduce algorithm may be used, which involves determining whether each bit of an encoded byte of the secret s is odd. For example, if the secret s contains n bytes, and

number

number

number

number

[0040] Figure 5 shows the relationship y=x in a white-box implementation. s mod m,

number

number

number

number

number

number

number

[0041] The Barrett's reduction algorithm computes y=x mod m for given x and m. The algorithm is:

number

[0042] FIG. 6 illustrates one embodiment in which pseudocode for the calculation of y=x mod m for given x and m is calculated using Barrett's reduction algorithm. 2k-1 ...x1x0)2 and m=(m k-1 ... m1m0)2 is a positive integer, and m k-1 ≠ 0 and

number

[0043] In a second embodiment, the cryptographic operations collectively perform an ECC point multiplication operation that calculates an output according to Q=s P, where s is the secret, P is the input (a first point on the elliptic curve), and Q is the output (a second point on the elliptic curve).

[0044] Elliptic curve cryptography (ECC) is an approach to public key cryptography based on the algebraic structure of elliptic curves over finite fields. ECC allows the use of smaller keys than other forms of public key cryptography for the same level of security, providing designers with a system that offers selectable combinations of greater security or smaller keys. ECC has applications in key agreement, digital signatures, pseudorandom generators, and other cryptographic tasks.

[0045] 7 illustrates one embodiment of pseudocode for implementing this calculation. As shown, the inputs provided to the white-box implementation are the white-box encoded ECC secret key

number

number

[0046] In line 1, we initialize Q to zero. The do loop illustrated in lines 3-7 computes the operations in lines 5-6 for each bit of the i-th byte of the encoded secret s'. In line 4,

number

number

number

number

[0047] 8 illustrates an exemplary computer system 800 that may be used to implement the processing elements of the above disclosure, including a message or data encryptor or decryptor. The computer 802 includes a processor 804 and memory, such as a random access memory (RAM) 806. The computer 802 is operatively coupled to a display 822 that presents images, such as windows on a graphical user interface 818B, to a user. The computer 802 may also be coupled to other devices, such as a keyboard 814, a mouse device 816, a printer 828, etc. Of course, one skilled in the art will recognize that any combination of the above components, or any number of different components, peripherals, and other devices, may be used in conjunction with the computer 802.

[0048] In general, computer 802 operates under the control of an operating system 808 stored in memory 806 and interfaces with a user to receive input and commands and present results through a graphical user interface (GUI) module 818A. Although GUI module 818B is illustrated as a separate module, instructions implementing the GUI functions may be resident or distributed in the operating system 808, computer programs 810, or may be implemented in dedicated memory and processors. Computer 802 also implements a compiler 812 that allows application programs 810 written in a programming language such as COBOL, C++, FORTRAN, or other languages ​​to be translated into processor 804 readable code. Once completed, application 810 uses relationships and logic generated using compiler 812 to access and manipulate data stored in memory 806 of computer 802. Computer 802 also optionally includes an external communication device such as a modem, satellite link, Ethernet card, or other device for communicating with other computers.

[0049] In one embodiment, instructions implementing the operating system 808, the computer programs 810, and the compiler 812 are tangibly embodied in a computer readable medium, e.g., a data storage device 820, which may include one or more fixed or removable data storage devices, such as a zip drive, a floppy disk drive 824, a hard drive, a CD-ROM drive, a tape drive, etc. Additionally, the operating system 808 and the computer programs 810 are comprised of instructions that, when read and executed by the computer 802, cause the computer 802 to perform the operations described herein. The computer programs 810 and / or operational instructions may also be tangibly embodied in the memory 806 and / or the data communication device 830, thereby creating a computer program product or article of manufacture. Thus, as used herein, the terms "article of manufacture," "program storage device," and "computer program product" are intended to encompass a computer program accessible from any computer readable device or medium.

[0050] Those skilled in the art will recognize that many modifications may be made to this configuration without departing from the scope of the present disclosure. For example, those skilled in the art will recognize that any combination of the above components, or any number of different components, peripherals, and other devices may be used.

[0051] The foregoing discloses a method, apparatus, and system for securely processing an input m to generate an output. One embodiment provides a method for processing n units s1, s2, ..., s n and in a white-box implementation, n and performing a plurality of cryptographic operations to calculate an output according to the at least one data structure including at least one partially encoded lookup table.

[0052] Implementations may include one or more of the following features.

[0053] The encoded secret units s1, s2, ..., s n Any of the above methods where is in bytes.

[0054] Any of the above methods, wherein the encoded secret s' is randomly encoded by a random permutation.

[0055] Multiple cryptographic operations are combined to give y = x s Any of the above methods, wherein the output is calculated according to mod m, where m is the input and y is the output.

[0056] y= x s Any of the above methods, wherein mod m is calculated according to an iterative squaring and reducing process that involves determining whether each bit of each encoded byte of the encoded secret s' is odd.

[0057] the encoded secret s' contains n bytes,

[0058]

number

number

number

number

number

number

number

number

[0059] Any of the above methods, wherein the multiple cryptographic operations collectively comprise ECC point multiplications that compute an output according to Q=s·P, where P is the input and Q is the output.

[0060] the encoded secret s' contains n bytes,

number

number

number

number

number

[0061] Another embodiment is demonstrated by an apparatus for securely processing an input m to generate an output. The apparatus comprises a processor and a memory communicatively coupled to the processor, the memory comprising n units s1, s2, ..., s n In a white-box implementation, the input and encoded secret units s1, s2, ..., s nand storing processor instructions including processor instructions for performing a plurality of cryptographic operations to calculate an output according to at least one data structure including at least one partially encoded lookup table.

[0062] Implementations may include one or more of the following features.

[0063] The encoded secret units s1, s2, ..., s n is in bytes.

[0064] Any of the above described apparatus, wherein the encoded secret s' is randomly encoded by a random permutation.

[0065] Multiple cryptographic operations are combined to give y = x s Any of the above described apparatus that calculates an output mod m, where m is the input and y is the output.

[0066] y= x s Any of the apparatus described above, wherein mod m is calculated according to an iterative squaring and reducing process that involves determining whether each bit of each encoded byte of the encoded secret s' is odd.

[0067] the encoded secret s' contains n bytes,

number

number

number

number

number

number

number

number

[0068] Any of the above apparatus, wherein the plurality of cryptographic operations collectively comprise an ECC point multiplication that computes an output according to Q=s·P, where P is the input and Q is the output.

[0069] the encoded secret s' contains n bytes,

number

number

number

number

number

[0070] This concludes the description of the preferred embodiments of the present disclosure.

[0071] The foregoing description of the preferred embodiment has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope be limited not by this detailed description, but rather by the claims appended hereto.

Claims

1. 1. A method for securely processing an input m to produce an output, comprising the steps of: n units s 1 , s 2 , ..., s n receiving an encoded secret s' having In a white-box implementation, the input and the encoded secret unit s 1 , s 2 , ..., s n and performing a plurality of cryptographic operations to calculate said output according to:

2. The encoded secret unit s 1 , s 2 , ..., s n The method of claim 1 , wherein is in units of bytes.

3. The method of claim 2 , wherein the encoded secret s′ is randomly encoded by a random permutation.

4. The cryptographic operations are collectively expressed as y=x s 4. The method of claim 3, wherein the output is calculated according to mod m, where m is the input and y is the output.

5. y= x s 5. The method of claim 4, wherein mod m is calculated according to an iterative squaring and reducing process that includes determining whether each bit of each encoded byte of the encoded secret s' is odd.

6. the encoded secret s' comprises n bytes, [0010] is the i-th byte of the encoded secret s′, In the white-box implementation, the input and the encoded secret unit s 1 , s 2 , ..., s n performing the plurality of cryptographic operations to calculate the output according to First Data Structure [0025] , which are generated according to a random permutation. [0030] applying a bitwise AND function to the output of the lookup table to generate said partially encoded lookup table, which returns that the underlying encoded value is odd; A second data structure including an encoded lookup table having random bijections of right circular bit shift operations. [0045] and generating said repeated squaring and reducing process comprising: Set k ← mag(m), where k is the magnitude of m, and [0050] (where, [006] denotes the floor function), and Set z ← x mod m, Set y ← 1, and For each i-th byte of the n bytes of the encoded secret s', For each bit of the i-th byte of the encoded secret s', [0070] Calculating Calculate y ← barrettReduce(y,μ), and z←z 2 Setting the Set y ← barrettReduce(z,μ) and [0080] and setting 6. The method of claim 5, wherein barretReduce(τ,θ) is a Barrett's reduce computation of inputs τ and θ.

7. 5. The method of claim 4, wherein the cryptographic operations comprise ECC point multiplications that together calculate the output according to Q=s·P, where P is the input and Q is the output.

8. the encoded secret s' comprises n bytes, [0097] is the i-th byte of the encoded secret s′, In the white-box implementation, the input and the encoded secret unit s 1 , s 2 , ..., s n performing the plurality of cryptographic operations to calculate the output according to Setting Q←0, For each i-th byte of the n bytes of the encoded secret s', For each bit of the i-th byte of the encoded secret s', [0010] Calculating Calculate Q ← eccPointDouble(Q); ##EQU00011## Calculating and returning Q, Where: wbRotateLeft is the encoded secret ##EQU00012## indicates that the j-th bit of the i-th byte of ##EQU00013## is an indexed lookup table representing a binary left circular bit shift, 8. The method of claim 7, wherein eccPointDouble(Q) indicates the computation of point Q+Q.

9. 1. An apparatus for securely processing an input m to produce an output, comprising: A processor; a memory communicatively coupled to the processor, the memory comprising: n units s 1 , s 2 , ..., s n receiving an encoded secret s' having In a white-box implementation, the input and the encoded secret unit s 1 , s 2 , ..., s n and a memory storing processor instructions including processor instructions for performing a plurality of cryptographic operations to calculate the output according to at least one data structure including at least one partially encoded lookup table.

10. The encoded secret unit s 1 , s 2 , ..., s n 10. The apparatus of claim 9, wherein is in units of bytes.

11. The apparatus of claim 10 , wherein the encoded secret s′ is randomly encoded by a random permutation.

12. The cryptographic operations are collectively expressed as y=x s 12. The apparatus of claim 11, wherein the output is calculated according to mod m, where m is the input and y is the output.

13. y= x s 13. The apparatus of claim 12, wherein mod m is calculated according to an iterative squaring and reducing process that includes determining whether each bit of each encoded byte of the encoded secret s' is odd.

14. the encoded secret s' comprises n bytes, ##EQU14## is the i-th byte of the encoded secret s′, The input and the encoded secret unit s 1 , s 2 , ..., s n performing a plurality of cryptographic operations in accordance with First Data Structure ##EQU00015## , which are generated according to a random permutation. ##EQU00016## applying a bitwise AND function to the output of the lookup table to generate said partially encoded lookup table, which returns that the underlying encoded value is odd; A second data structure including an encoded lookup table having random bijections of right circular bit shift operations. ##EQU00017## and generating said repeated squaring and reducing process comprising: Set k ← mag(m), where k is the magnitude of m, and [0018] (where, [0019] denotes the floor function), and Set z ← x mod m, Set y ← 1, and For each i-th byte of the n bytes of the encoded secret s', For each bit of the i-th byte of the encoded secret s', [0020] Calculating Calculate y ← barrettReduce(y,μ), and z←z 2 Setting the Set y ← barrettReduce(z,μ) and ##EQU00021## and setting The apparatus of claim 13 , wherein barretReduce(τ,θ) is a Barrett's reduce computation of inputs τ and θ.

15. 13. The apparatus of claim 12, wherein the cryptographic operations comprise ECC point multiplications that together calculate the output according to Q=s·P, where P is the input and Q is the output.

16. the encoded secret s' comprises n bytes, [0022] is the i-th byte of the encoded secret s′, In the white-box implementation, the input and the encoded secret unit s 1 , s 2 , ..., s n performing the plurality of cryptographic operations to calculate the output according to Setting Q ← 0; For each i-th byte of the n bytes of the encoded secret s', For each bit of the i-th byte of the encoded secret s', [0023] Calculating Calculate Q ← eccPointDouble(Q); [0024] To calculate and and returning Q, Where: wbRotateLeft is the encoded secret [0025] indicates that the j-th bit of the i-th byte of [0026] is an indexed lookup table representing a binary left circular bit shift, 16. The apparatus of claim 15, wherein eccPointDouble(Q) indicates the computation of point Q+Q.

17. 1. An apparatus for securely processing an input to generate an output, comprising: n units s 1 , s 2 , ..., s n means for receiving an encoded secret s' having In a white-box implementation, the input and the encoded secret unit s 1 , s 2 , ..., s n and means for performing a plurality of cryptographic operations according to to calculate said output, wherein said cryptographic operations are performed according to at least one data structure including at least one partially encoded lookup table.

18. The encoded secret s 1 , s 2 , ..., s n 20. The apparatus of claim 17, wherein is in units of bytes.

19. 20. The apparatus of claim 18, wherein the encoded secret s' is randomly encoded by a random permutation.

20. The plurality of cryptographic operations collectively give y=x s 20. The apparatus of claim 19, wherein the output is calculated according to mod m, where m is the input and y is the output.

Citation Information

Patent Citations

  • Device and method for operating residue

    JP2003216032A

  • Encryption processing device, encryption processing method, and computer program

    JP2005134477A

  • Elliptic curve point multiplication device and method

    JP2020510879A

  • Homomorphic white box system and method for using same

    US20180198613A1