Data verification
A secure and efficient method for verifying encryption and decryption keys through Boolean decomposition and CRC ensures data security and faster processing by avoiding direct storage of the keys, addressing inefficiencies in existing verification methods.
Patent Information
- Application Number
- FR2023002829
- Authority / Receiving Office
- FR · FR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-27
AI Technical Summary
Existing methods for verifying and detecting errors in encryption and decryption keys are inadequate in terms of security and efficiency, often making the keys accessible during the verification process.
A method involving Boolean decomposition of data into N independent components using an EXCLUSIVE OR function, combined with a cyclic redundancy check (CRC) to verify the data without storing the original data, ensuring security and faster execution.
The method provides secure and efficient verification of encryption and decryption keys by preventing access to the original data while reducing execution time compared to conventional methods.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Title of the invention: Verification of data Technical field
[0001] The present description relates generally to the processing of sensitive and / or secret data, and, more particularly, to the security of the processing of such data. The present description relates more to the verification and error detection of such data, such as an encryption and / or decryption key. Prior art
[0002] Various techniques for securing secret and / or sensitive data are used today. Data encryption is one of them, and consists of applying one or more cryptographic algorithms to data. Many cryptographic algorithms use encryption and / or decryption keys.
[0003] Before using an encryption and / or decryption key, it is common to check whether the encryption key stored in memory is correct, i.e. does not contain any errors.
[0004] It would be desirable to be able to improve at least in part certain aspects of the error verification and / or detection methods. Summary of the invention
[0005] There is a need for more effective security of sensitive and / or secret data.
[0006] There is a need for more effective encryption and / or decryption key security.
[0007] One embodiment overcomes all or part of the drawbacks of the methods for verifying and / or detecting errors in data.
[0008] One embodiment provides a more secure method for verifying and / or detecting errors in data.
[0009] One embodiment provides a method for verifying and / or detecting errors in data that does not make said data accessible.
[0010] One embodiment provides a method for verifying and / or detecting errors in data having a Boolean decomposition.
[0011] One embodiment provides a method for verifying and / or detecting errors in data that is faster to execute.
[0012] One embodiment provides a method for verifying a first piece of data (k) given by a first mathematical formula (A): [Math 1] k = XO^^X^ans which: - k represents said first data (k); - XOR^j represents the application of a first logical EXCLUSIVE OR function to N inputs, N being an integer; and - Xi represents N second data (XI, ..., XN) independent of the first data (k), i varying from 1 to N, said method comprising a step of verifying (404) a second mathematical formula (B): [Math 2] CRC(k) = XOR^^CRC (X;))in which CRC( ) represents the image of a data by a second function (300) of linear cyclic redundancy check with respect to the logical EXCLUSIVE OR function.
[0013] Another embodiment provides an electronic device adapted to implement a method of verifying a first data item (k) given by a first mathematical formula (A): [Math 3] k = XO^^XîJin which: - k represents said first data (k); " XOR^\ represents the application of a first logical EXCLUSIVE OR function to N inputs, N being an integer; and - Xi represents N second data (XI, ..., XN) independent of the first data (k), i varying from 1 to N, said method comprising a step of verifying (404) a second mathematical formula (B): [Math 4] CRC(k) = XOR^CRC (Xz))in which CRC( ) represents the image of a data by a second function (300) of linear cyclic redundancy check with respect to the logical EXCLUSIVE OR function.
[0014] According to one embodiment, said first EXCULSIVE OR logic function with N inputs is given by the following third mathematical formula: [Math 5] XOR^(Xi) = XI xor X2xor.... xor X7V in which xor represents a two-input EXCLUSIVE OR logical function.
[0015] According to one embodiment, the first data (k) is not stored in memory, the image of the first data (k) by said second function (CRC) is stored in memory, and said N second data are stored in memory.
[0016] According to one embodiment, at least one of said N second data (XI, ..., XN) is obtained randomly.
[0017] According to one embodiment, the second function (300) is a cyclic redundancy control function of polynomial type.
[0018] According to one embodiment, the second function (300) is a polynomial type cyclic redundancy check function used in the algorithm known under the commercial name CRC32.
[0019] According to one embodiment, the integer N is greater than or equal to two.
[0020] According to one embodiment, the first data (k) is an encryption key and / or of decryption.
[0021] According to one embodiment, said first data (k) is a key that can be used in different types of cryptography algorithm such as AES.
[0022] According to one embodiment, said first data (k) is data that can be used in different types of cryptography algorithms such as elliptic curve cryptography algorithms, signature algorithms such as those known under the trade name CRYSTALS-Dilithium, or key encapsulation algorithms known under the trade name Kyber. Brief description of the drawings
[0023] These characteristics and advantages, as well as others, will be explained in detail in the following description of particular embodiments given without limitation in relation to the attached figures among which:
[0024] [Fig.l] represents, very schematically and in the form of blocks, an example of an electronic device adapted to implement the embodiments described in relation to figures 2 to 4;
[0025] [Fig.2] represents, very schematically and in the form of blocks, an example of Boolean decomposition of a piece of data;
[0026] [Fig.3] represents, very schematically and in the form of blocks, a function of cyclic redundancy check; and
[0027] [Fig.4] represents a block diagram illustrating a mode of implementation of a method for verifying an encryption and / or decryption key. Description of the embodiments
[0028] The same elements have been designated by the same references in the different figures. In particular, the structural and / or functional elements common to the different embodiments may have the same references and may have identical structural, dimensional and material properties.
[0029] For the sake of clarity, only the steps and elements useful for understanding the described embodiments have been shown and are detailed.
[0030] Unless otherwise specified, when referring to two elements connected between them, it means directly connected without intermediate elements other than conductors, and when we refer to two elements connected (in English "coupled") between them, it means that these two elements can be connected or be linked by means of one or more other elements.
[0031] In the following description, when reference is made to absolute position qualifiers, such as the terms "front", "back", "top", "bottom", "left", "right", etc., or relative position qualifiers, such as the terms "above", "below", "upper", "lower", etc., or to orientation qualifiers, such as the terms "horizontal", "vertical", etc., reference is made unless otherwise specified to the orientation of the figures.
[0032] Unless otherwise specified, the expressions "about", "approximately", "substantially", and "of the order of" mean to within 10%, preferably to within 5%.
[0033] The embodiments described below relate to the verification and / or error detection of data, for example, before its use or storage in memory. More specifically, this concerns the verification and / or error detection of sensitive and / or secret data, such as an encryption and / or decryption key.
[0034] The embodiments described below relate, more particularly, to a verification method, or error detection method, in which the data item that is verified is never made accessible. For this, the verification method uses a Boolean decomposition of the data item to be verified and a cyclic redundancy check function. The Boolean decomposition of a data item is described in detail in relation to [Fig.2]. In addition, a detailed description of a cyclic redundancy check function is provided in relation to [Fig.3]. The verification method itself is described in relation to [Fig.4].
[0035] [Fig.l] is a block diagram representing, very schematically, an architecture of an example of an electronic device 100 adapted to execute the mode of implementation of the verification method, or error detection method, of a data item described below.
[0036] The electronic device 100 comprises a processor 101 (CPU) adapted to implement different processing of data stored in memories and / or provided by other circuits of the device 100.
[0037] The electronic device 100 further comprises different types of memories 102 (MEM), including, for example, a non-volatile memory, a volatile memory 103, and / or a read-only memory 104. Each memory 102 is adapted to store different types of data.
[0038] The electronic device 100 further comprises, for example, a secure element 103 (SE) adapted to process sensitive and / or secret data. The secure element 103 may comprise its own processor(s), its own memory(s), etc.
[0039] In the remainder of the description, sensitive data and secret data are referred to as data whose content is not intended to be public, and therefore, access to which is restricted to certain persons and / or particular circuits. An encryption and / or decryption key is considered to be sensitive and / or secret data since such a key makes it possible to encode sensitive and / or secret data, and / or to decode encrypted data.
[0040] The electronic device 100 may further comprise interface circuits 104 (IO / OUT) adapted to send and / or receive data originating from outside the device 100. The interface circuits 104 may further be adapted to implement a data display, for example, a display screen.
[0041] The electronic device 100 further comprises different circuits 105 (FCT) adapted to perform different functions. For example, the circuits 105 may comprise measurement circuits, data conversion circuits, etc.
[0042] The electronic device 100 further comprises one or more data buses 106 adapted to transfer data between its different components.
[0043] [Fig.2] illustrates, very schematically and in the form of blocks, an example of Boolean decomposition of a data item 200 (k).
[0044] The data 200, called data k in the remainder of the description, is a digital data item. The data k may be, for example, a sensitive and / or secret data item suitable for use by a device of the type of the device 100 described in relation to [Fig. 1]. According to one embodiment, the data k is an encryption and / or decryption key. According to an exemplary embodiment, the data k is an encryption and / or decryption key used in a cryptography algorithm of the AES (Advanced Encryption Standard) type. According to another exemplary embodiment, the data k is a data item used in different types of cryptography algorithm such as, for example, elliptic curve cryptography algorithms, signature algorithms such as, for example, those known under the trade name CRYSTALS-Dilithium, or key encapsulation algorithms such as, for example, those known under the trade name Kyber.
[0045] The data k has a Boolean decomposition into N data Xi, N being an integer and i being an integer varying from 1 to N. In other words, the data k is decomposed into N data 201-1 (XI), ..., 201-N (XN), called data XI, ..., XN in the rest of the description. The Boolean decomposition uses the logical function EXCLUSIVE OR. The data k is linked to the data XI, ..., XN by the following mathematical formula A: [Math 6] k = XOÆ^Xzj in which XOR^\ represents an EXCLUSIVE OR logical function with N inputs.
[0046] An equivalent notation of the formula A given previously is the following: [Math 7] k — XI xor X2 xor ... xor XN in which xor represents the two-input EXCLUSIVE OR logical function.
[0047] According to one embodiment, the data k is not stored in a memory of the electronic device, but only the data XI, ..., XN are stored in one or more memories of the electronic device.
[0048] Furthermore, according to one embodiment, the data XI to XN are all independent of the data k. In other words, the data XI to XN are only linked to the data k by the mathematical formula A given previously.
[0049] According to an example, the decomposition of the data k is obtained by using a random data generation function. Nl data XI to XN-1 are, for example, randomly generated, and the last data XN is obtained by applying the formula A.
[0050] There are a multitude of possible Boolean decompositions for a data item. It is therefore possible to change the decomposition data, for example if the data XI, ..., XN have become accessible. It is sufficient, for example, to generate Nl new random data and to determine the last one by applying the formula A.
[0051] [Fig.3] illustrates, very schematically and in the form of blocks, a mode of implementation of a function 300 (CRC).
[0052] Function 300 is a cyclic redundancy check (CRC) function adapted to receive, as input, a data item Y and to provide, as output, a data item CRC(Y). Such a function is used to detect errors.
[0053] Furthermore, according to one embodiment, the function 300 is a linear function with respect to the logical EXCLUSIVE OR function. In other words, the following mathematical relationship is verified: [Math 8] CRC(Y xor Z) ~ CRC(Y) xor CRC(Z)Where Y and Z are both data.
[0054] Cyclic redundancy check functions are known to those skilled in the art. According to one example, the function 300 may be, for example, a polynomial type cyclic redundancy check function. According to one example, the function used in the algorithm known under the trade name CRC32.
[0055] [Fig.4] is a block diagram representing a mode of implementation of a verification method, or an error detection method, of the data k defined in relation to [Fig.2] and using the function 300 described in relation to [Fig.3].
[0056] The method of verifying the data k makes it possible to detect errors in transmission, combination and / or algorithm application. The method of verifying fication is for example used before the use of the data k.
[0057] This verification method is suitable for being implemented by the device 100 described in relation to [Fig.l], or by a device of the type of device 100.
[0058] In an initialization step 401 (CRC(k)), a CRC(k) data item representing the image of the data item k by the function 300 is obtained. According to one embodiment, the CRC(k) image is calculated and stored in a memory of the device 100, but the data item k itself is not stored in memory. This step can be implemented as soon as the data item k is generated.
[0059] In another initialization step 402 (XI, ..., XN), the Boolean decomposition of the data k into the data XI to XN is obtained, for example, using the technique described in relation to [Fig. 2]. According to one embodiment, the data XI to XN are all stored in one or more memories of the device 100. This step can also be implemented as soon as the data k is generated.
[0060] At a step 403 (CRC(Xl), ..., CRC(XN)), subsequent to step 402, data CRC(Xl) to CRC(XN) representing the images of the data XI to XN by the function 300 are obtained. According to a preferred embodiment, the images CRC(Xl) to CRC(XN) are calculated and stored, temporarily, in a memory of the device 100. According to a variant, this step can be implemented as soon as the data k is generated, like step 402, and the images CRC(Xl) to CRC(XN) can be stored for a long period in a memory of the device 100.
[0061] At a step 404 (Eq?), subsequent to steps 401 and 403, the following mathematical formula B is verified: [Math 9] CRC(k) =XOR*(CRC(X^)
[0062] An equivalent notation of the formula B given previously is the following: [Math 10] CRC (k) - CRC(XI) xor CRC (X2) xor... xor CRC(XN)
[0063] To perform these checks, the data obtained in steps 401 to 403 are used.
[0064] If formula B is verified (output Y) then the next step is step 405 (Success). Otherwise (output N), the next step is step 406 (Error).
[0065] In step 405, formula B has been verified, it is therefore considered that data XI to XN are correct and allow data k to be obtained using formula A described previously. Data XI to XN can be used in linear calculations with respect to the EXCLUSIVE OR operation instead of data k, such as cryptographic calculations.
[0066] At step 406, formula B is not verified. The decomposition of the data k into the data XI to XN therefore has errors, and data XI to XN cannot therefore be used to obtain data k using formula A.
[0067] An advantage of this verification method is that it is faster to implement than a conventional verification method, such as a verification method using complex cryptographic calculations such as AES or calculations on elliptic curves.
[0068] Another advantage of this method is that the risk that the data k which is verified is accessible is much lower than with a conventional verification method. Indeed, the data k is not stored in memory, and the data XI to XN are all independent of the data k. It would therefore be necessary to have access to all the data XI to XN to obtain the data k.
[0069] Various embodiments and variations have been described. Those skilled in the art will understand that certain features of these various embodiments and variations could be combined, and other variations will occur to those skilled in the art.
[0070] Finally, the practical implementation of the embodiments and variants described is within the reach of those skilled in the art from the functional indications given above.
Claims
Claims
1. Verification method, implemented by an electronic device comprising a processor and a memory, of a first data item (k) given by a first mathematical formula (A): [Math 11] k = XO^X^ in which: - k represents said first data item (k); " XOR^\ represents the application of a first EXCLUSIVE OR logic function to N inputs, N being an integer; and - Xi represents N second data items (XI, ..., XN) independent of the first data (k), i varying from 1 to N, said method comprising a step of verification (404) of a second mathematical formula (B): [Math 12] CRC (k) = XOR^}(CRC (X,-))^118 which CRC( ) represents the image of a data by a second linear cyclic redundancy check function (300) with respect to the EXCLUSIVE OR logic function, in which the first data (k) is not stored in said memory, the image of the first data (k) by said second function (CRC) is stored in said memory, and said N second data are stored in said memory.
2. Method according to claim 1, wherein at least one of said N second data (XI, ..., XN) is obtained randomly.
3. The method of claim 1 or 2, wherein the second function (300) is a polynomial-type cyclic redundancy check function.
4. Method according to claim 3, in which the second function (300) is a cyclic redundancy check function of polynomial type used in the algorithm known under the commercial name CRC32.
5. A method according to any one of claims 1 to 4, wherein the integer N is greater than or equal to two.
6. Method according to any one of claims 1 to 5, in which the first data (k) is an encryption and / or decryption key.
7. Method according to claim 6, wherein said first data (k) is a key that can be used in different types of cryptography algorithms such as AES.
8. Method according to claim 7, wherein said first data (k) is data that can be used in different types of cryptography algorithms such as elliptic curve cryptography algorithms, signature algorithms such as those known under the trade name CRYSTALS-Dilithium, or key encapsulation algorithms known under the trade name Kyber.
9. Electronic device comprising a processor and a memory, and being adapted to implement a method for verifying a first data item (k) given by a first mathematical formula (A): [Math 13] k = XOÆ^A^ in which: - k represents said first data item (k); " XO^ represents the application of a first EXCLUSIVE OR logic function with N inputs, N being an integer; and - Xi represents N second data items (XI, ..., XN) independent of the first data (k), i varying from 1 to N, said method comprising a step of verification (404) of a second mathematical formula (B): [Math 14] CRC(k) = XOR^CRC (Xf-))in which CRC( ) represents the image of a data by a second linear cyclic redundancy check function (300) with respect to the EXCLUSIVE OR logic function in which the first data (k) is not stored in said memory, the image of the first data (k) by said second function (CRC) is stored in said memory, and said N second data are stored in said memory.
Citation Information
Patent Citations
Signal processing method and device based on PBCH
CN111835474A
CRC protection of data stored in XOR buffer
US20100306634A1
DIF-CRC based fast hashing
US8910031B1
