Multimedia information secure transmission method and device, electronic equipment and server
By verifying and signing the multimedia information collected by the camera in the virtual machine and trusted execution environment of the electronic device, the problem of information security when using the camera remotely is solved, and the integrity and reliability of the information are guaranteed.
Patent Information
- Application Number
- CN202410812177.5
- 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
When existing terminal systems use cameras remotely, image or video collection is at risk of being attacked, and security cannot be guaranteed.
Deploy a virtual machine and a trusted execution environment TEE or secure unit SE in an electronic device, and use the multimedia information verification trusted application module to call the camera hardware module to obtain the multimedia information and digitally sign it in the TEE or SE to ensure the integrity of the information. and security.
By verifying in the virtual machine and signing in the TEE or SE, it avoids information tampering, improves the security of remote camera use, and ensures the integrity and reliability of multimedia information during transmission.
Smart Images

Figure CN118694539A
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 multimedia 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. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and server for secure transmission of multimedia information to ensure the security of remote use of 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 multimedia information, which is applied to an electronic device, wherein the electronic device is deployed with a virtual machine and a target object, wherein the target object includes a trusted execution environment TEE and / or a security unit SE; comprising:
[0006] The multimedia information verification trusted application module running in the virtual machine calls the camera hardware module to obtain multimedia information according to the multimedia recording request message, wherein the multimedia recording request message is determined based on the camera use request message sent by the server;
[0007] The multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information;
[0008] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server.
[0009] Optionally, the method further includes:
[0010] The multimedia information verification application module running in the universal execution environment REE receives the camera use request message sent by the server;
[0011] When the multimedia information verification application module running in the universal execution environment REE determines that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through the client application module of the camera framework layer running in the REE.
[0012] Optionally, the multimedia recording request message includes at least one of the following:
[0013] Instructions for taking photos in a trusted environment;
[0014] Information to be photographed;
[0015] Business information.
[0016] Optionally, the multimedia information verification trusted application module running in the virtual machine calls the camera hardware module according to the multimedia recording request message to obtain the multimedia information, including:
[0017] The multimedia information verification trusted application module running in the virtual machine calls the trusted camera driver module according to the multimedia recording request message to obtain multimedia information;
[0018] The trusted camera driver module runs in the virtual machine or the TEE.
[0019] Optionally, the multimedia information verification trusted application module running in the virtual machine calls a trusted camera driver module according to the multimedia recording request message to obtain multimedia information, including:
[0020] The multimedia information verification trusted application module running in the virtual machine sends a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE;
[0021] The trusted camera service module calls the trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request;
[0022] The trusted camera driver module calls the camera hardware module;
[0023] The multimedia information verification trusted application module running in the virtual machine obtains multimedia information;
[0024] Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0025] Optionally, the multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information, including:
[0026] The multimedia digital signature application module running in the target object receives the signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information;
[0027] The multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain multimedia signature information;
[0028] The multimedia digital signature application module running in the target object sends the target information to the multimedia information verification trusted application module, the target information includes multimedia signature information and certificate information, and the certificate information includes a device certificate and / or a server certificate;
[0029] Wherein, the multimedia digital signature application module runs in TEE and / or SE.
[0030] Optionally, when the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE, the multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain the multimedia signature information, including:
[0031] The multimedia digital signature trusted application module sends the signature request message to the key management module;
[0032] The key management module signs the hash value according to the device private key to obtain multimedia signature information.
[0033] Optionally, the multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server, including:
[0034] The multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE;
[0035] The multimedia information verification application module running in the REE sends the multimedia signature information and the multimedia information to the server.
[0036] Optionally, the multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE, including:
[0037] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and multimedia information to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
[0038] In a second aspect, an embodiment of the present application provides a method for securely transmitting multimedia information, including:
[0039] Sending a camera use request message to the electronic device;
[0040] Receiving multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device;
[0041] Verifying the multimedia signature information;
[0042] After the verification is passed, the multimedia information is processed.
[0043] Optionally, the verifying the multimedia signature information includes:
[0044] Verify the validity of the server certificate based on the server's root certificate;
[0045] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0046] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0047] In a third aspect, an embodiment of the present application provides a multimedia information secure transmission device, which is applied to an electronic device, wherein the electronic device is deployed with a virtual machine and a target object, wherein the target object includes a trusted execution environment TEE and / or a security unit SE; including:
[0048] a multimedia information verification trusted application module, running in the virtual machine, for invoking a camera hardware module to obtain multimedia information according to a multimedia recording request message, wherein the multimedia recording request message is determined based on a camera use request message sent by a server;
[0049] A multimedia digital signature application module, running in the target object, is used to sign the multimedia information and obtain multimedia signature information;
[0050] The multimedia information verification trusted application module is also used to send the multimedia signature information and the multimedia information to the server.
[0051] Optionally, the device further comprises:
[0052] The multimedia information verification application module runs in the universal execution environment REE and is used to receive the camera use request message sent by the server;
[0053] When it is determined that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through a client application module running in the camera framework layer in the REE.
[0054] Optionally, the multimedia recording request message includes at least one of the following:
[0055] Instructions for taking photos in a trusted environment;
[0056] Information to be photographed;
[0057] Business information.
[0058] Optionally, the multimedia information verification trusted application module is used to:
[0059] Calling a trusted camera driver module according to the multimedia recording request message to obtain multimedia information;
[0060] The trusted camera driver module runs in the virtual machine or the TEE.
[0061] Optionally, the multimedia information verification trusted application module is used to:
[0062] Sending a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE;
[0063] A trusted camera service module, configured to call a trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request;
[0064] A trusted camera driver module, used to call the camera hardware module;
[0065] The multimedia information verification trusted application module is also used to obtain multimedia information;
[0066] Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0067] Optionally, the multimedia digital signature application module is used to:
[0068] Receiving a signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information;
[0069] Signing the hash value using a device private key to obtain multimedia signature information;
[0070] Sending target information to the multimedia information verification trusted application module, the target information including multimedia signature information and certificate information, the certificate information including device certificate and / or server certificate;
[0071] Wherein, the multimedia digital signature application module runs in TEE and / or SE.
[0072] Optionally, when the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE, the multimedia digital signature trusted application module is used to send the signature request message to the key management module;
[0073] The key management module is used to sign the hash value according to the device private key to obtain multimedia signature information.
[0074] Optionally, the multimedia information verification trusted application module is used to:
[0075] Passing the multimedia signature information and the multimedia information to a multimedia information verification application module running in REE;
[0076] The multimedia information verification application module is used to send multimedia signature information and multimedia information to the server.
[0077] Optionally, the multimedia information verification trusted application module is used to:
[0078] The multimedia signature information and the multimedia information are sent to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
[0079] In a fourth aspect, an embodiment of the present application provides an electronic device, 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 multimedia information.
[0080] In a fifth aspect, an embodiment of the present application provides a multimedia information secure transmission device, including:
[0081] A sending module, used for sending a camera use request message to the electronic device;
[0082] A receiving module, used to receive multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device;
[0083] A verification module, used to verify the multimedia signature information;
[0084] The processing module is used to process the multimedia information after the verification is passed.
[0085] Optionally, the verification module is used to:
[0086] Verify the validity of the server certificate based on the server's root certificate;
[0087] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0088] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0089] 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 multimedia information.
[0090] 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 securely transmitting multimedia information are implemented.
[0091] 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 securely transmitting multimedia information.
[0092] In an embodiment of the present application, the multimedia information verification trusted application module running in the virtual machine calls the camera hardware module according to the multimedia recording request message to obtain the multimedia information, the multimedia digital signature application module running in the target object signs the multimedia information to obtain the multimedia signature information, and the multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server; ensuring that the electronic device side can sign the multimedia information collected by the camera can prevent the information from being tampered with, thereby improving the security of remote use of the camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figure 1 This is one of the flowcharts of the method for securely transmitting multimedia information according to an embodiment of the present application;
[0094] Figure 2 It is one of the communication architecture diagrams of the embodiment of the present application;
[0095] Figure 3 This is the second communication architecture diagram of the embodiment of the present application;
[0096] Figure 4 yes Figure 3 A flowchart of the architecture shown;
[0097] Figure 5 This is the third communication architecture diagram of the embodiment of the present application;
[0098] Figure 6 This is the fourth communication architecture diagram of the embodiment of the present application;
[0099] Figure 7 This is the fifth communication architecture diagram of the embodiment of the present application;
[0100] Figure 8 This is a second flow chart of the method for securely transmitting multimedia information according to an embodiment of the present application;
[0101] Fig. 9 This is one of the module schematic diagrams of the multimedia information security transmission device according to the embodiment of the present application;
[0102] Fig.10 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0103] Fig.11 This is the second module schematic diagram of the multimedia information secure transmission device according to the embodiment of the present application;
[0104] Fig.12 It is a schematic diagram of the structure of the server of the embodiment of the present application. DETAILED DESCRIPTION
[0105] 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.
[0106] 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.
[0107] The following, in conjunction with the accompanying drawings, describes in detail the multimedia information security transmission method, device, electronic device and server provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0108] like Figure 1 As shown, an embodiment of the present application provides a method for secure transmission of multimedia information, which is applied to an electronic device, wherein the electronic device is deployed with a virtual machine (Virtual Machine, VM) and a target object, wherein the target object includes a trusted execution environment (Trusted Execution Environment, TEE) and / or a secure element (Secure Element, SE); the method includes:
[0109] Step 101, the multimedia information verification trusted application module running in the virtual machine calls the camera hardware module to obtain multimedia information according to a multimedia recording request message, wherein the multimedia recording request message is determined based on a camera use request message sent by a server;
[0110] It should be noted that the multimedia recording mentioned in the embodiments of the present application may include operations such as taking photos and recording videos.
[0111] Optionally, the multimedia information includes: original data and multimedia attribute information. Optionally, the multimedia attribute information includes but is not limited to at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0112] Optionally, the multimedia attribute information may be understood as metadata.
[0113] Step 102, the multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information;
[0114] Step 103: the multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server.
[0115] It should be noted that, in the embodiment of the present application, a multimedia information verification trusted application module is added to the virtual machine, so that the electronic device can safely call the camera hardware module, and the multimedia information collected by the camera is signed by the multimedia digital signature application module in the TEE and / or SE, which can prevent the information from being tampered with and improve the security of remote use of the camera.
[0116] Optionally, the multimedia information in the embodiment of the present application includes but is not limited to at least one of the following: image information, video information.
[0117] 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.
[0118] Optionally, in one implementation, the method further includes:
[0119] The multimedia information verification application module running in the Rich Execution Environment (REE) receives the camera use request message sent by the server;
[0120] When the multimedia information verification application module running in the REE determines that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through the client application module of the camera framework layer running in the REE.
[0121] It should be noted that the virtual machine in the embodiment of the present application cannot communicate directly with the server, but first receives the camera usage request message sent by the server through the multimedia information verification application module in the REE. The multimedia information verification application module needs to identify based on the camera usage request message to confirm whether it is necessary to call the camera hardware module in a trusted environment. If it is necessary to call the camera hardware module in a trusted environment, it is necessary to send a multimedia recording 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 multimedia recording request message, and then forwards the multimedia recording request message to the multimedia information verification trusted application module.
[0122] It should be noted that the multimedia 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 multimedia 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.
[0123] It should be noted that the implementation method of the multimedia 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.
[0124] Optionally, in one implementation, the multimedia recording request message includes at least one of the following:
[0125] A11, instructions for taking photos in a trusted environment;
[0126] 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.
[0127] A12. Information to be photographed;
[0128] 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.
[0129] A13. Business information;
[0130] Optionally, the business information includes but is not limited to: business name, business attributes, etc.
[0131] Optionally, in one implementation, the multimedia information verification trusted application module running in the virtual machine calls the camera hardware module according to the multimedia recording request message to obtain the multimedia information, including:
[0132] The multimedia information verification trusted application module running in the virtual machine calls the trusted camera driver module according to the multimedia recording request message to obtain multimedia information;
[0133] The trusted camera driver module runs in the virtual machine or the TEE.
[0134] It should be noted that in this case, the multimedia information verification trusted application module calls the trusted camera driver module located in the virtual machine or TEE. That is to say, it is necessary to add a trusted camera driver module in the virtual machine or TEE. In this case, the collected multimedia information will not be tampered with by other applications.
[0135] Further optionally, in an implementation, the multimedia information verification trusted application module running in the virtual machine calls a trusted camera driver module according to the multimedia recording request message to obtain multimedia information, including:
[0136] Step 11: The multimedia information verification trusted application module running in the virtual machine sends a multimedia recording request message to the trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE;
[0137] 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 virtual machine or TEE.
[0138] Optionally, if the trusted camera service module and the trusted camera driver module are located in the TEE, the trusted camera service module can directly communicate with the multimedia information verification trusted application module in the virtual machine; or, the trusted camera service module cannot directly communicate with the multimedia information verification trusted application module in the virtual machine, but communicates with the multimedia information verification trusted application module through the multimedia digital signature trusted application module in the multimedia digital signature application module.
[0139] Step 12: The trusted camera service module calls the trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request;
[0140] Step 13: The trusted camera driver module calls the camera hardware module;
[0141] Step 14: The multimedia information verification trusted application module running in the virtual machine obtains multimedia information;
[0142] Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0143] It should be noted that after the camera hardware module collects the raw data, it usually stores the raw data in the memory. The trusted camera driver module feeds back the memory address storing the raw data to the multimedia information verification trusted application module through the trusted camera service module. The multimedia information verification trusted application module can directly obtain the raw data from the memory based on the memory address.
[0144] Optionally, in one implementation, the multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information, including:
[0145] Step 21: The multimedia digital signature application module running in the target object receives a signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information;
[0146] It should be noted that after obtaining the original data, the multimedia information verification trusted application module processes the original data, such as compressing the original data, obtaining the time and place when the original data was shot, etc., and then performs hash calculation on the multimedia information that needs to be returned to the server, including the original data and the multimedia attribute information corresponding to the multimedia information (such as the time and place of shooting, device information (such as OS version, device model, etc.), and business information of this visit (such as name, attributes, etc.)), to obtain a hash value; and then sends the hash value to the multimedia digital signature application module.
[0147] Step 22: The multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain multimedia signature information;
[0148] Step 23: The multimedia digital signature application module running in the target object sends the target information to the multimedia information verification trusted application module, wherein the target information includes multimedia signature information and certificate information, and the certificate information includes a device certificate and / or a server certificate;
[0149] Wherein, the multimedia digital signature application module runs in TEE and / or SE.
[0150] It should be noted that by signing the hash value through the multimedia digital signature application module running in the TEE and / or SE, the server can verify whether the sent multimedia information has been tampered with, thereby ensuring the reliability of the sent information.
[0151] Optionally, in one implementation, the multimedia digital 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 multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and both the multimedia digital signature trusted application module and the key management module run in the TEE or SE; in another case, the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE. Optionally, in this case, the multimedia digital signature application module running in the target object signs the hash value using the device private key, and the specific implementation of obtaining the multimedia signature information includes:
[0152] The multimedia digital signature trusted application module sends the signature request message to the key management module;
[0153] The key management module signs the hash value according to the device private key to obtain multimedia signature information.
[0154] It should be noted that when the multimedia digital signature trusted application module and the key management module run in different environments, the key management module running in the SE needs to sign the hash value.
[0155] Optionally, in one implementation, the multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server, including:
[0156] The multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE;
[0157] The multimedia information verification application module running in the REE sends the multimedia signature information and the multimedia information to the server.
[0158] Further optionally, in an implementation, the multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE, including:
[0159] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and multimedia information to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
[0160] It should be noted that after obtaining the multimedia signature information, the multimedia information verification trusted application module needs to first send the multimedia signature information and the multimedia information to the client application module of the camera framework layer, and the client application module sends the multimedia signature information and the multimedia information to the multimedia information verification application module, and the multimedia information verification application module sends the multimedia signature information and the multimedia information to the server; optionally, the multimedia information verification application module can also obtain some additional information (such as device information, business information, address information, etc.), and send these additional information together with the multimedia signature information and the multimedia information to the server. It should be noted that the information sent by the multimedia 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.
[0161] Optionally, after receiving the information sent by the multimedia information verification application module, the server needs to verify the multimedia signature information, and after the verification is passed, process the multimedia information.
[0162] Optionally, in one implementation, the specific implementation of the server verifying the multimedia signature information includes:
[0163] Verify the validity of the server certificate based on the server's root certificate;
[0164] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0165] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0166] It should be noted that when verifying the validity of the signature, the server needs to process the multimedia information. Optionally, the processing method includes: according to the original business logic, further verifying whether the multimedia information meets the access requirements of the business, such as whether the time and place of shooting the multimedia information are reasonable, whether the multimedia information is shot for the business, whether the shot information is valid, whether the biometric verification is successful, etc.
[0167] 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 multimedia information verification service module for communicating with the multimedia 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 (HSM), and generating a server certificate based on the server public key and sending it to the electronic device.
[0168] It should be noted that the embodiment of the present application drives the camera hardware module to take pictures in a hardware-isolated manner in TEE; and processes the multimedia information taken 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 multimedia information based on TEE's key management; and finally sends the multimedia information and its digitally signed multimedia signature information to the server together. During the transmission of multimedia information, any tampering will result in the failure of the digital signature verification on the server, thereby achieving security protection for the entire link of the electronic device shooting to obtain multimedia information, that is, integrity and security protection from trusted camera driving to obtain trusted multimedia information and finally transmission to the server.
[0169] The specific implementation of the embodiments of the present application is described below.
[0170] It should be noted that the embodiments of the present application mainly involve the following functional modules:
[0171] The multimedia information verification service module of the server can verify the digital signature of the multimedia information from the electronic device and determine whether the multimedia information is taken by the claimed electronic device.
[0172] The multimedia information verification application module of the electronic device and the client application module of the camera framework layer support the electronic device to use the camera to shoot the required information in a hardware isolated environment, and support the identification of when and where the multimedia information was shot by which electronic device.
[0173] The trusted camera service module of the electronic device supports driving the camera to take pictures in a hardware-isolated manner. In this case, any application on the REE side does not have access to camera resources, thereby reducing attacks on the camera by malicious applications on the REE side when taking pictures.
[0174] The multimedia digital signature trusted application module and key management module of the electronic device support the digital signature of multimedia information to prove to the digital signature verifier that the multimedia information was taken by the claimed electronic device; wherein the key management module generates a pair of public / private key pairs for the multimedia information verification service (it can be a pair for each electronic device, or a pair shared by electronic devices on the same chip platform), which are referred to as device public / private key pairs in the embodiment of the present application, and the corresponding ones are device public key, device private key, and device certificate; the multimedia digital signature trusted application module uses the device private key to sign the multimedia information.
[0175] The multimedia information verification trusted application module of the electronic device supports the corresponding processing of the captured multimedia information (such as face detection / interaction judgment, ID photo area selection, compression, etc.) and triggers related operations such as digital signature.
[0176] The certificate management module of the server needs to use the key management service (KMS) and hardware security module (such as HSM) to generate a public / private key pair, which is referred to as the server public / private key pair in the embodiment of the present application. The main implementation includes: generating a server certificate based on the server public key; using the server private key to sign the device public key to generate a device certificate; the server certificate is used to verify the signature of the certificate chain, that is, the server certificate verifies whether the device certificate is correct and valid, and the device certificate verifies whether the signature of the multimedia information is correct and valid.
[0177] It should be noted that before carrying out the embodiments of the present application, it is necessary to initialize the information security protection based on the terminal side virtualization, which specifically includes:
[0178] The electronic equipment side implements the following process:
[0179] 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.
[0180] The electronic device securely sends the device public key to the mobile device management server (e.g., based on TLS or HTTPS protocols), generates a device certificate, and stores it securely;
[0181] The electronic device obtains the server certificate and stores it securely.
[0182] The certificate management module of the mobile device management server implements the following process:
[0183] Generate a server public / private key pair and store the server private key in the HSM;
[0184] Generate a server certificate based on the server public key and send it to the electronic device.
[0185] A structure of an embodiment of the present application is as follows Figure 2 and Figure 3 As shown, Figure 2 and Figure 3 The difference is that Figure 2 In the example, the trusted camera service module and the trusted camera driver module are located in the VM. Figure 3 The trusted camera service module and the trusted camera driver module are located in the TEE. Optionally, if the trusted camera service module and the trusted camera driver module are located in the TEE, the trusted camera service module can directly communicate with the multimedia information verification trusted application module in the VM; or, the trusted camera service module cannot directly communicate with the multimedia information verification trusted application module in the VM, but communicates with the multimedia information verification trusted application module through the multimedia digital signature trusted application module in the multimedia digital signature application module.
[0186] For example, Figure 3 The architecture shown in the figure takes the camera to collect multimedia as an example. The specific communication process is as follows Figure 4 As shown, it mainly includes:
[0187] Step 401, the multimedia information verification service module of the server sends a camera use request message to the multimedia information verification application module in the REE of the electronic device, requesting the electronic device to take a photo of the required information (such as face, ID photo, etc.) to provide multimedia information for verification of the service;
[0188] Step 402: The multimedia information verification application module of the REE of the electronic device recognizes that the photo shooting needs to be performed in a trusted environment, and forwards the multimedia recording request message to the client application module of the camera framework layer. The message includes (but is not limited to): instructions 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 shot by the camera), the information required to be shot, business information, etc.;
[0189] Step 403: the client application module of the camera framework layer recognizes that the multimedia recording request message needs to be performed in a trusted environment, and forwards the multimedia recording request message to the multimedia information verification trusted application module of the VM;
[0190] Step 404, the multimedia information verification trusted application module sends a multimedia recording request message to the trusted camera service module of the TEE;
[0191] Step 405: The trusted camera service module calls the trusted camera driver module to initiate a multimedia recording request;
[0192] Step 406: The trusted camera driver module turns on the hardware camera function and takes a photo of the required information in a hardware-isolated manner. In this step, a lot of interactive information is omitted, such as the need for liveness detection and facial comparison when face recognition, and the need to verify the shooting range and clarity of the ID photo when taking the ID photo.
[0193] Step 407, the camera driver module returns the captured raw data to the trusted camera service module;
[0194] Step 408, the trusted camera service module returns the captured original data to the multimedia information verification trusted application module;
[0195] Step 409, the multimedia information verification trusted application module processes the obtained original data, such as compressing the original data, obtaining the time and location of the original data shooting, etc., and then performs hash calculation on the multimedia information including the original data and the multimedia attribute information corresponding to the original data (such as the shooting time, location, device information (such as OS version, device model, etc.), and the service information of this visit (such as name, attributes, etc.)) that needs to be returned to the server to obtain a hash value;
[0196] Step 410: The multimedia information verification trusted application module sends a signature request message to the multimedia digital signature trusted application module, and the message includes the hash value calculated in the previous step;
[0197] Step 411, the multimedia digital signature trusted application module requests the device private key from the key management module;
[0198] Step 412, the multimedia digital signature trusted application module signs the hash value using the device private key;
[0199] Step 413, the multimedia digital signature trusted application module returns the multimedia signature information to the multimedia information verification trusted application module;
[0200] Step 414, the multimedia information verification trusted application module returns the multimedia information and the corresponding multimedia signature information to the client application module of the camera framework layer;
[0201] Step 415, the client application module of the camera framework layer returns the multimedia information and the corresponding multimedia signature information to the multimedia information verification application module;
[0202] Step 416, the multimedia information verification application module obtains some additional information (such as device information, service information, address information, etc.);
[0203] Step 417, the multimedia information verification application module returns the additional information, multimedia information and corresponding multimedia signature information to the multimedia information verification service module of the server. The returned information will be 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;
[0204] Step 418: After receiving the return message, the multimedia information verification service module of the server performs verification and processing operations, which specifically include the following operations:
[0205] Verify that the server certificate is valid based on the server's root certificate;
[0206] Based on the server certificate, verify whether the device certificate is valid;
[0207] Based on the device certificate, verify whether the signature of the multimedia information is valid or has been tampered with.
[0208] When the signature of the multimedia information is valid or has not been tampered with, further verification is performed based on the original business logic to determine whether the multimedia information meets the access requirements of the business, such as whether the time and place of the multimedia shooting are reasonable, whether the multimedia information is shot for the business, whether the ID photo information is valid, and whether the biometric verification is successful.
[0209] It should be noted that SE-based key management is more secure than TEE-based key management. Therefore, if the device public / private key pair and the signature of multimedia information in this application are all performed in SE, the security of the system will be improved.
[0210] like Figure 5 , Figure 6 and Figure 7 As shown, there are three different architecture diagrams. Figure 5 In the example, all units included in the multimedia digital signature application module are located in the SE, and the trusted camera service module and the trusted camera driver module are located in the VM; Figure 6 In the multimedia digital signature application module, the multimedia digital signature trusted application module is located in the TEE, the key management module is located in the SE, and the trusted camera service module and the trusted camera driver module are located in the VM; Figure 7 In the multimedia digital signature application module, the multimedia digital signature trusted application module is located in the TEE, the key management module is located in the SE, and the trusted camera service module and the trusted camera driver module are located in the TEE.
[0211] It should be noted that, when only the key management module is located in the SE, the key management module needs to sign the hash value.
[0212] It should be noted that the embodiments of the present application can achieve the following beneficial effects:
[0213] When performing remote authentication based on biometrics (such as facial recognition), prevent or reduce attacks such as the synthesis or editing of facial multimedia;
[0214] When registering valid IDs online, prevent or reduce attacks such as tampering or replacement of ID photos.
[0215] like Figure 8 As shown, at least one embodiment of the present application further provides a method for securely transmitting multimedia information, including:
[0216] Step 801, sending a camera use request message to an electronic device;
[0217] Step 802, receiving multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device;
[0218] Step 803, verifying the multimedia signature information;
[0219] Step 804: After the verification is passed, the multimedia information is processed.
[0220] Optionally, the verifying the multimedia signature information includes:
[0221] Verify the validity of the server certificate based on the server's root certificate;
[0222] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0223] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0224] 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 multimedia information between an application and a server, and can also achieve the same technical effects, which will not be repeated here.
[0225] like Fig. 9 As shown, at least one embodiment of the present application further provides a multimedia information security transmission device, which is applied to 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; the device includes:
[0226] A multimedia information verification trusted application module 901, running in the virtual machine, is used to call a camera hardware module to obtain multimedia information according to a multimedia recording request message, wherein the multimedia recording request message is determined based on a camera use request message sent by a server;
[0227] A multimedia digital signature application module 902, which runs in the target object and is used to sign the multimedia information and obtain multimedia signature information;
[0228] The multimedia information verification trusted application module 901 is also used to send the multimedia signature information and the multimedia information to the server.
[0229] Optionally, the device further comprises:
[0230] The multimedia information verification application module runs in the universal execution environment REE and is used to receive the camera use request message sent by the server;
[0231] When it is determined that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through a client application module running in the camera framework layer in the REE.
[0232] Optionally, the multimedia recording request message includes at least one of the following:
[0233] Instructions for taking photos in a trusted environment;
[0234] Information to be photographed;
[0235] Business information.
[0236] Optionally, the multimedia information verification trusted application module is used to:
[0237] Calling a trusted camera driver module according to the multimedia recording request message to obtain multimedia information;
[0238] The trusted camera driver module runs in the virtual machine or the TEE.
[0239] Optionally, the multimedia information verification trusted application module is used to:
[0240] Sending a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE;
[0241] A trusted camera service module, configured to call a trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request;
[0242] A trusted camera driver module, used to call the camera hardware module;
[0243] The multimedia information verification trusted application module is also used to obtain multimedia information;
[0244] Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0245] Optionally, the multimedia digital signature application module is used to:
[0246] Receiving a signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information;
[0247] Signing the hash value using a device private key to obtain multimedia signature information;
[0248] Sending target information to the multimedia information verification trusted application module, the target information including multimedia signature information and certificate information, the certificate information including device certificate and / or server certificate;
[0249] Wherein, the multimedia digital signature application module runs in TEE and / or SE.
[0250] Optionally, when the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE, the multimedia digital signature trusted application module is used to send the signature request message to the key management module;
[0251] The key management module is used to sign the hash value according to the device private key to obtain multimedia signature information.
[0252] Optionally, the multimedia information verification trusted application module is used to:
[0253] Passing the multimedia signature information and the multimedia information to a multimedia information verification application module running in REE;
[0254] The multimedia information verification application module is used to send multimedia signature information and multimedia information to the server.
[0255] Optionally, the multimedia information verification trusted application module is used to:
[0256] The multimedia signature information and the multimedia information are sent to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
[0257] 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.
[0258] The multimedia 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.
[0259] The embodiment of the present application further 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 an SE; and includes a processor and a communication interface, wherein the processor is used to:
[0260] The multimedia information verification trusted application module running in the virtual machine calls the camera hardware module to obtain multimedia information according to the multimedia recording request message, wherein the multimedia recording request message is determined based on the camera use request message sent by the server;
[0261] The multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information;
[0262] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server.
[0263] Optionally, the processor is configured to:
[0264] The multimedia information verification application module running in the universal execution environment REE receives the camera use request message sent by the server;
[0265] When the multimedia information verification application module running in the universal execution environment REE determines that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through the client application module of the camera framework layer running in the REE.
[0266] Optionally, the multimedia recording request message includes at least one of the following:
[0267] Instructions for taking photos in a trusted environment;
[0268] Information to be photographed;
[0269] Business information.
[0270] Optionally, the processor is configured to:
[0271] The multimedia information verification trusted application module running in the virtual machine calls the trusted camera driver module according to the multimedia recording request message to obtain multimedia information;
[0272] The trusted camera driver module runs in the virtual machine or the TEE.
[0273] Optionally, the processor is configured to:
[0274] The multimedia information verification trusted application module running in the virtual machine sends a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE;
[0275] The trusted camera service module calls the trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request;
[0276] The trusted camera driver module calls the camera hardware module;
[0277] The multimedia information verification trusted application module running in the virtual machine obtains multimedia information;
[0278] Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0279] Optionally, the processor is configured to:
[0280] The multimedia digital signature application module running in the target object receives the signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information;
[0281] The multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain multimedia signature information;
[0282] The multimedia digital signature application module running in the target object sends the target information to the multimedia information verification trusted application module, the target information includes multimedia signature information and certificate information, and the certificate information includes a device certificate and / or a server certificate;
[0283] Wherein, the multimedia digital signature application module runs in TEE and / or SE.
[0284] Optionally, when the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE, the processor is used to:
[0285] The multimedia digital signature trusted application module sends the signature request message to the key management module;
[0286] The key management module signs the hash value according to the device private key to obtain multimedia signature information.
[0287] Optionally, the processor is configured to:
[0288] The multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE;
[0289] The multimedia information verification application module running in the REE sends the multimedia signature information and the multimedia information to the server.
[0290] Optionally, the processor is configured to:
[0291] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and multimedia information to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
[0292] 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 electronic device may be Fig. 9 The multimedia information security transmission device shown. Specifically, Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0293] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009 and at least some of the components of a processor 1010.
[0294] Those skilled in the art will appreciate that the electronic device 1000 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 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The 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.
[0295] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of static multimedia 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 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 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.
[0296] In the embodiment of the present application, after receiving downlink data from the access network device, the radio frequency unit 1001 can transmit the data to the processor 1010 for processing; in addition, the radio frequency unit 1001 can send uplink data to the network side device. Generally, the radio frequency unit 1001 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0297] The memory 1009 can be used to store software programs or instructions and various data. The memory 1009 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 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 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 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0298] The processor 1010 may include one or more processing units; optionally, the processor 1010 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 1010.
[0299] Wherein, the processor is used for:
[0300] The multimedia information verification trusted application module running in the virtual machine calls the camera hardware module to obtain multimedia information according to the multimedia recording request message, wherein the multimedia recording request message is determined based on the camera use request message sent by the server;
[0301] The multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information;
[0302] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server.
[0303] Optionally, the processor is configured to:
[0304] The multimedia information verification application module running in the universal execution environment REE receives the camera use request message sent by the server;
[0305] When the multimedia information verification application module running in the universal execution environment REE determines that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through the client application module of the camera framework layer running in the REE.
[0306] Optionally, the multimedia recording request message includes at least one of the following:
[0307] Instructions for taking photos in a trusted environment;
[0308] Information to be photographed;
[0309] Business information.
[0310] Optionally, the processor is configured to:
[0311] The multimedia information verification trusted application module running in the virtual machine calls the trusted camera driver module according to the multimedia recording request message to obtain multimedia information;
[0312] The trusted camera driver module runs in the virtual machine or the TEE.
[0313] Optionally, the processor is configured to:
[0314] The multimedia information verification trusted application module running in the virtual machine sends a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE;
[0315] The trusted camera service module calls the trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request;
[0316] The trusted camera driver module calls the camera hardware module;
[0317] The multimedia information verification trusted application module running in the virtual machine obtains multimedia information;
[0318] Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
[0319] Optionally, the processor is configured to:
[0320] The multimedia digital signature application module running in the target object receives the signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information;
[0321] The multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain multimedia signature information;
[0322] The multimedia digital signature application module running in the target object sends the target information to the multimedia information verification trusted application module, the target information includes multimedia signature information and certificate information, and the certificate information includes a device certificate and / or a server certificate;
[0323] Wherein, the multimedia digital signature application module runs in TEE and / or SE.
[0324] Optionally, when the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE, the processor is used to:
[0325] The multimedia digital signature trusted application module sends the signature request message to the key management module;
[0326] The key management module signs the hash value according to the device private key to obtain multimedia signature information.
[0327] Optionally, the processor is configured to:
[0328] The multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE;
[0329] The multimedia information verification application module running in the REE sends the multimedia signature information and the multimedia information to the server.
[0330] Optionally, the processor is configured to:
[0331] The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and multimedia information to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
[0332] like Fig.11 As shown, at least one embodiment of the present application further provides a multimedia information security transmission device, including:
[0333] The sending module 1101 is used to send a camera use request message to the electronic device;
[0334] A receiving module 1102, configured to receive multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device;
[0335] Verification module 1103, used to verify the multimedia signature information;
[0336] The processing module 1104 is used to process the multimedia information after the verification is passed.
[0337] Optionally, the verification module 1103 is used to:
[0338] Verify the validity of the server certificate based on the server's root certificate;
[0339] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0340] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0341] 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.
[0342] The multimedia information security transmission device provided in the embodiment of the present application can achieve Figure 8 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0343] The embodiment of the present application also provides a server, including a processor and a communication interface, wherein the communication interface is used to send a camera use request message to an electronic device; receive multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device;
[0344] The processor is used to verify the multimedia signature information; after the verification is passed, the multimedia information is processed.
[0345] Optionally, the processor is configured to:
[0346] Verify the validity of the server certificate based on the server's root certificate;
[0347] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0348] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0349] like Fig.12 As shown, an embodiment of the present application also provides a server, including a processor 1200, a transceiver 1210, a memory 1220, and a program stored on the memory 1220 and executable on the processor 1200; wherein the transceiver 1210 is connected to the processor 1200 and the memory 1220 via a bus interface, and the transceiver 1210 is used to receive and send data under the control of the processor 1200.
[0350] Among them, Fig.12 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1200 and various circuits of memory represented by memory 1220 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 1210 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 1230 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.
[0351] The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 can store data used by the processor 1200 when performing operations.
[0352] Optionally, the processor 1200 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.
[0353] 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.
[0354] The processor is configured to read the computer program in the memory and perform the following operations:
[0355] Sending a camera use request message to the electronic device;
[0356] Receiving multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device;
[0357] Verifying the multimedia signature information;
[0358] After the verification is passed, the multimedia information is processed.
[0359] Optionally, the processor is configured to read the computer program in the memory to perform the following operations:
[0360] Verify the validity of the server certificate based on the server's root certificate;
[0361] If the server certificate is valid, verifying whether the device certificate is valid according to the server certificate;
[0362] In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
[0363] 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 multimedia information security transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0364] 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.
[0365] 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 multimedia information security transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0366] 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 secure transmission of multimedia information, applied to an electronic device, wherein the electronic device is deployed with a virtual machine and a target object, wherein the target object includes a trusted execution environment TEE and / or a security unit SE; characterized in that: include: The multimedia information verification trusted application module running in the virtual machine calls the camera hardware module to obtain multimedia information according to the multimedia recording request message, wherein the multimedia recording request message is determined based on the camera use request message sent by the server; The multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information; The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server.
2. The method according to claim 1, characterized in that Also includes: The multimedia information verification application module running in the universal execution environment REE receives the camera use request message sent by the server; When the multimedia information verification application module running in the universal execution environment REE determines that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through the client application module of the camera framework layer running in the REE.
3. The method according to claim 2, characterized in that The multimedia recording request message includes at least one of the following: Instructions for taking photos in a trusted environment; Information to be photographed; Business information.
4. The method according to claim 1, characterized in that: The multimedia information verification trusted application module running in the virtual machine calls the camera hardware module according to the multimedia recording request message to obtain multimedia information, including: The multimedia information verification trusted application module running in the virtual machine calls the trusted camera driver module according to the multimedia recording request message to obtain multimedia information; The trusted camera driver module runs in the virtual machine or the TEE.
5. The method according to claim 4, characterized in that The multimedia information verification trusted application module running in the virtual machine calls the trusted camera driver module according to the multimedia recording request message to obtain multimedia information, including: The multimedia information verification trusted application module running in the virtual machine sends a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE; The trusted camera service module calls the trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request; The trusted camera driver module calls the camera hardware module; The multimedia information verification trusted application module running in the virtual machine obtains multimedia information; Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
6. The method according to claim 1, characterized in that The multimedia digital signature application module running in the target object signs the multimedia information to obtain multimedia signature information, including: The multimedia digital signature application module running in the target object receives the signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information; The multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain multimedia signature information; The multimedia digital signature application module running in the target object sends the target information to the multimedia information verification trusted application module, the target information includes multimedia signature information and certificate information, and the certificate information includes a device certificate and / or a server certificate; Wherein, the multimedia digital signature application module runs in TEE and / or SE.
7. The method according to claim 6, characterized in that In the case where the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE, and the key management module runs in the SE, the multimedia digital signature application module running in the target object signs the hash value using the device private key to obtain multimedia signature information, including: The multimedia digital signature trusted application module sends the signature request message to the key management module; The key management module signs the hash value according to the device private key to obtain multimedia signature information.
8. The method according to claim 1, characterized in that The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and the multimedia information to the server, including: The multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE; The multimedia information verification application module running in the REE sends the multimedia signature information and the multimedia information to the server.
9. The method according to claim 8, characterized in that The multimedia information verification trusted application module running in the virtual machine transmits the multimedia signature information and the multimedia information to the multimedia information verification application module running in the REE, including: The multimedia information verification trusted application module running in the virtual machine sends the multimedia signature information and multimedia information to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
10. A method for securely transmitting multimedia information, characterized in that: include: Sending a camera use request message to the electronic device; Receiving multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device; Verifying the multimedia signature information; After the verification is passed, the multimedia information is processed.
11. The method according to claim 10, characterized in that The verifying the multimedia 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; In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
12. A multimedia information secure transmission device, applied to an electronic device, wherein the electronic device is deployed with a virtual machine and a target object, wherein the target object includes a trusted execution environment TEE and / or a security unit SE; characterized in that: include: a multimedia information verification trusted application module, running in the virtual machine, for invoking a camera hardware module to obtain multimedia information according to a multimedia recording request message, wherein the multimedia recording request message is determined based on a camera use request message sent by a server; A multimedia digital signature application module, running in the target object, is used to sign the multimedia information and obtain multimedia signature information; The multimedia information verification trusted application module is also used to send the multimedia signature information and the multimedia information to the server.
13. The device according to claim 12, characterized in that Also includes: The multimedia information verification application module runs in the universal execution environment REE and is used to receive the camera use request message sent by the server; When it is determined that the camera hardware module needs to be called in a trusted environment, a multimedia recording request message is sent to the multimedia information verification trusted application module through a client application module running in the camera framework layer in the REE.
14. The device according to claim 12 or 13, characterized in that The multimedia recording request message includes at least one of the following: Instructions for taking photos in a trusted environment; Information to be photographed; Business information.
15. The device according to claim 12, characterized in that The multimedia information verification trusted application module is used to: Calling a trusted camera driver module according to the multimedia recording request message to obtain multimedia information; The trusted camera driver module runs in the virtual machine or the TEE.
16. The device according to claim 15, characterized in that The multimedia information verification trusted application module is used to: Sending a multimedia recording request message to a trusted camera service module, where the trusted camera service module runs in the virtual machine or the TEE; A trusted camera service module, configured to call a trusted camera driver module according to the multimedia recording request message to initiate a multimedia recording request; A trusted camera driver module, used to call the camera hardware module; The multimedia information verification trusted application module is also used to obtain multimedia information; Among them, the multimedia information includes the original data collected by the camera hardware module and the multimedia attribute information generated by the multimedia information verification trusted application module, and the multimedia attribute information includes at least one of the following: the name of the service that triggers the multimedia recording, the location of the shooting, the time of the shooting, and the model of the device for shooting.
17. The device according to claim 12, characterized in that The multimedia digital signature application module is used to: Receiving a signature request message sent by the multimedia information verification trusted application module, wherein the signature request message includes: a hash value obtained based on the multimedia information; Signing the hash value using a device private key to obtain multimedia signature information; Sending target information to the multimedia information verification trusted application module, the target information including multimedia signature information and certificate information, the certificate information including device certificate and / or server certificate; Wherein, the multimedia digital signature application module runs in TEE and / or SE.
18. The device according to claim 17, characterized in that When the multimedia digital signature application module includes a multimedia digital signature trusted application module and a key management module, and the multimedia digital signature trusted application module runs in the TEE and the key management module runs in the SE, the multimedia digital signature trusted application module is used to send the signature request message to the key management module; The key management module is used to sign the hash value according to the device private key to obtain multimedia signature information.
19. The device according to claim 12, characterized in that The multimedia information verification trusted application module is used to: Passing the multimedia signature information and the multimedia information to a multimedia information verification application module running in REE; The multimedia information verification application module is used to send multimedia signature information and multimedia information to the server.
20. The device according to claim 19, characterized in that The multimedia information verification trusted application module is used to: The multimedia signature information and the multimedia information are sent to the multimedia information verification application module running in the REE through the client application module of the camera framework layer running in the REE.
21. An 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 securely transmitting multimedia information as described in any one of claims 1 to 9.
22. A multimedia information secure transmission device, 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 multimedia signature information and multimedia information fed back by a multimedia information verification trusted application module running in a virtual machine of the electronic device; A verification module, used to verify the multimedia signature information; The processing module is used to process the multimedia information after the verification is passed.
23. The device according to claim 22, 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; In the case that the device certificate is valid, whether the multimedia signature information is valid is verified according to the device certificate.
24. 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. When the program or instruction is executed by the processor, the steps of the method for securely transmitting multimedia information as described in any one of claims 10-11 are implemented.
Citation Information
Cited By
Secure multimedia information transmission method and apparatus, electronic device, and server
WO2025261408A1
