Data processing method, device and equipment

By verifying the legitimacy of the business public key and signature verification in the trusted execution environment of the terminal device, the problem of the terminal device being unable to provide services in an offline state is solved, and secure business processing and identity verification are achieved.

CN115941336BActive Publication Date: 2024-10-01ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211591580.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2024-10-01
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

The terminal device cannot interact with the server in the offline state, resulting in the inability to verify user identity information and provide related services. A solution is needed to provide secure business services in the offline state.

Method used

By using the business public key and the device public key for verification in a trusted execution environment, the server obtains the legitimacy of the business public key, and when the client is offline, it performs signature and verification based on the target verification information to determine whether Execute target business.

Benefits of technology

It ensures the security of the link from the terminal device to the server, and ensures the security of business processing through the business public key when the client is offline to prevent malicious attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941336B_ABST
    Figure CN115941336B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a data processing method, apparatus and device, the method comprising: when a client is online, based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, and the client private key and the device public key in the server, obtaining a first verification result of the legitimacy of the business public key by the server; when it is determined that the business public key has passed the legitimacy verification based on the first verification result, and when the client is offline, when a processing request for a target business from a target user is received, obtaining target verification information of the target user; obtaining a signed second verification result; and when the signed second verification result is successfully verified based on the business public key, determining whether to execute the target business based on the second verification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a data processing method, device and equipment. Background Art

[0002] With the continuous development of computer technology, terminal devices have become necessities in people's lives and work, and the types of network services that terminal devices can provide to users are increasing.

[0003] However, since the terminal device cannot achieve network connection in many scenarios, this will result in the terminal device being unable to provide relevant services to the user. For example, since the terminal device is offline and cannot interact with the server, the terminal device cannot verify the user's identity information or provide further services to the user (such as login services, data viewing services, etc.). Therefore, a solution is needed that can provide users with secure business services in an offline state. Summary of the invention

[0004] The purpose of the embodiments of this specification is to provide a solution that can provide users with secure business services in an offline state.

[0005] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:

[0006] In a first aspect, an embodiment of the specification provides a data processing method, which is applied to a client, and the method includes: when the client is online, based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, the client private key and the device public key in the server, obtain the first verification result of the legitimacy of the business public key by the server, wherein the device public key is used to verify the legitimacy of the business public key. When it is determined based on the first verification result that the business public key passes the legitimacy verification, and when the client is offline, a processing request for a target business from a target user is received, the target verification information of the target user is obtained. A signed second verification result is obtained, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on the business private key corresponding to the business public key. When the signed second verification result is successfully verified based on the business public key, whether to execute the target business is determined based on the second verification result.

[0007] In the second aspect, the embodiments of this specification provide a data processing method, which is applied to the server, and the method includes: based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, and the client private key and device public key in the server, verify the legitimacy of the business public key to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key. The first verification result is sent to the client, so that when the client determines that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state, based on the business public key and the target verification information of the target user, it determines whether to execute the target business triggered by the target user.

[0008] In a third aspect, an embodiment of the specification provides a data processing device, the device comprising: a first verification module, used to obtain a first verification result of the legitimacy of the business public key by the server based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the data processing device, the client private key and the device public key in the server when the data processing device is in an online state, wherein the device public key is used to verify the legitimacy of the business public key. An information acquisition module, used to obtain the target verification information of the target user when it is determined that the business public key passes the legitimacy verification based on the first verification result and when the data processing device is in an offline state and a processing request for a target business from the target user is received. A result acquisition module, used to obtain a signed second verification result, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on the business private key corresponding to the business public key. A verification module, used to determine whether to execute the target business based on the second verification result when the signed second verification result is successfully verified based on the business public key.

[0009] In a fourth aspect, an embodiment of the present specification provides a data processing device, the device comprising: a verification module, for verifying the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, and the client private key and device public key in the data processing device, to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key. A sending module, for sending the first verification result to the client, so that the client determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user when the client determines that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state.

[0010] In a fifth aspect, an embodiment of the specification provides a data processing device, the data processing device comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor: when the data processing device is in an online state, based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the data processing device, the client private key and the device public key in the server, obtain the first verification result of the legitimacy of the business public key by the server, wherein the device public key is used to verify the legitimacy of the business public key. When it is determined based on the first verification result that the business public key passes the legitimacy verification, and when the data processing device is in an offline state, a processing request for a target business from a target user is received, the target verification information of the target user is obtained. The second verification result after signing is obtained, and the second verification result after signing is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on the business private key corresponding to the business public key. When the second verification result after signing is successfully verified based on the business public key, whether to execute the target business is determined based on the second verification result.

[0011] In a sixth aspect, an embodiment of the present specification provides a data processing device, the data processing device comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to: verify the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, the client private key and the device public key in the data processing device, and obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key. The first verification result is sent to the client, so that the client, when it is determined that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state, determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user.

[0012] In a seventh aspect, an embodiment of the specification provides a storage medium, the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when being executed: when the client is online, based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, the client private key and the device public key in the server, obtain the first verification result of the legitimacy of the business public key by the server, wherein the device public key is used to verify the legitimacy of the business public key. When it is determined based on the first verification result that the business public key passes the legitimacy verification, and when the client is offline, a processing request for a target business from a target user is received, the target verification information of the target user is obtained. The second verification result after signing is obtained, and the second verification result after signing is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on the business private key corresponding to the business public key. When the second verification result after signing is successfully verified based on the business public key, it is determined whether to execute the target business based on the second verification result.

[0013] In an eighth aspect, an embodiment of the present specification provides a storage medium, the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, the client private key and the device public key in the server, the legitimacy of the business public key is verified to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key. The first verification result is sent to the client, so that when the client determines that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state, based on the business public key and the target verification information of the target user, it determines whether to execute the target business triggered by the target user. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0015] Figure 1A A flowchart of an embodiment of a data processing method of this specification;

[0016] Figure 1B A schematic diagram of a processing process of a data processing method in this specification;

[0017] Figure 2 This is a schematic diagram of a key distribution in this specification;

[0018] Figure 3 A schematic diagram of a processing process of another data processing method of the present specification;

[0019] Figure 4 A schematic diagram of a processing process of another data processing method of the present specification;

[0020] Figure 5 This is a schematic diagram of the data processing process of this manual;

[0021] Fig. 6A A flowchart of another data processing method embodiment of the present specification;

[0022] Figure 6B A schematic diagram of a processing process of another data processing method of the present specification;

[0023] Figure 7This is a schematic diagram of the structure of a data processing device embodiment of the present specification;

[0024] Figure 8 This is a structural schematic diagram of another data processing device embodiment of the present specification;

[0025] Fig. 9 This is a schematic diagram of the structure of a data processing device in this specification. DETAILED DESCRIPTION

[0026] The embodiments of this specification provide a method, device and equipment for processing data.

[0027] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0028] Embodiment 1

[0029] like Figure 1A and 1B As shown, the embodiment of this specification provides a data processing method, and the execution subject of the method can be a terminal device corresponding to the client, and the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, or a terminal device such as a personal computer. The method can specifically include the following steps:

[0030] In S102, when the client is online, based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server, the server obtains a first verification result of the legitimacy of the business public key.

[0031] Among them, the terminal device may include a Trusted Execution Environment (TEE), which may be a secure area on the digital processor (such as CPU) of the terminal device that is separated from the Rich Execution Environment (REE) and is composed of a Trusted Application (TA) and a Trusted Operating System (TOS). TEE is separated from REE and REE applications to ensure that various sensitive data are stored, processed and protected in a trusted environment to ensure the confidentiality and integrity of data and code. At the same time, TEE provides a secure execution environment for the CA loaded therein, realizes secure storage, secure computing and other data processing involving security and privacy, and provides a hardware-level protection and security isolation. TEE runs in parallel with REE and can interact with REE through a secure API. TEE can run multiple TAs at the same time. When the terminal device leaves the factory, the manufacturer can produce a device public key (Device Public Key, DPK) and a device private key (Device priVate Key, DVK) for the terminal device corresponding to the client based on the first preset rule, and store the device public key in TEE. The client can also generate a device public key based on the first preset rule. TEE can generate a business private key (Bussiness priVate Key, BVK) and a business public key (Bussiness Public Key, BPK). The server can generate a client public key (Application Public Key, APK) and a client private key (Bussiness priVate Key, BVK) for the client based on the second preset rule. The client can also generate a client public key and a client private key for the client based on the second preset rule. The device public key can be used to verify the legitimacy of the business public key. The client can be a client of any application, for example, the client can be a client of a resource transfer application installed in the terminal device, a client of an instant messaging application, a client of a video viewing application, and one or more other clients.

[0032] In practice, with the continuous development of computer technology, terminal devices have become a necessity for people's lives and work, and the types of network services that terminal devices can provide to users are increasing. However, since the terminal device cannot achieve network connection in many scenarios, this will cause the terminal device to be unable to provide relevant services to the user. For example, since the terminal device cannot interact with the server in an offline state, the terminal device cannot verify the user's identity information, nor can it provide further services to the user (such as login services, data viewing services, etc.). Therefore, a solution that can provide users with secure business services in an offline state is required. To this end, the embodiments of this specification provide a technical solution that can solve the above problems, and the details can be found in the following content.

[0033] When the client is online, the target user can trigger the start of an offline verification service on the client. Upon receiving the start request of the offline verification service, the server can obtain the first verification result of the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server.

[0034] Taking the client as a client of a resource transfer application as an example, the target user can trigger the start of an offline verification service in the resource transfer application, and the client can receive the first encrypted business public key sent by TA, wherein the first encrypted business public key can be obtained by encrypting the business public key in the TEE using the device public key.

[0035] like Figure 2 As shown, the client decrypts the business public key encrypted for the first time through the device private key to obtain the business public key, and then the client can encrypt the business public key through the client public key to obtain the business public key encrypted for the second time, and send the business public key encrypted for the second time to the server. Finally, the server can decrypt the business public key encrypted for the second time through the client private key to obtain the business public key, and then the server can verify the legitimacy of the decrypted business public key through the device public key to obtain the first verification result.

[0036] The first verification result can be used to determine whether the offline verification service is successfully started. For example, if the first verification result is that the business public key passes the legitimacy verification, it indicates that the link from TEE to the client and then from the client to the server is secure, so the offline verification service can be started.

[0037] In addition, the client can also generate a device public key for the terminal device corresponding to the client based on the first preset rule, and when the business public key after the first encryption is decrypted to obtain the business public key, the legitimacy of the business public key is verified by the generated device public key. After the verification is passed, the business public key is encrypted again by the client public key to obtain the business public key after the second encryption.

[0038] The above-mentioned method for the first verification result is an optional and feasible determination method. In actual application scenarios, there may be a variety of different determination methods, which may vary according to different actual application scenarios. The embodiments of this specification do not make specific limitations on this.

[0039] In addition, before obtaining the first verification result of the server on the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server, the client may also authenticate the target user and, if the identity authentication is passed, obtain the first verification result of the server on the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server.

[0040] The client may collect biometric information (such as fingerprint data, iris data, etc.) of the target user, and perform identity authentication on the target user based on the pre-stored biometric information and the collected biometric information.

[0041] Alternatively, before obtaining the first verification result of the server on the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server, the client may also collect the target user's biometric information, and encrypt the biometric information based on the client public key to obtain encrypted biometric information, send the encrypted biometric information and the second encrypted business public key to the server, and receive the first verification result and identity authentication result returned by the server. When the identity authentication result is that the verification is passed and the first verification result indicates that the business public key has passed the legitimacy verification, the client may store the target user's biometric information. For example, the client may store the target user's biometric information in the TEE medium security firmware, which cannot be accessed without the target user's authorization.

[0042] In S104, when it is determined based on the first verification result that the business public key passes the legitimacy verification and when the client is in an offline state, a processing request for a target business from a target user is received, target verification information of the target user is obtained.

[0043] Among them, the target service can be any service that the client can provide, for example, the target service can be a login service, a data viewing service, a resource transfer service, etc., and the target verification information can be information entered by the target user that can be used to verify the identity of the target user, for example, the target verification information can be one or more information such as an account number and password, biometric information, etc. entered by the target user.

[0044] In implementation, when the client determines that the business public key has passed the legitimacy verification based on the first verification result, the security of the link from TEE to the client and from the client to the server can be determined. At the same time, the security of business processing can also be guaranteed through the business public key when the client is offline.

[0045] Taking the target service as the login service as an example, the target user can trigger the client of the resource transfer application in the terminal device and trigger the login service. When the client receives the target user's trigger to start the login service, it can obtain the fingerprint data entered by the target user.

[0046] In S106, a second verification result after signing is obtained.

[0047] The signed second verification result may be obtained by signing the second verification result corresponding to the target verification information based on the business private key corresponding to the business public key in the trusted execution environment.

[0048] Among them, the business public key and the business private key can be an asymmetric key pair. In an asymmetric key pair, since it is very difficult to factorize the product of two prime numbers, the product of the two prime numbers can be used as the public key in a public asymmetric key pair, and the combination of the two prime numbers constitutes the private key in the asymmetric key pair. The public key can be published to anyone for use, and the private key is used by oneself. The public key can be used for encryption, and the private key can be used for decryption, or the private key can also be used for signing, and the public key can be used to verify the validity of the signature.

[0049] During implementation, the client may input the target verification information input by the target user into the TEE, and verify the target verification information in the TEE to obtain a second verification result. For example, the first verification information of the target user may be pre-stored in the TEE, and the comparison result of the first verification information and the target verification information may be determined as the second verification result.

[0050] The above-mentioned method for determining the second verification result is an optional and feasible determination method. There may be a variety of different determination methods in actual application scenarios, which may vary according to different actual application scenarios. The embodiments of this specification do not make specific limitations on this.

[0051] After obtaining the second verification result, the second verification result can be signed in TEE using the business private key corresponding to the business public key to obtain the signed second verification result, and the signed second verification result is sent to the client, that is, the client can obtain the signed second verification result.

[0052] In S108, when the second verification result signed based on the business public key is successfully verified, it is determined whether to execute the target business based on the second verification result.

[0053] In implementation, the client may store a business public key, and the signed second verification result may be verified using the stored business public key. If the verification is successful, it is determined whether to execute the target business based on the second verification result.

[0054] For example, taking the target service as the login service, if the second verification result shows that the target verification information of the target user has passed the verification, the login verification can be completed. If the second verification result shows that the target verification information of the target user has failed the verification, the target user can be prohibited from logging in and a preset alarm message can be output. Alternatively, the client can also prompt the target user to enter the target verification information again and verify the target user through the re-entered target verification information. If the number of verification failures exceeds the number threshold, a preset alarm message can be output.

[0055] An embodiment of the present specification provides a method for processing data, which, when a client is online, obtains a first verification result of the legitimacy of the business public key by the server based on the business public key and device public key in a trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server, wherein the device public key is used to verify the legitimacy of the business public key, and when it is determined based on the first verification result that the business public key passes the legitimacy verification and when the client is offline, receives a processing request for a target business from a target user, obtains target verification information of the target user, and obtains a signed second verification result, the signed second verification result being obtained by signing the second verification result corresponding to the target verification information based on the business private key corresponding to the business public key in the trusted execution environment, and when the signed second verification result based on the business public key is successfully verified, determines whether to execute the target business based on the second verification result. In this way, when it is determined based on the first verification result that the business public key has passed the legitimacy verification, the security and reliability of the link from TEE to the client and from the client to the server can be determined. At the same time, the security of business processing can be guaranteed through the business public key when the client is offline. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is attacked maliciously, it can be effectively intercepted through TEE, thereby ensuring the security of business processing in offline state.

[0056] Embodiment 2

[0057] like Figure 3 and Figure 4 As shown, the embodiment of this specification provides a data processing method, and the execution subject of the method can be a terminal device corresponding to the client, and the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, or a terminal device such as a personal computer. The method can specifically include the following steps:

[0058] In S302, when the client is online, the signed business public key is obtained.

[0059] The signed business public key may be obtained by signing the business public key with the device public key in a trusted execution environment.

[0060] In implementation, Figure 5 As shown, in TEE, the business public key can be signed by the device public key to obtain the signed business public key, and the signed business public key is sent to the client.

[0061] In S304, when the signed business public key is successfully verified based on the device private key, the business public key is encrypted based on the client public key, and the encrypted business public key is sent to the server.

[0062] Among them, the client public key and the client private key are the keys generated by the server for the client.

[0063] In implementation, in actual applications, the above S304 can be processed in various ways. An optional implementation is provided below. For details, please refer to the following steps 1 to 2:

[0064] Step 1: Generate a device public key and verify the legitimacy of the business public key based on the device public key.

[0065] Step 2: When the legitimacy of the business public key is verified, the business public key is encrypted based on the client public key.

[0066] In implementation, in order to further ensure the security and reliability of the link between TEE and the client, a device public key can also be generated on the client to verify the legitimacy of the received business public key through the generated device public key, and if the legitimacy of the business public key is verified, the business public key can be encrypted based on the client public key.

[0067] In addition, if the legitimacy verification of the business public key is passed, the client can store the business public key.

[0068] In S306, a first verification result of the service public key is obtained from the server.

[0069] The first verification result may be a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

[0070] In S308, when it is determined based on the first verification result that the business public key has passed the legitimacy verification, the business public key is updated based on a preset update cycle.

[0071] The preset update cycle may be one week, half a month, or one month.

[0072] In implementation, when it is determined that the business public key has passed the legitimacy verification based on the first verification result, it can be determined that the links from TEE to the client and from the client to the server are secure and reliable. Therefore, when the business public key expires, the business public key can be updated, that is, the business public key can be updated based on the preset update cycle.

[0073] In S104, when it is determined based on the first verification result that the business public key passes the legitimacy verification and when the client is in an offline state, a processing request for a target business from a target user is received, target verification information of the target user is obtained.

[0074] In S106, a second verification result after signing is obtained.

[0075] The signed second verification result may be obtained by signing the second verification result corresponding to the target verification information based on the business private key corresponding to the business public key in the trusted execution environment.

[0076] After obtaining the second verification result, if Figure 3 As shown, S310 to S312 may be continued, or, as Figure 4 As shown, S314 to S316 may continue to be executed.

[0077] In S310, when the second verification result signed based on the business public key is successfully verified and when it is determined based on the second verification result that the target verification information is verified, the target business is executed.

[0078] In implementation, taking the target business as resource transfer business as an example, when the second verification result after signing based on the business public key is successfully verified, and when it is determined based on the second verification result that the target verification information is verified, the resource transfer can be processed through the offline account in an offline state based on the resource transfer quantity and resource transfer object entered by the target user.

[0079] In S312, when the client is online, the execution result of the target service is sent to the server.

[0080] During implementation, when the client is online, the execution result of the target business can be sent to the server, so that the server can update the data according to the execution business. For example, taking the target business as the resource transfer business, the client can send the execution result of the resource transfer (such as transferring the resource transfer quantity to the resource transfer object at a certain moment) to the server. In this way, the server can update the data of the target user's resource transfer account according to the execution result.

[0081] The above is explained using the resource transfer business as the target business. In actual application scenarios, there may be multiple types of target businesses, and there may be multiple corresponding data update processing methods on the server. For example, the target business may also be a data change business, and the target user may change personal information in the client. When the client is online, the change result of the personal information may be sent to the server, so that the server can update the target user's personal information.

[0082] In S314, when the second verification result signed based on the business public key is successfully verified and when it is determined based on the second verification result that the target verification information is verified, the target data required to execute the target business is acquired.

[0083] In implementation, taking the target business as resource transfer business as an example, when the second verification result after signing based on the business public key is successfully verified, and when it is determined based on the second verification result that the target verification information is verified, the target data required to execute the resource transfer business is obtained. For example, the target data can be the resource transfer quantity, resource transfer object, etc.

[0084] In S316, when the client is online, the target data is sent to the server, so that the server executes the target service based on the target data.

[0085] In implementation, taking the target business as resource transfer business as an example, when the client is online, the obtained target data methods such as resource transfer quantity, resource transfer object, etc. can be sent to the server, so that the server can execute the target business according to the target data.

[0086] In addition, taking the target business as a resource transfer business as an example, different execution methods can be selected according to the different resource transfer quantities. For example, if the resource transfer quantity is not greater than the preset transfer threshold, then after S106, S310 to S312 can be continued to be executed, that is, the target business can be executed through an offline account in an offline state. If the resource transfer quantity is greater than the preset transfer threshold, then after S106, S314 to S316 can be continued to be executed, that is, the target data can be obtained in an offline state, and when the client is online, the target data can be sent to the server for processing to ensure the security of the execution of the target business.

[0087] The above-mentioned method for selecting the execution mode of the target business is an optional and feasible selection method. In actual application scenarios, there may be many different selection methods. For example, the corresponding execution mode may be determined according to the preset risk level of the target business, etc., which may vary according to the actual application scenario. The embodiments of this specification do not make specific limitations on this.

[0088] An embodiment of the present specification provides a method for processing data, which, when a client is online, obtains a first verification result of the legitimacy of the business public key by the server based on the business public key and device public key in a trusted execution environment, the device private key and client public key in the client, and the client private key and device public key in the server, wherein the device public key is used to verify the legitimacy of the business public key, and when it is determined based on the first verification result that the business public key passes the legitimacy verification and when the client is offline, receives a processing request for a target business from a target user, obtains target verification information of the target user, and obtains a signed second verification result, the signed second verification result being obtained by signing the second verification result corresponding to the target verification information based on the business private key corresponding to the business public key in the trusted execution environment, and when the signed second verification result based on the business public key is successfully verified, determines whether to execute the target business based on the second verification result. In this way, when it is determined based on the first verification result that the business public key has passed the legitimacy verification, the security and reliability of the link from TEE to the client and from the client to the server can be determined. At the same time, the security of business processing can be guaranteed through the business public key when the client is offline. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is attacked maliciously, it can be effectively intercepted through TEE, thereby ensuring the security of business processing in offline state.

[0089] Embodiment 3

[0090] like Fig. 6A and 6B As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a server, and the server can be an independent server or a server cluster composed of multiple servers. The method can specifically include the following steps:

[0091] In S602, based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, and the client private key and device public key in the server, the legitimacy of the business public key is verified to obtain a first verification result.

[0092] Among them, the device public key can be used to verify the legitimacy of the business public key.

[0093] In implementation, the method for determining the first verification result may refer to the determination method in the above-mentioned Embodiments 1 to 2, and will not be described in detail here.

[0094] In S604, the first verification result is sent to the client, so that when the client determines that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state, it determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user.

[0095] In implementation, the first verification result sent by the server can also be an encrypted first verification result, that is, the server can encrypt the verification result of the legitimacy of the business public key based on the device public key to ensure the security of the first verification result during data transmission. In this way, the client can decrypt the first verification result through the device private key to obtain the server's verification result of the legitimacy of the business public key, and can determine based on the verification result that the business public key has passed the legitimacy verification, and when the client is offline, it can determine whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user.

[0096] The embodiment of this specification provides a data processing method, based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, and the client private key and device public key in the server, the legitimacy of the business public key is verified to obtain a first verification result, wherein the device public key can be used to verify the legitimacy of the business public key, and the first verification result is sent to the client, so that the client determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user when the business public key is determined to pass the legitimacy verification based on the first verification result and the client is in an offline state. In this way, when it is determined based on the first verification result that the business public key passes the legitimacy verification, the security and reliability of the link from the TEE to the client and the client to the server can be determined. At the same time, the security of business processing can be guaranteed by the business public key when the client is in an offline state. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is maliciously attacked, it can be effectively intercepted by TEE, thereby ensuring the security of business processing in an offline state.

[0097] Embodiment 4

[0098] The embodiments of the present specification provide a data processing system, which may include a client and a server, wherein the terminal device corresponding to the client may be a mobile terminal device such as a mobile phone, a tablet computer, or a terminal device such as a personal computer, and the server may be an independent server or a server cluster composed of multiple servers, wherein:

[0099] The server is used to verify the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, and the client private key and device public key in the server, to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key, and the first verification result is sent to the client.

[0100] The client is used to obtain target verification information of the target user and obtain a signed second verification result when it is determined based on a first verification result that the business public key has passed the legitimacy verification and when the client is in an offline state and receives a processing request from the target user for the target business. The signed second verification result is obtained by signing the second verification result corresponding to the target verification information based on the business private key corresponding to the business public key in a trusted execution environment. When the signed second verification result is successfully verified based on the business public key, it is determined whether to execute the target business based on the second verification result.

[0101] The embodiments of this specification provide a data processing system. When the client determines that the business public key has passed the legitimacy verification based on the first verification result, it can determine the security and reliability of the link from TEE to the client and the link from the client to the server. At the same time, the security of business processing can be guaranteed through the business public key when the client is offline. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is attacked maliciously, it can be effectively intercepted by TEE, thereby ensuring the security of business processing in the offline state.

[0102] Embodiment 5

[0103] The above is a data processing method provided in the embodiments of this specification. Based on the same idea, the embodiments of this specification also provide a data processing device, such as Figure 7 shown.

[0104] The data processing device includes: a first verification module 701, an information acquisition module 702, a result acquisition module 703 and a verification module 704, wherein:

[0105] The first verification module 701 is used to obtain a first verification result of the legitimacy of the business public key by the server based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the data processing device, and the client private key and the device public key in the server when the data processing device is in an online state, wherein the device public key is used to verify the legitimacy of the business public key;

[0106] The information acquisition module 702 is used to obtain the target verification information of the target user when it is determined that the business public key has passed the legitimacy verification based on the first verification result and when the data processing device is in an offline state and a processing request for a target business from a target user is received;

[0107] A result acquisition module 703 is used to acquire a signed second verification result, where the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on a business private key corresponding to the business public key;

[0108] The verification module 704 is used to determine whether to execute the target business based on the second verification result when the second verification result after the signature is successfully verified based on the business public key.

[0109] In the embodiment of this specification, the first verification module 701 is used to:

[0110] When the data processing device is in an online state, obtaining a signed business public key, wherein the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment;

[0111] When the signed business public key is successfully verified based on the device private key, encrypting the business public key based on the client public key and sending the encrypted business public key to the server;

[0112] Obtain a first verification result of the server for the business public key, the first verification result being a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

[0113] In the embodiment of this specification, the client public key and the client private key are keys generated by the server for the data processing device.

[0114] In the embodiment of this specification, the device further includes:

[0115] The key updating module is used to update the business public key based on a preset update cycle when it is determined that the business public key has passed the legitimacy verification based on the first verification result.

[0116] In the embodiment of this specification, the first verification module 701 is used to:

[0117] Generate the device public key, and verify the legitimacy of the business public key based on the device public key;

[0118] When the legitimacy verification of the business public key is passed, the business public key is encrypted based on the client public key.

[0119] In the embodiment of this specification, the result acquisition module 704 is used to:

[0120] If it is determined based on the second verification result that the target verification information has passed the verification, executing the target service;

[0121] When the data processing device is in an online state, the execution result of the target service is sent to the server.

[0122] In the embodiment of this specification, the result acquisition module 704 is used to:

[0123] When it is determined based on the second verification result that the target verification information has been verified, obtaining target data required for executing the target business;

[0124] When the data processing device is in an online state, the target data is sent to the server, so that the server executes the target service based on the target data.

[0125] An embodiment of the present specification provides a data processing device, which, when the data processing device is online, obtains a first verification result of the legitimacy of the business public key by the server based on the business public key and device public key in a trusted execution environment, the device private key and client public key in the data processing device, and the client private key and device public key in the server, wherein the device public key is used to verify the legitimacy of the business public key, and when it is determined based on the first verification result that the business public key passes the legitimacy verification and when the data processing device is offline, when a processing request for a target business from a target user is received, obtains target verification information of the target user, and obtains a signed second verification result, the signed second verification result being obtained by signing the second verification result corresponding to the target verification information based on the business private key corresponding to the business public key in the trusted execution environment, and when the signed second verification result is successfully verified based on the business public key, determine whether to execute the target business based on the second verification result. In this way, when it is determined based on the first verification result that the business public key has passed the legitimacy verification, the security and reliability of the link from TEE to the data processing device and the data processing device to the server can be determined. At the same time, when the data processing device is in an offline state, the security of business processing can be guaranteed through the business public key. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the data processing device is maliciously attacked, it can be effectively intercepted through TEE, thereby ensuring the security of business processing in an offline state.

[0126] Embodiment 6

[0127] The above is a data processing method provided in the embodiments of this specification. Based on the same idea, the embodiments of this specification also provide a data processing device, such as Figure 8 shown.

[0128] The data processing device includes: a verification module 801 and a sending module 802, wherein:

[0129] The verification module 801 is used to verify the legitimacy of the business public key based on the business public key and the device public key in the trusted execution environment of the client, the device private key and the client public key in the client, and the client private key and the device public key in the data processing device, to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key;

[0130] The sending module 802 is used to send the first verification result to the client, so that the client determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user when it determines that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state.

[0131] The embodiment of the present specification provides a data processing device, which verifies the legitimacy of the business public key based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, and the client private key and device public key in the data processing device, and obtains a first verification result, wherein the device public key can be used to verify the legitimacy of the business public key, and the first verification result is sent to the client, so that the client determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user when the client is in an offline state based on the first verification result. In this way, when it is determined that the business public key passes the legitimacy verification based on the first verification result, the security and reliability of the link from the TEE to the client and the client to the data processing device can be determined. At the same time, the security of business processing can be guaranteed by the business public key when the client is in an offline state. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is maliciously attacked, it can be effectively intercepted by TEE, thereby ensuring the security of business processing in an offline state.

[0132] Embodiment 7

[0133] Based on the same idea, the embodiment of this specification also provides a data processing device, such as Fig. 9 shown.

[0134] The data processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 901 and memory 902, and the memory 902 may store one or more storage applications or data. Among them, the memory 902 may be a short-term storage or a persistent storage. The application stored in the memory 902 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the data processing device. Furthermore, the processor 901 may be configured to communicate with the memory 902, and execute a series of computer executable instructions in the memory 902 on the data processing device. The data processing device may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input and output interfaces 905, and one or more keyboards 906.

[0135] Specifically in this embodiment, the data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the data processing device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:

[0136] When the data processing device is in an online state, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the data processing device, the client private key and the device public key in the server, obtaining a first verification result of the legitimacy of the business public key by the server, wherein the device public key is used to verify the legitimacy of the business public key;

[0137] When it is determined based on the first verification result that the business public key passes the legitimacy verification and when the data processing device is in an offline state, a processing request for a target business from a target user is received, obtaining target verification information of the target user;

[0138] Obtaining a signed second verification result, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on a business private key corresponding to the business public key;

[0139] In the case where the signed second verification result is successfully verified based on the business public key, whether to execute the target business is determined based on the second verification result.

[0140] Optionally, the obtaining, by the server, a first verification result of the legitimacy of the business public key based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the data processing device, and the client private key and the device public key in the server, comprises:

[0141] When the data processing device is in an online state, obtaining a signed business public key, wherein the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment;

[0142] When the signed business public key is successfully verified based on the device private key, encrypting the business public key based on the client public key and sending the encrypted business public key to the server;

[0143] Obtain a first verification result of the server for the business public key, the first verification result being a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

[0144] Optionally, the client public key and the client private key are keys generated by the server for a processing device of the data.

[0145] Optionally, the method further comprises:

[0146] When it is determined based on the first verification result that the business public key has passed the legitimacy verification, the business public key is updated based on a preset update cycle.

[0147] Optionally, encrypting the service public key based on the client public key includes:

[0148] Generate the device public key, and verify the legitimacy of the business public key based on the device public key;

[0149] When the legitimacy verification of the business public key is passed, the business public key is encrypted based on the client public key.

[0150] Optionally, the determining whether to execute the target service based on the second verification result includes:

[0151] If it is determined based on the second verification result that the target verification information has passed the verification, executing the target service;

[0152] When the data processing device is in an online state, the execution result of the target service is sent to the server.

[0153] Optionally, the determining whether to execute the target service based on the second verification result includes:

[0154] When it is determined based on the second verification result that the target verification information has been verified, obtaining target data required for executing the target business;

[0155] When the data processing device is in an online state, the target data is sent to the server, so that the server executes the target service based on the target data.

[0156] In addition, specifically in this embodiment, the data processing device may also include a trusted execution environment TEE and a security element based on encryption hardware. The data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the data processing device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:

[0157] Based on the business public key and the device public key in the trusted execution environment of the client, the device private key and the client public key in the client, and the client private key and the device public key in the data processing device, the legitimacy of the business public key is verified to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key;

[0158] The first verification result is sent to the client, so that when the client determines that the business public key has passed the legitimacy verification based on the first verification result and the client is in an offline state, the client determines whether to execute the target business triggered by the target user based on the business public key and the target verification information of the target user.

[0159] The embodiments of this specification provide a data processing device. When it is determined based on a first verification result that a business public key has passed the legitimacy verification, the security and reliability of the links from the TEE to the client and the client to the server can be determined. At the same time, the security of business processing can be guaranteed through the business public key when the client is offline. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is attacked maliciously, it can be effectively intercepted by TEE, thereby ensuring the security of business processing in the offline state.

[0160] Embodiment 8

[0161] The embodiments of this specification also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0162] The embodiments of this specification provide a computer-readable storage medium. When it is determined based on a first verification result that a business public key has passed the legitimacy verification, the security and reliability of the links from the TEE to the client and from the client to the server can be determined. At the same time, the security of business processing can be guaranteed through the business public key when the client is offline. In addition, since TEE can provide hardware-level protection and security isolation, even if the operating system of the terminal device corresponding to the client is attacked maliciously, it can be effectively intercepted by TEE, thereby ensuring the security of business processing in the offline state.

[0163] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0164] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0165] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0166] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0167] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0168] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0169] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0170] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0171] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0172] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0173] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0174] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0175] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0176] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0177] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0178] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0179] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A data processing method, applied to a client, comprising: When the client is online, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the client, and the client private key and the device public key in the server, obtaining a first verification result of the legitimacy of the business public key by the server, wherein the device public key is used to verify the legitimacy of the business public key; When it is determined based on the first verification result that the service public key passes the legitimacy verification and when the client is in an offline state, a processing request for a target service from a target user is received, obtaining target verification information of the target user; Obtaining a signed second verification result, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on a business private key corresponding to the business public key; In the case where the second verification result after the signature is successfully verified based on the business public key, determining whether to execute the target business based on the second verification result; The obtaining, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the client, the client private key and the device public key in the server, a first verification result of the legitimacy of the business public key by the server includes: When the client is online, obtaining a signed business public key, where the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment; When the signed business public key is successfully verified based on the device private key, encrypting the business public key based on the client public key and sending the encrypted business public key to the server; Obtain a first verification result of the server for the business public key, the first verification result being a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

2. According to the method of claim 1, the client public key and the client private key are keys generated by the server for the client.

3. The method according to claim 2, further comprising: When it is determined based on the first verification result that the business public key has passed the legitimacy verification, the business public key is updated based on a preset update cycle.

4. The method according to claim 3, wherein encrypting the service public key based on the client public key comprises: Generate the device public key, and verify the legitimacy of the business public key based on the device public key; When the legitimacy verification of the business public key is passed, the business public key is encrypted based on the client public key.

5. The method according to claim 4, wherein determining whether to execute the target service based on the second verification result comprises: If it is determined based on the second verification result that the target verification information has passed the verification, executing the target service; When the client is online, the execution result of the target service is sent to the server.

6. The method according to claim 4, wherein determining whether to execute the target service based on the second verification result comprises: When it is determined based on the second verification result that the target verification information has been verified, obtaining target data required for executing the target business; When the client is online, the target data is sent to the server, so that the server executes the target service based on the target data.

7. A data processing method, applied to a server, comprising: Based on the business public key and the device public key in the trusted execution environment of the client, the device private key and the client public key in the client, and the client private key and the device public key in the server, the legitimacy of the business public key is verified to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key; Sending the first verification result to the client, so that the client determines whether to execute the target service triggered by the target user based on the service public key and the target verification information of the target user when the client determines that the service public key passes the legitimacy verification based on the first verification result and the client is in an offline state; The business public key and the device public key in the trusted execution environment based on the client, the device private key and the client public key in the client, the client private key and the device public key in the server, verify the legitimacy of the business public key, and obtain a first verification result, including: After the encrypted business public key is decrypted based on the device public key to obtain the business public key, the legitimacy of the business public key is verified based on the client private key to obtain a first verification result, the encrypted business public key is obtained by encrypting the business public key based on the client public key when the client successfully verifies the signed business public key based on the device private key, the signed business public key is obtained by the client when the client is online, and the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment.

8. A data processing device, the device comprising: a first verification module, configured to obtain, when the data processing device is in an online state, a first verification result of the legitimacy of the business public key by the server based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the data processing device, the client private key and the device public key in the server, wherein the device public key is used to verify the legitimacy of the business public key; an information acquisition module, configured to acquire target verification information of a target user when it is determined that the business public key has passed the legitimacy verification based on the first verification result and when the data processing device is in an offline state and a processing request for a target business from a target user is received; A result acquisition module, used to acquire a signed second verification result, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on a business private key corresponding to the business public key; A verification module, configured to determine whether to execute the target service based on the second verification result when the second verification result after the signature is successfully verified based on the service public key; The first verification module is used to: When the data processing device is in an online state, obtaining a signed business public key, wherein the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment; When the signed business public key is successfully verified based on the device private key, encrypting the business public key based on the client public key and sending the encrypted business public key to the server; Obtain a first verification result of the server for the business public key, the first verification result being a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

9. A data processing device, the device comprising: A verification module, configured to verify the legitimacy of the business public key based on the business public key and the device public key in the trusted execution environment of the client, the device private key and the client public key in the client, and the client private key and the device public key in the data processing device, to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key; A sending module, configured to send the first verification result to the client, so that the client determines whether to execute the target service triggered by the target user based on the service public key and the target verification information of the target user when the client determines that the service public key has passed the legitimacy verification based on the first verification result and the client is in an offline state; The verification module is used to: After the encrypted business public key is decrypted based on the device public key to obtain the business public key, the legitimacy of the business public key is verified based on the client private key to obtain a first verification result, the encrypted business public key is obtained by encrypting the business public key based on the client public key when the client successfully verifies the signed business public key based on the device private key, the signed business public key is obtained by the client when the client is online, and the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment.

10. A data processing device, the data processing device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: When the data processing device is in an online state, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the data processing device, the client private key and the device public key in the server, obtaining a first verification result of the legitimacy of the business public key by the server, wherein the device public key is used to verify the legitimacy of the business public key; When it is determined based on the first verification result that the business public key passes the legitimacy verification and when the data processing device is in an offline state, a processing request for a target business from a target user is received, obtaining target verification information of the target user; Obtaining a signed second verification result, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on a business private key corresponding to the business public key; In the case where the second verification result after the signature is successfully verified based on the business public key, determining whether to execute the target business based on the second verification result; The obtaining, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the client, the client private key and the device public key in the server, a first verification result of the legitimacy of the business public key by the server includes: When the client is online, obtaining a signed business public key, where the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment; When the signed business public key is successfully verified based on the device private key, encrypting the business public key based on the client public key and sending the encrypted business public key to the server; Obtain a first verification result of the server for the business public key, the first verification result being a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

11. A data processing device, the data processing device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Based on the business public key and the device public key in the trusted execution environment of the client, the device private key and the client public key in the client, and the client private key and the device public key in the data processing device, the legitimacy of the business public key is verified to obtain a first verification result, wherein the device public key is used to verify the legitimacy of the business public key; Sending the first verification result to the client, so that the client determines whether to execute the target service triggered by the target user based on the service public key and the target verification information of the target user when the client determines that the service public key passes the legitimacy verification based on the first verification result and the client is in an offline state; The business public key and the device public key in the trusted execution environment based on the client, the device private key and the client public key in the client, the client private key and the device public key in the server, verify the legitimacy of the business public key, and obtain a first verification result, including: After the encrypted business public key is decrypted based on the device public key to obtain the business public key, the legitimacy of the business public key is verified based on the client private key to obtain a first verification result, the encrypted business public key is obtained by encrypting the business public key based on the client public key when the client successfully verifies the signed business public key based on the device private key, the signed business public key is obtained by the client when the client is online, and the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment.

12. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: When the client is online, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the client, the client private key and the device public key in the server, the first verification result of the legitimacy of the business public key by the server is obtained, wherein: The device public key is used to verify the legitimacy of the business public key; When it is determined based on the first verification result that the service public key passes the legitimacy verification and when the client is in an offline state, a processing request for a target service from a target user is received, obtaining target verification information of the target user; Obtaining a signed second verification result, wherein the signed second verification result is obtained by signing the second verification result corresponding to the target verification information in the trusted execution environment based on a business private key corresponding to the business public key; In the case where the second verification result after the signature is successfully verified based on the business public key, determining whether to execute the target business based on the second verification result; The obtaining, based on the business public key and the device public key in the trusted execution environment, the device private key and the client public key in the client, the client private key and the device public key in the server, a first verification result of the legitimacy of the business public key by the server includes: When the client is online, obtaining a signed business public key, where the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment; When the signed business public key is successfully verified based on the device private key, encrypting the business public key based on the client public key and sending the encrypted business public key to the server; Obtain a first verification result of the server for the business public key, the first verification result being a verification result obtained by the server after decrypting the encrypted business public key based on the device public key to obtain the business public key, and then verifying the legitimacy of the business public key based on the client private key.

13. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Based on the business public key and device public key in the trusted execution environment of the client, the device private key and client public key in the client, the client private key and the device public key in the server, the legitimacy of the business public key is verified to obtain a first verification result, wherein, The device public key is used to verify the legitimacy of the business public key; Sending the first verification result to the client, so that the client determines whether to execute the target service triggered by the target user based on the service public key and the target verification information of the target user when the client determines that the service public key passes the legitimacy verification based on the first verification result and the client is in an offline state; The business public key and the device public key in the trusted execution environment based on the client, the device private key and the client public key in the client, the client private key and the device public key in the server, verify the legitimacy of the business public key, and obtain a first verification result, including: After the encrypted business public key is decrypted based on the device public key to obtain the business public key, the legitimacy of the business public key is verified based on the client private key to obtain a first verification result, the encrypted business public key is obtained by encrypting the business public key based on the client public key when the client successfully verifies the signed business public key based on the device private key, the signed business public key is obtained by the client when the client is online, and the signed business public key is obtained by signing the business public key with the device public key in the trusted execution environment.