Data transmission method and device in TEE system

A data transmission method and a technology of a data transmission device, which are applied in the field of TEE, can solve problems such as performance loss, and achieve the effect of reducing overhead and improving operating speed

Active Publication Date: 2019-11-12
ADVANCED NEW TECH CO LTD
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, in the case of log printing by calling the Ocall function on the TEE side, after calling the Ocall function to cause the CPU to switch from the TEE side to the non-TEE side and restore context information such as registers, it is usually necessary to wait for the log printing to be completed on the non-TEE side Then return to the TEE side, bringing a certain performance loss

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data transmission method and device in TEE system
  • Data transmission method and device in TEE system
  • Data transmission method and device in TEE system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Embodiments of this specification will be described below with reference to the accompanying drawings.

[0045] figure 1 A schematic diagram of the TEE system 100 and the flow of data therein according to the embodiment of the present specification is shown. As shown in the figure, system 100 includes a TEE side 11 and a non-TEE side 12 . Wherein, a dedicated buffer register 121 is preset on the non-TEE side 12 as a shared memory for buffering specific data (such as logs) transmitted from the TEE side. A first thread runs on the TEE side 11, and the first thread can obtain first data (for example, log data), and store the first data in the buffer register 121 by calling, for example, a print function (_printf). Specifically, for example, if the TEE system is an SGX system, the _pringf function can be switched to a non-TEE side thread by calling the Ocall function. On the non-TEE side 12, the first thread writes the log into the buffer register 121, after which the fi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a data transmission method and device in a TEE system, and the method is executed by a first thread from a TEE side, and comprises the steps: obtaining first data; calling a predetermined function by taking the first data as an input parameter so as to switch to a non-TEE side; obtaining a write offset address by reading the first address; obtaining a readoffset address by reading the second address; judging whether the number of bytes of the first data is smaller than or equal to the number of writable bytes or not, wherein the number of writable bytes is determined based on the write offset address and the read offset address, and each address corresponds to one byte; when the byte number of the first data is smaller than or equal to the writablebyte number, writing the first data into a third address starting from the write offset address; updating a write offset address in the first address; and returning to the TEE side.

Description

technical field [0001] The embodiments of this specification relate to the technical field of TEE, and more specifically, to a data transmission method and device in a TEE system. Background technique [0002] Trusted Execution Environment (TEE-Trusted Execution Environment) is a safe and trusted area in the processor, which can guarantee the security, confidentiality and integrity of the code and data placed in it. TEE provides an isolated execution environment. Code and data can run in this trusted area. During the operation, calculations that are not interfered by conventional operating systems can be guaranteed, so that the confidentiality and integrity of code and data can be guaranteed. Compared with conventional operating systems, TEE (EAL2+) provides a higher level of security; compared with SE (EAL5), it provides more functions and better performance. There are many ways to implement TEE, such as Intel's SGX, AMD's SEV, ARM's TrustZone (trusted zone), etc. Because...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F21/60
CPCG06F9/544G06F21/606
Inventor 刘琦赵博然闫莺魏长征
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products