![]()
专利摘要:
Various embodiments of the invention implement countermeasures defined so as to resist attacks by potential intruders who seek to recover partially or totally secret codes on elliptic curve using known methods that exploit vulnerabilities of system, including elliptical operation differentiation, dummy operation detection, network attacks, and first real-world detection. Various embodiments of the invention provide resistance against aux channel attacks, such as simple consumption analysis, caused by the detectability of scalar information leakage values during the steady-state flow that would otherwise compromise system security. In some embodiments, system immunity is maintained by performing elliptical curve scalar operations that utilize a secret code-independent operation flow in a secure elliptic curve-based encryption device. 公开号:FR3033965A1 申请号:FR1552210 申请日:2015-03-18 公开日:2016-09-23 发明作者:Jeremy Dubeuf;Franck Lhermet;Yann Yves Rene Loisel 申请人:Maxim Integrated Products Inc; IPC主号:
专利说明:
[0001] BACKGROUND OF THE INVENTION The present invention relates to secure systems and, more particularly, to secure systems and methods for elliptic curve-based encryption (ECC) devices designed as countermeasures to aux channel attacks for discovering secret code information from operations performed by electrical circuits. B. BACKGROUND OF THE INVENTION In the background of the invention, elliptic curve-based encryption (ECC) implementations are increasingly replacing RSA encryption when used with cryptographic principles. asymmetric, such as code exchange or Diffie-Hellman authentication, given the exponential increase in code length specifications for RSA encryption which makes security enhancements relatively difficult compared to ECC encryption, for which security enhancements only require a linear increase in the code length. [0002] As an example, the security level of a 128-bit system, for which RSA encryption requires a code length of 3072 bits, can be converted to a 256-bit symmetric system by increasing the code length of RSA encryption from five times to 360 bits. By comparison, the code length needed to improve a 128-bit equivalent ECC symmetric encryption system into a 256-bit symmetric system increases linearly, i.e., from 256-283 bits to 512-571 bits . As a result, changing the security level of an RSA-based product significantly decreases system performance in terms of time, power consumption, and cost compared to the secure ECC encryption circuit. [0003] Like other encryption systems, ECC encryption uses non-specific, standard algorithms to encrypt confidential data to protect against theft of secret information. However, most encryption methods do not prevent specific enemies from failing the encryption system and revealing the critical encoding material when the data is processed by the encryption circuit during the encryption and decryption of the encryption system. confidential data. The well-known weaknesses in encryption systems include information leakage in the form of sequence, power consumption, and electromagnetic radiation information that can be detected during calculations and subjected to analysis, even without breaking and entering. physical. In addition, information may leak when the encryption system is subject to a fault insertion. [0004] Auxiliary channel attacks are a type of attack frequently used to extract encryption codes, passwords, and other cryptographic data from a secure system (eg, payment terminals, cards, etc.). smart, security modules, mobile phones) taking advantage of the fact that the circuit properties are closely associated with the physical implementation of the encryption engine and the operations performed on the data processed by the encryption algorithm particular and reflect these. For example, in a differential helper channel attack, a specialized attacker can execute many calls to a function on the secure system, which the attacker attempts to drill, by performing a statistical analysis on the circuit characteristic properties, including Electromagnetic emission profiles of current and voltage transitions, power consumption profiles, and sequential profiles of generated signals. Since different instructions present different consumption profiles, after monitoring a circuit being investigated, collecting sufficient data and filtering noise by statistical means, details of the system behavior can be deduced from the information obtained and finally, the covert data sought can be reconstructed. For example, the implementation of a standard algorithm in a secure system causes the passage of a current through a logic circuit determined from which knowledge about the circuit and the data processed by the logic circuits is revealed so undesirable to the circuit environment. [0005] In a circuit with a fixed number of gates and a fixed location, the data and currents associated with this data pass through logic gates, making logic operations within the circuit probable for the purpose. to trace and retrieve secret information, thereby rendering the security of the encryption system vulnerable. There are several principles to protect the security of a circuit by increasing the difficulty of implementing this type of non-intrusive attack and to prevent the leakage of compromising information observable from a circuit to its destination. environment. Such a principle relies on the modification of the encryption algorithm in such a way as to perform security related operations on both the actual bits of a secret code as well as the reverse of them. Other types of attack on a circuit include the fault injection method. Using this principle, in preparing for the execution of an attack, an enemy manipulates a circuit that normally undergoes random operations and forces the circuit to deviate from regular cryptographic operations to switch to a mode of operation. more deterministic. For example, by voluntarily increasing a voltage applied to the circuit, the attacker can trigger a certain circuit response which in effect reduces the randomness of the operations, thereby allowing the attacker to obtain the command with a certain behavior. more predictable circuit and facilitate the successful execution of an attack. There is a need for tools for secure system designers to overcome the limitations described above while taking advantage of the benefits of elliptic curve encryption (ECC) over secure circuits. For this purpose, a secure elliptic curve-based encryption (ECC) device is provided for performing elliptical curve scalar operations, the apparatus comprising: a secure microcontroller comprising a cryptographic circuit, the cryptographic circuit being configured so as to implement a countermeasure while preventing secret scalar leakage; a memory for storing a secret scalar which includes secret code bits; and a processing unit for performing elliptical curve scalar operations, the processing unit including instructions for: receiving an elliptical point and the secret scalar; initialize a Q value at elliptical point 5 that does not have an initial value at a point at infinity; processing the secret code bits of the secret scalar in a sequential manner, wherein the processing comprises doubling of Q; perform elliptic curve operations including subtraction and elliptical point addition; and performing elliptic point subtraction by subtracting the elliptic point of the Q value. The secure elliptic curve (ECC) encryption device (ECC) may further comprise a state machine that performs elliptical curve scalar operations. The secure elliptic curve (ECC) encryption device (ECC) may further comprise a register, the register is initialized at a point other than an infinite point. The secure elliptic curve-based encryption (ECC) device may further comprise a high-order bit (MSB) of secret code that is set to O. The processing unit may be configured to perform a verify operation in order to protect against fault attacks. [0006] The processing unit may determine the difference between the Q value and the elliptical point out of the balanced loop configuration to protect a least significant bit (LSB) of at least one of a sequential attack, by analysis. simple consumption (SPA), and electromagnetic equivalence (EM). The secure elliptic curve (ECC) encryption device (ECC) may further include a memory for storing intermediate results of the elliptical curve scalar operations. The invention further relates to a method of creating an operation flow independent of a secret code, the method comprising: in an elliptical curve-encoding (ECC) device, receiving a point Elliptic and a secret scalar that includes secret code bits; initializing a Q value at the elliptical point that does not have an initial value at an infinite point; processing the scalar secret code bits in a sequential manner, wherein the processing comprises doubling Q; performing elliptic curve operations including subtraction and elliptical point addition; and performing elliptical point subtraction by subtracting the elliptical point from the Q value. Elliptical operations may be performed in a balanced loop configuration. The method may further comprise: in response to determining that a least significant bit value (LSB) is 1, the output of Q; and in response to determining that the LSB value is not 1, the output of Q-P. The processing of the secret code bits can exclude the processing of a low-order bit (LSB) of secret code. The secret scalar may include a predetermined range width. [0007] The subtraction and elliptic point addition use pre-calculated values to reduce the number of values to be calculated. Subtraction and elliptical point addition can use pre-calculated values to reduce the number of values to be calculated. The method may further include initializing the Q value to the largest previously calculated value. The method may further include sequentially processing the width bits of the secret scalar. The method may further include generating a sequence that has no dummy operation and no operation that involves an infinite initial value. Elliptical curve operations can include curve point multiplications. A pre-calculated MSB can be set to O. The method can further include applying the method to a fixed scalar based comb method such that the reuse of previously calculated values the balanced loop configuration reduces a previously calculated number of values. The method may further include performing a point verification operation that includes detecting calculation errors by determining whether a result is located on an elliptical curve. [0008] BRIEF DESCRIPTION OF THE DRAWINGS A brief description of the drawings will be given below. Reference will now be made to embodiments of the invention, examples of which may be shown in the accompanying figures. These figures are intended to be representative, but not limiting. Although the invention is generally described in the context of these embodiments, it should be understood that it is not intended to limit the scope of the invention to these particular embodiments. FIG. 1 is a flow chart illustrating an operation using an existing elliptic curve-based encryption (ECC) device using a scalar doubling and adding algorithm that includes dummy operations as countermeasures to the simple consumption analysis. . Figure 2 shows a typical power plot for an exemplary sequence of doubling and adding operations. [0009] FIGS. 3A and 3B show the detection of the secret code bits from examples of sequences of doubling operations and adding on an elliptic curve without countermeasure. FIG. 4A shows an exemplary sequence of doubling operations and always elliptic curve addition as a countermeasure without initialization at the infinite point. Figure 4B shows an existing sequence of doubling operations and always elliptic curve addition as a countermeasure with initialization at the infinite point. Fig. 5 is a flow chart showing an operation using a scalar doubling and adding algorithm that is resistant to simple consumption analysis and software security error, according to various embodiments of the invention. Fig. 6 is a flowchart showing a prior art operation using an existing fixed base comb algorithm that includes a pre-calculation. [0010] Fig. 7 is a flow chart showing an operation using an example of a fixed base comb algorithm according to various embodiments of the invention. FIG. 8 represents a sequence of doubling and scalar addition operations produced by one of the operations of FIGS. 5 and 7. [0011] Fig. 9 is a block diagram of a secure computing device embodying embodiments of the present invention. A detailed description of the preferred embodiments will now be made. [0012] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the following description, for purposes of explanation, specific details are presented for the purpose of understanding the invention. However, it will be obvious to those skilled in the art that the invention can be implemented without these details. It will be apparent to one skilled in the art that embodiments of the present invention described below may be practiced in a variety of ways and using a variety of means. It will also be apparent to those skilled in the art that additional modifications, applications and embodiments are within the scope of the art, as are the additional areas in which the invention may be used. Therefore, the embodiments described below are representative of specific embodiments of the invention and are intended to avoid obscuring the invention. The reference in the specification to "a first embodiment" or "an embodiment" means that a particularity, structure, feature, or particular function described in connection with the embodiment is contained in at least one embodiment. an embodiment of the invention. The appearance of the phrase 3033965 8 "in a first embodiment", "in one embodiment" or the like at different locations of the specification does not necessarily refer to the same embodiment. In addition, links between components or between process steps in the figures are not limited to the links that are directly affected. Instead, the links shown in the figures between the process components or steps can be modified or otherwise changed by adding intermediate components or process steps thereto without departing from the teachings of the present invention. [0013] In this document, the terms "infinite point", "initial value positioned at infinity" and "point at infinity" are used interchangeably. Fig. 1 is a flowchart showing an operation using an existing elliptic curve-based encryption (ECC) device using a scalar doubling and adding algorithm that includes dummy operations as countermeasures to the simple consumption analysis. . In general, an elliptic curve is a set of points that is defined by an equation. Basic operations on points of the elliptic curve, such as multiplication or scalar addition can be used to encrypt data. While multiplication, addition and doubling operations are analogous to those applied to numbers, two points on an elliptic curve are added within their own coordinate system. The addition of two points on a curve leads to a third point on the curve, and the addition operation is iterative. A point is multiplied by a scalar in a conventional manner by adding the point a number of times to itself to lead to another point on the curve on the basis of a formula, so that the multiplication by one scalar is an addition. If the point of origin and the number of times an addition has to be executed are known, the result is easy to calculate. On the other hand, if only the resulting point is known, it is theoretically impossible to determine the number of times that the addition has been made to arrive at the resulting point. It is this effect that makes the use of point-point multiplication attractive in cryptography. [0014] The method shown in Fig. 1, also known as "always double and adds," is conventionally implemented as a scalar algorithm in the ECC encryption device. Method 100 begins at step 102 when an elliptical curve point and a scalar are received by the ECC encryption device 5 for processing. In step 104, Q is initialized at the point at infinity (i.e., a neutral element for elliptic curves) before at step 106 the scalar code bits are processed sequentially. The processing of the secret code bits always includes the doubling of Q 10 in step 108, and if the analyzed value of the processed bit is equal to 1, then a point addition on an elliptic curve is performed by adding, to the step 112, from the elliptic curve point to Q. On the contrary, if the bit considered is not equal to 1 then, in step 114, a dummy operation is performed, in a conventional manner without saving the result 15 or in the backing up to a different location. The dummy operation inserted by this method forces the execution of an elliptic curve addition in this step, even though the result of this addition does not really constitute a countermeasure to an attack by simple consumption analysis (SPA). [0015] After all secret code bits have been processed in step 116, in step 118, Q is outputted. There are a number of scalar algorithms that can perform similar operations. For example, a scalar can be used to drive a digital signature, and a result can be verified using a public code value. Advantageously, since the public code value can not be used to extract the private value, this presents a difficulty in solving the problem, thereby leading in itself to public code cryptography for digital signatures. However, like most other methods, this principle has significant weaknesses in the scalar algorithm in terms of security since these types of operation can easily be observed leading to information leaks that can be detected. detected through an auxiliary channel analysis, including sequential analysis, simple consumption analysis (SPA), or electromagnetic equivalence (EM) leading to the discovery of the secret code length, which can be exploited, for example, by networks. [0016] By way of example, in a practical implementation the register of Q is initialized at the infinite point (i.e., at zero), i.e., until a non-zero bit is processed, no real doubling and no real calculation operation is performed because a multiplication by zero always leads to a zero result. Then, when the first non-zero bit is, in fact, processed, only a data transfer occurs, but no calculation is made. As a result, the first elliptical curve point addition operation that is preceded by an elliptic curve point doubling operation (i.e., the point at infinity) can be detected as having a profile. sequence or amplitude profile different and relatively shorter. It is noted that as soon as the processed secret code bit is equal to 1, an elliptic curve addition is performed, but no operation is performed when the value of the secret code bit is 0 and the result remains unchanged. In addition, in the absence of step 114, a dedicated attacker can differentiate the elliptic addition from the elliptic doubling operation, for example, using consumption analysis or electromagnetic equivalence (EM) so to exploit the relatively shorter and different sequence profiles, amplitude profiles, etc., created by the two different operations in order to partially or completely extract the elliptic curve secret code. Figure 2 shows a typical power plot 200 for an exemplary sequence of doubling and adding operations. The power plot 200 represents differences in the power consumption profiles for an elliptical curve point doubling operation 260 and an elliptical curve point addition operation 270. By observing the characteristic profiles for a given sequence of secret codes processed by the elliptic doubling and addition operations, the attacker can find the secret code relatively easily. FIGS. 3A and 3B show the detection of the secret code bits from examples of sequences of operations of doubling and addition on elliptic curve without countermeasure. In sequences 300 and 350, the letter "D" 302 indicates an elliptical curve point doubling, while the letter "A" 304 indicates an elliptical curve point addition. Since additions are executed only when the secret code bit is equal to 1, detecting a profile for two consecutive D 304s, i.e., elliptical doubling operations, indicates a bit at zero, then that a D 304 followed by an A 302 indicates a 1 for the secret code bit. As a result, the code bit sequence 110110 can be obtained from the sequence 300. Similarly, the profile for the secret code sequence 350 leaks information that allows the attacker to deduce and expose the code bit sequence 010110 thus compromising the security of the system. FIG. 4A shows an example of a sequence of doubling operations and always elliptic curve addition as a countermeasure without initialization at the infinite point. In the doubling and always adding algorithm, dummy operations designated A '410 are inserted into the sequence 400 in order to obtain a constant operation flow. However, if a register is initialized at the infinite point, it is possible to detect it, and thus, to determine the length of the secret code such as, for example, the number of most significant bits set to zero. In contrast to the sequence of Figure 4A, the sequence of doubling operations and always elliptic curve addition of Figure 4B does not use infinite point initialization. This can be achieved by initializing a register at a base point, so that it behaves as if the high order bit is set to 1 (i.e., a 1 bit leak). Therefore, the doubling and always adding operations of Figure 4B serve as a countermeasure by preventing the detection of the infinite point. Unfortunately, the dummy operations A '410 can still be detected, for example, by a soft security error attack, which involves the insertion of a fault in the system during a calculation A 304 or A' 410 and the observation that the result contains a fault. If, in response to the foul attack, the result remains unchanged, that is, the fault does not alter the result, this indicates that the operation is a dummy operation. As a result, an attacker can identify and eliminate dummy operations on a doubling sequence and always adding on an elliptic curve to recover the bits of the secret code. Overall, it is desirable to create systems and processes that provide protection against sequential analysis, simple consumption analysis (SPA), electromagnetic analysis (EM), and fault attacks for scalar scaling operations. elliptical that make the secret codes to protect 10 independent of the flow. Fig. 5 is a flow chart showing an operation using a scalar doubling and adding algorithm that is resistant to simple consumption analysis and software security error, according to various embodiments of the invention. Operation 500 begins at step 502 when an elliptical curve point and a scalar are received by an ECC decryption device. At step 504, Q is initialized to the base point. Initialization at a non-neutral point avoids operation of type 2 * 0 and 0 + P and thus serves as a countermeasure for, for example, the attack principles mentioned with reference to FIG. 1 which exploits bit detectability at zero based on sequential profile analysis and the like. In addition, the secret code length remains protected from mathematical cryptographic analysis tools, such as network attacks, which attempt to extract a secret code from partial information (for example, a few bits) which is smaller than the scalar value of the bit. In step 506 the scalar code bits are processed sequentially, for example, iteratively in an exclusive loop configuration of the low-order bits (LSB) of secret code to prevent the loop from counting down. to zero. The processing of the secret code bits always includes the doubling of Q in step 508, and, if the analyzed value of the processed bit is not equal to 1, then the execution of a point subtraction on an elliptic curve by subtracting the elliptical curve point of Q, at step 512 and, otherwise, at step 514, performing an elliptic curve point addition by adding the elliptical curve point to Q It should be noted that this is accomplished without the need for the injection of dummy operations which are intended to form a countermeasure to noninvasive channel analysis, such as by simple consumer analysis (PFS) attacks, since the dummy operations remain detectable, for example, by fault injection attacks (software security error) which inject a fault into an operation in order to detect a dummy operation on the basis of its characteristic of not altering the result in any way . In one embodiment, the subtraction and elliptical point addition are implemented in a balanced loop configuration. Advantageously, since the two elliptic curve point addition and subtraction operations can not substantially be electrically differentiated from each other with respect to sequence and power consumption, the circuit based attacks On the detection of electrical signatures by consumption analysis or electromagnetic equivalence (EM) are made substantially more difficult, thereby increasing circuit resistance against aux channel attacks. At step 514, a point check operation checks for calculation errors, for example, by determining whether the result is obviously located on the curve as an indication that no error has occurred. Point verification is recommended in relation to the fault attack. In addition, outside the loop, the difference between Q and the elliptic curve point is calculated, not necessarily to obtain accurate results, but to protect the LSBs from the secret code of sequential attacks. by simple consumption analysis (SPA) and electromagnetic equivalence (EM). Finally, once the secret code bits have been processed, it is determined whether the least significant bits (LSB) have the value of 1 at step 518. If so, Q is output at step 520; otherwise, the result of Q-P is output at step 522. A critical constraint of the cryptographic algorithms is the trade-off between the implementation cost and the performance. Some existing cryptographic systems use memory to store intermediate results in order to improve performance in terms of scalar operations. Preprocessing improves performance on doubling and addition operations when memory can be used to store and reuse points for calculations and operations. It will be appreciated by those skilled in the art that fewer steps or additional steps may be incorporated into the steps shown herein without departing from the scope of the invention. No particular order is involved in arranging blocks within the present flowchart or description. It will further be appreciated that the foregoing examples and embodiments are exemplary and are given for the sake of clarity and comprehension and not to limit the scope of the present invention. It should be considered that any permutations, improvements, equivalents, combinations, and improvements thereof which will become apparent to those skilled in the art upon reading the specifications and studying the drawings are within the scope of the present invention. present invention. It must, therefore, be considered that the invention comprises all such modifications, permutations, and equivalents that fall within the real scope of the invention described above. Fig. 6 is a flowchart showing a prior art operation using an existing fixed base comb algorithm that includes a pre-calculation. Operation 600 begins at step 602 when a scalar, an elliptic curve point, and a range width are received by the ECC encryptor for processing. In step 604, 2 'points are computed beforehand, and the scalar width line is rearranged in step 606. In step 608, Q is initialized before the infinite point, in step 610, the bits of scalar code are processed sequentially. Secret code bit processing includes the doubling of Q at step 612. [0017] In step 614, the previously calculated correct values are added by previously performing a point addition on an elliptical curve, finally, at step 616, the elliptic curve point is outputted. However, the operation 600 suffers from similar safety-related deficiencies to the operation of FIG. 1, including the initialization of Q at the infinite point, which exhibits information leaks with respect to the fact that no operation is executed when the value of the secret code bit is equal to zero and thus allows the attackers to trace the consumption of characteristic profiles, etc. Different embodiments of the innovation benefit from the reuse of calculated values previously in different scenarios to reduce the number of calculated values previously required. This allows a reduction in implementation costs compared to existing methods. Applied to scalar algorithms that use pre-calculated values, some embodiments of the innovation provide a reduction of about half of the previously calculated values without causing significant reduction in the performance of the encryption device. Fig. 7 is a flow chart showing an operation using an example of a fixed base comb algorithm according to various embodiments of the invention. Operation 700 implements some of the same new principles on a scalar fixed base comb method and any derivatives so as to render the material resistant to an aux channel attack. Operation 700 begins at step 702 when a scalar, an elliptic curve point, and a range width are received by the ECC encryptor for processing. At step 704, 2W4 points are calculated beforehand and saved. [0018] In step 706, the scalar width line is rearranged. In step 708, Q is initialized to the largest previously calculated value. In step 710, the scalar width bits are processed sequentially, for example, four 64-bit lines iteratively in an exclusive loop configuration of the LSB of the secret code. The processing of the secret code bits comprises the doubling of Q in step 712. In step 714, the previously calculated correct values are summed or subtracted by performing an elliptic curve point addition or subtraction, by for example, in a balanced loop configuration so as to use twice each previously calculated value. In one embodiment, this reduces the number of previously calculated values by half since each value is used twice. In cases in which pre-calculated values are to be stored, this reduces the memory requirements and, therefore, leads to a higher cost performance ratio. Finally, at step 716, the elliptical curve point is output. It should be understood that the high order bits (MSB) of the previously calculated scalar must not be forced to '1' during the preliminary calculations. Operation 700 can be performed with the most significant bits (MSB) set to '0' since it is not necessary to react to the point problem at infinity of existing methods that attempt to mask the secret launch of a basic operation from the detection. Since in operation 700 the launch remains hidden, no information leakage occurs, thus reinforcing the resistance to an auxiliary channel attack of the system. Furthermore, although not explicitly shown, it will become apparent to one skilled in the art that the bits may be supplemented with additional bits for the purpose of equalizing the chain lengths, as necessary. It will become apparent to one of skill in the art that, in pre-computation cases, several bits of the scalar can be analyzed simultaneously rather than one by one. [0019] FIG. 8 represents a sequence of doubling and scalar adding operations produced by one of the operations of FIGS. 5 and 7. FIG. 9 represents a block diagram of a secure computing device which implements embodiment of the present invention. Certain aspects of this patent document are directed to secure systems for ECC encryption devices. The system 900 may include a plurality of input devices 910, output devices 908, a processing unit 902, a communication port 914, a memory 906, and a network interface 912, a source of data. power supply (not shown), and other components that are not shown for simplicity reasons. The processing unit 902 may comprise a secure cryptographic control micro-unit; local and system level buses; function modules, comprising a CPU core, a universal memory control unit, code sources, a cryptographic processing unit; a symmetric code encryption accelerator (eg, AES standard); and an asymmetric code encryption accelerator (for example, for RSA encryption and ECC encryption). Control units may be integrated in the CPU core and / or the universal memory control unit of the processing unit 902 in order to copy or temporarily store the secret code, for example, in the control unit. memory 906. A dedicated secure link may be applied to allow the processing unit 902 to communicate with the code sources in order to transfer the code request instructions and secret codes via the secure link rather than a bus. For the purposes of this description, the secure system 900 may furthermore comprise any instrumentation or instrument cluster that can be used to estimate, calculate, determine, classify, process, transmit, receive, retrieve, initiate, route, to commute, memorize, display, communicate, manifest, detect, record, reproduce, manipulate, or use any form of information, intelligence or commercial, scientific, command, or other purposes. For example, a secure system may be integrated into a laptop, a mobile device (eg, personal digital assistant or smart phone), server (eg, server blade or rack server), Network storage, or any other appropriate device and its size, shape, performance, and functionality may vary. The secure system 900 may comprise a random access memory, one or more processing resources, (for example, central processing unit) or hardware or software control logic element, ROM memory, and / or other types. non-volatile memory. The additional components of the secure system 900 may include one or more buses that can be used to transmit communications between the different hardware components. It should be understood that the features shown for the 900 system can be used to support different embodiments of a secure system - although it should be understood that the secure system 900 can be configured differently and include other components that implement embodiments dealing with elliptic curve operations (e.g., using a n-bit length curve) for use on digital signatures and other protocols to perform processing in a security context (for example, digital signature algorithm on elliptic curve, Diffie-Hellman exchange on elliptic curve, integrated encryption principle on elliptic curve). It should be noted that aspects of the present invention may be encoded on one or more computer-readable non-transitory media by way of instructions for one or more processing units 902 for performing the steps. Computer-readable non-transient media may include volatile and nonvolatile memory 906. It should also be noted that alternative implementations are possible, including hardware and software / hardware implementations. Hardware-implemented functions can be realized using ASICs, programmable networks, digital signal processing circuits (e.g., state machines configured to directly implement elliptic curve scalar operations). ) and the like. Therefore, the term "means" in the present invention is intended to cover both software and hardware implementations. Similarly, the term "computer readable medium or media" as used herein includes software support and / or hardware support within which an instruction program is integrated or a combination of both. [0020] With these alternative embodiments in mind, it should be understood that the figures and the associated description provide the functional information necessary for a person skilled in the art to write a program code (c. that is, software) and / or to fabricate circuits (i.e., hardware) to implement the required processing. It will be apparent to one skilled in the art that no particular security system, protocol, or programming language is critical to the practice of the present invention. It will also be apparent to one skilled in the art that a number of the elements described above can be physically separated and / or functionally as secondary modules or associated with each other. It will be appreciated by those skilled in the art that the preceding examples and embodiments are provided by way of example and do not limit the scope of the present invention. It must be considered that any permutations, improvements, equivalents, associations, and improvements therein, which will become apparent to those skilled in the art upon reading the specifications and studying the drawings are contained in true spirit. and the scope of the present invention. 20
权利要求:
Claims (20) [0001] REVENDICATIONS1. A secure elliptic curve-based encryption (ECC) apparatus for performing scalar operations on an elliptical curve, the apparatus comprising: a secure microcontroller comprising a cryptographic circuit, the cryptographic circuit being configured to implement a counter-cryptogram; measure while preventing secret scalar escape; a memory for storing a secret scalar that includes secret code bits; and a processing unit for performing elliptical curve scalar operations, the processing unit including instructions for: receiving an elliptical point and the secret scalar; initialize a Q value at the elliptical point that does not have an initial value at an infinite point; processing the secret code bits of the secret scalar in a sequential manner, wherein the processing comprises doubling of Q; perform elliptic curve operations including subtraction and elliptical point addition; and perform elliptic point subtraction by subtracting the elliptic point from the Q value. [0002] The secure elliptic curve (ECC) encryption device (ECC) of claim 1, further comprising a state machine that performs elliptical curve scalar operations. [0003] The secure elliptical curve (ECC) encryption device according to claim 1 or 2, further comprising a register, the register is initialized at a point other than an infinite point. [0004] The secure elliptical curve (ECC) encryption device according to any one of claims 1 to 3, further comprising a high-order bit (MSB) of secret code which is set to 0. 3033965 - 21 - [0005] The secure elliptical curve (ECC) encryption device (ECC) according to any one of claims 1 to 4, wherein the processing unit is configured to perform a point verification operation to protect itself against security attacks. fault. [0006] The secure elliptical curve (ECC) encryption device (ECC) according to any one of claims 1 to 5, wherein the processing unit determines the difference between the Q value and the elliptical point out of the balanced loop configuration in order to protecting a least significant bit (LSB) of at least one of a sequential attack, by simple consumption analysis (SPA), and electromagnetic equivalence (EM). [0007] The secure elliptical curve (ECC) encryption device according to any one of claims 1 to 6, further comprising a memory for storing intermediate results of the elliptical curve scalar operations. [0008] A method of creating an operation flow independent of a secret code, the method comprising: in an elliptical curve-encoding (ECC) device, receiving an elliptical point and a secret scalar which comprises secret code bits; initializing a Q value at the elliptical point that does not have an initial value at an infinite point; processing the scalar secret code bits in a sequential manner, wherein the processing comprises doubling Q; performing elliptic curve operations including subtraction and elliptical point addition; and performing elliptic point subtraction by subtracting the elliptic point from the Q value. [0009] The method of claim 8, wherein the elliptic curve operations are performed in a balanced loop configuration. [0010] The method of claim 8 or 9, further comprising: responsive to determining that a least significant bit value (LSB) is 1, the output of Q; and in response to determining that the LSB value is not 1, the output of Q-P. [0011] 11. The method of claim 10, wherein the processing of the secret code bits excludes the processing of a low-order bit (LSB) of secret code. [0012] The method of any one of claims 8 to 11, wherein the secret scalar comprises a predetermined range width. [0013] The method of any one of claims 8 to 12, wherein the subtraction and elliptical point addition use pre-calculated values to reduce the number of values to be calculated. [0014] The method of claim 13, further comprising initializing the Q value to the largest previously calculated value. [0015] The method of any one of claims 8 to 14, further comprising sequentially processing the bits of width of the secret scalar. [0016] The method of any one of claims 8 to 15, further comprising: generating a sequence that has no dummy operation and no operation that involves an infinite initial value. [0017] The method of any one of claims 8 to 16, wherein the elliptic curve operations comprise curve point multiplications. [0018] The method of any one of claims 8 to 17, wherein a MSB previously calculated is set to 0. [0019] The method of any one of claims 8 to 18, further comprising applying the method to a fixed scalar based comb method such that reuse of previously calculated values in the balanced loop configuration reduces a number of previously calculated values. [0020] The method of any of claims 8 to 19, further comprising performing a point check operation that includes detecting calculation errors by determining whether a result is located on an elliptical curve. .
类似技术:
公开号 | 公开日 | 专利标题 FR3033965A1|2016-09-23| EP2380306B1|2013-07-24|Cryptography circuit protected against observation attacks, in particular of a high order EP1358733B1|2005-12-07|Secure method for secret key cryptographic calculation and component using said method FR2968104A1|2012-06-01|METHOD AND SYSTEM FOR PROTECTING A CRYPTOGRAPHIC DEVICE FR3038416A1|2017-01-06| FR2995429A1|2014-03-14|METHOD FOR TESTING THE SAFETY OF AN ELECTRONIC DEVICE AGAINST AN ATTACK, AND AN ELECTRONIC DEVICE USING COUNTER-MEASUREMENTS EP2324442B1|2012-02-08|Method for detecting abnormalities in a cryptographic circuit protected by differential logic, and circuit for implementing said method CA2816933C|2018-06-12|Protection against passive sniffing CA2712178A1|2009-09-17|Countermeasure method and devices for asymmetric cryptography EP2326042B1|2013-04-03|Method for detecting an attack by fault injection EP2509252B1|2016-08-10|Secured cryptographic calculation method, in particular against DFA and one-way attacks, and corresponding component EP2159952B1|2011-04-13|Protection of an encryption algorithm EP2983083B1|2017-04-12|Elliptic curve encryption method comprising an error detection EP2284748A1|2011-02-16|Countermeasure for the protection of stored data FR3055444A1|2018-03-02|DEVICE AND METHODS FOR CONTROLLING A SECURE ELLIPTICAL CURVE ENCRYPTION DEVICE EP2336931B1|2013-01-09|Method for signature verification EP3100403B1|2019-12-04|Imbalanced montgomery ladder for resisting side-channel attacks FR3069993A1|2019-02-08|DEVICES AND METHODS FOR MASKING RSA ENCRYPTION OPERATIONS EP3482524A1|2019-05-15|Method for generating parameters characterizing a cryptographic protocol EP3614617A1|2020-02-26|Method and device for generating parameter| of an asymmetric cryptographic protocol from a blockchain, associated encryption and decryption method and device and computer program EP3843327A1|2021-06-30|Method for encoding a small-size cryptographic integrity pattern and associated devices EP3579491A1|2019-12-11|Modular inverse determination method and associated cryptographic processing device FR3087022A1|2020-04-10|CRYPTOGRAPHIC SYSTEMS AND METHODS RESISTANT TO DEFAULT ATTACKS FR3056322A1|2018-03-23|METHOD OF ENCRYPTION OR DE-RECTIFICATION PROTECTED AGAINST HALF-CHANNEL ATTACKS FR2898199A1|2007-09-07|METHOD OF SECURING THE EXECUTION OF A FOLLOWING LOGICALLY ENCHANCED STEPS
同族专利:
公开号 | 公开日 US9716584B2|2017-07-25| CN105991292B|2021-02-05| CN105991292A|2016-10-05| US20160277178A1|2016-09-22| FR3033965B1|2018-12-07|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题 US20100195821A1|2009-02-05|2010-08-05|Infineon Technologies Ag|Apparatus for calculating a result of a scalar multiplication|EP3306465A1|2016-10-07|2018-04-11|Idemia Identity & Security France|Cryptographic processing method comprising a multiplication of a point of an elliptic curve by a scalar|FR2791497B1|1999-03-26|2001-05-18|Gemplus Card Int|COUNTERMEASUREMENT METHODS IN AN ELECTRONIC COMPONENT USING AN ELLIPTICAL CURVE TYPE PUBLIC KEY CRYTOGRAPHY ALGORITHM| WO2007045258A1|2005-10-18|2007-04-26|Telecom Italia S.P.A.|A method for scalar multiplication in elliptic curve groups over prime fields for side-channel attack resistant cryptosystems| US7986779B2|2007-06-30|2011-07-26|Intel Corporation|Efficient elliptic-curve cryptography based on primality of the order of the ECC-group| JP2010258708A|2009-04-23|2010-11-11|Sony Corp|Information processing device, operation verifying method, and program| CN102186170A|2010-11-24|2011-09-14|北京天融信科技有限公司|Method and device for managing secret keys in wireless sensor network| CN103078732B|2013-01-08|2015-10-21|武汉大学|A kind of dot product accelerating circuit of prime field elliptic curve cryptography|US10372587B1|2015-11-09|2019-08-06|The United States Of America As Represented By Secretary Of The Navy|Electronic device monitoring using induced electromagnetic emissions from software stress techniques| US10404459B2|2017-02-09|2019-09-03|Intel Corporation|Technologies for elliptic curve cryptography hardware acceleration| CN107135070A|2017-04-25|2017-09-05|上海汇尔通信息技术有限公司|Method for implanting, framework and the system of RSA key pair and certificate| CN108875416B|2018-06-22|2020-05-19|北京智芯微电子科技有限公司|Elliptic curve multiple point operation method and device| US11023217B2|2018-11-09|2021-06-01|Dell Products L.P.|Systems and methods for support of selective processor microcode updates| DE102018130177A1|2018-11-28|2020-05-28|Infineon Technologies Ag|Execution of cryptographic operations in a control unit of a vehicle| CN110503794A|2019-08-01|2019-11-26|杭州朗鸿科技股份有限公司|A kind of wireless supervisory control system for commodity anti-theft| CN112968761A|2021-03-15|2021-06-15|北京理工大学|Artificial intelligence side channel analysis method for cryptographic algorithm|
法律状态:
2016-03-28| PLFP| Fee payment|Year of fee payment: 2 | 2016-09-23| PLSC| Search report ready|Effective date: 20160923 | 2017-03-27| PLFP| Fee payment|Year of fee payment: 3 | 2018-03-26| PLFP| Fee payment|Year of fee payment: 4 | 2020-03-25| PLFP| Fee payment|Year of fee payment: 6 | 2021-03-25| PLFP| Fee payment|Year of fee payment: 7 |
优先权:
[返回顶部]
申请号 | 申请日 | 专利标题 FR1552210A|FR3033965B1|2015-03-18|2015-03-18|Systems and methods for controlling secure elliptic curve-based encryption devices| FR1552210|2015-03-18|FR1552210A| FR3033965B1|2015-03-18|2015-03-18|Systems and methods for controlling secure elliptic curve-based encryption devices| US14/744,927| US9716584B2|2015-03-18|2015-06-19|Systems and methods for operating secure elliptic curve cryptosystems| CN201610153100.7A| CN105991292B|2015-03-18|2016-03-17|System and method for operating a secure elliptic curve cryptography system| 相关专利
Sulfonates, polymers, resist compositions and patterning process
Washing machine
Washing machine
Device for fixture finishing and tension adjusting of membrane
Structure for Equipping Band in a Plane Cathode Ray Tube
Process for preparation of 7 alpha-carboxyl 9, 11-epoxy steroids and intermediates useful therein an
国家/地区
|