The disclosure relates to an electronic device that provides a trusted execution environment (TEE).
A TEE may restrict an application executed in a rich execution environment (REE) (general execution environment) from accessing a secure area, and may safely defense the secure area (e.g., secure processor, secure memory) from the REE or an external device. An operating system (OS) included in the TEE may provide an important function for security that needs to be separated from an application executed in the REE. The TEE OS may be developed by a manufacturer that produces a chip (e.g., system on chip (SOC)) or an electronic device (e.g., smartphone) embedded with a chip. Based on specifications related to a TEE OS and/or an application programming interface (API) for connecting the TEE OS and an application, which are provided from the manufacturer, a developer may develop an application (trusted application) executable in the TEE and/or a service using the corresponding application (e.g., Internet banking or electronic payment service using biometric authentication). The developed application or service may be deployed (deployment) so that users may use the same.
The above information is presented as background information only to assist with an understanding of the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure.
A trusted execution environment (TEE) may be installed in an electronic device (e.g., smartphone) and may be executed by a secure area (e.g., secure processor) of the corresponding electronic device, and may protect at least some blocks (e.g., secure memory) in the secure area from an REE or an external device. When specifications related to a secure area of a processor is not provided to a developer, it is difficult to develop an application or service related to security, and thus a security service may not be provided to a user in the corresponding electronic device.
A plurality of TEEs which are classified by provided security function (e.g., data encryption, artificial intelligence, financial services, trustable user interface) may be installed in an electronic device. In this instance, a developer may not be easy to identify hardware to which each TEE is connected and a function provided by each TEE, and thus may have difficulty in developing an application or a service. For example, a developer who desires to develop a camera-related security service may need to accurately recognize a TEE connectable to a camera from among the plurality of TEEs and a function provided by the corresponding TEE, so as to develop and deploy a related service.
Aspects of the disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the disclosure is to provide an electronic device provides information associated with functions executable in TEEs contained in the electronic device to a client (e.g., an application operating in the REE) that requests execution of a security function, so as to provide various and useful services to a user in association with security.
Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments.
In accordance with an aspect of the disclosure, an electronic device is provided. The electronic device includes one or more processors and first memory, storing one or more computer programs, the first memory being connected to the one or more processors, and divided into a first normal area that provides a rich execution environment (REE) and a first secure area that provides a plurality of trusted execution environments (TEEs) to which access by software executed in the REE is controllable, wherein the one or more computer programs include computer-executable instructions which, when executed by the one or more processors, cause the electronic device to obtain, from the plurality of TEEs, capability information indicating functions that the plurality of TEEs are capable of executing, and provide the capability information to an application executed in the REE so that the application identifies a TEE capable of executing a required function.
In accordance with another aspect of the disclosure, a method of operating an electronic device, including first memory divided into a first normal area that provides a rich execution environment (REE) and a first secure area that provides a plurality of trusted execution environments (TEEs) to which access by software executed in the REE is controllable, is provided. The method includes obtaining, from the plurality of TEEs, capability information indicating functions that the plurality of TEEs are capable of executing, and providing the capability information to an application executed in the REE so that the application identifies a TEE capable of executing a required function.
In accordance with still another aspect of the disclosure, one or more non-transitory computer-readable storage media storing one or more computer programs including computer-executable instructions that, when executed by one or more processors of an electronic device individually or collectively, cause the electronic device to perform operations, the one or more non-transitory computer readable storage media including first memory divided into a first normal area that provides a rich execution environment (REE) and a first secure area that provides a plurality of trusted execution environments (TEEs) to which access by software executed in the REE is controllable, are provided. The operations include obtaining, from the plurality of TEEs, capability information indicating functions that the plurality of TEEs are capable of executing, and providing the capability information to an application executed in the REE so that the application identifies a TEE capable of executing a required function.
According to various embodiments, the advantages of a multi-TEE may be maximized and TEEs in the multi-TEE may be capable of performing service exchange therebetween and dynamic service configuration. In addition, various effects directly or indirectly recognized from the disclosure can be provided.
Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure.
The above and other aspects, features, and advantages of certain embodiments of the disclosure will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:
Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures.
The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of various embodiments of the disclosure as defined by the claims and their equivalents. It includes various specific details to assist in that understanding but these are to be regarded as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the various embodiments described herein can be made without departing from the scope and spirit of the disclosure. In addition, descriptions of well-known functions and constructions may be omitted for clarity and conciseness.
The terms and words used in the following description and claims are not limited to the bibliographical meanings, but, are merely used by the inventor to enable a clear and consistent understanding of the disclosure. Accordingly, it should be apparent to those skilled in the art that the following description of various embodiments of the disclosure is provided for illustration purpose only and not for the purpose of limiting the disclosure as defined by the appended claims and their equivalents.
By the term “substantially” it is meant that the recited characteristic, parameter, or value need not be achieved exactly, but that deviations or variations, including for example, tolerances, measurement error, measurement accuracy limitations and other factors known to those of skill in the art, may occur in amounts that do not preclude the effect the characteristic was intended to provide.
It should be appreciated that the blocks in each flowchart and combinations of the flowcharts may be performed by one or more computer programs which include instructions. The entirety of the one or more computer programs may be stored in a single memory device or the one or more computer programs may be divided with different portions stored in different multiple memory devices.
Any of the functions or operations described herein can be processed by one processor or a combination of processors. The one processor or the combination of processors is circuitry performing processing and includes circuitry like an application processor (AP, e.g. a central processing unit (CPU)), a communication processor (CP, e.g., a modem), a graphics processing unit (GPU), a neural processing unit (NPU) (e.g., an artificial intelligence (AI) chip), a Wi-Fi chip, a Bluetooth® chip, a global positioning system (GPS) chip, a near field communication (NFC) chip, connectivity chips, a sensor controller, a touch controller, a finger-print sensor controller, a display driver integrated circuit (IC), an audio CODEC chip, a universal serial bus (USB) controller, a camera controller, an image processing IC, a microprocessor unit (MPU), a system on chip (SoC), an IC, or the like.
Referring to
The processor 120 may execute, for example, software (e.g., a program 140) to control at least one other component (e.g., a hardware or software component) of the electronic device 101 coupled with the processor 120, and may perform various data processing or computation. According to one embodiment, as at least part of the data processing or computation, the processor 120 may store a command or data received from another component (e.g., the sensor module 176 or the communication module 190) in volatile memory 132, process the command or the data stored in the volatile memory 132, and store resulting data in non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)), or an auxiliary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor 121. For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or to be specific to a specified function. The auxiliary processor 123 may be implemented as separate from, or as part of the main processor 121.
The auxiliary processor 123 may control at least some of functions or states related to at least one component (e.g., the display module 160, the sensor module 176, or the communication module 190) among the components of the electronic device 101, instead of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or together with the main processor 121 while the main processor 121 is in an active state (e.g., executing an application). According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., the camera module 180 or the communication module 190) functionally related to the auxiliary processor 123. According to an embodiment, the auxiliary processor 123 (e.g., the neural processing unit) may include a hardware structure specified for artificial intelligence model processing. An artificial intelligence model may be generated by machine learning. Such learning may be performed, e.g., by the electronic device 101 where the artificial intelligence is performed or via a separate server (e.g., the server 108). Learning algorithms may include, but are not limited to, e.g., supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning. The artificial intelligence model may include a plurality of artificial neural network layers. The artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), deep Q-network or a combination of two or more thereof but is not limited thereto. The artificial intelligence model may, additionally or alternatively, include a software structure other than the hardware structure.
The memory 130 may store various data used by at least one component (e.g., the processor 120 or the sensor module 176) of the electronic device 101. The various data may include, for example, software (e.g., the program 140) and input data or output data for a command related thereto. The memory 130 may include the volatile memory 132 or the non-volatile memory 134.
The program 140 may be stored in the memory 130 as software, and may include, for example, an operating system (OS) 142, middleware 144, or an application 146.
The input module 150 may receive a command or data to be used by another component (e.g., the processor 120) of the electronic device 101, from the outside (e.g., a user) of the electronic device 101. The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
The sound output module 155 may output sound signals to the outside of the electronic device 101. The sound output module 155 may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as playing multimedia or playing record. The receiver may be used for receiving incoming calls. According to an embodiment, the receiver may be implemented as separate from, or as part of the speaker.
The display module 160 may visually provide information to the outside (e.g., a user) of the electronic device 101. The display module 160 may include, for example, a display, a hologram device, or a projector and control circuitry to control a corresponding one of the display, hologram device, and projector. According to an embodiment, the display module 160 may include a touch sensor adapted to detect a touch, or a pressure sensor adapted to measure the intensity of force incurred by the touch.
The audio module 170 may convert a sound into an electrical signal and vice versa. According to an embodiment, the audio module 170 may obtain the sound via the input module 150, or output the sound via the sound output module 155 or a headphone of an external electronic device (e.g., an electronic device 102) directly (e.g., wiredly) or wirelessly coupled with the electronic device 101.
The sensor module 176 may detect an operational state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) external to the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
The interface 177 may support one or more specified protocols to be used for the electronic device 101 to be coupled with the external electronic device (e.g., the electronic device 102) directly (e.g., wiredly) or wirelessly. According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
A connecting terminal 178 may include a connector via which the electronic device 101 may be physically connected with the external electronic device (e.g., the electronic device 102). According to an embodiment, the connecting terminal 178 may include, for example, a HDMI connector, a USB connector, a SD card connector, or an audio connector (e.g., a headphone connector).
The haptic module 179 may convert an electrical signal into a mechanical stimulus (e.g., a vibration or a movement) or electrical stimulus which may be recognized by a user via his tactile sensation or kinesthetic sensation. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electric stimulator.
The camera module 180 may capture a still image or moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
The power management module 188 may manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least part of, for example, a power management integrated circuit (PMIC).
The battery 189 may supply power to at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a primary cell which is not rechargeable, a secondary cell which is rechargeable, or a fuel cell.
The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and the external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108) and performing communication via the established communication channel. The communication module 190 may include one or more communication processors that are operable independently from the processor 120 (e.g., the application processor (AP)) and supports a direct (e.g., wired) communication or a wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules may communicate with the external electronic device via the first network 198 (e.g., a short-range communication network, such as Bluetooth™, wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA)) or the second network 199 (e.g., a long-range communication network, such as a legacy cellular network, a fifth generation (5G) network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)). These various types of communication modules may be implemented as a single component (e.g., a single chip), or may be implemented as multi components (e.g., multi chips) separate from each other. The wireless communication module 192 may identify and authenticate the electronic device 101 in a communication network, such as the first network 198 or the second network 199, using subscriber information (e.g., international mobile subscriber identity (IMSI)) stored in the subscriber identification module 196.
The wireless communication module 192 may support a 5G network, after a fourth generation (4G) network, and next-generation communication technology, e.g., new radio (NR) access technology. The NR access technology may support enhanced mobile broadband (eMBB), massive machine type communications (mMTC), or ultra-reliable and low-latency communications (URLLC). The wireless communication module 192 may support a high-frequency band (e.g., the millimeter wave (mmWave) band) to achieve, e.g., a high data transmission rate. The wireless communication module 192 may support various technologies for securing performance on a high-frequency band, such as, e.g., beamforming, massive multiple-input and multiple-output (massive MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101, an external electronic device (e.g., the electronic device 104), or a network system (e.g., the second network 199). According to an embodiment, the wireless communication module 192 may support a peak data rate (e.g., 20 Gbps or more) for implementing eMBB, loss coverage (e.g., 164 dB or less) for implementing mMTC, or U-plane latency (e.g., 0.5 ms or less for each of downlink (DL) and uplink (UL), or a round trip of 1 ms or less) for implementing URLLC.
The antenna module 197 may transmit or receive a signal or power to or from the outside (e.g., the external electronic device) of the electronic device 101. According to an embodiment, the antenna module 197 may include an antenna including a radiating element composed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 may include a plurality of antennas (e.g., array antennas). In such a case, at least one antenna appropriate for a communication scheme used in the communication network, such as the first network 198 or the second network 199, may be selected, for example, by the communication module 190 (e.g., the wireless communication module 192) from the plurality of antennas. The signal or the power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as part of the antenna module 197.
According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to an embodiment, the mmWave antenna module may include a printed circuit board, a RFIC disposed on a first surface (e.g., the bottom surface) of the printed circuit board, or adjacent to the first surface and capable of supporting a designated high-frequency band (e.g., the mmWave band), and a plurality of antennas (e.g., array antennas) disposed on a second surface (e.g., the top or a side surface) of the printed circuit board, or adjacent to the second surface and capable of transmitting or receiving signals of the designated high-frequency band.
At least some of the above-described components may be coupled mutually and communicate signals (e.g., commands or data) therebetween via an inter-peripheral communication scheme (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)).
According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 via the server 108 coupled with the second network 199. Each of the electronic devices 102 or 104 may be a device of a same type as, or a different type, from the electronic device 101. According to an embodiment, all or some of operations to be executed at the electronic device 101 may be executed at one or more of the external electronic devices 102, 104, or 108. For example, if the electronic device 101 should perform a function or a service automatically, or in response to a request from a user or another device, the electronic device 101, instead of, or in addition to, executing the function or the service, may request the one or more external electronic devices to perform at least part of the function or the service. The one or more external electronic devices receiving the request may perform the at least part of the function or the service requested, or an additional function or an additional service related to the request, and transfer an outcome of the performing to the electronic device 101. The electronic device 101 may provide the outcome, with or without further processing of the outcome, as at least part of a reply to the request. To that end, a cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device 101 may provide ultra low-latency services using, e.g., distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet-of-things (IoT) device. The server 108 may be an intelligent server using machine learning and/or a neural network. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology or IoT-related technology.
The OS 142 may control management (e.g., allocating or deallocation) of one or more system resources (e.g., process, memory, or power source) of the electronic device 101. The OS 142, additionally or alternatively, may include one or more driver programs to drive other hardware devices of the electronic device 101, for example, the input module 150, the sound output module 155, the display module 160, the audio module 170, the sensor module 176, the interface 177, the haptic module 179, the camera module 180, the power management module 188, the battery 189, the communication module 190, the subscriber identification module 196, or the antenna module 197.
The middleware 144 may provide various functions to the application 146 such that a function or information provided from one or more resources of the electronic device 101 may be used by the application 146. The middleware 144 may include, for example, an application manager 201, a window manager 203, a multimedia manager 205, a resource manager 207, a power manager 209, a database manager 211, a package manager 213, a connectivity manager 215, a notification manager 217, a location manager 219, a graphic manager 221, a security manager 223, a telephony manager 225, or a voice recognition manager 227.
The application manager 201, for example, may manage the life cycle of the application 146. The window manager 203, for example, may manage one or more graphical user interface (GUI) resources that are used on a screen. The multimedia manager 205, for example, may identify one or more formats to be used to play media files, and may encode or decode a corresponding one of the media files using a codec appropriate for a corresponding format selected from the one or more formats. The resource manager 207, for example, may manage the source code of the application 146 or memory space of the memory 130. The power manager 209, for example, may manage the capacity, temperature, or power of the battery 189, and determine or provide related information to be used for the operation of the electronic device 101 based at least in part on corresponding information of the capacity, temperature, or power of the battery 189. According to an embodiment, the power manager 209 may interwork with a basic input/output system (BIOS) (not shown) of the electronic device 101.
The database manager 211, for example, may generate, search, or change a database to be used by the application 146. The package manager 213, for example, may manage installation or update of an application that is distributed in the form of a package file. The connectivity manager 215, for example, may manage a wireless connection or a direct connection between the electronic device 101 and the external electronic device. The notification manager 217, for example, may provide a function to notify a user of an occurrence of a specified event (e.g., an incoming call, message, or alert). The location manager 219, for example, may manage locational information on the electronic device 101. The graphic manager 221, for example, may manage one or more graphic effects to be offered to a user or a user interface related to the one or more graphic effects.
The security manager 223, for example, may provide system security or user authentication. The telephony manager 225, for example, may manage a voice call function or a video call function provided by the electronic device 101. The voice recognition manager 227, for example, may transmit a user's voice data to the server 108, and receive, from the server 108, a command corresponding to a function to be executed on the electronic device 101 based at least in part on the voice data, or text data converted based at least in part on the voice data. According to an embodiment, the middleware 144 may dynamically delete some existing components or add new components. According to an embodiment, at least part of the middleware 144 may be included as part of the OS 142 or may be implemented as another software separate from the OS 142.
The application 146 may include, for example, a home 251, dialer 253, short message service (SMS)/multimedia messaging service (MMS) 255, instant message (IM) 257, browser 259, camera 261, alarm 263, contact 265, voice recognition 267, email 269, calendar 271, media player 273, album 275, watch 277, health 279 (e.g., for measuring the degree of workout or biometric information, such as blood sugar), or environmental information 281 (e.g., for measuring air pressure, humidity, or temperature information) application. According to an embodiment, the application 146 may further include an information exchanging application (not shown) that is capable of supporting information exchange between the electronic device 101 and the external electronic device. The information exchange application, for example, may include a notification relay application adapted to transfer designated information (e.g., a call, message, or alert) to the external electronic device or a device management application adapted to manage the external electronic device. The notification relay application may transfer notification information corresponding to an occurrence of a specified event (e.g., receipt of an email) at another application (e.g., the email application 269) of the electronic device 101 to the external electronic device. Additionally or alternatively, the notification relay application may receive notification information from the external electronic device and provide the notification information to a user of the electronic device 101.
The device management application may control the power (e.g., turn-on or turn-off) or the function (e.g., adjustment of brightness, resolution, or focus) of the external electronic device or some component thereof (e.g., a display module or a camera module of the external electronic device). The device management application, additionally or alternatively, may support installation, delete, or update of an application running on the external electronic device.
The electronic device according to various embodiments may be one of various types of electronic devices. The electronic devices may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. According to an embodiment of the disclosure, the electronic devices are not limited to those described above.
It should be appreciated that various embodiments of the disclosure and the terms used therein are not intended to limit the technological features set forth herein to particular embodiments and include various changes, equivalents, or replacements for a corresponding embodiment. With regard to the description of the drawings, similar reference numerals may be used to refer to similar or related elements. As used herein, each of such phrases as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B, or C,” “at least one of A, B, and C,” and “at least one of A, B, or C,” may include any one of, or all possible combinations of the items enumerated together in a corresponding one of the phrases. As used herein, such terms as “1st” and “2nd,” or “first” and “second” may be used to simply distinguish a corresponding component from another, and does not limit the components in other aspect (e.g., importance or order). It is to be understood that if an element (e.g., a first element) is referred to, with or without the term “operatively” or “communicatively”, as “coupled with,” “coupled to,” “connected with,” or “connected to” another element (e.g., a second element), it means that the element may be coupled with the other element directly (e.g., wiredly), wirelessly, or via a third element.
As used in connection with various embodiments of the disclosure, the term “module” may include a unit implemented in hardware, software, or firmware, and may interchangeably be used with other terms, for example, “logic,” “logic block,” “part,” or “circuitry”. A module may be a single integral component, or a minimum unit or part thereof, adapted to perform one or more functions. For example, according to an embodiment, the module may be implemented in a form of an application-specific integrated circuit (ASIC).
Various embodiments as set forth herein may be implemented as software (e.g., the program 140) including one or more instructions that are stored in a storage medium (e.g., internal memory 136 or external memory 138) that is readable by a machine (e.g., the electronic device 101). For example, a processor (e.g., the processor 120) of the machine (e.g., the electronic device 101) may invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor. This allows the machine to be operated to perform at least one function according to the at least one instruction invoked. The one or more instructions may include a code generated by a complier or a code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Wherein, the term “non-transitory” simply means that the storage medium is a tangible device, and does not include a signal (e.g., an electromagnetic wave), but this term does not differentiate between where data is semi-permanently stored in the storage medium and where the data is temporarily stored in the storage medium.
According to an embodiment, a method according to various embodiments of the disclosure may be included and provided in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded) online via an application store (e.g., PlayStore™), or between two user devices (e.g., smart phones) directly. If distributed online, at least part of the computer program product may be temporarily generated or at least temporarily stored in the machine-readable storage medium, such as memory of the manufacturer's server, a server of the application store, or a relay server.
According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single entity or multiple entities, and some of the multiple entities may be separately disposed in different components. According to various embodiments, one or more of the above-described components may be omitted, or one or more other components may be added. Alternatively or additionally, a plurality of components (e.g., modules or programs) may be integrated into a single component. In such a case, according to various embodiments, the integrated component may still perform one or more functions of each of the plurality of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration. According to various embodiments, operations performed by the module, the program, or another component may be carried out sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order or omitted, or one or more other operations may be added.
Referring to
The software 301 (e.g., program 140) may be stored in the second memory 350 (e.g., non-volatile memory 134) as instructions, and may be loaded to the first memory 360 (e.g., volatile memory 132) and may be executed by the processor 399 (e.g., processor 120).
The first memory 360 may include a first secure area 361, a first shared area 362, and a first normal area 363. The second memory 350 may include a second secure area 351, a second shared area 352, and a second normal area 353. According to an embodiment, the second shared area 352 may be omitted in the second memory 350, and the second memory 350 may include the second secure area 351 and the normal area 352. According to an embodiment, the first shared area 362 may be omitted in the first memory 360.
The REE 310 may be installed in the second normal area 353 and/or the second shared area 352 of the second memory 350. The REE 310 may be loaded from an area of the second memory 350 where the REE 310 is installed, to the first normal area 363 and/or the first shared area 362 of the first memory 360, and may be executed by the processor 399. The REE 310 may include a general application 311 and a general OS 312. The general OS 312 may be a host OS of the electronic device 300, and may include, for example, Android™, iOS™, Windows™, Symbian™, Tizen™, or Bada™.
The multi-TEE 320 may be installed in the second secure area 351 and/or the second shared area 352 of the second memory 350. The multi-TEE 320 may be loaded from an area of the second memory 350 where the multi-TEE 320 is installed, to the first secure area 361 and/or the first shared area 362 of the first memory 360, and may be executed by the processor 399. The multi-TEE 320 may include a first TEE 321, a second TEE 322, a third TEE 323, and a fourth TEE 324, but the number of TEEs is not limited. For example, the TEEs 321, 322, 323, and 324 may be classified by function providable to a client (e.g., general application 311).
According to an embodiment, the first TEE (e.g., system on chip (SOC) TEE) 321 may provide a root of trust (ROT) function that verifies the state of the electronic device 300. Information provided by the ROT function may include at least one from among a verified booting state, information indicating whether an electronic device is in a locked state, an operating system version, a point in time at which a patch is performed, and/or a patch level. The first TEE 321 may provide a function of storing an encryption key (e.g., enclave key). The first TEE 321 may be operatively connected to a designated component (e.g., secure processor 380) in the hardware 302. A first trusted application (hereinafter, App) 321a and a first trusted OS 321b may be executed in the first TEE 321. The first trusted OS 321b may provide an environment where the components included in the first TEE 321 may operate. For example, the first trusted OS 321b may provide an interface needed for storing an ROT and/or encryption key. The first trusted OS 321b may provide an application programming interface (API) for connecting the first trusted App 321a and the hardware 302 (e.g., secure processor 380). As an example of the first trusted OS 321b, the first trusted OS 321b may include an OS for storing an ROT and/or encryption key. In the document, “connecting” a TEE to designated hardware may refer to a TEE's controlling of hardware so that the hardware performs its function or service or a TEE's managing (e.g., protecting, encrypting, storing, updating, providing) of data generated when a function or service related to hardware is performed.
According to an embodiment, the second TEE 322 (e.g., original equipment manufacturer (OEM) TEE) may provide a trustable user interface. The second TEE 322 may be operatively connected to a designated component (e.g., secure processor 380) in the hardware 302. A second trusted App 322a and a second trusted OS 322b may be executed in the second TEE 322. The second trusted OS 322b may provide an environment where the components included in the second TEE 322 may operate. For example, the second trusted OS 322b may provide a trustable user interface. The second trusted OS 322b may provide an API for connecting the second trusted App 322a and the hardware 302 (e.g., secure processor 380). As an example of the second trusted OS 322b, the second trusted OS 322b may include an OS for providing a trustable user interface.
According to an embodiment, the third TEE 323 (e.g., OEM TEE) may provide a trustable user interface. The third TEE 323 may be operatively connected to a designated component (e.g., sensor 341, camera 342) in the hardware 302. A third trusted App 323a and a third trusted OS 323b may be executed in the third TEE 323. The third trusted OS 323b may provide an environment where the components included in the third TEE 323 may operate. For example, the third trusted OS 323b may provide a trustable user interface. The third trusted OS 323b may provide an API for connecting the third trusted App 323a and the hardware 302 (e.g., sensor 341, camera 342). As an example of the third trusted OS 323b, the third trusted OS 323b may include an OS for providing a trustable user interface.
According to an embodiment, the fourth TEE 324 (e.g., over the air programming (OTA) TEE) may provide an online financial service. The third TEE 323 may be operatively connected to a designated component (e.g., secure processor 380) in the hardware 302. A fourth trusted App 324a and a fourth trusted OS 324b may be executed in the fourth TEE 324. The fourth trusted OS 324b may provide an environment where the components included in the fourth TEE 324 may operate. For example, the fourth trusted OS 324b may provide an online financial service. The fourth trusted OS 324b may provide an API for connecting the fourth trusted App 324a and the hardware 302 (e.g., secure processor 380). As an example of the fourth trusted OS 324b, the fourth trusted OS 324b may include an OS for providing an online financial service.
The monitor 330 may be installed in at least one of the second secure area 351, the second shared area 352, and the second normal area 353 of the second memory 350. The monitor 330 may be loaded from an area of the second memory 350 where the monitor 330 is installed, to the first secure area 361 and/or the first shared area 362 of the first memory 360, and may be executed by the processor 399. The monitor 330 may relay or control the communication between the REE 310 and the TEE 320. The REE 310 may not directly access the TEE 320 (e.g., read data from the TEE 320) but may be configured to access the TEE 320 via the monitor 330. In the case of the monitor 330, for example, the TrustZone technology of Advance RISC Machine (ARM) may be applied.
The application 311 (e.g., application 146 of
A trusted application or trusted OS executable in the multi-TEE 320 may use the sensor 341 and/or camera 342 in order to obtain data that requires protection. For example, the sensor 341 may include a fingerprint sensor used for obtaining fingerprint information. The camera 342 (e.g., camera module 180) may be used for obtaining iris or face information. In the REE 310, the general application 311 or general OS 312 may access a TEE existing in the outside (e.g., cloud server) via the communication circuit 343 (e.g., communication module 190).
Referring to
The secure processor 380 in
The first secure processor 450 may be divided into a plurality of modules based on secure elements embedded in the application processor 410. For example, the first secure processor 450 may include at least one of an RoT module 451, a media processing module 452, an NPU module 453, a user interface (UI) processing module 454, an encryption module 455, and a timer module 456. The ROT module 451 may be configured to support the first TEE 321's provision of a function of storing an ROT and encryption key. The media processing module 452 may be configured to process media information. The NPU module 453 may be configured to support the second TEE's 322 provision of a trustable user interface, and to process a plurality of operations (e.g., multiple simultaneous matrix operations) for artificial intelligence. The UI processing module 454 may be configured to support the fourth TEE's 324 provision of an online financial service. The encryption module 455 may be configured to support the fourth TEE's 324 provision of an online financial service. The timer module 456 may be configured to detect a situation in which a system is uncontrollable (e.g., infinite loop), and to reset the system.
The communication processor 470 may be configured as a single chip with the communication circuit 343, but it is not limited thereto. The communication processor 470 may support the general application 311 or general OS 312 in the REE 310 to access the fifth TEE 402 configured in a cloud edge network 401 via the communication circuit 343.
According to an embodiment, the fifth TEE 402 (e.g., cloud TEE) may provide a service using an artificial intelligence model. The fifth TEE 402 may be operatively connected to a designated component (e.g., communication circuit 343 and communication processor 470) in the hardware 302. A fifth trusted App 402a and a fifth trusted OS 402b may be executed in the fifth TEE 402. The fifth trusted OS 402b may provide an environment where the components included in the fifth TEE 402 may operate. For example, the fifth trusted OS 402b may provide a service using an artificial intelligence model. The fifth trusted OS 402b may provide an API for connecting the fifth trusted App 402a and the hardware 302 (e.g., communication circuit 343 and communication processor 470). As an example of the fifth trusted OS 402b, the fifth trusted OS 402b may include an OS for providing a service using an artificial intelligence model.
Referring to
Referring to
The TEEs 651, 652, and 653 may provide information indicating their capability information to the secure management module 620 in operation 601 when they are installed in the second memory 350 (e.g., first non-volatile memory 430 or second non-volatile memory 440) of the electronic device 300 or when they are loaded (loading) from the second memory 350 to the first memory 360 (e.g., first secure area 361 and/or first shared area 362). A cloud TEE (e.g., fifth TEE 402) may be included in the TEEs 651, 652, and 653. The secure management module 620 may request capability information of the cloud TEE from the cloud edge network 401 via communication circuit 343. The secure management module 620 may receive the capability information of the cloud TEE as a response to the request. The capability information may include information indicating a function that is providable to the client 610 via the corresponding TEE. The secure management module 620 may reconfigure, in the form of feature map, the capability information 630, received from each TEE 651, 652, and 653 and may store the same in a secure area (e.g., second secure area 351 or first secure area 361) of memory.
The secure management module 620 may provide the capability information 630 to the client 610 in response to a request from the client 610 in operation 602. Based on the provided capability information 630, the client 610 may identify the TEE-1651, TEE-2652, and TEE-3653 installed in the electronic device 300. The TEE-1651 may be one of the TEEs 321, 322, 323, 324, and 402 illustrated in
According to an embodiment, the client 610 may directly request the TEE, recognized as a TEE capable of executing a required function, to execute the function. For example, based on the capability information 630, the client 610 may recognize that the TEE-3653 is capable of executing a required function, and request the TEE-3653 to execute the function in operation 603. In response to the request in operation 603, the TEE-3653 may load a corresponding trusted application to a secure area (e.g., first secure area 361) of volatile memory, and may safely execute the same in the secure area.
According to an embodiment, via another TEE, the client 610 may indirectly request the TEE, recognized as a TEE capable of executing the required function, to execute the function. Based on the capability information 630, the client 610 may recognize that the TEE-2652 is capable of executing a required function. The client 610 may select the TEE-1651 as an agent to transfer the request of the client 610. For example, the client 610 may arbitrarily select one of the TEEs 651, 652, and 653 as an agent. According to an embodiment, TEE-1651 may be designated as an agent from among the TEEs 651, 652, and 653. The client 610 may identify a designated agent based on the provided capability information 630. The client 610 may request, from the TEE-1651 which is an agent, execution of the function by the TEE-2652 in operation 604. In response to the request in operation 604, the TEE-1651 may request the TEE-2652 to execute the function required by the client 610 in operation 605. The TEE-2652 may request the secure management module 620 to identify and report whether the TEE-1651 has a privilege as an agent in operation 606. In response to the request in operation 606, the secure management module 620 may identify the ACL 640 and may provide an identification result to the TEE-2652 in operation 607. The TEE-2652 may recognize, based on the identification result, that the TEE-1651 has a privilege as an agent. Accordingly, in response to the request in operation 605, the TEE-2652 may load a corresponding trusted application to a secure area (e.g., first secure area 361) of volatile memory, and may safely execute the same in the secure area.
Referring to
The secure management module 620 may reconfigure the capability information 700, provided from the TEE, to be in the form of a feature map (or feature table) as illustrated in Table 1 given below, and may store the same in a secure area (e.g., second secure area 351 or first secure area 361) of memory.
The client 610 may recognize a function that a TEE provides by using a feature map reconfigured based on the capability information of the corresponding TEE. For example, in the case of a TEE having “TEE ID2” as an ID, “display-map” may be recorded for the DT of the item 730 and “0xABCDEF” may be recorded for the SFR. In the reconfigured feature map, “TEE_ShowBitmap” and “TEE_UpdateDisplay” may be recorded as standardized API lists in the function list. The client 610 provided with the feature map may recognize that the corresponding TEE is a TEE that provides a function related to a display. The client 610 may request the corresponding TEE to execute a function related to a display.
In operation 810, the secure management module 620 may receive capability information from TEEs (e.g., TEE-a 801 and TEE-b 802). The secure management module 620 may reconfigure capability information in the form of a feature map, and may store the same in a secure area of memory.
In operation 820, the secure management module 620 may provide, to the TEEs 801 and 802, a key (e.g., per-distrusted key) used when capability information is shared between TEEs.
In operation 830, via a shared key-based key agreement process (e.g., pairwise key agreement) performed between the TEEs 801 and 802, the TEEs 801 and 802 may share capability information and may establish a shared channel for exchanging data (e.g., a function execution request message of a client, a binary of a trusted application (TA)).
In operation 840, the client 803 may request, from the TEE-a 801 which is an agent, execution of the function by the TEE-b 802. In operation 850, the TEE-a 801 may transfer the request of the client 803 to the TEE-b 802. In operation 860, the TEE-b 802 may request the secure management module 620 to identify and report whether the TEE-a 801 is a TEE that has a privilege as an agent. In operation 870, the secure management module 620 may identify the ACL 640, and may report an identification result to the TEE-b 802 in operation 880. The TEE-b 802 may recognize, based on the identification result, that the TEE-a 801 has a privilege as an agent. Accordingly, in response to the request from the client 803, the TEE-b 802 may load a corresponding trustable application to a secure area (e.g., first secure area 361) of volatile memory, and may safely execute the same in the secure area.
In operation 910, the processor may obtain, from the plurality of TEEs, capability information (e.g., capability information 630) indicating functions that the plurality of TEEs are capable of executing. In operation 920, the processor may provide the capability information to an application executed in the REE so that the application identifies a TEE capable of executing a function required by the application.
According to an embodiment, an electronic device (e.g., electronic device 300) may include a processor (e.g., processor 399) and first memory (e.g., first memory 360) connected to the processor and divided into a first normal area that provides a rich execution environment (REE) and a first secure area that provides a plurality of trusted execution environments (TEEs) to which access by software executed in the REE is controllable. The first memory may store instructions which, when executed by the processor, cause the processor to obtain, from the plurality of TEEs, capability information indicating functions that the plurality of TEEs are capable of executing. The instructions may cause the processor to provide the capability information to an application executed in the REE so that the application identifies a TEE capable of executing a required function.
A first TEE, one of the plurality of TEEs, may be configured to receive a request from the application. The instructions may cause the processor to receive a request of a second TEE which is another one of the plurality of TEEs, the request requesting identifying and reporting of whether the first TEE has a privilege as an agent, and to provide an identification result indicating that the first TEE has a privilege as an agent to the second TEE. The second TEE may be configured to execute, based on the identification result, a function corresponding to the request of the application transferred via the first TEE.
The application may be configured to recognize, based on the capability information, a TEE for executing a required function from among the plurality of TEEs, and to request the recognized TEE to execute the function.
The first memory may be volatile memory. The electronic device may include second memory (e.g., second memory 350), which is connected to the processor and is non-volatile memory divided into a second normal area that provides the REE and a second secure area that provides the plurality of TEEs. The instructions may cause the processor to obtain the capability information, based on a fact that the plurality of TEEs are loaded from the second secure area to the first secure area.
The instructions may cause the processor to obtain the capability information, based on a fact that the plurality of TEEs are installed in the first memory.
The electronic device may further include a communication circuit (e.g., communication circuit 343). The instructions may cause the processor to receive capability information of a TEE installed in a cloud edge network via the communication circuit. The instructions may cause the processor to provide the received capability information to the application.
The electronic device may further include a sensor (e.g., sensor 341) and a camera (e.g., camera 342). At least one of the plurality of TEEs may execute a function related to security by using the sensor and the camera.
The processor may include a normal processor for executing the REE and a first secure processor (e.g., first secure processor 450) for executing at least one of the plurality of TEEs. The electronic device may include a second secure processor (e.g., second secure processor 460) for executing at least one of the plurality of TEEs.
The second secure processor may be configured with a first processing module configured to support a root of trust (ROT) function to one of the plurality of TEEs, a second processing module configured to support a trustable user interface to another one of the plurality of TEEs, a third processing module configured to support an online financial service to another one of the plurality of TEEs, and a fourth processing module configured to support an encryption function to another one of the plurality of TEEs.
According to an embodiment, an electronic device may include first memory divided into a first normal area that provides a rich execution environment (REE) and a first secure area that provides a plurality of trusted execution environments (TEEs) to which access by software executed in the REE is controllable. A method of operating the electronic device may include an operation (e.g., operation 910) of obtaining, from the plurality of TEEs, capability information indicating functions that the plurality of TEEs are capable of executing. The method may include an operation (e.g., operation 920) of providing the capability information to an application executed in the REE so that the application identifies a TEE capable of executing a required function.
The method may include an operation of receiving, by a first TEE which is one of the plurality of TEEs, a request of the application. The method may include an operation of receiving a request of a second TEE which is another one of the plurality of TEEs, the request requesting identifying and reporting of whether the first TEE has a privilege as an agent. The method may include an operation of providing an identification result indicating that the first TEE has a privilege as an agent to the second TEE. The method may include an operation of executing, by the second TEE, a function corresponding to the request of the application transferred via the first TEE based on the identification result.
The method may further include an operation by the application which recognizes, based on the capability information, a TEE for executing a required function from among the plurality of TEEs, and requests the recognized TEE to execute the function.
The first memory may be volatile memory. The electronic device may include second memory that is connected to the processor and is non-volatile memory divided into a second normal area that provides the REE and a second secure area that provides the plurality of TEEs. The capability information may be obtained based on a fact that the plurality of TEEs are loaded from the second secure area to the first secure area.
The capability information may be obtained based on a fact that the plurality of TEEs are installed in the first memory.
The operation of providing the capability information may include an operation of receiving capability information of a TEE installed in a cloud edge network via a communication circuit of the electronic device, and an operation of providing the received capability information to the application.
It will be appreciated that various embodiments of the disclosure according to the claims and description in the specification can be realized in the form of hardware, software or a combination of hardware and software.
Any such software may be stored in non-transitory computer readable storage media. The non-transitory computer readable storage media store one or more computer programs (software modules), the one or more computer programs include computer-executable instructions that, when executed by one or more processors of an electronic device individually or collectively, cause the electronic device to perform a method of the disclosure.
Any such software may be stored in the form of volatile or non-volatile storage such as, for example, a storage device like read only memory (ROM), whether erasable or rewritable or not, or in the form of memory such as, for example, random access memory (RAM), memory chips, device or integrated circuits or on an optically or magnetically readable medium such as, for example, a compact disk (CD), digital versatile disc (DVD), magnetic disk or magnetic tape or the like. It will be appreciated that the storage devices and storage media are various embodiments of non-transitory machine-readable storage that are suitable for storing a computer program or computer programs comprising instructions that, when executed, implement various embodiments of the disclosure. Accordingly, various embodiments provide a program comprising code for implementing apparatus or a method as claimed in any one of the claims of this specification and a non-transitory machine-readable storage storing such a program.
While the disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2022-0126054 | Oct 2022 | KR | national |
10-2022-0147159 | Nov 2022 | KR | national |
This application is a continuation application, claiming priority under 35 U.S.C. § 365 (c), of an International application No. PCT/KR2023/008383, filed on Jun. 16, 2023, which is based on and claims the benefit of a Korean patent application number 10-2022-0126054, filed on Oct. 4, 2022, in the Korean Intellectual Property Office, and of a Korean patent application number 10-2022-0147159, filed on Nov. 7, 2022, in the Korean Intellectual Property Office, the disclosure of each of which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/KR2023/008383 | Jun 2023 | WO |
Child | 19047317 | US |