A lightweight identity authentication method, system and device
Confused information is generated through the white-box algorithm library and user fingerprint data encryption, and the authentication key and verification key are used for identity authentication, which solves the problems of high key management cost and computational complexity in traditional technology, and realizes lightweight identity Authentication and signature effects.
Patent Information
- Application Number
- CN202411090569.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-08
AI Technical Summary
In the existing technology, key management costs are high and calculation is complex in identity authentication of multiple authenticated parties, and traditional symmetric cryptography algorithms require all authenticated parties to use the same key, and asymmetric cryptography algorithms have high computational complexity.
A white-box algorithm library is used to generate and encrypt user fingerprint data to generate obfuscated information, and authentication keys and verification keys are used for identity authentication. Each authenticated party uses its own white-box algorithm library to encrypt the challenge code to avoid storing the authenticated party's A white box library that only needs to securely store authentication keys and verification keys.
It reduces key management overhead and computational complexity, and achieves lightweight identity authentication. The results of each authenticated party are different, and the identity cannot be forged to achieve the signature effect.
Smart Images

Figure CN118631590B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security, and in particular to a lightweight identity authentication method, system and device. Background Art
[0002] At present, the authentication of the authenticated party by the authenticator is usually based on a symmetric encryption algorithm or an asymmetric encryption algorithm. Taking the example of the authentication of the authenticated party by the authenticator based on a symmetric encryption algorithm, the symmetric encryption algorithm requires that the encryption key used by the authenticated party and the decryption key used by the authenticator are the same key. When there are multiple authenticated parties, this symmetric encryption algorithm will increase the key management cost and is prone to key leakage. Taking the example of the authentication of the authenticated party by the authenticator based on an asymmetric encryption algorithm, the asymmetric encryption algorithm requires that the encryption key used by the authenticated party is the public key published by the authenticator, and the decryption key used by the authenticator is the private key of the authenticator. However, the computational complexity is relatively high when the authenticator uses the private key for decryption.
[0003] Based on this, a technical problem that needs to be solved urgently is to realize lightweight identity authentication. Summary of the invention
[0004] The embodiments of the present application provide a lightweight identity authentication method, system and device to implement lightweight identity authentication.
[0005] The embodiment of the present application provides a lightweight identity authentication method, which is applied to an authenticating party and includes:
[0006] Generate a corresponding white box algorithm library for each authenticated party, and send the white box algorithm library corresponding to each authenticated party to each authenticated party; the white box algorithm library corresponding to any authenticated party is generated based on white box output coding obfuscation information, white box obfuscation rules and the authentication key generated by the authenticating party, the white box output coding obfuscation information is generated based on user fingerprint data, indicating the corresponding obfuscation transformation processing; the user fingerprint data is obtained by encrypting the user information of the authenticated party with the verification key generated by the authenticating party;
[0007] For an authenticated party that currently needs identity authentication, receiving an authentication credential and authenticated party user information sent by the authenticated party; the authentication credential is obtained by the authenticated party encrypting a first challenge code generated by the authenticating party using a white box algorithm library generated by the authenticating party for the authenticated party;
[0008] The user information of the authenticated party is encrypted using the verification key to obtain user fingerprint data, and the inverse transformation of the obfuscated transformation is generated using the user fingerprint data; the authentication credential is decrypted based on the inverse transformation and the authentication key to obtain a second challenge code;
[0009] Based on the second challenge code and the first challenge code, identity authentication is performed on the authenticated party.
[0010] The embodiment of the present application provides a lightweight identity authentication method, which is applied to a party to be authenticated, and the method includes:
[0011] Receive and store the white box algorithm library generated by the authenticator for the authenticated party;
[0012] When the authenticating party is currently required to perform identity authentication, a first challenge code generated by the authenticating party is obtained, the first challenge code is encrypted using the white box algorithm library generated by the authenticating party for the authenticated party to obtain the authentication credential, and the authentication credential and the user information of the authenticated party are sent to the authenticating party, so that the authenticating party executes the steps in the above method.
[0013] The embodiment of the present application provides a lightweight identity authentication system, the system comprising: an authenticator and a plurality of authenticated parties;
[0014] The authenticator executes the steps in the first method above;
[0015] Any of the authenticated parties executes the steps in the second method as above.
[0016] The embodiment of the present application provides a lightweight identity authentication device, which is applied to an authenticator, and includes:
[0017] A generating unit is used to generate a corresponding white box algorithm library for each authenticated party, and send the white box algorithm library corresponding to each authenticated party to each authenticated party; the white box algorithm library corresponding to any authenticated party is generated based on white box output coding obfuscation information, white box obfuscation rules and an authentication key generated by the authenticating party, the white box output coding obfuscation information is generated based on user fingerprint data, indicating a corresponding obfuscation transformation process; the user fingerprint data is obtained by encrypting the user information of the authenticated party using a verification key generated by the authenticating party;
[0018] an authentication unit, for receiving, for a party to be authenticated that currently requires identity authentication, an authentication credential and user information of the party to be authenticated, the authentication credential being obtained by encrypting a first challenge code generated by the authenticating party using a white box algorithm library generated by the authenticating party for the party to be authenticated; and
[0019] Using the verification key to encrypt the authenticated party user information to obtain user fingerprint data, using the user fingerprint data to generate an inverse transformation of the obfuscated transformation process; decrypting the authentication credential based on the inverse transformation and the authentication key to obtain a second challenge code; and,
[0020] Based on the second challenge code and the first challenge code, identity authentication is performed on the authenticated party.
[0021] The embodiment of the present application provides a lightweight identity authentication device, which is applied to a party to be authenticated, and includes:
[0022] A storage unit, used to store a white box algorithm library generated by the authenticator for the authenticated party;
[0023] The sending unit is used to obtain a first challenge code generated by the authenticating party when the authenticating party is currently required to perform identity authentication, encrypt the first challenge code using a white box algorithm library generated by the authenticating party for the authenticated party to obtain an authentication credential, and send the authentication credential and the user information of the authenticated party to the authenticating party, so that the authenticating party executes the steps in the first method above.
[0024] It can be seen from the above scheme that in this embodiment, the authenticator does not need to store the white box algorithm library of the authenticated party. It only needs to safely store the authentication key key1 and the verification key key2. Each time the authenticated party is authenticated, the user information of the authenticated party is first encrypted using the verification key key2 to obtain the user fingerprint data, and the user fingerprint data is used to generate the inverse transformation of the obfuscation transformation process; the authentication credentials of the authenticated party are decrypted based on the inverse transformation and the authentication key key1 to perform identity authentication based on the decryption result. Compared with the traditional symmetric encryption algorithm, it does not require all authenticated parties to use the same encryption key or require that the encryption key used by all authenticated parties is the same as the decryption key used by the authenticator, which can obviously solve the traditional symmetric operation key security management overhead; compared with the asymmetric encryption algorithm, each authenticated party uses its own white box algorithm library to encrypt the challenge code to generate the authentication credentials. The whole process does not involve asymmetric operations, and the computational complexity and computational cost are low. Finally, lightweight identity authentication is achieved.
[0025] Furthermore, in this embodiment, the white-box algorithm library of each authenticated party is different. For the same input data, each authenticated party obtains different results after calculating using its own white-box algorithm library. Therefore, each authenticated party cannot forge other authenticated parties for identity authentication. Even if asymmetric operations are not introduced, the signature effect can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0027] Figure 1 A flow chart of the method provided in the embodiment of the present application;
[0028] Figure 2This is an example diagram of the application of the white box algorithm library of the embodiment of the present application;
[0029] Figure 3 This is an example diagram of the application of the white box algorithm library of the embodiment of the present application;
[0030] Figure 4 A flow chart for generating a white box algorithm library provided in an embodiment of the present application;
[0031] Figure 5 Another method flow chart provided for an embodiment of the present application;
[0032] Figure 6 A system structure diagram provided for an embodiment of the present application;
[0033] Figure 7 A structural diagram of a device provided in an embodiment of the present application;
[0034] Figure 8 Another device structure diagram provided for an embodiment of the present application;
[0035] Fig. 9 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0037] Please refer to Figure 1 , Figure 1 This is a flow chart of the method provided in the embodiment of the present application. The method is applied to the authentication party. Figure 1 As shown, the process may include the following steps:
[0038] Step 101: Generate a corresponding white box algorithm library for each authenticated party, and send the corresponding white box algorithm library to each authenticated party.
[0039] As an embodiment, before step 101, the authenticator may generate an authentication key key1 and a verification key key2. Afterwards, the authenticator generates a corresponding white box algorithm library for each authenticated party based on the authentication key key1 and the verification key key2.
[0040] As an embodiment, the authenticator may generate an authentication key key1 and a verification key key2 during the initialization phase.
[0041] Optionally, the authenticator may randomly generate an authentication key key1 based on a first algorithm in a symmetric cryptographic algorithm, such as AES, SM4, etc.
[0042] Optionally, the authenticator may randomly generate the verification key key2 based on a second algorithm in the symmetric encryption algorithm such as AES, SM4, etc., or the authenticator may randomly generate the verification key key2 based on an asymmetric encryption algorithm such as RSA, ECC, etc., which is not specifically limited in this embodiment.
[0043] As an embodiment, the first algorithm here is the same or different, and this embodiment does not specifically limit it.
[0044] It should be noted that, in this embodiment, the authentication key key1 and the verification key key2 are stored secretly by the authenticator.
[0045] As described in step 101 above, the authenticator generates a corresponding white-box algorithm library for each authenticated party based on the authentication key key1 and the verification key key2. As an embodiment, the authenticator may generate a corresponding white-box algorithm library for each authenticated party during the initialization phase.
[0046] Optionally, the authenticator may use a dynamic white box algorithm or a static white box algorithm to generate a corresponding white box algorithm library for each authenticated party. For simplicity, this embodiment does not distinguish whether the white box algorithm library is generated according to a dynamic white box algorithm or a static white box algorithm, and is uniformly referred to as a white box algorithm library.
[0047] As an embodiment, the white box algorithm library corresponding to any authenticated party is generated based at least on the white box output encoding obfuscation information and the authentication key key1.
[0048] Here, the white-box output coding obfuscation information is generated based on the user fingerprint data, indicating the corresponding obfuscation transformation processing. It should be noted that the white-box algorithm library will contain multiple white-box tables with a sequential execution order. The white-box output coding obfuscation information here may indicate the last white-box table, and the obfuscation transformation processing specifically indicated may actually be a mapping rule. As an embodiment, the above-mentioned white-box output coding obfuscation information can be obtained by performing specified processing on the user fingerprint data, such as hash processing (corresponding hash algorithm). As for the remaining white-box tables, they may represent randomly generated white-box obfuscation rules, which will not be described by example in this embodiment.
[0049] As an embodiment, the user fingerprint data is obtained by encrypting the user information of the authenticated party using the verification key key2. Here, the user information of the authenticated party is used to identify the authenticated party, such as the user identity information of the authenticated party, the hardware information of the authenticated party, etc., which is not specifically limited in this embodiment.
[0050] Based on the above-described method of generating the white-box output coding obfuscation information, in this embodiment, each authenticated party has different white-box algorithm libraries generated due to different user fingerprint data. Under this premise, for the same input data, each authenticated party obtains different results after calculating using its own white-box algorithm library. Therefore, each authenticated party cannot forge other authenticated parties for identity authentication, and the signature effect can be achieved even without introducing asymmetric operations.
[0051] It should be noted that, in this embodiment, the white box library of the authenticated party will be sent by the authenticating party to the authenticated party for secret storage. The authenticating party will not store the white box library of each authenticated party.
[0052] Here, the reason why any authenticated party secretly stores its corresponding white-box library is to facilitate the encryption of the data to be encrypted based on the white-box library stored in secret, and the key is hidden in the white-box table in the white-box library. In other words, the encryption process is implemented by looking up the white-box table, and the attacker cannot obtain the key information based on the lookup table, as described below.
[0053] The following will give an example to describe how the authenticator generates a corresponding white-box algorithm library for each authenticated party, which will not be described here.
[0054] Step 102, for a party to be authenticated that currently needs identity authentication, receiving the authentication credentials and user information of the party to be authenticated sent by the party to be authenticated; the authentication credentials are obtained by the party to be authenticated encrypting the first challenge code generated by the authenticating party using the white box algorithm library generated by the authenticating party for the party to be authenticated.
[0055] In this embodiment, when the authenticated party needs to access resources, such as resources that can only be accessed after being authenticated by the authenticating party, the authenticated party will first initiate an identity authentication request to the authenticating party. When the authenticating party authenticates the authenticated party based on the request, it will first send a challenge code (AuthMsg) to the authenticated party.
[0056] As an embodiment, the challenge code sent by the authenticator to the authenticated party may be unique information such as a random number or a current timestamp, etc. This embodiment is not specifically limited.
[0057] For ease of description, this embodiment records the above challenge code as the first challenge code.
[0058] When the authenticated party receives the above-mentioned first challenge code, it will use the white box algorithm library generated by the authenticating party for the authenticated party to encrypt the first challenge code generated by the authenticating party to obtain the above-mentioned authentication credentials.
[0059] As an embodiment, the authenticated party can use its own secret white box algorithm library (specifically, the white box table in the white box algorithm library) to confuse the first challenge code to obtain the above authentication credentials. Taking the above white box algorithm library as an example of being generated based on a static white box algorithm, Figure 2 The example of inputting the first challenge code into the white box algorithm library to obtain the authentication credentials is shown. Taking the above white box algorithm library as an example of being generated based on the dynamic white box algorithm, Figure 3 An example is shown in which a first challenge code is input into a white-box algorithm library to obtain an authentication credential. Figure 3 The white-box keys shown can be updated frequently and do not need to be stored secretly.
[0060] After the authenticated party generates the above authentication credentials, it will send the authentication credentials and the authenticated party user information to the authenticating party, and finally the authenticating party described in step 102 receives the authentication credentials and the authenticated party user information sent by the authenticated party.
[0061] Furthermore, as described above, each authenticated party uses its own white box algorithm library to encrypt the challenge code to generate authentication credentials. The entire process does not involve asymmetric operations, has low computational complexity, and has low computational cost.
[0062] Step 103, using the verification key to encrypt the received user information of the authenticated party to obtain user fingerprint data, and using the user fingerprint data to generate an inverse transformation of the obfuscation transformation; based on the inverse transformation and the authentication key, decrypt the authentication credentials to obtain a second challenge code.
[0063] That is to say, in this embodiment, the authenticator does not need to store the white box algorithm library of the authenticated party, but only needs to securely store the authentication key key1 and the verification key key2. Each time the authenticated party is authenticated, the verification key key2 is used to encrypt the authenticated party's user information to obtain the user's fingerprint data, and the user's fingerprint data is used to generate the inverse transformation of the obfuscated transformation process; the authentication credentials of the authenticated party are decrypted based on the inverse transformation and the authentication key key1. This can obviously solve the traditional symmetric operation key security management overhead and reduce system security risks.
[0064] As for how to use the user fingerprint data to generate the inverse transform of the obfuscation transform, its specific implementation may include performing specified processing on the user fingerprint data, such as the above-mentioned hashing processing, to generate white-box output coding obfuscation information; and then calculating the inverse transform of the white-box output coding obfuscation information.
[0065] As for how to decrypt the authentication credentials based on the above inverse transformation and the authentication key to obtain the second challenge code, its specific implementation includes: based on the above inverse transformation, processing the authentication credentials to obtain intermediate parameters; using the authentication key key1 to decrypt the intermediate parameters to obtain the second challenge code.
[0066] Step 104: Authenticate the party to be authenticated based on the second challenge code and the first challenge code.
[0067] For example, the second challenge code is compared with the first challenge code to see whether they meet the preset consistency requirement; if yes, it is determined that the authenticated party has passed the identity authentication; if not, it is determined that the authenticated party has not passed the identity authentication.
[0068] As an embodiment, the second challenge code here meets the preset consistency requirement with the first challenge code, such as the second challenge code is the same as the first challenge code, or the similarity between the second challenge code and the first challenge code is greater than or equal to the set similarity threshold, etc., which is not specifically limited in this embodiment.
[0069] So far, completed Figure 1 The process shown.
[0070] pass Figure 1 It can be seen from the process shown that in this embodiment, the authenticator does not need to store the white box algorithm library of the authenticated party. It only needs to safely store the authentication key key1 and the verification key key2. Each time the authenticated party is authenticated, the user information of the authenticated party is first encrypted using the verification key key2 to obtain the user fingerprint data, and the user fingerprint data is used to generate the inverse transformation of the obfuscation transformation process; the authentication credentials of the authenticated party are decrypted based on the inverse transformation and the authentication key key1 to perform identity authentication based on the decryption result. Compared with the traditional symmetric encryption algorithm, it does not require all authenticated parties to use the same encryption key or require that the encryption key used by all authenticated parties is the same as the decryption key used by the authenticator, which can obviously solve the traditional symmetric operation key security management overhead; compared with the asymmetric encryption algorithm, each authenticated party uses its own white box algorithm library to encrypt the challenge code to generate the authentication credentials. The whole process does not involve asymmetric operations, and the computational complexity and computational cost are low. Finally, lightweight identity authentication is achieved.
[0071] Furthermore, in this embodiment, the white-box algorithm library of each authenticated party is different. For the same input data, each authenticated party obtains different results after calculating using its own white-box algorithm library. Therefore, each authenticated party cannot forge other authenticated parties for identity authentication. Even if asymmetric operations are not introduced, the signature effect can be achieved.
[0072] The following describes how the authenticator generates the corresponding white-box algorithm library for each authenticated party:
[0073] See also Figure 4 , Figure 4 The white box algorithm library provided in the embodiment of the present application generates a flow chart. Figure 4 As shown, the process may include the following steps:
[0074] Step 401: For each authenticated party, the authenticator uses the verification key key2 to encrypt the user information (UserID) of the authenticated party to obtain the user fingerprint (IDMsg) data of the authenticated party.
[0075] Step 402, generating white box output encoding obfuscation information based on IDMsg data.
[0076] For example, the IDMsg data is processed in a specified manner to generate white-box output coding obfuscation information. As described above, the white-box output coding obfuscation information here is essentially the last white-box table (also called the white-box output coding obfuscation table). The specific generation method is not limited. For example, the IDMsg data can be hashed to generate mapping rules as the white-box output coding obfuscation information. For other white-box tables, they can be randomly generated obfuscation rules.
[0077] Step 403: Generate a white box algorithm library corresponding to the authenticated party based on the white box output encoding obfuscation information and the authentication key key1.
[0078] For example, based on randomly generated white-box obfuscation rules, white-box output encoding obfuscation information, authentication key generation such as Figure 2 Or the white-box algorithm library shown in 3.
[0079] So far, completed Figure 4 The process shown. Figure 4 The process shown implements how to generate a corresponding white-box algorithm library for each authenticated party.
[0080] The above is a description of the method provided in the embodiment of the present application from the perspective of the authenticator. The following is a description of the method provided in the embodiment of the present application from the perspective of the authenticated party:
[0081] See also Figure 5 , Figure 5 Another method flow chart provided in the embodiment of the present application. Figure 5 As shown, the process may include the following steps:
[0082] Step 501: Receive and store a white-box algorithm library generated by the authenticator for the authenticated party.
[0083] Step 502: When the authenticator needs to perform identity authentication, obtain the first challenge code generated by the authenticator, use the white box algorithm library generated by the authenticator for the authenticated party to encrypt the first challenge code to obtain the authentication credential, and send the authentication credential and the user information of the authenticated party to the authenticator so that the authenticator can perform the following steps: Figure 1 The process shown.
[0084] It can be seen that in this embodiment, each authenticated party uses its own white box algorithm library to encrypt the challenge code to generate the authentication credential. The whole process does not involve asymmetric operations, has low computational complexity and low computational cost, and finally realizes lightweight identity authentication.
[0085] Furthermore, in this embodiment, since the white-box algorithm libraries of each authenticated party are different as mentioned above, for the same input data, each authenticated party obtains different results after calculating using its own white-box algorithm library. Therefore, each authenticated party cannot forge other authenticated parties for identity authentication. Even if asymmetric operations are not introduced, the signature effect can be achieved.
[0086] So far, completed Figure 5 The process shown.
[0087] The method provided in the embodiment of the present application is described above. The system and device provided in the embodiment of the present application are described below:
[0088] See also Figure 6 , Figure 6 This is a system structure diagram provided in the embodiment of the present application. Figure 6 As shown, the system may include: an authenticator and multiple authenticated parties.
[0089] As an embodiment, the authenticator performs the following Figure 1 The process shown.
[0090] As an embodiment, the authenticated party performs the following Figure 5 The process shown.
[0091] Correspondingly, this embodiment also provides a specific device structure diagram of the authenticator. Figure 7 , Figure 7 This is a diagram of the structure of a device provided in an embodiment of the present application. The device is applied to an authenticator, and the device includes:
[0092] A generating unit is used to generate a corresponding white box algorithm library for each authenticated party, and send the white box algorithm library corresponding to each authenticated party to each authenticated party; the white box algorithm library corresponding to any authenticated party is generated based on white box output coding obfuscation information, white box obfuscation rules and an authentication key generated by the authenticating party, the white box output coding obfuscation information is generated based on user fingerprint data, indicating a corresponding obfuscation transformation process; the user fingerprint data is obtained by encrypting the user information of the authenticated party using a verification key generated by the authenticating party;
[0093] an authentication unit, for receiving, for a party to be authenticated that currently requires identity authentication, an authentication credential and user information of the party to be authenticated, the authentication credential being obtained by encrypting a first challenge code generated by the authenticating party using a white box algorithm library generated by the authenticating party for the party to be authenticated; and
[0094] Using the verification key to encrypt the authenticated party user information to obtain user fingerprint data, using the user fingerprint data to generate an inverse transformation of the obfuscated transformation process; decrypting the authentication credential based on the inverse transformation and the authentication key to obtain a second challenge code; and,
[0095] Based on the second challenge code and the first challenge code, identity authentication is performed on the authenticated party.
[0096] Optionally, generating a corresponding white box algorithm library for each authenticated party includes:
[0097] For each authenticated party, encrypt the user information of the authenticated party using the verification key to obtain the user fingerprint data of the authenticated party, and perform specified processing on the user fingerprint data to generate white box output coded obfuscated information;
[0098] A white box algorithm library corresponding to the authenticated party is generated based on the white box output encoding obfuscation information and the authentication key.
[0099] Optionally, the cryptographic algorithm used when the white-box algorithm library is generated is the same as the cryptographic algorithm used when the authentication key is generated;
[0100] The cryptographic algorithm used when the verification key is generated is the same as or different from the cryptographic algorithm used when the authentication key is generated.
[0101] Optionally, the authentication key is randomly generated according to a first algorithm in a symmetric cryptographic algorithm; the white box algorithm library is randomly generated according to the first algorithm in a symmetric cryptographic algorithm;
[0102] The verification key is randomly generated according to a second algorithm in the symmetric encryption algorithm; the second algorithm is the same as or different from the first algorithm.
[0103] Optionally, the generating the inverse transformation of the obfuscation transformation process by using the user fingerprint data includes:
[0104] Performing specified processing on the user fingerprint data to generate white-box output encoded obfuscated information;
[0105] Compute the inverse transform of the white-box output encoding obfuscated information.
[0106] Optionally, decrypting the authentication credential based on the inverse transformation and the authentication key to obtain a second challenge code includes:
[0107] Based on the inverse transformation, the authentication credentials are processed to obtain intermediate parameters;
[0108] The intermediate parameter is decrypted using the authentication key to obtain a second challenge code.
[0109] Optionally, the performing identity authentication on the authenticated party based on the second challenge code and the first challenge code includes:
[0110] Comparing the second challenge code with the first challenge code to see whether they meet a preset consistency requirement;
[0111] If yes, it is determined that the authenticated party passes the identity authentication;
[0112] If not, it is determined that the authenticated party has not passed the identity authentication.
[0113] So far, completed Figure 7 Structural description of the device shown.
[0114] See also Figure 8 , Figure 8 Another device structure diagram provided in an embodiment of the present application. The device is applied to the authenticated party, and the device includes:
[0115] A storage unit, used to store a white box algorithm library generated by the authenticator for the authenticated party;
[0116] The sending unit is used to obtain a first challenge code generated by the authenticating party when the authenticating party needs to perform identity authentication, encrypt the first challenge code using the white box algorithm library generated by the authenticating party for the authenticated party to obtain an authentication credential, and send the authentication credential and the user information of the authenticated party to the authenticating party, so that the authenticating party performs the following steps: Figure 1 The process shown.
[0117] The present application also provides Figure 7 or Figure 8 The hardware structure of the device shown. Fig. 9 , Fig. 9 This is a structural diagram of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0118] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.
[0119] Based on the same application concept as the above method, an embodiment of the present application further provides a computer program product, wherein the computer program product stores a computer program, and when the computer program is executed by a processor, the method disclosed in the above example of the present application is implemented.
[0120] Exemplarily, the above-mentioned machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device, which can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0121] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A lightweight identity authentication method, characterized in that: The method is applied to an authenticator, and comprises: Generate a corresponding white box algorithm library for each authenticated party, and send the corresponding white box algorithm library to each authenticated party; the white box algorithm library corresponding to any authenticated party is generated based on at least white box output coding obfuscation information and an authentication key generated by the authenticating party, the white box output coding obfuscation information is generated based on user fingerprint data, indicating a corresponding obfuscation transformation process; the user fingerprint data is obtained by encrypting the user information of the authenticated party using the verification key generated by the authenticating party; For an authenticated party that currently needs identity authentication, receiving an authentication credential and authenticated party user information sent by the authenticated party; the authentication credential is obtained by the authenticated party encrypting a first challenge code generated by the authenticating party using a white box algorithm library generated by the authenticating party for the authenticated party; The user information of the authenticated party is encrypted using the verification key to obtain user fingerprint data, and the inverse transformation of the obfuscated transformation is generated using the user fingerprint data; the authentication credential is decrypted based on the inverse transformation and the authentication key to obtain a second challenge code; Based on the second challenge code and the first challenge code, identity authentication is performed on the authenticated party.
2. The method according to claim 1, characterized in that The generating of a corresponding white box algorithm library for each authenticated party includes: For each authenticated party, encrypt the user information of the authenticated party using the verification key to obtain the user fingerprint data of the authenticated party, and perform specified processing on the user fingerprint data to generate white box output coded obfuscated information; A white box algorithm library corresponding to the authenticated party is generated based on the white box output encoding obfuscation information and the authentication key.
3. The method according to claim 1, characterized in that: The cryptographic algorithm used when the white-box algorithm library is generated is the same as the cryptographic algorithm used when the authentication key is generated; The cryptographic algorithm used when the verification key is generated is the same as or different from the cryptographic algorithm used when the authentication key is generated.
4. The method according to claim 3, characterized in that The authentication key is randomly generated according to the first algorithm in the symmetric cryptographic algorithm; the white box algorithm library is randomly generated according to the first algorithm in the symmetric cryptographic algorithm; The verification key is randomly generated according to a second algorithm in the symmetric encryption algorithm; the second algorithm is the same as or different from the first algorithm.
5. The method according to claim 1, characterized in that The inverse transformation of the obfuscation transformation process generated by using the user fingerprint data includes: Performing specified processing on the user fingerprint data to generate white-box output encoded obfuscated information; Compute the inverse transform of the white-box output encoding obfuscated information.
6. The method according to claim 1, characterized in that The decrypting the authentication credential based on the inverse transformation and the authentication key to obtain a second challenge code comprises: Based on the inverse transformation, the authentication credentials are processed to obtain intermediate parameters; The intermediate parameter is decrypted using the authentication key to obtain a second challenge code.
7. The method according to claim 1, characterized in that The performing identity authentication on the authenticated party based on the second challenge code and the first challenge code includes: Comparing the second challenge code with the first challenge code to see whether they meet a preset consistency requirement; If yes, it is determined that the authenticated party passes the identity authentication; If not, it is determined that the authenticated party has not passed the identity authentication.
8. A lightweight identity authentication method, characterized in that: The method is applied to the authenticated party, and the method comprises: Receive and store the white box algorithm library generated by the authenticator for the authenticated party; When the authenticator is currently required to perform identity authentication, a first challenge code generated by the authenticator is obtained, the first challenge code is encrypted using a white box algorithm library generated by the authenticator for the authenticated party to obtain an authentication credential, and the authentication credential and the user information of the authenticated party are sent to the authenticator, so that the authenticator executes the steps in any one of the methods as claimed in claims 1 to 7.
9. A lightweight identity authentication system, characterized in that: The system comprises: an authenticator and a plurality of authenticated parties; The authenticator performs the steps in any method of claims 1 to 7; Any of the authenticated parties performs the steps as claimed in claim 8.
10. A lightweight identity authentication device, characterized in that: The device is applied to an authenticator, and comprises: A generating unit is used to generate a corresponding white box algorithm library for each authenticated party, and send the white box algorithm library corresponding to each authenticated party to each authenticated party; the white box algorithm library corresponding to any authenticated party is generated based on white box output coding obfuscation information, white box obfuscation rules and an authentication key generated by the authenticating party, the white box output coding obfuscation information is generated based on user fingerprint data, indicating a corresponding obfuscation transformation process; the user fingerprint data is obtained by encrypting the user information of the authenticated party using a verification key generated by the authenticating party; an authentication unit, for receiving, for a party to be authenticated that currently requires identity authentication, an authentication credential and user information of the party to be authenticated, the authentication credential being obtained by encrypting a first challenge code generated by the authenticating party using a white box algorithm library generated by the authenticating party for the party to be authenticated; and Using the verification key to encrypt the authenticated party user information to obtain user fingerprint data, using the user fingerprint data to generate an inverse transformation of the obfuscated transformation process; decrypting the authentication credential based on the inverse transformation and the authentication key to obtain a second challenge code; and, Based on the second challenge code and the first challenge code, identity authentication is performed on the authenticated party.
11. A lightweight identity authentication device, characterized in that: The device is applied to the authenticated party, and the device includes: A storage unit, used to store a white box algorithm library generated by the authenticator for the authenticated party; A sending unit is used to obtain a first challenge code generated by the authenticating party when the authenticating party is currently required to perform identity authentication, encrypt the first challenge code using a white box algorithm library generated by the authenticating party for the authenticated party to obtain an authentication credential, and send the authentication credential and user information of the authenticated party to the authenticating party, so that the authenticating party executes the steps in any one of the methods as claimed in claims 1 to 7.
Citation Information
Patent Citations
Bidirectional authentication method and system, server and terminal
CN110690956A
Internet of things, identity authentication and secret communication method, chip, equipment and medium
CN113132087A
Identity authentication and key distribution method and system based on white-box cryptographic algorithm
CN117201076A
Methods for securely storing sensitive data on mobile device
US20180137272A1
Method for provisioning white-box assets and corresponding device, server and system
WO2020182956A1
