Application calling method and device, electronic equipment and storage medium
By determining the calling mechanism and performing identity verification in the rich execution environment, the problem in the existing technology that any client application can call trusted applications is solved, the probability of information leakage is reduced, and data security and calling efficiency are improved.
Patent Information
- Application Number
- CN202410865799.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-29
AI Technical Summary
In the existing technology, in a trusted execution environment, any client application can initiate a call request to the trusted operating system, which increases the probability of information leakage and increases information security risks.
By obtaining the call request in the rich execution environment, determine whether the call mechanism is a normal or confidential call mechanism, determine the target trusted application according to the mechanism, and perform identity verification when the confidential call is made, reject call requests whose timestamps are not within the time window, and generate and Decrypt the session key to verify the client app's identity data.
It reduces the probability of information leakage, enhances data security, reduces the occupation of system resources by invalid call requests, and improves call efficiency and security.
Smart Images

Figure CN118862043A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a method, device, electronic device and storage medium for application invocation. Background Art
[0002] In application scenarios where security and openness coexist, two execution environments are usually established on the device through chip-level isolation, namely the rich execution environment and the trusted execution environment. The rich execution environment is used to handle businesses with higher requirements for functionality and openness, and the trusted execution environment is used to handle businesses with higher requirements for security.
[0003] When a client application in a rich execution environment needs to perform a high-security operation, the execution subject needs to be completed through a trusted application program in a trusted execution environment. In the prior art, a client application sends a call request to a trusted operating system in a trusted execution environment via a rich operating system in a rich execution environment, so as to call the trusted application service corresponding to the request through the trusted operating system.
[0004] However, in the prior art, during the trusted application call process, any client application can initiate a trusted application call request to the trusted operating system, or intercept trusted data during data transmission, which increases the probability of information leakage and increases information security risks. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for application calling, so as to reduce information security risks, reduce the probability of information leakage and improve data security.
[0006] In a first aspect, an embodiment of the present application provides a method for application calling, which is applied to a trusted operating system in a trusted execution environment, comprising:
[0007] Obtaining a call request sent by a rich operating system in a rich execution environment, where the call request is a call request of a client application in the rich execution environment and is used to call a target trusted application in a trusted execution environment;
[0008] Determine the calling mechanism corresponding to the calling request, which includes a common calling mechanism and a confidential calling mechanism; determine the target trusted application according to the calling mechanism;
[0009] When the calling mechanism is a common calling mechanism, the target trusted application is called; when the calling mechanism is a confidential calling mechanism, the client application is authenticated and the calling request is responded to according to the authentication result.
[0010] Optionally, determining a time window corresponding to the target trusted application, the time window including a start point and a length of the time window;
[0011] If the timestamp corresponding to the call request is within the time window, the client application is denied from calling the target trusted application;
[0012] Accordingly, when the calling mechanism is a normal calling mechanism, the target trusted application is called; when the calling mechanism is a confidential calling mechanism, the client application is authenticated, and the calling request is responded to according to the authentication result, including:
[0013] If the timestamp corresponding to the call request is not within the time window, then when the call mechanism is a normal call mechanism, the target trusted application is called; when the call mechanism is a confidential call mechanism, the client application is authenticated and the call request is responded to according to the authentication result;
[0014] When it is determined that the target trusted application is called, the starting point of the time window is updated according to the time when the target trusted application is called.
[0015] Optionally, historical call data of each trusted application is obtained, and a call frequency of each trusted application is determined according to the historical call data;
[0016] The length of the time window corresponding to the trusted application is determined according to the calling frequency.
[0017] Optionally, authenticating the client application and responding to the call request according to the authentication result, including: generating a target public key and a target private key, and sending the target public key to the rich operating system; enabling the rich operating system to generate a session key, encrypting the identity data of the client application by the session key, generating encrypted identity data, encrypting the session key by the target public key to obtain an encryption key, generating an identity data packet according to the encryption key and the encrypted identity data, and sending the packet to the trusted operating system;
[0018] Obtain the identity data packet to obtain the encrypted identity data and encryption key; decrypt the encryption key using the target private key to obtain the session key; and decrypt the encrypted identity data using the session key to obtain the identity data of the client application;
[0019] Perform authentication based on the identity data of the client application and respond to the call request based on the authentication result.
[0020] Optionally, before obtaining the call request, the method further includes: determining a call mechanism for each trusted application;
[0021] Determine the client whitelist of trusted applications that have passed authentication for each confidential call mechanism, and check the identity data of the client application based on the client whitelist;
[0022] When it is determined that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
[0023] In a second aspect, an embodiment of the present application provides an application calling method, which is applied to a rich operating system in a rich execution environment, including:
[0024] Generate a call request, where the call request is a call request of a client application in a rich execution environment, and is used to call a target trusted application in a trusted execution environment, so that the trusted operating system in the trusted execution environment determines a call mechanism corresponding to the call request, and calls the target trusted application when the call mechanism is a common call mechanism, and sends an identity authentication request when the call mechanism is a confidential call mechanism;
[0025] According to the authentication request, the identity data of the client application is sent to the trusted operating system, so that the trusted operating system authenticates the client application and responds to the call request according to the authentication result.
[0026] Optionally, based on the authentication request, identity data of the client application is sent to the trusted operating system, including:
[0027] Generate a session key according to the identity authentication request, encrypt the identity data of the client application by using the session key, and generate encrypted identity data;
[0028] Obtain a target public key generated by the trusted operating system, and encrypt a session key using the target public key to generate an encryption key;
[0029] An identity data packet is generated according to the encryption key and the encrypted identity data and sent to the trusted operating system.
[0030] Optionally, the identity data of the client application is updated so that the trusted operating system determines the calling mechanism of each trusted application before obtaining the calling request, so as to determine the client whitelist of trusted applications that have passed the authentication of each confidential calling mechanism, and checks the identity data of the client application based on the client whitelist; and when it is determined that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
[0031] In a third aspect, an embodiment of the present application provides a device for application calling, including:
[0032] An acquisition module, used to acquire a call request sent by a rich operating system in a rich execution environment, where the call request is a call request of a client application in the rich execution environment, and is used to call a target trusted application in a trusted execution environment;
[0033] The first processing module is used to determine the calling mechanism corresponding to the calling request, the calling mechanism includes a common calling mechanism and a confidential calling mechanism; and determine the target trusted application according to the calling mechanism;
[0034] The first processing module is used to call the target trusted application when the calling mechanism corresponding to the calling request is a common calling mechanism, authenticate the client application when the calling mechanism corresponding to the calling request is a confidential calling mechanism, and respond to the calling request according to the authentication result.
[0035] Optionally, the first processing module is used to determine a time window corresponding to the target trusted application, where the time window includes a start point and a length of the time window;
[0036] If the timestamp corresponding to the call request is within the time window, the client application is denied from calling the target trusted application;
[0037] Accordingly, when the calling mechanism is a normal calling mechanism, the target trusted application is called; when the calling mechanism is a confidential calling mechanism, the client application is authenticated, and the calling request is responded to according to the authentication result, including:
[0038] If the timestamp corresponding to the call request is not within the time window, then when the call mechanism is a normal call mechanism, the target trusted application is called; when the call mechanism is a confidential call mechanism, the client application is authenticated and the call request is responded to according to the authentication result;
[0039] When it is determined that the target trusted application is called, the starting point of the time window is updated according to the time when the target trusted application is called.
[0040] Optionally, an acquisition module is used to acquire historical call data of each trusted application, and determine the call frequency of each trusted application according to the historical call data;
[0041] The length of the time window corresponding to the trusted application is determined according to the calling frequency.
[0042] Optionally, the first processing module is used to generate a target public key and a target private key, and send the target public key to the rich operating system; enable the rich operating system to generate a session key, encrypt the identity data of the client application by the session key, generate encrypted identity data, encrypt the session key by the target public key to obtain an encryption key, generate an identity data packet according to the encryption key and the encrypted identity data, and send it to the trusted operating system;
[0043] Obtain the identity data packet to obtain the encrypted identity data and encryption key; decrypt the encryption key using the target private key to obtain the session key; and decrypt the encrypted identity data using the session key to obtain the identity data of the client application;
[0044] Perform authentication based on the identity data of the client application and respond to the call request based on the authentication result.
[0045] Optionally, before obtaining the call request, the first processing module is used to determine the call mechanism of each trusted application;
[0046] Determine the client whitelist of trusted applications that have passed authentication for each confidential call mechanism, and check the identity data of the client application based on the client whitelist;
[0047] When it is determined that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
[0048] In a fourth aspect, an embodiment of the present application provides a device for application calling, including:
[0049] A second processing module is used to generate a call request, where the call request is a call request of a client application in a rich execution environment, and is used to call a target trusted application in a trusted execution environment, so that the trusted operating system in the trusted execution environment determines a call mechanism corresponding to the call request, and calls the target trusted application when the call mechanism is a common call mechanism, and sends an identity authentication request when the call mechanism is a confidential call mechanism;
[0050] The sending module is used to send the identity data of the client application to the trusted operating system according to the identity authentication request, so that the trusted operating system authenticates the client application and responds to the call request according to the identity authentication result.
[0051] Optionally, a sending module is used to generate a session key according to the identity authentication request, encrypt the identity data of the client application by the session key, and generate encrypted identity data;
[0052] Obtain a target public key generated by the trusted operating system, and encrypt a session key using the target public key to generate an encryption key;
[0053] An identity data packet is generated according to the encryption key and the encrypted identity data and sent to the trusted operating system.
[0054] Optionally, the second processing module is used to update the identity data of the client application in the rich execution environment, so that the trusted operating system determines the calling mechanism of each trusted application before obtaining the calling request, so as to determine the client whitelist of trusted applications that have passed the authentication of each confidential calling mechanism, and checks the identity data of the client application based on the client whitelist; when it is determined after the check that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
[0055] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0056] Memory stores computer-executable instructions;
[0057] The processor executes the computer-executable instructions stored in the memory, so that the processor executes various possible implementations of the first aspect and / or the second aspect as described above.
[0058] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement various possible implementations of the first aspect and / or the second aspect as described above.
[0059] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements various possible implementations of the first aspect and / or the second aspect as described above.
[0060] The application calling method, device, electronic device and storage medium provided in the embodiments of the present application send a calling request to the trusted operating system in the trusted execution environment through the rich operating system of the rich execution environment. After the trusted operating system obtains the calling request, the corresponding calling mechanism is determined according to the calling request, and the corresponding target trusted application is determined according to the calling mechanism. When the calling mechanism is a normal calling mechanism, the target trusted application is called. When the calling mechanism is a confidential calling mechanism, the client application is authenticated, and whether to call the target trusted application is determined according to the verification result, so as to reduce information security risks, reduce the probability of information leakage, and improve data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0062] Figure 1 A schematic diagram of a scenario of an application calling method provided in this application;
[0063] Figure 2 Schematic diagram of the application calling method provided by this application Figure 1 ;
[0064] Figure 3 A schematic diagram of the structure of the calling mechanism provided for this application;
[0065] Figure 4 Schematic diagram of the process of encrypting identity data for the rich operating system provided for this application;
[0066] Figure 5 A schematic diagram of the process of decrypting identity data provided by the trusted operating system for this application;
[0067] Figure 6Schematic diagram of the application calling method provided by this application Figure 2 ;
[0068] Figure 7 A schematic diagram of the structure of the window period provided for this application;
[0069] Figure 8 A schematic diagram of a scenario of another application calling method provided by the present application;
[0070] Fig. 9 Schematic diagram of the structure of the device called by the application provided in this application Figure 1 ;
[0071] Fig.10 Schematic diagram of the structure of the device called by the application provided in this application Figure 2 ;
[0072] Fig.11 A schematic diagram of the structure of the electronic device provided in this application.
[0073] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0074] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.
[0075] During the intelligent driving process of the car, the central control screen in the smart cockpit is used to interact with various applications. Some applications require privacy protection during use. Therefore, the existing technology uses a chip-level isolation mechanism to establish two complete execution environments on a device, and strictly isolates the CPU, memory, peripherals and other resources required for operation, thereby realizing a safe and open execution environment on the same device. The above two complete execution environments are a rich execution environment and a trusted execution environment, wherein the rich execution environment processes services with high requirements for functionality and openness, and the trusted execution environment processes services with high requirements for security and privacy. On devices where the rich execution environment and the trusted execution environment coexist, the client application in the rich execution environment and the trusted application in the trusted execution environment interact and collaborate with each other in real time to realize application calls between the client and the trusted application, thereby completing complete business services.
[0076] Figure 1 Scenario diagram of the method for application call provided in this application Figure 1 ,like Figure 1 As shown, the specific application scenario of the present application includes a rich execution environment 10 and a trusted execution environment 20, and data is transmitted between the rich operating system in the rich execution environment and the trusted operating system in the trusted execution environment through a secure channel. Among them, the rich execution environment includes multiple open applications or client applications (CA, Customer Application), and the trusted execution environment includes multiple trusted applications (TA, Trusted Application).
[0077] Currently, when a client application needs to perform some confidential operations involving personal privacy, data security and / or system information security, the client application generates a call request and enables the rich operating system to transmit the call request to the trusted execution environment through the channel of the security agent. The trusted operating system in the trusted execution environment then calls the corresponding trusted application via the communication service to execute specific trusted application services, thereby allowing operations involving privacy information to be performed in a secure and trusted environment.
[0078] However, in combination with the above scenario, it can be seen that in the prior art, the trusted operating system in the trusted execution environment allows the calling operation of each calling request, so any client application can call the indicated trusted application, which increases the probability of confidential information leakage and increases information security risks.
[0079] In addition, in the process of the rich operating system sending a call request to the trusted operating system, the call request is easily detected and obtained, and a large number of invalid call requests are initiated to the trusted operating system by copying the call request, resulting in a large amount of system resources of the trusted operating system being consumed, so that valid call requests cannot be responded to in time, affecting the normal operation of the system, reducing the response efficiency of valid trusted application calls, and when the trusted operating system calls the relevant trusted application based on the invalid call request, the data in the trusted application is leaked, reducing data security.
[0080] The application calling method provided by the present application sends a calling request to the trusted operating system in the trusted execution environment through the rich operating system in the rich execution environment. After the trusted operating system obtains the calling request, it determines the calling mechanism corresponding to the calling request, and determines the target trusted application and the time window of the labeled trusted application according to the calling mechanism. If it is determined that the timestamp of the calling request is within the time window, the target trusted application is not called; when it is determined that the calling mechanism is a confidential calling mechanism and the timestamp of the calling request is not within the time window, the client application is authenticated, and the target trusted application is allowed to be called after the verification is passed, and the target trusted application is not called if the verification fails. The security of the data related to the trusted application is enhanced, the probability of invalid calling requests occupying system resources is reduced, and the calling efficiency is further improved.
[0081] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0082] Figure 2 Schematic diagram of the application calling method provided by this application Figure 1 ,like Figure 2 As shown, the method includes:
[0083] S201: Obtain a call request sent by a rich operating system in a rich execution environment.
[0084] More specifically, the trusted operating system in the trusted execution environment obtains a call request sent by the rich operating system in the rich execution environment, wherein the call request is a call request of a client application in the rich execution environment, and is used to call a target trusted application in the trusted execution environment.
[0085] S202: Determine a calling mechanism corresponding to the calling request, and determine a target trusted application according to the calling mechanism.
[0086] More specifically, the trusted operating system in the trusted execution environment determines a calling mechanism corresponding to the calling request, wherein the calling mechanism includes a common calling mechanism and a confidential calling mechanism.
[0087] Optionally, the common calling mechanism is a service of a general trusted application executed by a trusted operating system in a trusted execution environment, such as a trusted encryption and decryption service and a trusted time service, etc. When any trusted application service corresponding to the common calling mechanism is called, it will not cause significant damage to system security and personal information. The confidential calling mechanism is a service of a special trusted application executed by a trusted operating system in a trusted execution environment, such as biometric information recognition and digital certificate access, etc. When any trusted application service corresponding to the confidential calling mechanism is called by an unauthenticated, legal and valid client application, it may cause significant damage to system security and personal information.
[0088] Optionally, the trusted operating system in the trusted execution environment determines a calling mechanism indicated by the calling request according to the acquired calling request, and determines a target trusted application according to the calling mechanism.
[0089] Optionally, the trusted execution environment includes multiple trusted applications and a calling mechanism for each trusted application, wherein the calling mechanism for each trusted application is configured for each trusted application separately before obtaining a calling request.
[0090] Figure 3 The structural diagram of the calling mechanism provided for this application is as follows: Figure 3 As shown, calling mechanisms are configured for N trusted applications respectively, and ordinary calling mechanisms corresponding to ordinary trusted application 1, ordinary trusted application 2, ..., ordinary trusted application a are obtained, as well as confidential calling mechanisms corresponding to confidential trusted application 1, confidential trusted application 2, ..., confidential trusted application b are obtained.
[0091] Optionally, each trusted application corresponding to the confidential call mechanism has a corresponding client whitelist, and the client whitelist is used to record identity data of client applications that have been authenticated as legal and valid by the trusted application in the trusted execution environment.
[0092] Exemplarily, the identity data in the form of a hash value is generated according to the binary data corresponding to the client application, and the identity data in the form of the hash value is used as the identity data of the client application in the client whitelist in the trusted execution environment. The hash value generation algorithm in the embodiment of the present application includes but is not limited to algorithms such as SHA256 and MD5.
[0093] Optionally, before obtaining the call request, the trusted operating system determines the calling mechanism of each trusted application; determines the client whitelist of trusted applications that have passed authentication for each confidential calling mechanism, and checks the identity data of the client application based on the client whitelist; and when it is determined after the check that the identity data of the client application in the rich execution environment is updated, updates the identity data of the client application in the client whitelist based on the updated identity data in the rich execution environment.
[0094] In a possible embodiment, before obtaining a call request, the trusted operating system in the trusted execution environment determines the call mechanism of each trusted application, and determines the client whitelist of each trusted application corresponding to the confidential call mechanism that has been authenticated, and based on the identifier of each client application in each client whitelist, determines whether the identity data of the client application corresponding to the identifier in the rich execution environment has been updated, and when it is determined that an update has occurred, updates the identity data of the client application corresponding to the identifier in the client whitelist according to the updated identity data. This application automatically checks the identity data of each client application in the client whitelist before obtaining a call request, so as to achieve timely update of identity data and improve call reliability.
[0095] Optionally, when a client application in a rich execution environment is upgraded, the rich operating system updates the hash value based on the binary data corresponding to the upgraded client application, and uses the updated hash value to identify the identity data of client applications with consistent identification in each client whitelist, wherein the client application with consistent identification is a client application in the client whitelist with the identification consistent with the client application that has been updated.
[0096] For example, Figure 3 As shown, the identity data of the client application 1 is recorded in the client whitelists corresponding to the confidential trusted application 1 and the confidential trusted application 2 in the trusted execution environment. When the client application 1 in the rich execution environment is upgraded, the hash value of the client application is updated according to the binary data corresponding to the upgraded client application, and the identity data in the client whitelist of the confidential trusted application 1 that is consistent with the identifier of the client application 1 and the identity data in the client whitelist of the confidential trusted application 2 that is consistent with the identifier of the client application 1 are determined, and the identity data of the client application 1 that is consistent with the above identifier is synchronously updated with the updated hash value.
[0097] S203: When the calling mechanism corresponding to the calling request is a common calling mechanism, calling the target trusted application.
[0098] S204: When the calling mechanism corresponding to the calling request is a confidential calling mechanism, authenticate the identity of the client application and respond to the calling request according to the authentication result.
[0099] More specifically, when the calling mechanism corresponding to the calling request is a confidential calling mechanism, the trusted operating system in the trusted execution environment authenticates the client application and responds to the calling request according to the authentication result.
[0100] Optionally, the trusted operating system in the trusted execution environment authenticates the client application including the following steps: the trusted operating system generates a target public key and a target private key, and sends the target public key to the rich operating system; the rich operating system generates a session key, encrypts the identity data of the client application with the session key, generates encrypted identity data, encrypts the session key with the target public key to obtain an encryption key, generates an identity data packet based on the encryption key and the encrypted identity data, and sends it to the trusted operating system.
[0101] In a possible embodiment, the rich operating system generates a call request, which is a call request of a client application in a rich execution environment, and is used to call a target trusted application in a trusted execution environment, so that the trusted operating system in the trusted execution environment determines the call mechanism corresponding to the call request, and calls the target trusted application when the call mechanism is a normal call mechanism, and sends an identity authentication request when the call mechanism is a confidential call mechanism. The rich operating system sends the identity data of the client application to the trusted operating system based on the identity authentication request, so that the trusted operating system authenticates the client application, and responds to the call request based on the identity authentication result. The present application sends the identity data of the client application to the trusted operating system by responding to the authentication request of the trusted operating system by the rich operating system, thereby providing a basis for the trusted operating system to authenticate the client application, and further enhancing the security of the data related to the trusted application.
[0102] In a possible embodiment, Figure 4 As shown, the rich operating system generates a session key based on the identity authentication request through a pseudo-random number generator, encrypts the identity data of the client application through the session key (the key corresponding to the session key) (the encrypted plaintext corresponding to the session key), and generates encrypted identity data (the ciphertext corresponding to the encrypted session key); encrypts the session key (the encrypted plaintext corresponding to the target public key) through the target public key (the key corresponding to the target public key) generated by the trusted operating system to generate an encryption key (the ciphertext corresponding to the target public key), combines the encryption key and the encrypted identity data, generates an identity data packet, and sends it to the trusted operating system.
[0103] Alternatively, if Figure 5 As shown, after the trusted operating system in the trusted execution environment obtains the identity data packet, it disassembles the identity data packet to obtain the encrypted identity data and the encryption key, and decrypts the encryption key by using the target private key (the key corresponding to the target private key) ( Figure 4 In the embodiment, the corresponding ciphertext after the target public key is encrypted) is obtained to obtain the session key ( Figure 4 In the embodiment, the target public key corresponds to the encrypted plaintext), through the session key ( Figure 4 The key corresponding to the session key in the embodiment) decrypts the encrypted identity data ( Figure 4The corresponding ciphertext after the session key is encrypted in the embodiment) is used to obtain the identity data of the client application ( Figure 4 In the embodiment, the session key corresponds to the encrypted plaintext), thereby performing identity authentication according to the identity data of the client application, and responding to the call request according to the identity authentication result. Among them, the session key is a symmetric key, and the target public key and the target private key are asymmetric keys.
[0104] In a possible embodiment, when the trusted operating system in the trusted execution environment determines that the calling mechanism corresponding to the call request is a confidential calling mechanism, the trusted operating system generates a set of public-private key pairs through an asymmetric encryption algorithm, the public-private key pair includes a target public key and a target private key, and sends the target public key to the rich operating system in the rich execution environment. Optionally, the asymmetric encryption algorithms in the embodiments of the present application include but are not limited to algorithms such as RSA, DSA, and ECC. When the present application determines that the calling mechanism is a confidential calling mechanism, it triggers the identity authentication process for the client application, reduces the probability of information leakage, and instructs the rich operating system to encrypt the identity data and session key through an asymmetric encryption algorithm, further enhancing information security.
[0105] Optionally, after the trusted operating system in the trusted execution environment obtains the identity data of the client application, it determines the confidential calling mechanism corresponding to the call request, and determines the various client applications in the client whitelist that have been authenticated by the target trusted application based on the confidential calling mechanism, determines the client application that is consistent with the client application identifier that issues the call request from the client whitelist, and compares and verifies the identity data corresponding to the client application with the consistent identifier in the client whitelist with the identity data sent by the rich operating system. If the identity data are consistent, the target trusted application is called; if the identity data are inconsistent, the call to the target trusted application is rejected.
[0106] The application calling method provided in the embodiment of the present application determines the client whitelist by determining the trusted application corresponding to each confidential calling mechanism through the trusted operating system, so as to determine the calling mechanism of the trusted application based on the client whitelist corresponding to the trusted application. After the trusted operating system receives the calling request sent by the rich operating system, when it is determined that the calling request is a confidential calling request, the client application that issued the request is verified, and when it is determined that the identity data of the client application in the rich execution environment is consistent with the identity data of the client application in the client whitelist, the trusted application indicated by the calling request is called, thereby solving the technical problem that any client application can call the indicated trusted application, reducing the possibility of confidential information leakage, and enhancing information security.
[0107] Figure 6 Schematic diagram of the application calling method provided by this application Figure 2 ,like Figure 6 As shown, in this embodiment Figure 2Based on the embodiment, before calling the target trusted application in step S203 and / or before authenticating the client application in step S204, the method includes:
[0108] S601: Determine a time window corresponding to a target trusted application.
[0109] More specifically, after the trusted operating system obtains the call request, it determines the time window corresponding to the target trusted application according to the call request, where the time window includes a start point and a length of the time window.
[0110] Exemplarily, the time window is a preset time interval, and each trusted application corresponds to a time window. After the trusted operating system obtains the call request, it determines the timestamp of the call request to determine whether the call request under the timestamp needs to be processed.
[0111] Optionally, Figure 7 The structural diagram of the window period provided for this application is as follows: Figure 7 As shown, the time window length corresponding to the target trusted application is Ts. The starting point of the first time window shown in the figure is time T1 and ends at time T2. The starting point of the second time window is time T4 and ends at time T5.
[0112] Optionally, the length of the time window of each trusted application is determined, and the specific steps include: the trusted operating system obtains historical call data of each trusted application, determines the call frequency of each trusted application based on the historical call data; and determines the length of the time window corresponding to the trusted application based on the call frequency.
[0113] Optionally, the trusted operating system obtains historical call data of each trusted application within a preset time period every preset period. For example, when the trusted operating system obtains historical call data of each trusted application within the previous 30 days every 30 days, the trusted operating system determines the call frequency of each trusted application within the previous 30 days based on the currently obtained historical call data of each trusted application within the previous 30 days, determines the latest time window of the corresponding trusted application based on the call frequency, and updates the previous time window based on the latest time window. The present application improves the filtering of invalid call requests and enhances the reliability of trusted application calls by updating the length of the corresponding time window in real time according to different trusted applications.
[0114] Optionally, before the trusted operating system obtains the calling request, the trusted operating system configures a corresponding calling mechanism for each trusted application.
[0115] Optionally, determine the confidentiality level of each trusted application, determine the time window corresponding to each trusted application with a confidentiality level below a threshold, configure a common calling mechanism for the corresponding trusted application according to each time window, and the time window of the trusted application corresponding to the common calling mechanism can be determined through any common calling mechanism.
[0116] In one possible embodiment, based on Figure 3 As shown in the structural diagram of the calling mechanism, before the trusted operating system obtains the calling request, the trusted operating system determines the time window a1 of the ordinary trusted application 1, and configures the ordinary calling mechanism corresponding to the ordinary trusted application 1 according to the time window a1; determines the time window a2 of the ordinary trusted application 2, and configures the ordinary calling mechanism corresponding to the ordinary trusted application 2 according to the time window a2; determines the time window aa of the ordinary trusted application a, and configures the ordinary calling mechanism corresponding to the ordinary trusted application a according to the time window aa.
[0117] Optionally, after determining the confidentiality level of each trusted application, determine the time window and customer whitelist corresponding to each trusted application whose confidentiality level is not lower than a threshold, and configure the corresponding confidential call mechanism of the trusted application according to each time window and the corresponding customer whitelist. The time window and customer whitelist of the trusted application corresponding to the confidential call mechanism can be determined through any confidential call mechanism.
[0118] In one possible embodiment, based on Figure 3 As shown in the structural diagram of the calling mechanism, the trusted operating system determines the time window b1 and client whitelist 1 of the confidential trusted application 1, and configures the confidential calling mechanism corresponding to the confidential trusted application 1 according to the time window b1 and client whitelist 1, wherein client whitelist 1 includes the identity data of the client application 1 and the identity data of the client application 2, etc.; determines the time window b2 and client whitelist 2 of the confidential trusted application 2, and configures the confidential calling mechanism corresponding to the confidential trusted application 2 according to the time window b2 and client whitelist 2, wherein client whitelist 2 includes the identity data of the client application 3 and the identity data of the client application 4, etc.; determines the time window bb and client whitelist b of the confidential trusted application b, and configures the confidential calling mechanism corresponding to the confidential trusted application b and client whitelist b according to the time window bb, wherein client whitelist b includes the identity data of the client application 5 and the identity data of the client application 6, etc.
[0119] Optionally, after obtaining the call request, the trusted operating system determines a call mechanism corresponding to the call request, and determines a target trusted application and a time window of the target trusted application according to the call mechanism.
[0120] In one possible embodiment, based on Figure 3The structural diagram of the calling mechanism shown in the figure shows that when the calling mechanism is determined to be the ordinary calling mechanism of ordinary trusted application 1 according to the calling request, the time window a1 corresponding to ordinary trusted application 1 is determined according to the ordinary calling mechanism; when the calling mechanism is determined to be the ordinary calling mechanism of ordinary trusted application 2 according to the calling request, the time window a2 corresponding to ordinary trusted application 2 is determined according to the ordinary calling mechanism; when the calling mechanism is determined to be the ordinary calling mechanism of ordinary trusted application a according to the calling request, the time window aa corresponding to ordinary trusted application a is determined according to the ordinary calling mechanism. When the calling mechanism is determined to be the confidential calling mechanism of confidential trusted application 1 according to the calling request, the time window b1 corresponding to confidential trusted application 1 and the customer whitelist 1 are determined according to the confidential calling mechanism; when the calling mechanism is determined to be the confidential calling mechanism of confidential trusted application 2 according to the calling request, the time window b2 corresponding to confidential trusted application 2 and the customer whitelist 2 are determined according to the confidential calling mechanism; when the calling mechanism is determined to be the confidential calling mechanism of confidential trusted application b according to the calling request, the time window bb corresponding to confidential trusted application b and the customer whitelist b are determined according to the confidential calling mechanism.
[0121] S602: If the timestamp corresponding to the call request is within the time window, deny the client application from calling the target trusted application.
[0122] More specifically, if the timestamp corresponding to the call request is within the time window, the client application is denied from calling the target trusted application.
[0123] In a possible embodiment, Figure 7 As shown, after the trusted operating system obtains the mth call request, it determines the timestamp of the mth call request, and when it determines that the timestamp of the mth call request is within the time window, it rejects the client application indicated by the mth call request to call the target trusted application; after the trusted operating system obtains the m+1th call request, it determines the timestamp of the m+1th call request, and when it determines that the timestamp of the m+1th call request is within the time window, it rejects the client application indicated by the m+1th call request to call the target trusted application; after the trusted operating system obtains the m+2th call request, it determines the timestamp of the m+2th call request, and when it determines that the timestamp of the m+2th call request is within the time window, it rejects the client application indicated by the m+2th call request to call the target trusted application.
[0124] S603: If the timestamp corresponding to the call request is not within the time window, respond according to the call mechanism corresponding to the call request.
[0125] More specifically, if the timestamp corresponding to the call request is not within the time window, the call mechanism corresponding to the call request is further determined, and a corresponding response is made according to the call mechanism.
[0126] Optionally, if the timestamp corresponding to the call request is not within the time window, the target trusted application is called when the call mechanism corresponding to the call request is a common call mechanism.
[0127] In a possible embodiment, Figure 7 As shown, if the timestamp of the m+3th call request obtained by the trusted operating system is time T3, and time T3 is not within the current time window of the target trusted application, then when the calling mechanism corresponding to the m+3th call request is the ordinary calling mechanism, the target trusted application indicated by the m+3th call request is called.
[0128] Optionally, when it is determined that the target trusted application is called, the starting point of the time window is updated according to the time when the target trusted application is called.
[0129] In a possible embodiment, Figure 7 As shown, the target trusted application indicated by the m+3th call request is determined and called at time T3, and the target trusted application is called and completed at time T4. At this time, the time when the call is completed is used as the starting point of the next time window of the target trusted application, and the time interval between T4 and T5 is determined as the next time window, and the call request timestamp of the target trusted application obtained subsequently is determined to be within the time window according to the next time window. If the timestamps of the m+4th call request and the m+5th call request are both within the time window starting at T4, the m+4th call request and the m+5th call request to the target trusted application are rejected.
[0130] Optionally, if the timestamp corresponding to the call request is not within the time window, when the call mechanism corresponding to the call request is a confidential call mechanism, the client application is authenticated and the call request is responded to according to the authentication result.
[0131] In a possible embodiment, Figure 7 As shown in the figure, if the timestamp of the m+3th call request obtained by the trusted operating system is T3, and T3 is not within the current time window of the target trusted application, then when the call mechanism corresponding to the m+3th call request is a confidential call mechanism, the client application is authenticated and the call request is responded to according to the authentication result. Among them, the specific steps of authenticating the client application, its implementation principle and technical effect are similar to Figure 2 The embodiment shown is similar, and this embodiment will not be described in detail here.
[0132] The application calling method provided in the embodiment of the present application configures a corresponding time window for each trusted application, and uses the moment when each call request is processed as the starting point of the current time window. Call requests with timestamps within the current time window are rejected to screen out a large number of invalid call requests, reduce the occupancy of trusted operating system resources, and improve the response efficiency of the trusted operating system. The time window length of each trusted application is determined in a targeted manner based on historical call data to avoid slowing down the response to normal call requests due to the length of the time window being too long.
[0133] In a possible embodiment, in a smart car cockpit, when a user orders food through the "Ele.me" client on the central control screen, facial recognition is required at checkout. Figure 8 As shown, after the central control screen obtains the user's facial image, the biometric information of the user's facial image is entered into the hardware platform, and the biometric information is sent to the rich operating system through the secure channel of the hardware platform. The biometric client application and the biometric client service corresponding to the biometric client application are triggered through the rich operating system. After the biometric client service is triggered, a call request is generated, and the rich operating system sends the call request to the trusted operating system through the secure channel of the hardware platform.
[0134] Exemplarily, after the trusted operating system obtains a call request, it determines the confidential call mechanism corresponding to the call request through the trusted application and service management unit, and determines the corresponding biometric trusted application based on the confidential call mechanism, as well as the customer whitelist and time window corresponding to the biometric trusted application. Based on the call request, when it is determined that the timestamp of the call request is not within the time window, the trusted operating system sends the target public key to the rich operating system and stores the target private key to the trusted storage unit.
[0135] Exemplarily, after receiving the target public key, the rich operating system generates a session key and uses it to encrypt the identity data of the biometric client application. It also encrypts the target public key through the target public key and sends the encrypted identity data and encryption key to the trusted operating system.
[0136] Exemplarily, after the trusted operating system obtains the encrypted encrypted identity data and encryption key, it decrypts them through the decryption service unit to obtain the identity data of the biometric client application, and authenticates the obtained identity data of the biometric client application with the identity data in the client whitelist. If it is determined that the identity data of the biometric client application in the client whitelist is consistent with the data, the biometric trusted application is called.
[0137] Optionally, after the trusted operating system obtains a call request, when it determines through the trusted application and service management unit that the call mechanism corresponding to the call request is a normal call mechanism, it determines the corresponding trusted application based on the normal call mechanism, and the time window corresponding to the trusted application, and when it is determined based on the call request that the timestamp of the call request is not within the time window, the trusted operating system calls the trusted application.
[0138] Optionally, before the trusted operating system obtains the calling request, the calling mechanism of each trusted application is determined by the biometric information collection unit.
[0139] The application calling method provided in the embodiment of the present application improves the security of user personal information by authenticating the client application through a trusted operating system in a scenario where the user performs face recognition in the smart cockpit of a car, avoids economic losses caused by the leakage of face information, and reduces the possibility of initiating a large number of invalid call requests due to duplicate call requests by configuring a time window, avoids occupying trusted operating system resources, and ensures the normal operation of the trusted operating system.
[0140] Fig. 9 Schematic diagram of the structure of the device called by the application provided in this application Figure 1 ,like Fig. 9 As shown, the application calling device 90 provided in this embodiment includes:
[0141] An acquisition module 901 is used to acquire a call request sent by a rich operating system in a rich execution environment, where the call request is a call request of a client application in the rich execution environment, and is used to call a target trusted application in a trusted execution environment;
[0142] The first processing module 902 is used to determine the calling mechanism corresponding to the calling request, the calling mechanism includes a common calling mechanism and a confidential calling mechanism; and determine the target trusted application according to the calling mechanism;
[0143] The first processing module 902 is used to call the target trusted application when the calling mechanism corresponding to the calling request is a common calling mechanism, authenticate the client application when the calling mechanism corresponding to the calling request is a confidential calling mechanism, and respond to the calling request according to the authentication result.
[0144] Optionally, the first processing module 902 is used to determine a time window corresponding to the target trusted application, where the time window includes a start point and a length of the time window;
[0145] If the timestamp corresponding to the call request is within the time window, the client application is denied from calling the target trusted application;
[0146] Accordingly, when the calling mechanism is a normal calling mechanism, the target trusted application is called; when the calling mechanism is a confidential calling mechanism, the client application is authenticated, and the calling request is responded to according to the authentication result, including:
[0147] If the timestamp corresponding to the call request is not within the time window, then when the call mechanism is a normal call mechanism, the target trusted application is called; when the call mechanism is a confidential call mechanism, the client application is authenticated and the call request is responded to according to the authentication result;
[0148] When it is determined that the target trusted application is called, the starting point of the time window is updated according to the time when the target trusted application is called.
[0149] Optionally, the acquisition module 901 is used to acquire historical call data of each trusted application, and determine the call frequency of each trusted application according to the historical call data;
[0150] The length of the time window corresponding to the trusted application is determined according to the calling frequency.
[0151] Optionally, the first processing module 902 is used to generate a target public key and a target private key, and send the target public key to the rich operating system; enable the rich operating system to generate a session key, encrypt the identity data of the client application by the session key, generate encrypted identity data, encrypt the session key by the target public key to obtain an encryption key, generate an identity data packet according to the encryption key and the encrypted identity data, and send it to the trusted operating system;
[0152] Obtain the identity data packet to obtain the encrypted identity data and encryption key; decrypt the encryption key using the target private key to obtain the session key; and decrypt the encrypted identity data using the session key to obtain the identity data of the client application;
[0153] Perform authentication based on the identity data of the client application and respond to the call request based on the authentication result.
[0154] Optionally, before obtaining the call request, the first processing module 902 is used to determine the call mechanism of each trusted application;
[0155] Determine the client whitelist of trusted applications that have passed authentication for each confidential call mechanism, and check the identity data of the client application based on the client whitelist;
[0156] When it is determined that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
[0157] The device called by the application provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0158] Fig.10 Schematic diagram of the structure of the device called by the application provided in this application Figure 2 ,like Fig.10 As shown, the application calling device 100 provided in this embodiment includes:
[0159] The second processing module 1001 is used to generate a call request, where the call request is a call request of a client application in a rich execution environment, and is used to call a target trusted application in a trusted execution environment, so that the trusted operating system in the trusted execution environment determines a call mechanism corresponding to the call request, and calls the target trusted application when the call mechanism is a common call mechanism, and sends an identity authentication request when the call mechanism is a confidential call mechanism;
[0160] The sending module 1002 is used to send the identity data of the client application to the trusted operating system according to the identity authentication request, so that the trusted operating system authenticates the client application and responds to the call request according to the identity authentication result.
[0161] Optionally, the sending module 1002 is used to send the identity data of the client application to the trusted operating system according to the identity authentication request, including:
[0162] Generate a session key according to the identity authentication request, encrypt the identity data of the client application by using the session key, and generate encrypted identity data;
[0163] Obtain a target public key generated by the trusted operating system, and encrypt a session key using the target public key to generate an encryption key;
[0164] An identity data packet is generated according to the encryption key and the encrypted identity data and sent to the trusted operating system.
[0165] Optionally, the second processing module 1001 is used to update the identity data of the client application in the rich execution environment, so that the trusted operating system determines the calling mechanism of each trusted application before obtaining the calling request, so as to determine the client whitelist of trusted applications that have passed the authentication of each confidential calling mechanism, and checks the identity data of the client application based on the client whitelist; when it is determined after the check that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
[0166] The device called by the application provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0167] Fig.11 This is a schematic diagram of the structure of the electronic device provided in this application. Fig.11 As shown, the electronic device 110 provided in this embodiment includes: at least one processor 1101 and a memory 1102. Optionally, the device 110 further includes a communication component 1103. The processor 1101, the memory 1102 and the communication component 1103 are connected via a bus 1104.
[0168] In a specific implementation process, at least one processor 1101 executes the computer-executable instructions stored in the memory 1102, so that at least one processor 1101 executes the above method.
[0169] The specific implementation process of the processor 1101 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0170] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0171] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0172] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0173] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0174] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0175] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0176] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0177] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0178] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0179] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0180] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0181] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0182] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for application calling, characterized in that: A trusted operating system applied to a trusted execution environment, the method comprising: Acquire a call request sent by a rich operating system in a rich execution environment, where the call request is a call request of a client application in the rich execution environment and is used to call a target trusted application in a trusted execution environment; Determine a calling mechanism corresponding to the calling request, wherein the calling mechanism includes a common calling mechanism and a confidential calling mechanism; determine the target trusted application according to the calling mechanism; When the calling mechanism is a common calling mechanism, the target trusted application is called; when the calling mechanism is a confidential calling mechanism, the client application is authenticated and a response is made to the calling request according to the authentication result.
2. The method according to claim 1, characterized in that The method further comprises: Determine a time window corresponding to a target trusted application, the time window including a start point and a length of the time window; If the timestamp corresponding to the calling request is within the time window, refusing the client application to call the target trusted application; Accordingly, when the calling mechanism is a common calling mechanism, calling the target trusted application, when the calling mechanism is a confidential calling mechanism, authenticating the client application, and responding to the calling request according to the authentication result, including: If the timestamp corresponding to the call request is not within the time window, then when the call mechanism is a common call mechanism, the target trusted application is called, and when the call mechanism is a confidential call mechanism, the client application is authenticated, and the call request is responded to according to the authentication result; When it is determined that the target trusted application is called, the starting point of the time window is updated according to the time when the target trusted application is called.
3. The method according to claim 2, characterized in that The method comprises: Acquire historical call data of each trusted application, and determine the call frequency of each trusted application according to the historical call data; The length of the time window corresponding to the trusted application is determined according to the calling frequency.
4. The method according to any one of claims 1 to 3, characterized in that Authenticating the client application and responding to the call request according to the authentication result, including: Generate a target public key and a target private key, and send the target public key to the rich operating system; enable the rich operating system to generate a session key, encrypt the identity data of the client application by using the session key to generate encrypted identity data, encrypt the session key by using the target public key to obtain an encryption key, generate an identity data packet according to the encryption key and the encrypted identity data, and send it to the trusted operating system; Acquire the identity data packet to obtain encrypted identity data and an encryption key; decrypt the encryption key using the target private key to obtain a session key; and decrypt the encrypted identity data using the session key to obtain identity data of the client application; Authentication is performed according to the identity data of the client application, and a response is made to the call request according to the authentication result.
5. The method according to claim 4, characterized in that Before obtaining the call request, the method further includes: Determine the calling mechanism of each trusted application; Determine the client whitelist of trusted applications that have passed authentication for each confidential call mechanism, and check the identity data of the client application based on the client whitelist; When it is determined that the identity data of the client application in the rich execution environment is updated, the identity data of the client application in the client whitelist is updated according to the updated identity data in the rich execution environment.
6. A method for application calling, characterized in that: A rich operating system applied to a rich execution environment, the method comprising: Generate a call request, where the call request is a call request of a client application in a rich execution environment, and is used to call a target trusted application in a trusted execution environment, so that a trusted operating system in the trusted execution environment determines a call mechanism corresponding to the call request, and calls the target trusted application when the call mechanism is a common call mechanism, and sends an identity authentication request when the call mechanism is a confidential call mechanism; According to the identity authentication request, the identity data of the client application is sent to the trusted operating system, so that the trusted operating system authenticates the client application and responds to the call request according to the identity authentication result.
7. A device for application calling, characterized in that: Trusted operating systems used in trusted execution environments include: An acquisition module, used to acquire a call request sent by a rich operating system in a rich execution environment, wherein the call request is a call request of a client application in the rich execution environment, and is used to call a target trusted application in a trusted execution environment; A first processing module is used to determine a calling mechanism corresponding to the calling request, wherein the calling mechanism includes a common calling mechanism and a confidential calling mechanism; and determine the target trusted application according to the calling mechanism; The first processing module is used to call the target trusted application when the calling mechanism corresponding to the calling request is a common calling mechanism, authenticate the client application when the calling mechanism corresponding to the calling request is a confidential calling mechanism, and respond to the calling request according to the authentication result.
8. A device for application calling, characterized in that: Rich operating systems for rich execution environments, including: A second processing module is used to generate a call request, where the call request is a call request of a client application in a rich execution environment, and is used to call a target trusted application in a trusted execution environment, so that the trusted operating system in the trusted execution environment determines a call mechanism corresponding to the call request, and calls the target trusted application when the call mechanism is a common call mechanism, and sends an identity authentication request when the call mechanism is a confidential call mechanism; The sending module is used to send the identity data of the client application to the trusted operating system according to the identity authentication request, so that the trusted operating system authenticates the client application and responds to the call request according to the identity authentication result.
9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 5, or claim 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method according to any one of claims 1 to 5, or claim 6.
Citation Information
Patent Citations
Identity verification method and apparatus for trusted execution environment and terminal
CN106295350A
Malicious call protection method and device, equipment and computer readable medium
CN110096881A
Access control method and system for security application
CN111787006A
Trusted authentication and measurement method, server, terminal and readable storage medium
CN112565205A
Session data transmission method and device
CN112738048A
Cited By
Confidential virtual machine operating system, system call proxy method, terminal and medium
CN119806754A
Confidential Virtual Machine Operating System, System Call Agent Method, Terminal, and Medium
CN119806754B
