Image information secure transmission method and device, electronic equipment and server
By digitally signing the image information in the universal execution environment REE of the terminal device, the problems of security and integrity protection of image collection by the terminal device are solved, and the safe transmission of image information is realized.
Patent Information
- Application Number
- CN202410812172.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-24
AI Technical Summary
The system framework of existing terminal equipment cannot effectively protect images or videos collected by cameras, and there is a risk of being attacked. It cannot guarantee the security and image integrity of remote use of cameras.
In the general execution environment REE of electronic devices, the camera hardware module is called through the image information verification application module, the image data integrity protection module or the image data signature application module is used to digitally sign the image information, and the signature information is sent to the server to ensure Image integrity and security.
It effectively prevents image information from being tampered with, improves the security of remote camera use, and provides integrity protection for images captured by the camera.
Smart Images

Figure CN118694867A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and in particular, relates to a method, device, electronic equipment and server for secure transmission of image information. Background Art
[0002] With the popularization of smart terminals, the application of camera capabilities on terminals is becoming more and more extensive. For example, cameras are used for remote identity authentication, such as facial recognition and collection of ID information. However, the current terminal system framework has the risk of images or videos collected by the camera being attacked, and the security of remote use of the camera cannot be guaranteed, and integrity protection cannot be provided for images taken by the camera. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and server for secure transmission of image information, which can provide integrity protection for images taken by a camera.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for securely transmitting image information, which is applied to an electronic device, wherein the electronic device is deployed with a universal execution environment REE; the method comprises:
[0006] The image information verification application module running in REE calls the camera hardware module to obtain image information according to the camera use request message sent by the server;
[0007] The target module digitally signs the image information to obtain image signature information, wherein the target module includes an image data integrity protection module in a camera hardware abstraction layer module running in REE or an image data signature application module running in a trusted execution environment TEE;
[0008] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0009] Optionally, the image information verification application module running in the REE calls the camera hardware module to obtain the image information according to the camera use request message sent by the server, including at least one of the following:
[0010] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible;
[0011] The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
[0012] Optionally, when the image information verification application module running in the REE is credible in the electronic device, the camera hardware module is called according to the camera use request message to obtain the image information, the method further includes:
[0013] The image information verification application module running in the REE sends the camera use request message to the client application module of the camera framework layer running in the REE;
[0014] The client application module determines, based on the camera use request message, that the authenticity of the image captured by the camera hardware module needs to be verified, and sends a verification request to the image verification auxiliary trusted application module running in the TEE;
[0015] The client application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE through the image verification assisted trusted application module, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
[0016] Optionally, the image information verification application module running in the REE, when the electronic device is credible, calls the camera hardware module according to the camera use request message to obtain the image information, including:
[0017] The image information verification application module running in the REE sends a photo request message to the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE according to the camera use request message if the electronic device is credible;
[0018] The camera hardware abstraction layer module running in REE sends a photo request message to the camera driver module running in REE;
[0019] The camera driver module calls the camera hardware module;
[0020] The camera hardware abstraction layer module running in REE obtains image information;
[0021] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0022] Optionally, when the image information verification application module running in the REE is trustworthy in the electronic device, the image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain the image information, and the image information verification application module running in the REE sends the image signature information and the image information to the server, including:
[0023] The image information verification application module running in the REE receives the target information sent by the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE, wherein the target information includes the image signature information;
[0024] The image information verification application module running in REE sends the target information to the server;
[0025] Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or
[0026] In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0027] Optionally, the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, including:
[0028] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in the trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE;
[0029] The image information verification trusted application module sends a photo request message to the trusted camera service module running in the TEE;
[0030] The trusted camera service module calls the trusted camera driver module running in the TEE according to the photo request message to initiate a photo request;
[0031] The trusted camera driver module calls the camera hardware module;
[0032] The image information verification trusted application module running in TEE obtains image information;
[0033] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0034] Optionally, when determining that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the REE transmits a photo request message to the image information verification trusted application module running in the TEE, including:
[0035] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the REE sends a photo request message through the client application module running in the camera framework layer in the REE;
[0036] The photo request message includes at least one of the following:
[0037] Accuracy information of captured images;
[0038] Instructions for taking photos in a trusted environment;
[0039] Information to be photographed;
[0040] Business information.
[0041] Optionally, when the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, the target module digitally signs the image information to obtain image signature information, including:
[0042] The image data signature application module receives a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE;
[0043] The image data signature application module digitally signs the hash value using a device private key to obtain image signature information;
[0044] The image data signature application module sends the image signature information to the image information verification trusted application module.
[0045] Optionally, the image information verification application module running in the REE sends the image signature information and the image information to the server, including:
[0046] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE;
[0047] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0048] Optionally, the image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE, including:
[0049] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE through the client application module of the camera framework layer running in the REE.
[0050] In a second aspect, an embodiment of the present application provides a method for securely transmitting image information, including:
[0051] Sending a camera use request message to the electronic device;
[0052] Receiving image signature information and image information fed back by an image information verification application module running in the REE of the electronic device;
[0053] Verifying the image signature information;
[0054] After the verification is passed, the image information is processed.
[0055] Optionally, the verifying the image signature information includes:
[0056] Verify the validity of the server certificate based on the server's root certificate;
[0057] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0058] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0059] Optionally, the receiving of the image signature information and the image information fed back by the image information verification application module running in the REE of the electronic device includes:
[0060] Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information;
[0061] The target information also includes: image information and parameter information used to generate a signature key; or
[0062] The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0063] Optionally, when the target information further includes: image information and parameter information used to generate a signature key, the verifying the image signature information includes:
[0064] Verify the validity of the server certificate based on the server's root certificate;
[0065] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0066] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0067] Verify whether the image signature information is valid based on the signature verification key.
[0068] Optionally, when the target information further includes: image information and an image verification certificate, the verifying the image signature information includes:
[0069] Verify the validity of the server certificate based on the server's root certificate;
[0070] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0071] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0072] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0073] In a third aspect, an embodiment of the present application provides an image information secure transmission device, which is applied to an electronic device, wherein the electronic device is deployed with a universal execution environment REE; comprising:
[0074] The image information verification application module runs in REE and is used to call the camera hardware module and obtain image information according to the camera use request message sent by the server;
[0075] A target module, used to digitally sign the image information and obtain image signature information, wherein the target module includes an image data integrity protection module in a camera hardware abstraction layer module running in the REE or an image data signature application module running in a trusted execution environment TEE;
[0076] The image information verification application module is further used to send the image signature information and the image information to the server.
[0077] Optionally, the image information verification application module is used to implement at least one of the following:
[0078] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible;
[0079] The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
[0080] Optionally, when the image information verification application module running in the REE is trustworthy, the image information verification application module calls the camera hardware module according to the camera use request message to obtain image information, and the image information verification application module is further used to: send the camera use request message to the client application module of the camera framework layer running in the REE;
[0081] The client application module is used to send a verification request to the image verification auxiliary trusted application module running in the TEE when it is determined that the authenticity of the image collected by the camera hardware module needs to be verified according to the camera use request message;
[0082] The image verification assisted trusted application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
[0083] Optionally, the image information verification application module is further used to:
[0084] If the electronic device is credible, according to the camera use request message, a camera hardware abstraction layer module running in the REE is sent a photo request message through a client application module of a camera framework layer running in the REE;
[0085] The camera hardware abstraction layer module runs in REE and is used to send a photo request message to the camera driver module running in REE;
[0086] A camera driver module, used to call the camera hardware module;
[0087] The camera hardware abstraction layer module is also used to obtain image information;
[0088] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0089] Optionally, when the image information verification application module running in the REE is trustworthy, the image information verification application module calls the camera hardware module according to the camera use request message to obtain image information, and the image information verification application module is further used to:
[0090] Receiving target information sent by a camera hardware abstraction layer module running in REE through a client application module of a camera framework layer running in REE, wherein the target information includes image signature information;
[0091] Sending the target information to a server;
[0092] Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or
[0093] In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0094] Optionally, the image information verification application module is further used to: when it is determined that the camera hardware module needs to be called in a trusted environment, transmit a photo request message to the image information verification trusted application module running in the TEE;
[0095] The image information verification trusted application module is used to send a photo request message to the trusted camera service module running in the TEE;
[0096] A trusted camera service module is used to call a trusted camera driver module running in the TEE according to the photo request message to initiate a photo request;
[0097] A trusted camera driver module, used to call the camera hardware module;
[0098] The image information verification trusted application module is also used to obtain image information;
[0099] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0100] Optionally, the image information verification application module is further used to: when it is determined that the camera hardware module needs to be called in a trusted environment, send a photo request message through a client application module running in a camera framework layer in the REE;
[0101] The photo request message includes at least one of the following:
[0102] Accuracy information of captured images;
[0103] Instructions for taking photos in a trusted environment;
[0104] Information to be photographed;
[0105] Business information.
[0106] Optionally, when the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, the image data signature application module is used to:
[0107] Receive a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE;
[0108] Digitally signing the hash value using a device private key to obtain image signature information;
[0109] The image signature information is sent to the image information verification trusted application module.
[0110] Optionally, the image information verification application module is used to:
[0111] Receiving the image signature information and image information sent by the image information verification trusted application module running in the TEE;
[0112] The image signature information and the image information are sent to the server.
[0113] Optionally, the image information verification application module is used to:
[0114] The image signature information and image information sent by the image information verification trusted application module running in TEE are received through the client application module of the camera framework layer running in REE.
[0115] In a fourth aspect, an embodiment of the present application provides an electronic device, which is deployed with a universal execution environment REE; it includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the above-mentioned method for secure transmission of image information are implemented.
[0116] In a fifth aspect, an embodiment of the present application provides a device for securely transmitting image information, including:
[0117] A sending module, used for sending a camera use request message to the electronic device;
[0118] A receiving module, used to receive image signature information and image information fed back by an image information verification application module running in the REE of the electronic device;
[0119] A verification module, used to verify the image signature information;
[0120] The processing module is used to process the image information after the verification is passed.
[0121] Optionally, the verification module is used to:
[0122] Verify the validity of the server certificate based on the server's root certificate;
[0123] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0124] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0125] Optionally, the receiving module is used to:
[0126] Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information;
[0127] The target information also includes: image information and parameter information used to generate a signature key; or
[0128] The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0129] Optionally, when the target information further includes: image information and parameter information used to generate a signature key, the verification module is used to:
[0130] Verify the validity of the server certificate based on the server's root certificate;
[0131] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0132] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0133] Verify whether the image signature information is valid based on the signature verification key.
[0134] Optionally, when the target information further includes: image information and an image verification certificate, the verification module is used to:
[0135] Verify the validity of the server certificate based on the server's root certificate;
[0136] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0137] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0138] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0139] In a sixth aspect, an embodiment of the present application provides a server, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the above-mentioned method for securely transmitting image information.
[0140] In a seventh aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the above-mentioned method for secure transmission of image information are implemented.
[0141] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the above-mentioned method for secure transmission of image information.
[0142] In an embodiment of the present application, an image information verification application module running in REE calls a camera hardware module according to a camera use request message sent by a server to obtain image information. The target module digitally signs the image information to obtain image signature information. The image information verification application module running in REE sends the image signature information and the image information to the server. This ensures that the electronic device side can sign the image information, prevents the information from being tampered with, provides integrity protection for images taken by the camera, and improves the security of remote use of the camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0143] Figure 1 This is one of the flowcharts of the method for securely transmitting image information according to an embodiment of the present application;
[0144] Figure 2 It is one of the communication architecture diagrams of the embodiment of the present application;
[0145] Figure 3 This is a schematic diagram of the initialization process of implementation method one;
[0146] Figure 4 yes Figure 2 A flowchart of the architecture shown;
[0147] Figure 5 This is the second communication architecture diagram of the embodiment of the present application;
[0148] Figure 6 yes Figure 5 A flowchart of the architecture shown;
[0149] Figure 7 This is the second flow chart of the method for securely transmitting image information according to an embodiment of the present application;
[0150] Figure 8 This is one of the module schematic diagrams of the image information security transmission device according to the embodiment of the present application;
[0151] Fig. 9 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0152] Fig.10 This is the second module schematic diagram of the image information secure transmission device according to the embodiment of the present application;
[0153] Fig.11 It is a schematic diagram of the structure of the server of the embodiment of the present application. DETAILED DESCRIPTION
[0154] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0155] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0156] The following, in conjunction with the accompanying drawings, describes in detail the image information secure transmission method, device, electronic device and server provided by the embodiments of the present application through specific embodiments and their application scenarios.
[0157] like Figure 1 As shown, an embodiment of the present application provides a method for securely transmitting image information, which is applied to an electronic device, wherein the electronic device is deployed with a rich execution environment (REE); the method includes:
[0158] Step 101, the image information verification application module running in REE calls the camera hardware module to obtain image information according to the camera use request message sent by the server;
[0159] It should be noted that the image information referred to in the embodiments of the present application generally includes: image original data and image attribute information; optionally, the image attribute information includes but is not limited to at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the device that shot.
[0160] Optionally, the image attribute information can be understood as metadata.
[0161] Step 102: The target module digitally signs the image information to obtain image signature information. The target module includes an image data integrity protection module in a camera hardware abstraction layer module running in REE or an image data signature application module running in a trusted execution environment TEE.
[0162] Step 103: the image information verification application module running in the REE sends the image signature information and the image information to the server.
[0163] It should be noted that, in the embodiment of the present application, the image information verification application module running in the REE calls the camera hardware module according to the camera use request message sent by the server to obtain image information, the target module digitally signs the image information to obtain image signature information, and the image information verification application module running in the REE sends the image signature information and the image information to the server; ensuring that the electronic device side can sign the image information, can prevent the information from being tampered with, provides integrity protection for the images taken by the camera, and improves the security of remote use of the camera.
[0164] It should be noted that the camera hardware module mentioned in the embodiments of the present application may also be referred to as a camera.
[0165] Optionally, in one implementation, the image information verification application module running in the REE calls the camera hardware module to obtain the image information according to the camera use request message sent by the server, including at least one of the following:
[0166] A11, the image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible;
[0167] It should be noted that this implementation method is based on the signing of image information by the image data integrity protection module in the camera hardware abstraction layer module. Since the image data integrity protection module runs in the REE, there is a risk of image information being tampered with. Therefore, before calling the camera hardware module, it is necessary to determine whether the electronic device is trustworthy. Only when the electronic device is trustworthy can it be ensured that the image information collected by the camera hardware module is not tampered with.
[0168] A12, the image information verification application module running in REE calls the trusted camera driver module to obtain image information;
[0169] It should be noted that in this case, the image information verification application module directly calls the trusted camera driver module, and the trusted camera driver module runs in the Trusted Execution Environment (TEE). In other words, this implementation method is to use the trusted camera driver module to call the camera hardware module to ensure the security of the call, thereby ensuring that the image information collected by the camera hardware module is not tampered with.
[0170] It should be noted that the embodiment of the present application provides two methods of calling the camera hardware module, and these two methods are described in detail below.
[0171] 1. Implementation of A11
[0172] Optionally, in this case, in one implementation, the method further includes:
[0173] The image information verification application module running in the REE sends the camera use request message to the client application module of the camera framework layer running in the REE;
[0174] The client application module determines, based on the camera use request message, that the authenticity of the image captured by the camera hardware module needs to be verified, and sends a verification request to the image verification auxiliary trusted application module running in the TEE;
[0175] The client application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE through the image verification assisted trusted application module, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
[0176] Optionally, the client application module needs to identify based on the camera usage request message to confirm whether it is necessary to verify the authenticity of the image captured by the camera hardware module. If it is necessary to verify the authenticity of the image captured by the camera hardware module, a verification request is sent to the image verification auxiliary trusted application module. The image verification auxiliary trusted application module obtains the device security status assessment result from the device security assessment trusted application module based on the verification request.
[0177] It should be noted that the client application module can determine whether it is necessary to verify the authenticity of the image captured by the camera hardware module based on the business information of using the camera. For example, it can be pre-defined which businesses require verification of the authenticity of the images captured by the camera hardware module. When the client application module obtains the business information, it compares it with the pre-defined business. If it belongs to the pre-defined business, it determines to verify the authenticity of the image captured by the camera hardware module.
[0178] It should be noted that the implementation method in which the client application module determines whether it is necessary to verify the authenticity of the image captured by the camera hardware module in the embodiment of the present application is merely an example, and the embodiment of the present application is not limited to the above-mentioned implementation method. Other implementation methods that can determine whether it is necessary to verify the authenticity of the image captured by the camera hardware module also fall within the protection scope of the embodiment of the present application.
[0179] Optionally, in one implementation, the image information verification application module running in the REE, when the electronic device is credible, calls the camera hardware module according to the camera use request message to obtain the image information, including:
[0180] Step 11: When the electronic device is credible, the image information verification application module running in the REE sends a photo request message to the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE according to the camera use request message;
[0181] Step 12: The camera hardware abstraction layer module running in the REE sends a photo request message to the camera driver module running in the REE;
[0182] Step 13: the camera driver module calls the camera hardware module;
[0183] Step 14: The camera hardware abstraction layer module running in REE obtains image information;
[0184] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes but is not limited to at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0185] It should be noted that the camera hardware module is called only when the electronic device is trusted to ensure the security of the camera call.
[0186] It should be noted that after the camera hardware module acquires the original image data, it usually stores the original image data in the memory. The camera driver module feeds back the memory address of the original image data to the camera hardware abstraction layer module. The camera hardware abstraction layer module can directly obtain the original image data from the memory based on the memory address.
[0187] It should be noted that after the camera hardware abstraction layer module obtains the image information, the image information needs to be signed. Optionally, the image data integrity protection module of the camera hardware abstraction layer module uses a signature key to digitally sign the image information or uses an image verification private key to digitally sign it.
[0188] Optionally, when the image data integrity protection module uses a signature key to digitally sign the image information, the signature key obtained by the image data integrity protection module is generated from a key management module running in the REE. Optionally, the key management module generates a signature key (symmetric key) based on the server's public key, the device public key and parameter information used to generate the signature key (such as a random number, a timestamp, etc.), and then configures the signature key, the device certificate and the parameter information used to generate the signature key into the image data integrity protection module.
[0189] Optionally, in the case where the image data integrity protection module uses the image verification private key for digital signature, the image verification private key obtained by the image data integrity protection module is generated from a key management module running in the REE, the key management module generates a public / private key pair (which may be referred to as an image verification public-private key pair, i.e., including an image verification public key and an image verification private key), uses the device private key to digitally sign the image verification public key to generate an image verification certificate, and then configures the image verification private key and the corresponding image verification certificate together to the image data integrity protection module.
[0190] Optionally, in one implementation, the image information verification application module running in the REE sends the image signature information and the image information to the server, including:
[0191] The image information verification application module running in the REE receives the target information sent by the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE, wherein the target information includes the image signature information;
[0192] The image information verification application module running in REE sends the target information to the server;
[0193] Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or
[0194] In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0195] It should be noted that in order to ensure that the server can successfully verify the digital signature information, corresponding to each signature method, the camera hardware abstraction layer module needs to send the information for digital signature information verification to the server side.
[0196] Optionally, when the target information includes image information and parameter information used to generate a signature key, the specific implementation of the server verifying the image signature information includes:
[0197] Verify the validity of the server certificate based on the server's root certificate;
[0198] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0199] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0200] Verify whether the image signature information is valid based on the signature verification key.
[0201] Optionally, when the target information further includes: image information and an image verification certificate, the specific implementation of the server verifying the image signature information includes:
[0202] Verify the validity of the server certificate based on the server's root certificate;
[0203] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0204] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0205] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0206] It should be noted that when verifying the validity of the image signature information, the server needs to process the image information. Optionally, the processing method includes: further verifying whether the image information meets the access requirements of the business according to the original business logic, such as whether the time and place of shooting the image information are reasonable, whether the image information is shot for the business, whether the shot information is valid, whether the biometric verification is successful, etc.
[0207] Optionally, in one implementation, the server mentioned in the embodiment of the present application may include: a mobile business server and a key management server; wherein the mobile business service module includes an improved image information verification service module for communicating with the image information verification application module on the electronic device side; the mobile device management server includes: a key management service module for supporting digital signing of image information to prevent the image from being tampered with, and can identify whether the image is taken by the claimed electronic device.
[0208] The specific implementation of this implementation method is described below.
[0209] It should be noted that if Figure 2 As shown, this implementation of the embodiment of the present application mainly involves the following functional modules:
[0210] The image information verification application module of the electronic device defines the accuracy requirements of the required captured images and supports the transmission of the signature information of the image.
[0211] The client application module of the camera framework layer of the electronic device sets the camera configuration parameters and supports the transmission of image signature information.
[0212] The image data integrity protection module of the electronic device is used to support digital signature of the image information collected by the camera.
[0213] The key management module of the electronic device supports the key management of the signature of the image information collected by the camera, so as to prove to the digital signature verifier that the image information was taken by the claimed electronic device;
[0214] The device security assessment trusted application module of electronic devices supports the assessment of the security status of electronic devices at any time, such as whether the device is rooted.
[0215] The image verification auxiliary trusted application module of the electronic device communicates with each module in the TEE to support the integrity protection of the original image data.
[0216] The improved image information verification service module in the mobile business server is used to support the verification of the digital signature of image information from the electronic device (the image information in the embodiment of the present application at least includes the image information captured by the camera and the image preview data) to determine whether the image is taken by the claimed electronic device.
[0217] The improved key management service module in the mobile device management server is used to support digital signature of image information, prevent the image from being tampered with, and can identify whether the image is taken by the claimed electronic device.
[0218] It should be noted that before carrying out the process of this implementation method, it is necessary to initialize the information security integrity protection based on the end-side virtualization, including:
[0219] The electronic equipment side implements the following process:
[0220] TEE generates a device public / private key pair and encrypts the device private key using the device root key (from the hardware root of trust) and then stores it securely.
[0221] The electronic device securely sends the device public key to the mobile device management server (e.g., based on Transport Layer Security (TLS) or Hypertext Transfer Protocol Secure (HTTPs)), generates a device certificate, and stores it securely;
[0222] The electronic device obtains the server certificate and stores it securely.
[0223] The key management service module of the mobile device management server implements the following process:
[0224] Generate a server public / private key pair and store the server private key in a hardware security module (HSM);
[0225] Generate a server certificate based on the server public key and send it to the electronic device.
[0226] The specific communication process of the above architecture is as follows Figure 3 As shown, it mainly includes:
[0227] like Figure 3 As shown in the figure, the initialization process of information security integrity protection based on end-side virtualization mainly includes:
[0228] Step 31: When the electronic device is started, TEE deploys the relevant keys used for signature in REE securely. Specifically, there are two ways to deploy the signature key to the image data integrity protection module:
[0229] Signature key configuration scheme 1: The key management module generates a signature key (symmetric key) based on the server's public key, the device public key and the parameter information used to generate the signature key (such as random number, timestamp, etc.), and then configures the signature key, device certificate and the parameter information used to generate the signature key into the image data integrity protection module.
[0230] Signature key configuration scheme 2: The key management module of TEE generates a public / private key pair (which can be called an image verification public-private key pair), uses the device private key to digitally sign the image verification public key to generate an image verification certificate, and then configures the image verification private key and the corresponding image verification certificate together to the image data integrity protection module.
[0231] Step 32: Generate a device certificate;
[0232] Step 33: Before executing the image information signature, the mobile service server and the mobile equipment management server will synchronize the relevant keys used for the signature.
[0233] The specific communication process is as follows: Figure 4 As shown, it mainly includes:
[0234] Step 401, the image information verification service module of the server sends a camera use request message to the image information verification application module of the REE of the electronic device, requesting the electronic device to take a photo of the required information (such as face, ID, etc.) to provide image information for verification;
[0235] Step 402: The image information verification application module of the REE of the electronic device sends a photo request message to the client application module of the camera framework layer of the REE of the electronic device. The message includes (but is not limited to): the accuracy of the image to be taken, the information to be taken, business information, etc.
[0236] Step 403: The client application module of the camera framework layer of the REE of the electronic device recognizes that the photo request message needs to verify the authenticity of the photo information of the electronic device, and requests the image verification auxiliary trusted application module of the TEE of the electronic device to verify the security status of the device;
[0237] Step 404, the image verification auxiliary trusted application module of the TEE of the electronic device obtains the device security status assessment result from the device security assessment trusted application module of the TEE of the electronic device;
[0238] Step 405, the image verification auxiliary trusted application module of the TEE of the electronic device returns the device security status assessment result to the client application module of the camera framework layer of the REE of the electronic device;
[0239] Step 406: The client application module of the camera framework layer of the REE of the electronic device determines whether the electronic device is currently credible according to the security status assessment result; if the electronic device is safe and credible, a photo request message is sent to the camera hardware abstraction layer module of the REE of the electronic device, where the message at least includes camera parameters corresponding to the required image accuracy, business information, etc.;
[0240] Step 407, the camera hardware abstraction layer module of the REE of the electronic device sends a photo request message to the camera driver module of the REE of the electronic device, where the message at least includes the camera parameters defined in the previous step;
[0241] Step 408, the camera driver module of the REE of the electronic device obtains the original image data from the camera hardware module, for example, it may also include preview data, etc.;
[0242] Step 409, the camera driver module of the REE of the electronic device returns the original image data to the camera hardware abstraction layer module of the REE of the electronic device;
[0243] Step 410, the image data integrity protection module of the camera hardware abstraction layer module of the REE of the electronic device digitally signs the image information including the original image data and the image attribute information, and the signature key has been configured when the electronic device is started;
[0244] Step 411, the REE camera hardware abstraction layer module of the electronic device returns information to the client application module of the camera framework layer of the REE of the electronic device. The specific returned information is as follows:
[0245] For signature key configuration scheme 1, the message contains: image information, image signature information, other image information, device certificate and parameter information used to generate the signature key (such as random number, timestamp, etc.);
[0246] For signature key configuration scheme 2, the message contains: image information, image signature information, other image information, device certificate, and image verification certificate;
[0247] Step 412, the client application module of the camera framework layer of the REE of the electronic device returns the image information and the signature information to the image information verification application module of the REE of the electronic device;
[0248] Step 413, the image information verification application module of the REE of the electronic device obtains some additional information (such as device information, business information, address information, etc.);
[0249] Step 414, the image information verification application module of the REE of the electronic device returns the additional information, image information and corresponding signature information to the image information verification service module of the server, and the returned information is protected according to the existing security protocols (such as TLS, HTTPs), such as encrypting the message to prevent the information from being stolen during transmission, and protecting the integrity of the message to prevent the information from being tampered with during transmission;
[0250] Step 415: After receiving the return message, the image information verification service module of the server performs verification and processing operations, including the following operations:
[0251] Verify the operation:
[0252] For signature key configuration scheme 1:
[0253] Verify that the server certificate is valid based on the server's root certificate;
[0254] Based on the server certificate, verify whether the device certificate (including the device public key) is valid;
[0255] Generate a signature verification key based on the private key of the mobile service server, the device public key and other parameters (such as random number, timestamp, etc.);
[0256] Based on the signature verification key, verify whether the image signature information is valid or has been tampered with.
[0257] Solution 2 for signing key configuration:
[0258] Verify that the server certificate is valid based on the server's root certificate;
[0259] Based on the server certificate, verify whether the device certificate is valid;
[0260] Based on the device certificate, verify whether the image verification certificate is valid;
[0261] Based on the image verification certificate, verify whether the image signature information is valid or has been tampered with.
[0262] Processing Operation:
[0263] When the signature of the image information is valid or has not been tampered with, further verification is conducted based on the original business logic to determine whether the image information meets the business access requirements, such as whether the time and location of the image shooting are reasonable, whether the image information is shot for the business, whether the certificate information is valid, and whether the biometric verification is successful.
[0264] 1. Implementation of A12
[0265] Optionally, in this case, in one implementation, the image information verification application module running in the REE calls the trusted camera driver module to obtain the image information, including:
[0266] Step 21: When the image information verification application module running in the REE determines that the camera hardware module needs to be called in the trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE;
[0267] Step 22: The image information verification trusted application module sends a photo request message to the trusted camera service module running in the TEE;
[0268] It should be noted that, in this case, a trusted camera service module is added corresponding to the trusted camera driver module, and the trusted camera service module and the trusted camera driver module are both located in the TEE.
[0269] Step 23: The trusted camera service module calls the trusted camera driver module running in the TEE according to the photo request message to initiate a photo request;
[0270] Step 24: the trusted camera driver module calls the camera hardware module;
[0271] Step 25: The image information verification trusted application module running in the TEE obtains the image information;
[0272] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes but is not limited to at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0273] It should be noted that after the camera hardware module acquires the image information, it usually stores the image information in the memory. The trusted camera driver module feeds back the memory address where the image information is stored to the image information verification trusted application module through the trusted camera service module. The image information verification trusted application module can directly obtain the image information from the memory based on the memory address.
[0274] Further optionally, in one implementation, when the image information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE, including:
[0275] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the REE sends a photo request message through the client application module running in the camera framework layer in the REE;
[0276] It should be noted that the image information verification application module needs to perform identification based on the camera usage request message to confirm whether it is necessary to call the camera hardware module in a trusted environment. If the camera hardware module needs to be called in a trusted environment, it is necessary to send a photo request message to the client application module of the camera framework layer. The client application module of the camera framework layer determines that it is necessary to take a photo in a trusted environment based on the photo request message, and then forwards the photo request message to the image information verification trusted application module.
[0277] It should be noted that the image information verification application module can determine whether it is necessary to call the camera hardware module in a trusted environment based on the business information of using the camera. For example, it can be pre-defined which businesses need to call the camera hardware module in a trusted environment. When the image information verification application module obtains the business information, it compares it with the pre-defined business. If it belongs to the pre-defined business, it is determined that the business needs to call the camera hardware module in a trusted environment.
[0278] It should be noted that the implementation method of the image information verification application module determining whether it is necessary to call the camera hardware module in a trusted environment in the embodiment of the present application is merely an example, and the embodiment of the present application is not limited to the above-mentioned implementation method. Other implementation methods that can determine whether it is necessary to call the camera hardware module in a trusted environment also fall within the protection scope of the embodiment of the present application.
[0279] The photo request message includes at least one of the following:
[0280] A11, accuracy information of captured images;
[0281] A12, instructions for taking photos in a trusted environment;
[0282] It should be noted that taking photos in a trusted environment can be understood as taking photos in a hardware-isolated manner using TEE. In this case, no application on the REE side can tamper with the information captured by the camera.
[0283] A13. Information to be photographed;
[0284] It should be noted that the information that needs to be captured includes but is not limited to: the user's facial features, ID photos, etc.
[0285] A14. Business information;
[0286] Optionally, the business information includes but is not limited to: business name, business attributes, etc.
[0287] Optionally, in one implementation, when the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, the target module digitally signs the image information to obtain image signature information, including:
[0288] The image data signature application module receives a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or a secure element (SE);
[0289] The image data signature application module digitally signs the hash value using a device private key to obtain image signature information;
[0290] The image data signature application module sends the image signature information to the image information verification trusted application module.
[0291] It should be noted that by digitally signing the hash value through the image data signature application module running in the TEE and / or SE, the server can verify whether the sent image information has been tampered with, thereby ensuring the reliability of the sent information.
[0292] Optionally, in one implementation, the image data signature application module includes a key management module, and the key management module runs in the TEE or SE. Optionally, in another implementation, in one case, the image data signature application module includes a key management trusted application module and a key management module, and both the key management trusted application module and the key management module run in the TEE or SE; in another case, the key management trusted application module runs in the TEE, and the key management module runs in the SE. Optionally, in this case, the image data signature application module running in the target object digitally signs the hash value using the device private key, and the specific implementation of obtaining the image signature information includes:
[0293] The key management trusted application module sends the signature request message to the key management module;
[0294] The key management module digitally signs the hash value according to the device private key to obtain image signature information.
[0295] It should be noted that when the key management trusted application module and the key management module run in different environments, the key management module running in the SE needs to digitally sign the hash value.
[0296] Optionally, in one implementation, the image information verification application module running in the REE sends the image signature information and the image information to the server, including:
[0297] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE;
[0298] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0299] Further optionally, in one implementation, the image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE, including:
[0300] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE through the client application module of the camera framework layer running in the REE.
[0301] It should be noted that after obtaining the image signature information, the image information verification trusted application module needs to first send the signature information and image information to the client application module of the camera framework layer, and the client application module sends the signature information and image information to the image information verification application module, and the image information verification application module sends the signature information and image information to the server; optionally, the image information verification application module can also obtain some additional information (such as device information, business information, address information, etc.), and send this additional information together with the signature information and image information to the server. It should be noted that the information sent by the image information verification application module to the server needs to be protected according to existing security protocols (such as Transport Layer Security (TLS), Hypertext Transfer Protocol Secure (HTTPs)), such as encrypting the message to prevent the information from being stolen during transmission, and protecting the integrity of the message to prevent the information from being tampered with during transmission.
[0302] Optionally, after receiving the information sent by the image information verification application module, the server needs to verify the image signature information, and after the verification is passed, process the image information.
[0303] Optionally, in one implementation, the specific implementation of the server verifying the image signature information includes:
[0304] Verify the validity of the server certificate based on the server's root certificate;
[0305] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0306] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0307] It should be noted that when verifying the validity of the signature, the server needs to process the image information. Optionally, the processing method includes: according to the original business logic, further verifying whether the image information meets the access requirements of the business, such as whether the time and place of taking the image information are reasonable, whether the image information is taken for the business, whether the taken information is valid, whether the biometric verification is successful, etc.
[0308] Optionally, in one implementation, the server mentioned in the embodiment of the present application may include: a mobile business server and a mobile device management server; wherein the mobile business server includes an improved image information verification service module for communicating with the image information verification application module on the electronic device side; the mobile device management server includes: a certificate management module for generating a server public / private key pair, storing the server private key in a hardware security module (HardwareSecurity Module, HSM), and generating a server certificate based on the server public key and sending it to the electronic device.
[0309] It should be noted that this application scenario drives the camera hardware module to take photos in a hardware-isolated manner in TEE; and processes the captured image information accordingly (such as face detection / interaction judgment, ID photo area selection, compression, etc.) in a software-isolated manner in a virtualized environment; then digitally signs the processed image information based on TEE's key management; and finally sends the image information and its digital signature information to the server together. During the transmission of image information, any tampering will cause the digital signature verification on the server to fail, thereby achieving security protection for the entire link of obtaining image information from electronic devices, that is, integrity and security protection from trusted camera driver shooting to obtaining trusted image information and finally transmitting it to the server.
[0310] The specific implementation of the embodiments of the present application is described below.
[0311] It should be noted that if Figure 5 As shown, this implementation mainly involves the following functional modules:
[0312] The image information verification application module of the electronic device defines the accuracy requirements of the captured image and supports the transmission of image signature information;
[0313] The client application module of the camera framework layer of the electronic device sets the camera configuration parameters and supports the transmission of image signature information;
[0314] The trusted camera service module and trusted camera driver module of the electronic device support driving the camera to take photos in a hardware-isolated manner. In this case, no application on the REE side has access to camera resources, thereby reducing attacks on the camera by malicious applications on the REE side when taking photos.
[0315] The image information verification trusted application module of the electronic device communicates with other modules of TEE and supports hardware isolation for shooting and digital signature of the captured images and other related operations;
[0316] The image data signature application module of the electronic device supports the digital signature of the image information to prove to the digital signature verifier that the image information is taken by the claimed electronic device.
[0317] An improved image information verification service module of the mobile service server supports verification of the digital signature of image information from an electronic device to determine whether the image is taken by the claimed electronic device;
[0318] The certificate management module in the mobile device management server is used to support digital signature of image information to prevent the image from being tampered with and to identify whether the image is taken by the claimed electronic device.
[0319] The specific communication process is as follows: Figure 6 As shown, it mainly includes:
[0320] Step 601, the image information verification service module of the server sends a camera use request message to the image information verification application module of the REE of the electronic device, requesting the electronic device to take a photo of the required information (such as face, ID, etc.) to provide image information for verification;
[0321] Step 602: The image information verification application module of the REE of the electronic device recognizes that the photo needs to be taken in a trusted environment, and forwards a photo request message to the client application module of the camera framework layer of the REE of the electronic device. The message includes (but is not limited to): the accuracy of the image to be taken, the instruction information for taking photos in a trusted environment (i.e., the hardware isolation mode of TEE, in which case no application on the REE side can tamper with the information taken by the camera), the information to be taken, business information, etc.
[0322] Step 603: The client application module of the camera framework layer of the REE of the electronic device recognizes that the photo request message needs to be carried out in a trusted environment, and forwards the photo request message to the image information verification trusted application module of the TEE of the electronic device, where the message at least includes camera parameters and business information corresponding to the required image accuracy;
[0323] Step 604: the image information verification trusted application module of the TEE of the electronic device sends a photo request message to the trusted camera service module of the TEE of the electronic device, where the message at least includes the camera parameters defined in the previous step;
[0324] Step 605: The trusted camera service module of the TEE of the electronic device initiates a photo request message to the trusted camera driver module of the TEE of the electronic device, where the message at least includes the camera parameters defined in the previous step;
[0325] Step 606: The trusted camera driver module of the TEE of the electronic device turns on the hardware camera function and takes photos of the required information in a hardware-isolated manner according to the received camera parameters. In this step, a lot of interactive information is omitted, such as the need for liveness detection and face comparison for facial recognition, and the need to verify the shooting range and clarity of the ID photo when taking the ID photo.
[0326] Step 607, the trusted camera driver module of the TEE of the electronic device returns the captured image information (such as image data collected by the camera, preview data, etc.) to the trusted camera service module of the TEE of the electronic device;
[0327] Step 608, the trusted camera service module of the TEE of the electronic device returns the captured image original data to the image information verification trusted application module of the TEE of the electronic device;
[0328] Step 609: The image information verification trusted application module of the TEE of the electronic device processes the obtained original image data, such as obtaining the time and location of image shooting, and then performs hash calculation on the image information including the original image data and image attribute information (such as shooting time, location, device information (such as OS version, device model, etc.), and business information of this visit (such as name, attributes, etc.)) that needs to be returned to the server to obtain a hash value;
[0329] Step 610: The image information verification trusted application module of the TEE of the electronic device sends a signature request message to the image data signature application module of the TEE of the electronic device, where the message contains the hash value calculated in the previous step.
[0330] Step 611, the image data signature application module of the TEE of the electronic device digitally signs the hash value using the device private key;
[0331] Step 612, the image data signature application module of the TEE of the electronic device returns the image signature information to the image information verification trusted application module of the TEE of the electronic device;
[0332] Step 613, the image information verification trusted application module of the TEE of the electronic device returns the image information and the corresponding image signature information to the client application module of the camera framework layer of the REE of the electronic device;
[0333] Step 614, the client application module of the camera framework layer of the REE of the electronic device returns the image information and the corresponding image signature information to the image information verification application module of the REE of the electronic device;
[0334] Step 615, the image information verification application module of the REE of the electronic device obtains some additional information (such as device information, business information, address information, etc.);
[0335] Step 616, the image information verification application module of the REE of the electronic device returns the additional information, image information and corresponding image signature information to the image information verification service module of the server, and the returned information is integrity protected according to the existing security protocol (such as TLS, HTTPs), such as encrypting the message to prevent the information from being stolen during transmission, and integrity protecting the message to prevent the information from being tampered with during transmission;
[0336] Step 617: After receiving the return message, the image information verification service module of the server performs verification and processing operations, which specifically include the following operations:
[0337] Verify that the server certificate is valid based on the server's root certificate;
[0338] Based on the server certificate, verify whether the device certificate is valid;
[0339] Based on the device certificate, verify whether the image signature information of the image information is valid or tampered with;
[0340] When the image signature information is valid or has not been tampered with, further verification is conducted based on the original business logic to determine whether the image information meets the business access requirements, such as whether the time and location of the image shooting are reasonable, whether the image information is shot for the business, whether the certificate information is valid, and whether the biometric verification is successful.
[0341] It should be noted that cloud service providers currently spend a lot of manpower to develop mobile applications and deploy them on electronic devices to verify the authenticity of images taken by electronic devices. However, since the images taken by the camera may be tampered with or replaced below the application layer on the electronic device side (such as the framework, system kernel, hardware layer, etc.), the cloud service provider hopes that electronic device manufacturers can provide a full-link integrity protection for image information. The embodiments of this application propose two possible solutions to enhance the integrity protection capability of image information taken by electronic devices under the condition of limited electronic device capabilities, thereby improving the accuracy of image information verification and saving the cost of the cloud service provider.
[0342] like Figure 7 As shown, at least one embodiment of the present application further provides a method for securely transmitting image information, including:
[0343] Step 701, sending a camera use request message to an electronic device;
[0344] Step 702, receiving image signature information and image information fed back by an image information verification application module running in the REE of the electronic device;
[0345] Step 703, verifying the image signature information;
[0346] Step 704: After the verification is passed, the image information is processed.
[0347] Optionally, the verifying the image signature information includes:
[0348] Verify the validity of the server certificate based on the server's root certificate;
[0349] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0350] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0351] Optionally, the receiving of the image signature information and the image information fed back by the image information verification application module running in the REE of the electronic device includes:
[0352] Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information;
[0353] The target information also includes: image information and parameter information used to generate a signature key; or
[0354] The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0355] Optionally, when the target information further includes: image information and parameter information used to generate a signature key, the verifying the image signature information includes:
[0356] Verify the validity of the server certificate based on the server's root certificate;
[0357] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0358] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0359] Verify whether the image signature information is valid based on the signature verification key.
[0360] Optionally, when the target information further includes: image information and an image verification certificate, the verifying the image signature information includes:
[0361] Verify the validity of the server certificate based on the server's root certificate;
[0362] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0363] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0364] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0365] It should be noted that all descriptions on the server side in the above embodiments are applicable to the embodiments of the method for securely transmitting image information between the application and the server, and can also achieve the same technical effects, which will not be repeated here.
[0366] like Figure 8 As shown, at least one embodiment of the present application further provides a device for securely transmitting image information, which is applied to an electronic device, wherein the electronic device is equipped with a REE; the device comprises:
[0367] The image information verification application module 801 runs in the REE and is used to call the camera hardware module and obtain image information according to the camera use request message sent by the server;
[0368] A target module 802 is used to digitally sign the image information and obtain image signature information. The target module includes an image data integrity protection module in a camera hardware abstraction layer module running in the REE or an image data signature application module running in a trusted execution environment TEE;
[0369] The image information verification application module 801 is further used to send the image signature information and the image information to the server.
[0370] Optionally, the image information verification application module is used to implement at least one of the following:
[0371] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible;
[0372] The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
[0373] Optionally, when the image information verification application module running in the REE is trustworthy, the image information verification application module calls the camera hardware module according to the camera use request message to obtain image information, and the image information verification application module is further used to: send the camera use request message to the client application module of the camera framework layer running in the REE;
[0374] The client application module is used to send a verification request to the image verification auxiliary trusted application module running in the TEE when it is determined that the authenticity of the image collected by the camera hardware module needs to be verified according to the camera use request message;
[0375] The image verification assisted trusted application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
[0376] Optionally, the image information verification application module is further used to:
[0377] If the electronic device is credible, according to the camera use request message, a camera hardware abstraction layer module running in the REE is sent a photo request message through a client application module of a camera framework layer running in the REE;
[0378] The camera hardware abstraction layer module runs in REE and is used to send a photo request message to the camera driver module running in REE;
[0379] A camera driver module, used to call the camera hardware module;
[0380] The camera hardware abstraction layer module is also used to obtain image information;
[0381] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0382] Optionally, when the image information verification application module running in the REE is trustworthy, the image information verification application module calls the camera hardware module according to the camera use request message to obtain image information, and the image information verification application module is further used to:
[0383] Receiving target information sent by a camera hardware abstraction layer module running in REE through a client application module of a camera framework layer running in REE, wherein the target information includes image signature information;
[0384] Sending the target information to a server;
[0385] Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or
[0386] In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0387] Optionally, the image information verification application module is further used to: when it is determined that the camera hardware module needs to be called in a trusted environment, transmit a photo request message to the image information verification trusted application module running in the TEE;
[0388] The image information verification trusted application module is used to send a photo request message to the trusted camera service module running in the TEE;
[0389] A trusted camera service module is used to call a trusted camera driver module running in the TEE according to the photo request message to initiate a photo request;
[0390] A trusted camera driver module, used to call the camera hardware module;
[0391] The image information verification trusted application module is also used to obtain image information;
[0392] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0393] Optionally, the image information verification application module is further used to: when it is determined that the camera hardware module needs to be called in a trusted environment, send a photo request message through a client application module running in a camera framework layer in the REE;
[0394] The photo request message includes at least one of the following:
[0395] Accuracy information of captured images;
[0396] Instructions for taking photos in a trusted environment;
[0397] Information to be photographed;
[0398] Business information.
[0399] Optionally, when the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, the image data signature application module is used to:
[0400] Receive a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE;
[0401] Digitally signing the hash value using a device private key to obtain image signature information;
[0402] The image signature information is sent to the image information verification trusted application module.
[0403] Optionally, the image information verification application module is used to:
[0404] Receiving the image signature information and image information sent by the image information verification trusted application module running in the TEE;
[0405] The image signature information and the image information are sent to the server.
[0406] Optionally, the image information verification application module is used to:
[0407] The image signature information and image information sent by the image information verification trusted application module running in TEE are received through the client application module of the camera framework layer running in REE.
[0408] It should be noted that the device embodiment corresponds to the above method, and all implementation methods in the above method embodiment are applicable to the device embodiment and can achieve the same technical effect.
[0409] The image information security transmission device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0410] The embodiment of the present application also provides an electronic device, wherein the electronic device is equipped with a REE; the electronic device includes a processor and a communication interface, wherein the processor is used to:
[0411] The image information verification application module running in REE calls the camera hardware module to obtain image information according to the camera use request message sent by the server;
[0412] The target module digitally signs the image information to obtain image signature information, wherein the target module includes an image data integrity protection module in a camera hardware abstraction layer module running in REE or an image data signature application module running in a trusted execution environment TEE;
[0413] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0414] Optionally, the processor is configured to implement at least one of the following:
[0415] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message sent by the server to obtain the image information, including at least one of the following:
[0416] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible;
[0417] The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
[0418] Optionally, when the image information verification application module running in the REE is credible in the electronic device, the camera hardware module is called according to the camera use request message to obtain the image information, and the communication interface is used to:
[0419] The image information verification application module running in the REE sends the camera use request message to the client application module of the camera framework layer running in the REE;
[0420] The client application module determines, based on the camera use request message, that the authenticity of the image captured by the camera hardware module needs to be verified, and sends a verification request to the image verification auxiliary trusted application module running in the TEE;
[0421] The client application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE through the image verification assisted trusted application module, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
[0422] Optionally, the communication interface is used for:
[0423] The image information verification application module running in the REE sends a photo request message to the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE according to the camera use request message if the electronic device is credible;
[0424] The camera hardware abstraction layer module running in REE sends a photo request message to the camera driver module running in REE;
[0425] The camera driver module calls the camera hardware module;
[0426] The camera hardware abstraction layer module running in REE obtains image information;
[0427] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0428] Optionally, when the image information verification application module running in the REE is credible in the electronic device, the camera hardware module is called according to the camera use request message to obtain the image information, and the communication interface is used to:
[0429] The image information verification application module running in the REE receives the target information sent by the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE, wherein the target information includes the image signature information;
[0430] The image information verification application module running in REE sends the target information to the server;
[0431] Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or
[0432] In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0433] Optionally, the communication interface is used for:
[0434] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in the trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE;
[0435] The image information verification trusted application module sends a photo request message to the trusted camera service module running in the TEE;
[0436] The trusted camera service module calls the trusted camera driver module running in the TEE according to the photo request message to initiate a photo request;
[0437] The trusted camera driver module calls the camera hardware module;
[0438] The image information verification trusted application module running in TEE obtains image information;
[0439] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0440] Optionally, the communication interface is used for:
[0441] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the REE sends a photo request message through the client application module running in the camera framework layer in the REE;
[0442] The photo request message includes at least one of the following:
[0443] Accuracy information of captured images;
[0444] Instructions for taking photos in a trusted environment;
[0445] Information to be photographed;
[0446] Business information.
[0447] Optionally, the communication interface is used for:
[0448] The image data signature application module receives a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE;
[0449] The processor is used for the image data signature application module to digitally sign the hash value using a device private key to obtain image signature information;
[0450] The image data signature application module sends the image signature information to the image information verification trusted application module.
[0451] Optionally, the communication interface is used for:
[0452] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE;
[0453] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0454] Optionally, the communication interface is used for:
[0455] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE through the client application module of the camera framework layer running in the REE.
[0456] Preferably, the embodiment of the present application also provides an electronic device, wherein the electronic device is deployed with a virtual machine and a target object, wherein the target object includes a TEE and / or a SE, and includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above-mentioned monitoring method embodiment is implemented, and the same technical effect can be achieved. The terminal can be Figure 8 The image information security transmission device shown. Specifically, Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0457] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909 and at least some of the components of a processor 910.
[0458] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0459] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0460] In the embodiment of the present application, after receiving downlink data from the access network device, the radio frequency unit 901 can transmit the data to the processor 910 for processing; in addition, the radio frequency unit 901 can send uplink data to the network side device. Generally, the radio frequency unit 901 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0461] The memory 909 can be used to store software programs or instructions and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0462] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.
[0463] Wherein, the processor is used for:
[0464] The image information verification application module running in REE calls the camera hardware module to obtain image information according to the camera use request message sent by the server;
[0465] The target module digitally signs the image information to obtain image signature information, wherein the target module includes an image data integrity protection module in a camera hardware abstraction layer module running in REE or an image data signature application module running in a trusted execution environment TEE;
[0466] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0467] Optionally, the processor is configured to implement at least one of the following:
[0468] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message sent by the server to obtain the image information, including at least one of the following:
[0469] The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible;
[0470] The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
[0471] Optionally, when the image information verification application module running in the REE is credible in the electronic device, the camera hardware module is called according to the camera use request message to obtain the image information, and the communication interface is used to:
[0472] The image information verification application module running in the REE sends the camera use request message to the client application module of the camera framework layer running in the REE;
[0473] The client application module determines, based on the camera use request message, that the authenticity of the image captured by the camera hardware module needs to be verified, and sends a verification request to the image verification auxiliary trusted application module running in the TEE;
[0474] The client application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE through the image verification assisted trusted application module, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
[0475] Optionally, the communication interface is used for:
[0476] The image information verification application module running in the REE sends a photo request message to the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE according to the camera use request message if the electronic device is credible;
[0477] The camera hardware abstraction layer module running in REE sends a photo request message to the camera driver module running in REE;
[0478] The camera driver module calls the camera hardware module;
[0479] The camera hardware abstraction layer module running in REE obtains image information;
[0480] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0481] Optionally, when the image information verification application module running in the REE is credible in the electronic device, the camera hardware module is called according to the camera use request message to obtain the image information, and the communication interface is used to:
[0482] The image information verification application module running in the REE receives the target information sent by the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE, wherein the target information includes the image signature information;
[0483] The image information verification application module running in REE sends the target information to the server;
[0484] Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or
[0485] In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0486] Optionally, the communication interface is used for:
[0487] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in the trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE;
[0488] The image information verification trusted application module sends a photo request message to the trusted camera service module running in the TEE;
[0489] The trusted camera service module calls the trusted camera driver module running in the TEE according to the photo request message to initiate a photo request;
[0490] The trusted camera driver module calls the camera hardware module;
[0491] The image information verification trusted application module running in TEE obtains image information;
[0492] Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
[0493] Optionally, the communication interface is used for:
[0494] When the image information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the REE sends a photo request message through the client application module running in the camera framework layer in the REE;
[0495] The photo request message includes at least one of the following:
[0496] Accuracy information of captured images;
[0497] Instructions for taking photos in a trusted environment;
[0498] Information to be photographed;
[0499] Business information.
[0500] Optionally, the communication interface is used for:
[0501] The image data signature application module receives a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE;
[0502] The processor is used for the image data signature application module to digitally sign the hash value using a device private key to obtain image signature information;
[0503] The image data signature application module sends the image signature information to the image information verification trusted application module.
[0504] Optionally, the communication interface is used for:
[0505] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE;
[0506] The image information verification application module running in the REE sends the image signature information and the image information to the server.
[0507] Optionally, the communication interface is used for:
[0508] The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE through the client application module of the camera framework layer running in the REE.
[0509] like Fig.10 As shown, at least one embodiment of the present application further provides a device for securely transmitting image information, including:
[0510] The sending module 1001 is used to send a camera use request message to the electronic device;
[0511] A receiving module 1002 is used to receive image signature information and image information fed back by an image information verification application module running in the REE of the electronic device;
[0512] Verification module 1003, used to verify the image signature information;
[0513] The processing module 1004 is used to process the image information after the verification is passed.
[0514] Optionally, the verification module 1003 is used to:
[0515] Verify the validity of the server certificate based on the server's root certificate;
[0516] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0517] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0518] Optionally, the receiving module 1002 is used to:
[0519] Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information;
[0520] The target information also includes: image information and parameter information used to generate a signature key; or
[0521] The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0522] Optionally, when the target information further includes: image information and parameter information used to generate a signature key, the verification module 1003 is used to:
[0523] Verify the validity of the server certificate based on the server's root certificate;
[0524] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0525] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0526] Verify whether the image signature information is valid based on the signature verification key.
[0527] Optionally, when the target information further includes: image information and an image verification certificate, the verification module 1003 is used to:
[0528] Verify the validity of the server certificate based on the server's root certificate;
[0529] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0530] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0531] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0532] It should be noted that the device embodiment corresponds to the above method, and all implementation methods in the above method embodiment are applicable to the device embodiment and can achieve the same technical effect.
[0533] The image information security transmission device provided in the embodiment of the present application can achieve Figure 7The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0534] The embodiment of the present application further provides a server, including a processor and a communication interface, wherein the communication interface is used to:
[0535] Sending a camera use request message to the electronic device;
[0536] Receiving image signature information and image information fed back by an image information verification application module running in the REE of the electronic device;
[0537] The processor is used to verify the image signature information;
[0538] After the verification is passed, the image information is processed.
[0539] Optionally, the processor is configured to:
[0540] Verify the validity of the server certificate based on the server's root certificate;
[0541] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0542] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0543] Optionally, the communication interface is used to:
[0544] Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information;
[0545] The target information also includes: image information and parameter information used to generate a signature key; or
[0546] The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0547] Optionally, when the target information further includes: image information and parameter information used to generate a signature key, the processor is configured to:
[0548] Verify the validity of the server certificate based on the server's root certificate;
[0549] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0550] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0551] Verify whether the image signature information is valid based on the signature verification key.
[0552] Optionally, when the target information further includes: image information and an image verification certificate, the processor is configured to:
[0553] Verify the validity of the server certificate based on the server's root certificate;
[0554] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0555] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0556] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0557] like Fig.11 As shown, an embodiment of the present application also provides a server, including a processor 1100, a transceiver 1110, a memory 1120, and a program stored on the memory 1120 and executable on the processor 1100; wherein the transceiver 1110 is connected to the processor 1100 and the memory 1120 via a bus interface, and the transceiver 1110 is used to receive and send data under the control of the processor 1100.
[0558] Among them, Fig.11 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1100 and various circuits of memory represented by memory 1120 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1110 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including wireless channels, wired channels, optical cables, and other transmission media. For different user devices, the user interface 1130 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0559] The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 can store data used by the processor 1100 when performing operations.
[0560] Optionally, the processor 1100 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.
[0561] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0562] The processor is configured to read the computer program in the memory and perform the following operations:
[0563] Sending a camera use request message to the electronic device;
[0564] Receiving image signature information and image information fed back by an image information verification application module running in the REE of the electronic device;
[0565] Verifying the image signature information;
[0566] After the verification is passed, the image information is processed.
[0567] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0568] Verify the validity of the server certificate based on the server's root certificate;
[0569] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0570] When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
[0571] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0572] Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information;
[0573] The target information also includes: image information and parameter information used to generate a signature key; or
[0574] The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
[0575] Optionally, when the target information further includes: image information and parameter information used to generate a signature key, the processor is configured to read the computer program in the memory and perform the following operations:
[0576] Verify the validity of the server certificate based on the server's root certificate;
[0577] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0578] If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information;
[0579] Verify whether the image signature information is valid based on the signature verification key.
[0580] Optionally, when the target information further includes: image information and an image verification certificate, the processor is configured to read the computer program in the memory to perform the following operations:
[0581] Verify the validity of the server certificate based on the server's root certificate;
[0582] If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate;
[0583] If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate;
[0584] If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
[0585] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image information secure transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0586] The readable storage medium may be non-volatile or non-transient. The readable storage medium may include a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0587] The embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned image information security transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0588] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for securely transmitting image information, applied to an electronic device, wherein the electronic device is deployed with a universal execution environment REE; characterized in that: include: The image information verification application module running in REE calls the camera hardware module to obtain image information according to the camera use request message sent by the server; The target module digitally signs the image information to obtain image signature information, wherein the target module includes an image data integrity protection module in a camera hardware abstraction layer module running in REE or an image data signature application module running in a trusted execution environment TEE; The image information verification application module running in the REE sends the image signature information and the image information to the server.
2. The method according to claim 1, characterized in that The image information verification application module running in the REE calls the camera hardware module according to the camera use request message sent by the server to obtain the image information, including at least one of the following: The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible; The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
3. The method according to claim 2, characterized in that In the case where the image information verification application module running in the REE is credible in the electronic device, the camera hardware module is called according to the camera use request message to obtain the image information, the method further includes: The image information verification application module running in the REE sends the camera use request message to the client application module of the camera framework layer running in the REE; The client application module determines, based on the camera use request message, that the authenticity of the image captured by the camera hardware module needs to be verified, and sends a verification request to the image verification auxiliary trusted application module running in the TEE; The client application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE through the image verification assisted trusted application module, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
4. The method according to claim 2 or 3, characterized in that: The image information verification application module running in the REE, when the electronic device is credible, calls the camera hardware module according to the camera use request message to obtain image information, including: The image information verification application module running in the REE sends a photo request message to the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE according to the camera use request message if the electronic device is credible; The camera hardware abstraction layer module running in REE sends a photo request message to the camera driver module running in REE; The camera driver module calls the camera hardware module; The camera hardware abstraction layer module running in REE obtains image information; Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
5. The method according to any one of claims 2 to 4, characterized in that: When the image information verification application module running in the REE is trustworthy in the electronic device, the image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain the image information, and the image information verification application module running in the REE sends the image signature information and the image information to the server, including: The image information verification application module running in the REE receives the target information sent by the camera hardware abstraction layer module running in the REE through the client application module of the camera framework layer running in the REE, wherein the target information includes the image signature information; The image information verification application module running in REE sends the target information to the server; Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
6. The method according to claim 2, characterized in that The image information verification application module running in the REE calls the trusted camera driver module to obtain image information, including: When the image information verification application module running in the REE determines that the camera hardware module needs to be called in the trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE; The image information verification trusted application module sends a photo request message to the trusted camera service module running in the TEE; The trusted camera service module calls the trusted camera driver module running in the TEE according to the photo request message to initiate a photo request; The trusted camera driver module calls the camera hardware module; The image information verification trusted application module running in TEE obtains image information; Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
7. The method according to claim 6, characterized in that When the image information verification application module running in the REE determines that the camera hardware module needs to be called in the trusted environment, the image information verification application module running in the TEE transmits a photo request message to the image information verification trusted application module running in the TEE, including: When the image information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, the image information verification application module running in the REE sends a photo request message through the client application module running in the camera framework layer in the REE; The photo request message includes at least one of the following: Accuracy information of captured images; Instructions for taking photos in a trusted environment; Information to be photographed; Business information.
8. The method according to claim 2, 6 or 7, characterized in that: When the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, the target module digitally signs the image information to obtain image signature information, including: The image data signature application module receives a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE; The image data signature application module digitally signs the hash value using a device private key to obtain image signature information; The image data signature application module sends the image signature information to the image information verification trusted application module.
9. The method according to claim 1 or 8, characterized in that: The image information verification application module running in the REE sends the image signature information and the image information to the server, including: The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE; The image information verification application module running in the REE sends the image signature information and the image information to the server.
10. The method according to claim 9, characterized in that The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE, including: The image information verification application module running in the REE receives the image signature information and image information sent by the image information verification trusted application module running in the TEE through the client application module of the camera framework layer running in the REE.
11. A method for securely transmitting image information, characterized in that: include: Sending a camera use request message to the electronic device; Receiving image signature information and image information fed back by an image information verification application module running in the REE of the electronic device; Verifying the image signature information; After the verification is passed, the image information is processed.
12. The method according to claim 11, characterized in that The verifying the image signature information includes: Verify the validity of the server certificate based on the server's root certificate; If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate; When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
13. The method according to claim 11, characterized in that The receiving of the image signature information and the image information fed back by the image information verification application module running in the REE of the electronic device includes: Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information; The target information also includes: image information and parameter information used to generate a signature key; or The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
14. The method according to claim 13, characterized in that In the case where the target information also includes: image information and parameter information used to generate a signature key, the verifying of the image signature information includes: Verify the validity of the server certificate based on the server's root certificate; If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate; If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information; Verify whether the image signature information is valid based on the signature verification key.
15. The method according to claim 13, characterized in that In the case where the target information further includes: image information and an image verification certificate, the verifying of the image signature information includes: Verify the validity of the server certificate based on the server's root certificate; If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate; If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate; If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
16. A device for securely transmitting image information, applied to an electronic device, wherein the electronic device is equipped with a universal execution environment (REE); characterized in that: include: The image information verification application module runs in REE and is used to call the camera hardware module and obtain image information according to the camera use request message sent by the server; A target module, used to digitally sign the image information and obtain image signature information, wherein the target module includes an image data integrity protection module in a camera hardware abstraction layer module running in the REE or an image data signature application module running in a trusted execution environment TEE; The image information verification application module is further used to send the image signature information and the image information to the server.
17. The device according to claim 16, characterized in that The image information verification application module is used to implement at least one of the following: The image information verification application module running in the REE calls the camera hardware module according to the camera use request message to obtain image information when the electronic device is credible; The image information verification application module running in REE calls the trusted camera driver module to obtain image information.
18. The device according to claim 17, characterized in that When the image information verification application module running in the REE is trustworthy, the camera hardware module is called according to the camera use request message to obtain image information. The image information verification application module is further used to: send the camera use request message to the client application module of the camera framework layer running in the REE; The client application module is used to send a verification request to the image verification auxiliary trusted application module running in the TEE when it is determined that the authenticity of the image collected by the camera hardware module needs to be verified according to the camera use request message; The image verification assisted trusted application module obtains a device security status assessment result from a device security assessment trusted application module running in the TEE, and the device security status assessment result is used to indicate whether the electronic device is trustworthy or not.
19. The device according to claim 17 or 18, characterized in that The image information verification application module is also used for: If the electronic device is credible, according to the camera use request message, a camera hardware abstraction layer module running in the REE is sent a photo request message through a client application module of a camera framework layer running in the REE; The camera hardware abstraction layer module runs in REE and is used to send a photo request message to the camera driver module running in REE; A camera driver module, used to call the camera hardware module; The camera hardware abstraction layer module is also used to obtain image information; Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the camera hardware abstraction layer module, and the image attribute information includes at least one of the following: the name of the service that triggers the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
20. The device according to any one of claims 17 to 19, characterized in that When the image information verification application module running in the REE is a trustworthy electronic device, the image information verification application module calls the camera hardware module according to the camera use request message to obtain image information, and the image information verification application module is further used to: Receiving target information sent by a camera hardware abstraction layer module running in REE through a client application module of a camera framework layer running in REE, wherein the target information includes image signature information; Sending the target information to a server; Wherein, in the case where the image data integrity protection module uses a signature key to digitally sign the image information, the target information further includes: image information and parameter information used to generate the signature key; or In the case where the image data integrity protection module uses the image verification private key for digital signature, the target information also includes: image information and an image verification certificate, where the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
21. The device according to claim 17, characterized in that The image information verification application module is further used to: when it is determined that the camera hardware module needs to be called in a trusted environment, transmit a photo request message to the image information verification trusted application module running in the TEE; The image information verification trusted application module is used to send a photo request message to the trusted camera service module running in the TEE; A trusted camera service module is used to call a trusted camera driver module running in the TEE according to the photo request message to initiate a photo request; A trusted camera driver module, used to call the camera hardware module; The image information verification trusted application module is also used to obtain image information; Among them, the image information includes: the original image data collected by the camera hardware module and the image attribute information generated by the image information verification trusted application module, and the image attribute information includes at least one of the following: the name of the service that triggered the shooting, the location of the shooting, the time of the shooting, and the model of the shooting device.
22. The device according to claim 21, characterized in that The image information verification application module is further used to: when it is determined that the camera hardware module needs to be called in a trusted environment, send a photo request message through a client application module running in the camera framework layer in the REE; The photo request message includes at least one of the following: Accuracy information of captured images; Instructions for taking photos in a trusted environment; Information to be photographed; Business information.
23. The device according to claim 17, 21 or 22, characterized in that When the image information verification application module running in the REE calls the trusted camera driver module to obtain image information, the image data signature application module is used to: Receive a signature request message sent by an image information verification trusted application module running in the TEE, wherein the signature request message includes: a hash value obtained based on the image information, wherein the image data signature application module runs in the TEE and / or the security unit SE; Digitally signing the hash value using a device private key to obtain image signature information; The image signature information is sent to the image information verification trusted application module.
24. The device according to claim 16 or 23, characterized in that The image information verification application module is used to: Receiving the image signature information and image information sent by the image information verification trusted application module running in the TEE; The image signature information and the image information are sent to the server.
25. The device according to claim 24, characterized in that The image information verification application module is used to: The image signature information and image information sent by the image information verification trusted application module running in TEE are received through the client application module of the camera framework layer running in REE.
26. An electronic device, wherein a universal execution environment (REE) is deployed on the electronic device; characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for secure transmission of image information as described in any one of claims 1 to 10.
27. A device for securely transmitting image information, characterized in that: include: A sending module, used for sending a camera use request message to the electronic device; A receiving module, used to receive image signature information and image information fed back by an image information verification application module running in the REE of the electronic device; A verification module, used to verify the image signature information; The processing module is used to process the image information after the verification is passed.
28. The device according to claim 27, characterized in that The verification module is used to: Verify the validity of the server certificate based on the server's root certificate; If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate; When the device certificate is valid, whether the image signature information is valid is verified according to the device certificate.
29. The device according to claim 27, characterized in that The receiving module is used for: Receiving target information fed back by an image information verification application module running in the REE of the electronic device, wherein the target information includes image signature information; The target information also includes: image information and parameter information used to generate a signature key; or The target information also includes: image information and an image verification certificate, wherein the image verification certificate is generated by digitally signing the image verification public key based on the device private key.
30. The device according to claim 29, characterized in that When the target information further includes: image information and parameter information used to generate a signature key, the verification module is used to: Verify the validity of the server certificate based on the server's root certificate; If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate; If the device certificate is valid, generate a signature verification key according to the server private key, the device public key and the parameter information; Verify whether the image signature information is valid based on the signature verification key.
31. The device according to claim 29, characterized in that When the target information further includes: image information and an image verification certificate, the verification module is used to: Verify the validity of the server certificate based on the server's root certificate; If the server certificate is valid, verifying whether the device certificate is valid based on the server certificate; If the device certificate is valid, verifying whether the image verification certificate is valid based on the device certificate; If the image verification certificate is valid, whether the image signature information is valid is verified based on the image verification certificate.
32. A server, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for secure transmission of image information as described in any one of claims 11 to 15.
Citation Information
Cited By
Method and apparatus for secure transmission of image information, and electronic device and server
WO2025261318A1
