KR20240045934A - Electronic device including secure element and method of operating the same - Google Patents

Electronic device including secure element and method of operating the same Download PDF

Info

Publication number
KR20240045934A
KR20240045934A KR1020220145022A KR20220145022A KR20240045934A KR 20240045934 A KR20240045934 A KR 20240045934A KR 1020220145022 A KR1020220145022 A KR 1020220145022A KR 20220145022 A KR20220145022 A KR 20220145022A KR 20240045934 A KR20240045934 A KR 20240045934A
Authority
KR
South Korea
Prior art keywords
data
applet
reset
installation
option
Prior art date
Application number
KR1020220145022A
Other languages
Korean (ko)
Inventor
이동훈
조대행
김학현
김현석
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2023/013918 priority Critical patent/WO2024071769A1/en
Publication of KR20240045934A publication Critical patent/KR20240045934A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

어플리케이션 프로세서, 및 프로세서와 메모리를 포함하는 보안 엘리먼트(SE)를 포함하는 전자 장치를 개시한다. 상기 프로세서는, 어플리케이션 프로세서로부터 애플릿의 설치 데이터를 포함하는 설치 명령을 수신하고, 상기 설치 명령에 근거하여 상기 애플릿을 설치하고, 상기 설치 데이터 및 상기 애플릿의 실행 데이터를 상기 메모리에 저장하고, 상기 애플릿과 관련된 사용자 데이터를 상기 메모리에 저장하고, 상기 어플리케이션 프로세서로부터 상기 보안 엘리먼트에 대한 리셋 명령을 수신하고, 상기 리셋 명령에 응답하여, 상기 설치 데이터 및/또는 상기 실행 데이터를 유지하고 상기 사용자 데이터를 제거하도록 구성될 수 있다.Disclosed is an electronic device including an application processor and a security element (SE) including the processor and memory. The processor receives an installation command including installation data of the applet from the application processor, installs the applet based on the installation command, stores the installation data and execution data of the applet in the memory, and installs the applet. store user data associated with the memory in the memory, receive a reset command for the secure element from the application processor, and in response to the reset command, retain the installation data and/or the executable data and remove the user data. It can be configured to do so.

Description

보안 엘리먼트를 포함하는 전자 장치 및 그 동작 방법{ELECTRONIC DEVICE INCLUDING SECURE ELEMENT AND METHOD OF OPERATING THE SAME}Electronic device including a security element and method of operating the same {ELECTRONIC DEVICE INCLUDING SECURE ELEMENT AND METHOD OF OPERATING THE SAME}

본 개시의 실시예들은 보안 엘리먼트(secure element: SE)를 포함하는 전자 장치 및 그 동작 방법에 관한 것이다.Embodiments of the present disclosure relate to an electronic device including a secure element (SE) and a method of operating the same.

무선 통신 기술 및 보안 기술의 발달로 인해 스마트폰과 같은 개인용 전자 장치에서 제공되는 기능 및 서비스는 점차 확대되고 있다. 전자 장치는 다양한 기능 및 서비스를 제공하기 위해 다수의 어플리케이션들을 포함할 수 있다. Due to the development of wireless communication technology and security technology, the functions and services provided by personal electronic devices such as smartphones are gradually expanding. Electronic devices may include multiple applications to provide various functions and services.

개인 정보 보호를 위해 전자 장치는 보안 기능을 이용하여 보안이 필요한 서비스를 제공할 수 있다. 전자 장치는 보안 엘리먼트(SE)(예를 들어 eSE(embedded SE))를 포함하고, 보안 엘리먼트를 통해 높은 보안이 필요한 서비스(예를 들어 디지털 키, 전자 뱅킹, 또는 전자 결제)에 대한 경험을 사용자에게 제공할 수 있다. 보안 엘리먼트는 하나 또는 다수의 애플릿들(applet)을 포함할 수 있고, 상기 애플릿들의 실행을 통해 사용자에게 다양한 서비스들을 제공할 수 있다.To protect personal information, electronic devices can use security functions to provide services that require security. The electronic device includes a secure element (SE) (e.g., an embedded SE (eSE)), through which the user experiences a service that requires high security (e.g., a digital key, electronic banking, or electronic payment). can be provided to. The security element may include one or multiple applets, and may provide various services to the user through execution of the applets.

일 실시예에 따른 전자 장치는, 어플리케이션 프로세서, 및 프로세서와 메모리를 포함하는 보안 엘리먼트를 포함할 수 있다. 상기 프로세서는, 상기 어플리케이션 프로세서로부터 제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하도록 구성될 수 있다. 상기 프로세서는 상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하도록 구성될 수 있다. 상기 프로세서는 상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 상기 메모리에 저장하도록 구성될 수 있다. 상기 프로세서는 상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하도록 구성될 수 있다. 상기 프로세서는 상기 어플리케이션 프로세서로부터 상기 보안 엘리먼트에 대한 리셋 명령을 수신하도록 구성될 수 있다. 상기 프로세서는 상기 리셋 명령에 응답하여, 상기 설치 데이터 및/또는 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하도록 구성될 수 있다.An electronic device according to an embodiment may include an application processor and a security element including the processor and memory. The processor may be configured to receive a first installation command including installation data of the first applet from the application processor. The processor may be configured to install the first applet based on the first installation command. The processor may be configured to store the installation data and execution data of the first applet in the memory. The processor may be configured to store first user data associated with the first applet in the memory. The processor may be configured to receive a reset command for the secure element from the application processor. The processor may be configured to maintain the installation data and/or the execution data and remove the first user data in response to the reset command.

일 실시예에 따른 전자 장치의 동작 방법은, 제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하는 동작을 포함할 수 있다. 상기 방법은 상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하는 동작을 포함할 수 있다. 상기 방법은 상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 메모리에 저장하는 동작을 포함할 수 있다. 상기 방법은 상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하는 동작을 포함할 수 있다. 상기 방법은 상기 보안 엘리먼트에 대한 리셋 명령을 수신하는 동작을 포함할 수 있다. 상기 방법은 상기 리셋 명령에 응답하여, 상기 설치 데이터 및 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하는 동작을 포함할 수 있다.A method of operating an electronic device according to an embodiment may include receiving a first installation command including installation data of a first applet. The method may include installing the first applet based on the first installation command. The method may include storing the installation data and execution data of the first applet in memory. The method may include storing first user data associated with the first applet in the memory. The method may include receiving a reset command for the secure element. The method may include maintaining the installation data and the execution data and removing the first user data in response to the reset command.

일 실시예에 따라 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체로서, 상기 하나 이상의 프로그램은 전자 장치의 적어도 하나의 프로세서에 의해 실행될 때 상기 전자 장치가: 제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하고, 상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하고, 상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 메모리에 저장하고, 상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하고, 상기 어플리케이션 프로세서로부터 상기 보안 엘리먼트에 대한 리셋 명령을 수신하고, 상기 리셋 명령에 응답하여, 상기 설치 데이터 및/또는 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하도록 구성하는 명령어들을 포함할 수 있다.According to one embodiment, a non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by at least one processor of an electronic device, cause the electronic device to: include installation data of a first applet; Receive a first installation command, install the first applet based on the first installation command, store the installation data and execution data of the first applet in a memory, and determine a first user associated with the first applet. store data in the memory, receive a reset command for the secure element from the application processor, and in response to the reset command, retain the installation data and/or the executable data and remove the first user data. It may contain configuring commands.

도 1은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 일 실시예에 따라 보안 엘리먼트를 포함하는 전자 장치의 구성을 설명하기 위한 도면이다.
도 3은 일 실시예에 따라 보안 엘리먼트의 사용자 데이터를 저장하는 전자 장치의 구성을 설명하기 위한 도면이다.
도 4는 일 실시예에 따른 보안 엘리먼트의 데이터 저장 영역을 설명하기 위한 도면이다.
도 5는 일 실시예에 따른 사용자 데이터를 제거하는 보안 엘리먼트의 동작을 설명하기 위한 도면이다.
도 6은 일 실시예에 따라 애플릿을 통해 사용자 데이터를 제거하는 보안 엘리먼트의 동작을 설명하기 위한 도면이다.
도 7은 일 실시예에 따른 보안 엘리먼트의 동작을 설명하기 위한 흐름도이다.
도 8은 일 실시예에 따라 애플릿을 통해 사용자 데이터를 제거하는 보안 엘리먼트의 동작을 설명하기 위한 흐름도이다.
도 9는 일 실시예에 따라 보안 엘리먼트의 사용자 데이터를 제거하는 절차를 설명하는 신호 흐름도를 나타낸 것이다.
도 10은 일 실시예에 따라 보안 엘리먼트의 데이터를 제거하는 절차를 설명하는 신호 흐름도를 나타낸 것이다.
도 11은 일 실시예에 따라 애플릿을 통해 보안 엘리먼트의 사용자 데이터를 제거하는 절차를 설명하는 신호 흐름도를 나타낸 것이다.
도 12는 일 실시예에 따라 리셋 타입을 변경하는 절차를 설명하는 신호 흐름도를 나타낸 것이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
FIG. 2 is a diagram for explaining the configuration of an electronic device including a security element, according to an embodiment.
FIG. 3 is a diagram for explaining the configuration of an electronic device that stores user data of a security element according to an embodiment.
FIG. 4 is a diagram illustrating a data storage area of a security element according to an embodiment.
Figure 5 is a diagram for explaining the operation of a security element that removes user data according to an embodiment.
FIG. 6 is a diagram illustrating the operation of a security element that removes user data through an applet according to an embodiment.
Figure 7 is a flowchart for explaining the operation of a security element according to an embodiment.
FIG. 8 is a flowchart illustrating the operation of a security element that removes user data through an applet according to an embodiment.
Figure 9 shows a signal flow diagram illustrating a procedure for removing user data of a secure element according to one embodiment.
Figure 10 shows a signal flow diagram illustrating a procedure for removing data from a secure element according to one embodiment.
Figure 11 shows a signal flow diagram illustrating a procedure for removing user data of a secure element through an applet according to one embodiment.
Figure 12 shows a signal flow diagram explaining a procedure for changing the reset type according to one embodiment.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 1 is a block diagram of an electronic device 101 in a network environment 100, according to various embodiments.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1, in the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., a short-range wireless communication network) or a second network 199. It is possible to communicate with the electronic device 104 or the server 108 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to one embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or may include an antenna module 197. In some embodiments, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components (e.g., sensor module 176, camera module 180, or antenna module 197) are integrated into one component (e.g., display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (e.g., program 140) to operate at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134. According to one embodiment, the processor 120 includes a main processor 121 (e.g., a central processing unit or an application processor) or an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device 101 includes a main processor 121 and a secondary processor 123, the secondary processor 123 may be set to use lower power than the main processor 121 or be specialized for a designated function. You can. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or while the main processor 121 is in an active (e.g., application execution) state. ), together with the main processor 121, at least one of the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) At least some of the functions or states related to can be controlled. According to one embodiment, co-processor 123 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 180 or communication module 190). there is. According to one embodiment, the auxiliary processor 123 (eg, neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 101 itself, where artificial intelligence is performed, or may be performed through a separate server (e.g., server 108). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101. Data may include, for example, input data or output data for software (e.g., program 140) and instructions related thereto. Memory 130 may include volatile memory 132 or non-volatile memory 134.

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142, middleware 144, or application 146.

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive commands or data to be used in a component of the electronic device 101 (e.g., the processor 120) from outside the electronic device 101 (e.g., a user). The input module 150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.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. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 can visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 101). Sound may be output through the electronic device 102 (e.g., speaker or headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that can be used to connect the electronic device 101 directly or wirelessly with an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 can capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101. According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. Communication module 190 is configured to provide a direct (e.g., wired) communication channel or wireless communication channel between electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 190 is 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., : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 198 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (e.g., legacy It may communicate with an external electronic device 104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 can be confirmed or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 192 may support high frequency bands (eg, mmWave bands), for example, to achieve high data rates. The wireless communication module 192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional 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., electronic device 104), or a network system (e.g., second network 199). According to one embodiment, the wireless communication module 192 supports Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC. Example: Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to or from the outside (eg, an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected to the plurality of antennas by, for example, the communication module 190. can be selected Signals or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna. According to some embodiments, in addition to the radiator, other components (eg, radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 197.

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, a mmWave antenna module includes: a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (e.g. commands or data) can be exchanged with each other.

일 실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199. Each of the external electronic devices 102 or 104 may be of the same or different type as the electronic device 101. According to one embodiment, all or part of the operations performed in the electronic device 101 may be executed in one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of Things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or 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 and IoT-related technology.

도 2는 일 실시예에 따라 보안 엘리먼트를 포함하는 전자 장치의 구성을 설명하기 위한 도면이다.FIG. 2 is a diagram for explaining the configuration of an electronic device including a security element, according to an embodiment.

도 2를 참조하면, 전자 장치(200)(예를 들어 도 1의 전자 장치(101))는 어플리케이션 프로세서(AP)(202)(예를 들어 도 1의 프로세서(120))와, 보안 엘리먼트(210)를 포함할 수 있고, 보안 엘리먼트(210)는 프로세서(212) 및 메모리(214)를 포함할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 전자 장치(200)의 어플리케이션 프로세서를 포함할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 보안 엘리먼트(210)와 통신할 수 있는 어플리케이션을 실행할 수 있다. 어플리케이션 프로세서(202)는 상기 어플리케이션의 실행을 통해 보안 엘리먼트(210)와 통신할 수 있다.Referring to FIG. 2, the electronic device 200 (e.g., the electronic device 101 of FIG. 1) includes an application processor (AP) 202 (e.g., the processor 120 of FIG. 1) and a security element ( 210), and the security element 210 may include a processor 212 and memory 214. In one embodiment, the application processor 202 may include an application processor of the electronic device 200. In one embodiment, the application processor 202 may execute an application that can communicate with the secure element 210. The application processor 202 may communicate with the security element 210 through execution of the application.

일 실시예에서 보안 엘리먼트(210)는 내장형(embedded) 보안 엘리먼트(eSE)를 포함할 수 있다. 보안 엘리먼트(210)는 데이터를 안전하게 저장하고 데이터를 안전하게 처리하고 외부 전자 장치(도시하지 않음)와 안전하게 통신을 수행할 수 있도록 비인가된 액세스(unauthorized access)로부터의 보호를 위해 설계된 칩을 포함할 수 있다. 보안 엘리먼트(210) 내의 프로세서(212)는 기밀 데이터(confidential data) 및/또는 암호화 데이터(cryptographic data)를 메모리(214)에 저장할 수 있고, 제한된 어플리케이션들(예를 들어 애플릿들(applets))을 실행할 수 있다. 일 실시예에서 프로세서(212)는 높은 수준의 보안이 요구되는 결제 애플릿들(payment applets)을 실행할 수 있고, 전자 서명 또는 개인 정보를 안전하게 전송할 수 있는 신뢰성 있는 사용자 인터페이스를 제공할 수 있다.In one embodiment, security element 210 may include an embedded security element (eSE). The security element 210 may include a chip designed to securely store data, securely process data, and protect against unauthorized access to enable secure communication with external electronic devices (not shown). there is. Processor 212 within secure element 210 may store confidential data and/or cryptographic data in memory 214 and may execute restricted applications (e.g., applets). It can be run. In one embodiment, processor 212 may execute payment applets that require a high level of security and may provide a trusted user interface that can securely transmit electronic signatures or personal information.

프로세서(212)는 애플릿들(예를 들어 설치 데이터 및/또는 실행 데이터)을 메모리(214)에 직접 저장할 수 있고, 상기 애플릿들에 대한 액세스를 필터링할 수 있다. 또한 프로세서(212)는 상기 애플릿들의 실행을 통해 발생하는 데이터(예를 들어 사용자 데이터)를 메모리(214)에 저장할 수 있고, 상기 사용자 데이터를 안전하게 유지할 수 있다.Processor 212 may store applets (e.g., installation data and/or executable data) directly in memory 214 and may filter access to the applets. Additionally, the processor 212 can store data (eg, user data) generated through execution of the applets in the memory 214 and keep the user data safe.

어플리케이션 프로세서(202)는 전자 장치(200)에 저장된 정보를 제거하여 전자 장치(200)를 시스템 초기 상태로 복원하는 리셋 기능(예를 들어 팩토리 리셋, 하드 리셋, 또는 마스터 리셋)을 제공할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 사용자 입력 또는 서버(예를 들어 서비스 제공자(service provider) 서버)로부터의 리셋 명령에 응답하여 팩토리 리셋을 수행할 수 있다. 팩토리 리셋은 전자 장치(200)에 저장되어 있는 모든 데이터, 설정 및 어플리케이션들을 제거하는 동작을 포함할 수 있다. The application processor 202 may provide a reset function (e.g., factory reset, hard reset, or master reset) to restore the electronic device 200 to its initial system state by removing information stored in the electronic device 200. . In one embodiment, the application processor 202 may perform a factory reset in response to a user input or a reset command from a server (eg, a service provider server). Factory reset may include removing all data, settings, and applications stored in the electronic device 200.

일 실시예에서 보안 엘리먼트(210)의 특성상 어플리케이션 프로세서(202)는 보안 엘리먼트(210)의 메모리(214)에 접근하여 제거할 데이터를 선택할 수 없다. 팩토리 리셋을 통해 보안 엘리먼트(210)에 저장된 내용(예를 들어 설치 데이터, 실행 데이터, 및 사용자 데이터)이 모두 제거되는 경우, 전자 장치(200)(예를 들어 어플리케이션 프로세서(202))는 보안 엘리먼트(210)의 필요한 애플릿들을 다시 설치해야 하기 때문에 보안 엘리먼트(210)를 재가동하는데 많은 시간이 소요될 수 있다. 일 실시예에서 보안 엘리먼트(210)의 메모리(214)는 서비스 제공자(예를 들어 통신 사업자)가 요구하는 기능들과 관련된 데이터 뿐 아니라 장치 부팅이나 애플릿 실행에 관련된 데이터를 포함할 수 있고, 이러한 데이터는 팩토리 리셋 시에도 유지될 필요가 있다.In one embodiment, due to the characteristics of the security element 210, the application processor 202 cannot select data to be removed by accessing the memory 214 of the security element 210. When all contents (e.g., installation data, execution data, and user data) stored in the security element 210 are removed through a factory reset, the electronic device 200 (e.g., the application processor 202) is stored in the security element 210. It may take a lot of time to restart the security element 210 because the necessary applets of 210 must be reinstalled. In one embodiment, the memory 214 of the secure element 210 may include data related to device booting or applet execution, as well as data related to functions required by a service provider (e.g., a telecommunications carrier), such data needs to be maintained even during factory reset.

본 개시의 실시예들은 보안 엘리먼트(210)에 저장된 데이터 중 일부 데이터(예를 들어 설치 데이터 및/또는 실행 데이터)를 유지하고 특정 데이터(예를 들어 사용자 데이터)를 제거할 수 있다.Embodiments of the present disclosure may retain some data (e.g., installation data and/or execution data) and remove certain data (e.g., user data) of the data stored in the secure element 210.

본 개시의 실시예들은 보안 엘리먼트(210)에 저장된 사용자 데이터 중 일부 사용자 데이터를 유지하고 특정 사용자 데이터(예를 들어 결제 애플릿과 관련된 데이터, 또는 디지털 키)를 제거할 수 있다. Embodiments of the present disclosure may retain some of the user data stored in the secure element 210 and remove certain user data (e.g., data associated with a payment applet, or digital key).

본 개시의 실시예들은 팩토리 리셋 이후에 보안 엘리먼트(210)에 남겨진 데이터를 이용하여 전자 장치(200)의 재가동 시간을 단축할 수 있다.Embodiments of the present disclosure can shorten the restart time of the electronic device 200 by using data remaining in the security element 210 after factory reset.

도 3은 일 실시예에 따라 보안 엘리먼트의 사용자 데이터를 저장하는 전자 장치의 구성을 설명하기 위한 도면이다.FIG. 3 is a diagram for explaining the configuration of an electronic device that stores user data of a security element according to an embodiment.

도 3을 참조하면, 보안 엘리먼트(210)의 프로세서(212)는 운영 시스템(operating system: OS)(예를 들어 eSE OS)(302)과, 리셋 명령을 처리하는 팩토리 리셋 어플리케이션(factory reset application: FRA)(304)을 포함할 수 있다. 도시하지 않을 것이지만, 프로세서(212)는 보안 엘리먼트(210)에 설치된 하나 이상의 애플릿들(예를 들어 제1 애플릿 및 제2 애플릿)을 실행할 수 있다. 보안 엘리먼트(210)의 메모리(214)는 보조 보안 영역(supplementary security domain: SSD)(예를 들어 SSD1)(314), 데이터 저장 영역(318), 또는 옵션 데이터베이스(database: DB)(312) 중 적어도 하나를 포함할 수 있다. Referring to FIG. 3, the processor 212 of the security element 210 includes an operating system (OS) (e.g., eSE OS) 302 and a factory reset application that processes a reset command. FRA) (304). Although not shown, processor 212 may execute one or more applets installed on secure element 210 (eg, a first applet and a second applet). The memory 214 of the security element 210 is one of a supplementary security domain (SSD) (e.g., SSD1) 314, a data storage area 318, or an optional database (DB) 312. It can contain at least one.

보조 보안 영역(314)은 보안 엘리먼트(210)에 설치된 하나 또는 그 이상의 애플릿들(예를 들어 제1 애플릿 및 제2 애플릿)의 설치 데이터 및 실행 데이터를 포함할 수 있다. 상기 설치 데이터는 설치 파일, 예를 들어 실행 가능 로드 파일(executable load file: ELF)을 포함할 수 있다. 상기 실행 데이터는 예를 들어 실행 파일을 포함할 수 있다. 일 실시예에서 보조 보안 영역(314)은 제1 애플릿의 실행 데이터(예를 들어 APP1) 및 제2 애플릿의 실행 데이터(예를 들어 APP2)를 저장할 수 있다. 일 실시예에서 보조 보안 영역(314)은 제1 애플릿의 설치 데이터(예를 들어 ELF1) 및 제2 애플릿의 설치 데이터(예를 들어 ELF2)를 포함할 수 있다. 일 실시예에서 보조 보안 영역(314)은 지정된 적어도 하나의 애플릿(예를 들어 제2 애플릿)의 관련 데이터(예를 들어 실행 데이터(APP2) 및 설치 데이터(ELF2))를 저장하는 저장 영역(예를 들어 SSD2)(316)을 포함할 수 있다.The auxiliary security area 314 may include installation data and execution data of one or more applets (eg, a first applet and a second applet) installed in the security element 210. The installation data may include an installation file, for example an executable load file (ELF). The executable data may include, for example, an executable file. In one embodiment, the auxiliary security area 314 may store execution data of the first applet (eg, APP1) and execution data of the second applet (eg, APP2). In one embodiment, the secondary security area 314 may include installation data of a first applet (eg, ELF1) and installation data of a second applet (eg, ELF2). In one embodiment, the secondary secure area 314 is a storage area (e.g., for storing related data (e.g., execution data (APP2) and installation data (ELF2)) of at least one specified applet (e.g., a second applet)). For example, it may include SSD2) (316).

데이터 저장 영역(318)은 보안 엘리먼트(210)에 설치된 하나 또는 그 이상의 애플릿들(예를 들어 제1 애플릿 및 제2 애플릿)과 관련된 데이터(예를 들어 각 애플릿의 실행에 의해 발생하는 데이터 및/또는 각 애플릿과 관련된 사용자 데이터)를 저장할 수 있다. 일 실시예에서 데이터 저장 영역(318)은 제1 애플릿과 관련된 제1 사용자 데이터(DATA1) 및 제2 애플릿과 관련된 사용자 데이터(DATA2)를 저장할 수 있다.The data storage area 318 is data related to one or more applets (e.g., a first applet and a second applet) installed in the security element 210 (e.g., data generated by the execution of each applet and/or or user data associated with each applet). In one embodiment, the data storage area 318 may store first user data (DATA1) related to the first applet and user data (DATA2) related to the second applet.

운영 시스템(302)은 팩토리 리셋을 수행할 때 FRA(304) 및 옵션 DB(312)를 이용하여 데이터 저장 영역(318) 내의 지정된 사용자 데이터(예를 들어 지정된 영역 내의 사용자 데이터)를 제거할 수 있다. FRA(304)는 보안 엘리먼트(210)의 팩토리 리셋을 관리하도록 구성될 수 있다. FRA(304)는 어플리케이션 프로세서(202)로부터 팩토리 리셋을 지시하는 리셋 명령을 수신할 수 있고, 리셋 명령에 근거하여 팩토리 리셋을 처리할 수 있으며, 상기 팩토리 리셋의 처리 결과를 어플리케이션 프로세서(202)로 보고할 수 있다.When performing a factory reset, the operating system 302 may use the FRA 304 and the option DB 312 to remove designated user data (e.g., user data within the designated area) within the data storage area 318. . FRA 304 may be configured to manage factory reset of secure element 210 . The FRA 304 may receive a reset command indicating a factory reset from the application processor 202, process the factory reset based on the reset command, and send the factory reset processing result to the application processor 202. You can report.

옵션 DB(312)는 보안 엘리먼트(210)에서 팩토리 리셋을 처리할 때 보안 엘리먼트(210)에 설치된 애플릿들 각각에 대해 관련 데이터(예를 들어 설치 데이터, 실행 데이터, 및/또는 사용자 데이터)를 제거하는 방식을 나타내는 리셋 타입을 저장할 수 있다. 리셋 타입은 팩토리 리셋시 애플릿들과 관련된 메모리(214) 내의 전체 데이터를 제거할 지 또는 지정된 일부 데이터(예를 들어 전체 사용자 데이터)를 제거할지 또는 지정된 일부 사용자 데이터를 제거할지를 나타낼 수 있다.Option DB 312 removes related data (e.g., installation data, execution data, and/or user data) for each of the applets installed in the security element 210 when processing a factory reset in the security element 210. You can store a reset type that indicates the method of operation. The reset type may indicate whether to remove all data in the memory 214 related to applets, some designated data (for example, all user data), or some designated user data at the time of factory reset.

일 실시예에서 리셋 타입은 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 적어도 하나를 포함할 수 있다. 제1 옵션은 애플릿의 설치 데이터, 실행 데이터 및/또는 사용자 데이터를 포함하는 모든 관련 데이터를 유지하는 것을 의미할 수 있다. 제2 옵션은 애플릿의 설치 데이터 및/또는 실행 데이터를 제외한 전체 사용자 데이터를 제거하는 것을 의미할 수 있다. 제3 옵션은 애플릿의 사용자 데이터 중 일부 사용자 데이터(예를 들어 애플릿이 지정하는 사용자 데이터)를 제거하는 것을 의미할 수 있다. 제4 옵션은 애플릿의 설치 데이터, 실행 데이터 및/또는 사용자 데이터를 포함하는 모든 관련 데이터를 제거하는 것을 의미할 수 있다.In one embodiment, the reset type may include at least one of a first option, a second option, a third option, or a fourth option. The first option may mean retaining all associated data, including the applet's installation data, execution data and/or user data. The second option may mean removing all user data except the applet's installation data and/or execution data. The third option may mean removing some of the user data of the applet (for example, user data specified by the applet). A fourth option may mean removing all associated data, including the applet's installation data, execution data and/or user data.

제1 옵션으로 설정된 애플릿(예를 들어 제1 애플릿)에 대해, 프로세서(212)는 팩토리 리셋시에 제1 애플릿의 설치 데이터(ELF1), 실행 데이터(APP1), 및 사용자 데이터(DATA1)을 유지할 수 있다.For an applet (e.g., the first applet) set to the first option, the processor 212 maintains the installation data (ELF1), execution data (APP1), and user data (DATA1) of the first applet upon factory reset. You can.

제2 옵션으로 설정된 애플릿(예를 들어 제2 애플릿)에 대해, 프로세서(212)는 제2 애플릿을 실행하는 동안 제2 애플릿에 의해 생성되는 사용자 데이터(DATA2)를 데이터 저장 영역(318) 내의 지정된 저장 영역(예를 들어 제2 데이터 영역(408))에 저장할 수 있고, 팩토리 리셋에 근거하여 제2 데이터 영역(408)의 상기 사용자 데이터(DATA2)를 제거할 수 있다. 제2 옵션으로 설정되지 않은 애플릿(예를 들어 제1 애플릿)과 관련된 설치 데이터(ELF1), 실행 데이터(APP1), 및 사용자 데이터(DATA1)와, 제2 애플릿과 관련된 설치 데이터(ELF2) 및 실행 데이터(APP2)는 제거되지 않고, 팩토리 리셋 이후에 유지될 수 있다. 일 실시예에서 프로세서(212)는 팩토리 리셋시에 제2 애플릿의 설치 데이터(ELF2) 및 실행 데이터(APP2)의 라이프 사이클 상태를 초기화할 수 있다.For an applet (e.g., a second applet) set to the second option, the processor 212 stores user data (DATA2) generated by the second applet while executing the second applet in a designated area in the data storage area 318. It can be stored in a storage area (for example, the second data area 408), and the user data (DATA2) from the second data area 408 can be removed based on a factory reset. Installation data (ELF1), execution data (APP1), and user data (DATA1) associated with an applet (e.g., the first applet) that is not set to the second option, and installation data (ELF2) and execution data associated with the second applet The data (APP2) is not removed and can be maintained after factory reset. In one embodiment, the processor 212 may initialize the life cycle state of the installation data (ELF2) and execution data (APP2) of the second applet upon factory reset.

제3 옵션으로 설정된 애플릿(예를 들어 제2 애플릿)에 대해, 프로세서(212)는 제2 애플릿을 실행하는 동안 제2 애플릿에 의해 생성되는 사용자 데이터(DATA2)를 데이터 저장 영역(318) 내의 지정된 저장 영역(예를 들어 일반 데이터 영역(404))에 저장될 수 있다. 제2 애플릿은 팩토리 리셋에 근거하여 자신의 사용자 데이터를 제거(delete)하는 기능(예를 들어 초기화 기능)을 포함할 수 있다. 프로세서(212)는 팩토리 리셋에 근거하여 제2 애플릿을 실행하여 제2 애플릿의 사용자 데이터(DATA2)를 제거할 수 있다. 제2 옵션 또는 제3 옵션으로 설정되지 않은 애플릿(예를 들어 제1 애플릿)과 관련된 설치 데이터(ELF1), 실행 데이터(APP1), 및 사용자 데이터(DATA1)와, 제2 애플릿과 관련된 설치 데이터(ELF2) 및 실행 데이터(APP2)는 제거되지 않고, 팩토리 리셋 이후에 유지될 수 있다. 일 실시예에서 프로세서(212)는 팩토리 리셋시에 제2 애플릿의 설치 데이터(ELF2) 및 실행 데이터(APP2)의 라이프 사이클 상태를 초기화할 수 있다.For an applet (e.g., a second applet) set to the third option, the processor 212 stores the user data (DATA2) generated by the second applet while executing the second applet in the designated data storage area 318. It may be stored in a storage area (for example, general data area 404). The second applet may include a function (eg, initialization function) to delete its user data based on a factory reset. The processor 212 may execute the second applet based on a factory reset and remove the user data (DATA2) of the second applet. Installation data (ELF1), execution data (APP1), and user data (DATA1) associated with an applet (e.g., the first applet) that is not set to the second or third option, and installation data (DATA1) associated with the second applet ( ELF2) and executable data (APP2) are not removed and can be retained after factory reset. In one embodiment, the processor 212 may initialize the life cycle state of the installation data (ELF2) and execution data (APP2) of the second applet upon factory reset.

제4 옵션으로 설정된 애플릿(예를 들어 제3 애플릿: 도시하지 않음)에 대해, 프로세서(212)는 팩토리 리셋에 응답하여 제3 애플릿의 설치 데이터(ELF3), 실행 데이터(APP3), 및 사용자 데이터(DATA3)을 모두 제거할 수 있다.For an applet set to the fourth option (e.g., a third applet: not shown), the processor 212 provides installation data (ELF3), execution data (APP3), and user data of the third applet in response to a factory reset. (DATA3) can be removed altogether.

옵션 DB(312)는 보안 엘리먼트(210)에 설치된 각 애플릿(예를 들어 제1 애플릿, 제2 애플릿, 또는 제3 애플릿)에 대한 리셋 타입을 저장할 수 있다. 일 실시예에서 팩토리 리셋에 대한 데이터 제거 방식을 나타내는 리셋 타입은 각 애플릿을 설치하는 동안 어플리케이션 프로세서(202)로부터 제공되는 설치 명령을 통해 보안 엘리먼트(210)(예를 들어 FRA(304))로 입력될 수 있다. 일 실시예에서 설치 명령은 각 애플릿의 개발자에 의해 지정되거나 서비스 제공자 서버에 의해 요구되는 리셋 타입을 나타내는 정보(예를 들어 설치 파라미터의 옵션 태그)를 포함할 수 있다. 일 실시예에서 FRA(304)는 애플릿이 설치된 이후 어플리케이션 프로세서(202)로부터 리셋 타입의 변경을 지시하는 정보를 수신할 수 있다. FRA(304)는 운영 시스템(302)을 통해 상기 변경된 리셋 타입을 옵션 DB(312)에 저장할 수 있다.The option DB 312 may store a reset type for each applet (eg, a first applet, a second applet, or a third applet) installed in the security element 210. In one embodiment, the reset type indicating the data removal method for factory reset is input to the security element 210 (e.g., FRA 304) through an installation command provided from the application processor 202 during installation of each applet. It can be. In one embodiment, the installation command may include information (e.g., an option tag in installation parameters) indicating the type of reset specified by the developer of each applet or required by the service provider server. In one embodiment, the FRA 304 may receive information indicating a change in the reset type from the application processor 202 after the applet is installed. The FRA 304 may store the changed reset type in the option DB 312 through the operating system 302.

어플리케이션 프로세서(202)로부터 팩토리 리셋을 지시하는 리셋 명령이 보안 엘리먼트(210)(예를 들어 FRA(304))로 수신되면, FRA(304)는 운영 시스템(302)을 통해 옵션 DB(312)로부터 각 애플릿의 리셋 타입을 읽어낼 수 있다. 운영 시스템(302)은, 상기 리셋 타입이 지시하는 옵션에 따라 각 애플릿의 관련 데이터(예를 들어 설치 데이터, 실행 데이터, 또는 사용자 데이터 중 적어도 하나)를 처리(예를 들어 제거)할 수 있다.When a reset command instructing a factory reset is received from the application processor 202 to the security element 210 (e.g., the FRA 304), the FRA 304 receives the command from the option DB 312 via the operating system 302. The reset type of each applet can be read. The operating system 302 may process (e.g., remove) related data (e.g., at least one of installation data, execution data, or user data) of each applet according to the option indicated by the reset type.

하기의 <표 1>은 옵션 DB(312)에 저장되는 리셋 타입들의 일 예를 도시한 것이다.Table 1 below shows an example of reset types stored in the option DB 312.

No.No. AIDAID Reset TypeReset Type AssociatedAssociated CommandCommand 1One A001122A001122 -- 22 A00BBCCA00BBCC Data ClearData Clear XX {B4, 00, 01}{B4, 00, 01} 33 A005577A005577 All ClearAll Clear OO

일 실시예에서 옵션 DB(312)는 각 애플릿을 식별하는 애플릿 ID(applet ID: AID) 및 리셋 타입 필드를 저장할 수 있다. 일 실시예에서 리셋 타입 필드는 'Data Clear' 또는 'All Clear'으로 설정될 수 있다. 일 예로서 AID=A001122의 애플릿(예를 들어 제1 애플릿)에 대해서 리셋 타입은 지정되지 않을 수 있으며, 프로세서(212)는 팩토리 리셋시 상기 애플릿의 모든 관련 데이터(예를 들어 설치 데이터, 실행 데이터 및/또는 사용자 데이터)를 유지할 수 있다. 일 실시예에서 AID=A00BBCC의 애플릿(예를 들어 제2 애플릿)에 대해서 리셋 타입은 설치 데이터 및/또는 실행 데이터를 제외한 사용자 데이터를 제거하는 것을 의미하는 'Data Clear'(예를 들어 제2 옵션 또는 제3 옵션)으로 설정될 수 있으며, 프로세서(212)는 팩토리 리셋시 상기 애플릿의 설치 데이터 및/또는 실행 데이터를 제외한 사용자 데이터를 제거할 수 있다. In one embodiment, the option DB 312 may store an applet ID (AID) and reset type fields that identify each applet. In one embodiment, the reset type field may be set to 'Data Clear' or 'All Clear'. As an example, the reset type may not be specified for an applet with AID=A001122 (e.g., the first applet), and the processor 212 may store all related data (e.g., installation data, execution data) of the applet upon factory reset. and/or user data). In one embodiment, for an applet with AID=A00BBCC (e.g., a second applet), the reset type is 'Data Clear', which means removing user data except installation data and/or execution data (e.g., a second option or a third option), and the processor 212 may remove user data excluding installation data and/or execution data of the applet upon factory reset.

일 실시예에서 옵션 DB(312)는 'Data Clear'로 설정된 애플릿(예를 들어 예를 들어 제2 애플릿)에 대해 팩토리 리셋시 상기 제2 애플릿의 초기화 기능을 지시하는 명령(command)(예를 들어 {B4, 00, 01})을 더 포함할 수 있다. 일 실시예에서 상기 명령에 따른 초기화 기능은 상기 제2 애플릿에 의해 사용자 데이터를 데이터 저장 영역(318)으로부터 제거하는 것을 포함할 수 있다. 일 실시예에서 상기 명령에 따른 초기화 기능은 상기 제2 애플릿에 의해 제거하고자 하는 적어도 일부 사용자 데이터를 선택하고 상기 선택된 사용자 데이터를 데이터 저장 영역(318)으로부터 제거하는 것을 포함할 수 있다. 상기 명령은 상기 제2 애플릿의 소유자(owner)에 의해 사전에 정의될 수 있다. 프로세서(212)는 팩토리 리셋시 상기 명령에 근거하여 초기화 기능을 수행하도록 상기 제2 애플릿에게 통지할 수 있고, 상기 제2 애플릿은 자신의 사용자 데이터(예를 들어 적어도 일부 사용자 데이터)를 직접 제거할 수 있다.In one embodiment, the option DB 312 provides a command (for example, a command) instructing an initialization function of the second applet upon factory reset for an applet (e.g., a second applet) set to 'Data Clear'. For example, {B4, 00, 01}) may be further included. In one embodiment, the initialization function according to the command may include removing user data from the data storage area 318 by the second applet. In one embodiment, the initialization function according to the command may include selecting at least some user data to be removed by the second applet and removing the selected user data from the data storage area 318. The command may be defined in advance by the owner of the second applet. The processor 212 may notify the second applet to perform an initialization function based on the command upon factory reset, and the second applet may directly remove its user data (for example, at least some user data). You can.

일 실시예에서 옵션 DB(312)는 해당 애플릿(예를 들어 AID=A005577의 애플릿)에 대해 데이터 저장 영역(318)에 저장된 상기 애플릿의 관련 데이터(예를 들어 설치 데이터, 실행 데이터, 및/또는 사용자 데이터)를 모두 제거할 지의 여부를 지시하는 "Associated" 필드를 더 포함할 수 있다. "Associated" 필드가 YES(예를 들어 'O')로 설정되어 있는 경우 프로세서(212)는 팩토리 리셋시 상기 애플릿의 설치 데이터, 실행 데이터 및 사용자 데이터를 포함한 모든 관련 데이터를 제거할 수 있다.In one embodiment, the option DB 312 stores the applet's associated data (e.g., installation data, execution data, and/or An "Associated" field indicating whether to remove all user data may be further included. If the "Associated" field is set to YES (e.g., 'O'), the processor 212 may remove all associated data, including installation data, execution data, and user data, of the applet upon factory reset.

도 4는 일 실시예에 따른 보안 엘리먼트의 데이터 저장 영역을 설명하기 위한 도면이다.FIG. 4 is a diagram illustrating a data storage area of a security element according to an embodiment.

도 4를 참조하면, 보안 엘리먼트(210)의 메모리(214)는 데이터 저장 영역(318)을 포함할 수 있고, 데이터 저장 영역(318)은 시스템 영역(402), 일반 데이터(normal data) 영역(404), 제1 데이터 영역(406), 제2 데이터 영역(408), 패키지 영역(410) 및 프리 영역(412) 중 적어도 하나를 포함할 수 있다. Referring to FIG. 4, the memory 214 of the security element 210 may include a data storage area 318, and the data storage area 318 includes a system area 402 and a normal data area ( 404), a first data area 406, a second data area 408, a package area 410, and a free area 412.

일 실시예에서 제1 데이터 영역(406)은 팩토리 리셋 이후에 유지되도록 지정되는 사용자 데이터(예를 들어 제1 애플릿과 관련된 사용자 데이터(DATA1))를 저장하도록 구성될 수 있다. 일 실시예에서 제2 데이터 영역(408)은 팩토리 리셋시에 제거되도록 지정되는 사용자 데이터(예를 들어 제2 애플릿과 관련된 사용자 데이터(DATA2))를 저장하도록 구성될 수 있다. 일 실시예에서 제2 데이터 영역(406)은 'All Clear'(예를 들어 제4 옵션) 또는 'Data Clear'(예를 들어 제2 옵션 또는 제3 옵션)로 설정된 애플릿(예를 들어 제2 애플릿)의 사용자 데이터를 저장할 수 있다. 일 실시예에서 'Data Clear'(예를 들어 제3 옵션)로 설정되고 옵션 DB(312)에 저장된 명령에 의해 지정된 애플릿(예를 들어 초기화 기능을 포함하는 제2 애플릿)은, 자신의 사용자 데이터를 일반 데이터 영역(404)에 저장하거나, 또는 제2 데이터 영역(408)에 저장할 수 있다.In one embodiment, the first data area 406 may be configured to store user data (e.g., user data (DATA1) associated with the first applet) that is designated to be retained after a factory reset. In one embodiment, the second data area 408 may be configured to store user data (e.g., user data (DATA2) associated with the second applet) that is designated to be removed upon factory reset. In one embodiment, the second data area 406 is an applet (e.g., a second data area) set to 'All Clear' (e.g., the fourth option) or 'Data Clear' (e.g., the second or third option). Applet) user data can be saved. In one embodiment, an applet (e.g., a second applet including an initialization function) set to 'Data Clear' (e.g., a third option) and specified by a command stored in the option DB 312 may store its user data. Can be stored in the general data area 404 or the second data area 408.

프로세서(212)는 팩토리 리셋 이외에, 제1 데이터 영역(406) 및 제2 데이터 영역(408)을 동일한 방식으로 사용할 수 있다. 어플리케이션 프로세서(202)로부터 팩토리 리셋이 지시되면 프로세서(212)는 제1 데이터 영역(406)에 저장된 데이터(예를 들어 적어도 하나의 애플릿의 사용자 데이터)를 유지하고, 제2 데이터 영역(408)에 저장된 데이터(예를 들어 적어도 하나의 애플릿의 사용자 데이터)를 제거할 수 있다. 일 실시예에서 프로세서(212)는 옵션 DB(312)에 저장된 리셋 타입에 근거하여 'Data Clear'로 설정된 애플릿의 사용자 데이터를 제2 데이터 영역(408)에 저장할 수 있다. 일 실시예에서 프로세서(212)는 옵션 DB(312)에 저장된 리셋 타입에 근거하여 'All Clear'로 설정된 애플릿의 설치 데이터 및/또는 실행 데이터를 보조 보안 영역(314)에서 제거하고, 상기 애플릿의 사용자 데이터를 데이터 저장 영역(318)의 제2 데이터 영역(408)에서 제거할 수 있다.In addition to factory reset, the processor 212 may use the first data area 406 and the second data area 408 in the same manner. When a factory reset is instructed by the application processor 202, the processor 212 maintains the data (for example, user data of at least one applet) stored in the first data area 406 and stores the data in the second data area 408. Stored data (e.g. user data of at least one applet) can be removed. In one embodiment, the processor 212 may store the user data of the applet set to 'Data Clear' in the second data area 408 based on the reset type stored in the option DB 312. In one embodiment, the processor 212 removes the installation data and/or execution data of the applet set to 'All Clear' from the auxiliary security area 314 based on the reset type stored in the option DB 312, and removes the applet's installation data and/or execution data from the auxiliary security area 314. User data may be removed from the second data area 408 of the data storage area 318.

일 실시예에서 프로세서(212)는 제1 데이터 영역(406)과 제2 데이터 영역(408)의 크기들을 동적으로 조절할 수 있다. 프로세서(212)는 제1 데이터 영역(406)과 제2 데이터 영역(408)에 잘못된 데이터가 공간을 차지하지 않도록 제어할 수 있으며, 제거된 데이터에 의해 제2 데이터 영역(408)에 불필요한 빈 공간이 낭비되지 않도록 제1 데이터 영역(406)과 제2 데이터 영역(408) 각각의 크기를 조절할 수 있다. In one embodiment, the processor 212 may dynamically adjust the sizes of the first data area 406 and the second data area 408. The processor 212 can control the first data area 406 and the second data area 408 so that incorrect data does not occupy space, and unnecessary empty space is created in the second data area 408 due to the removed data. To prevent this from being wasted, the sizes of each of the first data area 406 and the second data area 408 can be adjusted.

도 5는 일 실시예에 따른 사용자 데이터를 제거하는 보안 엘리먼트의 동작을 설명하기 위한 도면이다.Figure 5 is a diagram for explaining the operation of a security element that removes user data according to an embodiment.

도 5를 참조하면, 동작 502에서 보안 엘리먼트(210)(예를 들어 FRA(304))는 전자 장치(200)의 어플리케이션 프로세서(202)로부터 팩토리 리셋을 지시하는 리셋 명령을 수신할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 보안 엘리먼트(210)의 팩토리 리셋을 처리할 수 있는 소프트웨어 모듈(예를 들어 eSE 팩토리 리셋 권한 모듈(eSE factory reset privileged module))을 포함하고, 상기 소프트웨어 모듈에 의해 상기 리셋 명령을 보안 엘리먼트(210)로 전송할 수 있다.Referring to FIG. 5 , in operation 502, the security element 210 (eg, FRA 304) may receive a reset command indicating a factory reset from the application processor 202 of the electronic device 200. In one embodiment, the application processor 202 includes a software module (e.g., an eSE factory reset privileged module) capable of processing a factory reset of the security element 210, and the software module The reset command can be transmitted to the security element 210.

동작 504에서 보안 엘리먼트(210)(예를 들어 FRA(304))는 상기 리셋 명령을 운영 시스템(302)으로 전달할 수 있다. 동작 506에서 운영 시스템(302)은 옵션 DB(312)로부터 각 애플릿의 리셋 타입을 나타내는 옵션을 획득할 수 있다. In operation 504, the secure element 210 (e.g., FRA 304) may transmit the reset command to the operating system 302. In operation 506, the operating system 302 may obtain an option indicating the reset type of each applet from the option DB 312.

동작 508에서 운영 시스템(302)은 상기 획득한 옵션에 근거하여 데이터 저장 영역(318)의 데이터 제거를 진행할 수 있다. 제2 옵션(예를 들어 'Data Clear')으로 설정된 애플릿(예를 들어 제2 애플릿)에 대해 운영 시스템(302)은 보조 보안 영역(314)에 저장된 설치 데이터(ELF2) 및 실행 데이터(APP2)의 데이터 제거를 진행하지 않고, 데이터 저장 영역(318)의 제2 데이터 영역(408)에 저장된 사용자 데이터(예를 들어 DATA2)를 제거할 수 있다. 제2 애플릿의 설치 데이터(ELF2) 및 실행 데이터(APP2)는 팩토리 리셋 이후에 유지되기 때문에, 보안 엘리먼트(210)는 설치 데이터(ELF2) 및 실행 데이터(APP2)를 다시 설치할 필요 없이 제2 애플릿을 바로 활용할 수 있다.In operation 508, the operating system 302 may remove data from the data storage area 318 based on the obtained option. For an applet (e.g. a second applet) set to the second option (e.g. 'Data Clear'), the operating system 302 stores installation data (ELF2) and execution data (APP2) in the secondary secure area 314. User data (eg, DATA2) stored in the second data area 408 of the data storage area 318 can be removed without proceeding with data removal. Since the installation data (ELF2) and execution data (APP2) of the second applet are maintained after factory reset, the security element 210 can install the second applet without the need to reinstall the installation data (ELF2) and execution data (APP2). You can use it right away.

운영 시스템(302)은 상기 사용자 데이터(예를 들어 DATA2)가 데이터 저장 영역(318)에서 제거되었음을 확인할 수 있다. 일 실시예에서 데이터 저장 영역(318)으로부터 데이터 제거 결과를 수신할 수 있다. 동작 510에서 운영 시스템(302)은 상기 데이터 저장 영역(318)의 상기 데이터 제거 결과를 나타내는 응답을 FRA(304)로 전송할 수 있다. 동작 512에서 FRA(304)는 상기 응답을 어플리케이션 프로세서(202)로 전달할 수 있다.The operating system 302 may confirm that the user data (eg, DATA2) has been removed from the data storage area 318. In one embodiment, a data removal result may be received from the data storage area 318. In operation 510, the operating system 302 may transmit a response indicating the result of data removal from the data storage area 318 to the FRA 304. In operation 512, the FRA 304 may transmit the response to the application processor 202.

도 6은 일 실시예에 따라 애플릿을 통해 사용자 데이터를 제거하는 보안 엘리먼트의 동작을 설명하기 위한 도면이다.FIG. 6 is a diagram illustrating the operation of a security element that removes user data through an applet according to an embodiment.

도 6을 참조하면, 동작 602에서 보안 엘리먼트(210)(예를 들어 FRA(304))는 전자 장치(200)의 어플리케이션 프로세서(202)로부터 팩토리 리셋을 지시하는 리셋 명령을 수신할 수 있다. 동작 604에서 보안 엘리먼트(210)(예를 들어 FRA(304))는 상기 리셋 명령을 운영 시스템(302)으로 전달할 수 있다. 동작 606에서 운영 시스템(302)은 옵션 DB(312)로부터 각 애플릿의 리셋 타입을 나타내는 옵션을 획득할 수 있다. 운영 시스템(302)은 제3 옵션(예를 들어 'Data Clear' + 초기화 기능)으로 설정된 애플릿(예를 들어 제2 애플릿)에 대해 데이터 제거를 직접 진행하지 않을 수 있다. Referring to FIG. 6 , in operation 602, the security element 210 (eg, FRA 304) may receive a reset command indicating a factory reset from the application processor 202 of the electronic device 200. In operation 604, the secure element 210 (e.g., FRA 304) may transmit the reset command to the operating system 302. In operation 606, the operating system 302 may obtain an option indicating the reset type of each applet from the option DB 312. The operating system 302 may not directly proceed with data removal for an applet (e.g., a second applet) set to the third option (e.g., 'Data Clear' + initialization function).

동작 608a에서 운영 시스템(302)은 FRA(304)에게 제2 애플릿의 초기화 기능을 지시하도록 요청할 수 있다. 동작 608b에서 FRA(304)는 데이터 제거 API(application programming interface)를 사용하여 제2 애플릿에게 초기화 기능을 요청하기 위한 리셋 통지(reset notification)를 전달할 수 있다. 동작 610에서 제2 애플릿은 상기 데이터 제거 API에 근거하여 데이터 저장 영역(318)의 사용자 데이터 중 초기화가 필요한 사용자 데이터를 직접 제거할 수 있다. 일 실시예에서 제2 애플릿은 초기화 기능을 지원하고, FRA(304)는 제2 애플릿의 상기 초기화 기능을 호출하여 제2 애플릿에 의해 지정된 사용자 데이터를 제거할 수 있다. 일 실시예에서 제2 애플릿은 유지할 사용자 데이터와 제거할 사용자 데이터를 구분할 수 있고, FRA(304)로부터의 리셋 통지에 응답하여 해당 사용자 데이터를 제거할 수 있다. At operation 608a, the operating system 302 may request the FRA 304 to direct the initialization function of the second applet. In operation 608b, the FRA 304 may transmit a reset notification to request an initialization function to the second applet using a data removal application programming interface (API). In operation 610, the second applet may directly remove user data that requires initialization among user data in the data storage area 318 based on the data removal API. In one embodiment, the second applet supports an initialization function, and FRA 304 may call the initialization function of the second applet to remove user data specified by the second applet. In one embodiment, the second applet may distinguish between user data to keep and user data to remove, and may remove the user data in response to a reset notification from FRA 304.

운영 시스템(302)은 상기 사용자 데이터(예를 들어 DATA2)가 데이터 저장 영역(318)에서 저장되었음을 데이터 저장 영역(318)으로부터 직접 확인하거나 또는 제2 애플릿을 통해 확인할 수 있다. 동작 612에서 운영 시스템(302)은 상기 데이터 저장 영역(318)의 데이터 제거 결과를 나타내는 응답을 FRA(304)로 전송할 수 있다. 동작 614에서 FRA(304)는 상기 응답을 어플리케이션 프로세서(202)로 전달할 수 있다.The operating system 302 can confirm that the user data (eg, DATA2) is stored in the data storage area 318 directly from the data storage area 318 or through the second applet. In operation 612, the operating system 302 may transmit a response indicating the result of data removal from the data storage area 318 to the FRA 304. In operation 614, FRA 304 may transmit the response to the application processor 202.

도 7은 일 실시예에 따른 보안 엘리먼트의 동작을 설명하기 위한 흐름도이다. 실시예들에 따라 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다. 후술되는 동작들 중 적어도 하나는 보안 엘리먼트(210)의 프로세서(212)에 의해 실행될 수 있다.Figure 7 is a flowchart for explaining the operation of a security element according to an embodiment. Depending on the embodiments, at least one of the operations described below may be omitted, modified, or the order may be changed. At least one of the operations described below may be executed by the processor 212 of the secure element 210.

도 7을 참조하면, 동작 705에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 애플릿의 설치 명령을 수신할 수 있다. 일 실시예에서 상기 설치 명령은 상기 애플릿의 설치 데이터(예를 들어 ELF)를 포함할 수 있고, 어플리케이션 프로세서(202)로부터 수신될 수 있다. 동작 710에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 설치 데이터를 메모리(214)(예를 들어 보조 보안 영역(314))에 저장할 수 있다. 동작 715에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 설치 데이터를 기반으로 상기 애플릿을 설치할 수 있다. 상기 애플릿의 실행 데이터(예를 들어 실행 파일)는 메모리(214)(예를 들어 보조 보안 영역(314))에 저장될 수 있다. 일 실시예에서 동작 715는 동작 710 이전에 실행될 수 있다.Referring to FIG. 7, in operation 705, the security element 210 (eg, processor 212) may receive an applet installation command. In one embodiment, the installation command may include installation data (eg, ELF) of the applet and may be received from the application processor 202. In operation 710, secure element 210 (e.g., processor 212) may store the installation data in memory 214 (e.g., auxiliary secure area 314). In operation 715, the security element 210 (e.g., processor 212) may install the applet based on the installation data. Execution data (e.g., executable file) of the applet may be stored in memory 214 (e.g., auxiliary security area 314). In one embodiment, operation 715 may be executed before operation 710.

동작 720에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 설치 명령에 포함된 설치 파라미터를 기반으로 상기 애플릿의 리셋 타입을 식별하고 상기 리셋 타입을 메모리(214)(예를 들어 옵션 DB(312))에 저장할 수 있다. 일 실시예에서 상기 설치 명령은 상기 애플릿의 리셋 타입을 나타내는 옵션 태그를 가지는 설치 파라미터를 포함할 수 있고, 상기 옵션 태그는 상기 애플릿의 리셋 타입을 앞서 설명한 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 어느 하나로 지정할 수 있다. In operation 720, the security element 210 (e.g., processor 212) identifies the reset type of the applet based on the installation parameters included in the installation command and sets the reset type to memory 214 (e.g., option It can be stored in DB (312)). In one embodiment, the installation command may include an installation parameter having an option tag indicating the reset type of the applet, and the option tag may indicate the reset type of the applet as the first option, second option, and third option described above. , or can be specified as any of the fourth options.

동작 725에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 옵션 DB(312)에 저장된 리셋 타입을 근거로, 상기 애플릿의 리셋 타입이 지정된 데이터 제거 옵션(예를 들어 제2 옵션)인지 판단할 수 있다. 만일 상기 지정된 데이터 제거 옵션인 경우(동작 725에서 '예'인 경우), 동작 750에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 애플릿을 실행하는 동안 상기 애플릿에 의해 생성되는 사용자 데이터를 메모리(214) 내의 지정된 저장 영역(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 반면 상기 지정된 데이터 제거 옵션이 아닌 경우(동작 725에서 '아니오'인 경우), 동작 730에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 애플릿을 실행하는 동안 상기 애플릿에 의해 생성되는 사용자 데이터를 메모리(214) 내의 지정된 다른 저장 영역(예를 들어 제1 데이터 영역(406))에 저장할 수 있다.In operation 725, the security element 210 (e.g., processor 212) selects a data removal option (e.g., a second option) for which the reset type of the applet is specified, based on the reset type stored in the option DB 312. You can judge whether it is If the specified data removal option is yes in operation 725, then in operation 750 the security element 210 (e.g., processor 212) removes the user created by the applet while executing the applet. Data may be stored in a designated storage area (eg, second data area 408) within the memory 214. On the other hand, if the specified data removal option is not the specified data removal option (if 'No' in operation 725), in operation 730 the security element 210 (e.g., processor 212) removes the data generated by the applet while executing the applet. User data may be stored in another designated storage area (eg, first data area 406) within the memory 214.

동작 735에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 팩토리 리셋을 지시하는 리셋 명령을 수신할 수 있다. 일 실시예에서 상기 리셋 명령은 어플리케이션 프로세서(202)로부터 수신될 수 있다. 동작 740에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 옵션 DB(312)로부터, 상기 애플릿의 리셋 타입이 데이터 제거 옵션(예를 들어 제2 옵션)으로 설정되어 있음을 식별할 수 있다. 동작 745에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 리셋 명령에 근거하여 데이터 제거 옵션으로 지정된 상기 애플릿(예를 들어 제2 애플릿)의 설치 데이터 및/또는 실행 데이터를 유지하고, 사용자 데이터를 메모리(214)에서 제거할 수 있다. 일 실시예에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 제2 데이터 영역(408)을 클리어할 수 있다. 제2 애플릿의 설치 데이터 및/또는 실행 데이터는 팩토리 리셋 이후에도 메모리(214)에 남아있을 수 있다.In operation 735, the secure element 210 (e.g., processor 212) may receive a reset command instructing a factory reset. In one embodiment, the reset command may be received from the application processor 202. In operation 740, the security element 210 (e.g., processor 212) identifies from the options DB 312 that the reset type of the applet is set to the data removal option (e.g., the second option). You can. In operation 745, the security element 210 (e.g., processor 212) maintains installation data and/or execution data of the applet (e.g., a second applet) specified with a data removal option based on the reset command, and , user data can be removed from the memory 214. In one embodiment, secure element 210 (e.g., processor 212) may clear second data area 408. Installation data and/or execution data of the second applet may remain in the memory 214 even after factory reset.

도 8은 일 실시예에 따라 애플릿을 통해 사용자 데이터를 제거하는 보안 엘리먼트의 동작을 설명하기 위한 흐름도이다. 실시예들에 따라 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다. 후술되는 동작들 중 적어도 하나는 보안 엘리먼트(210)의 프로세서(212)에 의해 실행될 수 있다.FIG. 8 is a flowchart illustrating the operation of a security element that removes user data through an applet according to an embodiment. Depending on the embodiments, at least one of the operations described below may be omitted, modified, or the order may be changed. At least one of the operations described below may be executed by the processor 212 of the secure element 210.

도 8을 참조하면, 동작 805에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 애플릿의 설치 명령을 수신할 수 있다. 일 실시예에서 상기 설치 명령은 상기 애플릿의 설치 데이터(예를 들어 ELF)를 포함할 수 있고, 어플리케이션 프로세서(202)로부터 수신될 수 있다. 동작 810에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 설치 데이터를 메모리(214)(예를 들어 보조 보안 영역(314))에 저장할 수 있다. 동작 815에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 설치 데이터를 기반으로 상기 애플릿을 설치할 수 있다. 상기 애플릿의 실행 데이터(예를 들어 실행 파일)는 메모리(214)(예를 들어 보조 보안 영역(314))에 저장될 수 있다.Referring to FIG. 8, in operation 805, the security element 210 (eg, processor 212) may receive an applet installation command. In one embodiment, the installation command may include installation data (eg, ELF) of the applet and may be received from the application processor 202. In operation 810, secure element 210 (e.g., processor 212) may store the installation data in memory 214 (e.g., auxiliary secure area 314). In operation 815, the security element 210 (e.g., processor 212) may install the applet based on the installation data. Execution data (e.g., executable file) of the applet may be stored in memory 214 (e.g., auxiliary security area 314).

동작 820에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 설치 명령에 포함된 설치 파라미터를 기반으로 상기 애플릿의 리셋 타입을 식별하고 상기 리셋 타입을 메모리(214)(예를 들어 옵션 DB(312))에 저장할 수 있다. 일 실시예에서 상기 설치 명령은 상기 애플릿의 리셋 타입을 나타내는 옵션 태그를 가지는 설치 파라미터를 포함할 수 있고, 상기 옵션 태그는 상기 애플릿의 리셋 타입을 앞서 설명한 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 어느 하나로 지정할 수 있다. In operation 820, the security element 210 (e.g., processor 212) identifies the reset type of the applet based on installation parameters included in the installation command and sets the reset type to memory 214 (e.g., option It can be stored in DB (312)). In one embodiment, the installation command may include an installation parameter having an option tag indicating the reset type of the applet, and the option tag may indicate the reset type of the applet as the first option, second option, and third option described above. , or can be specified as any of the fourth options.

동작 825에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 옵션 DB(312)에 저장된 리셋 타입을 근거로, 상기 애플릿의 리셋 타입이 지정된 데이터 제거 옵션(예를 들어 제3 옵션)인지 판단할 수 있다. 만일 상기 지정된 데이터 제거 옵션인 경우(동작 825에서 '예'인 경우), 동작 850에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 애플릿을 실행하는 동안 상기 애플릿에 의해 생성되는 사용자 데이터를 메모리(214) 내의 지정된 저장 영역(예를 들어 제2 데이터 영역(408) 또는 일반 데이터 영역(404))에 저장할 수 있다. 반면 상기 지정된 데이터 제거 옵션이 아닌 경우(동작 825에서 '아니오'인 경우), 동작 830에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 애플릿을 실행하는 동안 상기 애플릿에 의해 생성되는 사용자 데이터를 메모리(214) 내의 지정된 다른 저장 영역(예를 들어 제1 데이터 영역(406) 또는 일반 데이터 영역(404))에 저장할 수 있다.In operation 825, the security element 210 (e.g., processor 212) selects a data removal option (e.g., a third option) for which the reset type of the applet is specified, based on the reset type stored in the option DB 312. You can judge whether it is If the specified data removal option is yes in operation 825, then in operation 850 the security element 210 (e.g., processor 212) determines that the user created by the applet during execution of the applet Data may be stored in a designated storage area (for example, the second data area 408 or the general data area 404) within the memory 214. On the other hand, if the specified data removal option is not the specified data removal option (if 'No' in operation 825), in operation 830 the security element 210 (e.g., processor 212) removes the data generated by the applet while executing the applet. User data may be stored in another designated storage area (for example, the first data area 406 or the general data area 404) within the memory 214.

동작 835에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 팩토리 리셋을 지시하는 리셋 명령을 수신할 수 있다. 일 실시예에서 상기 리셋 명령은 어플리케이션 프로세서(202)로부터 수신될 수 있다. 동작 840에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 옵션 DB(312)로부터, 상기 애플릿의 리셋 타입이 초기화 기능을 가지는 데이터 제거 옵션(예를 들어 제3 옵션)으로 설정되어 있음을 식별할 수 있다. 동작 845에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 리셋 명령에 근거하여 데이터 제거 옵션으로 지정된 상기 애플릿(예를 들어 제2 애플릿)의 설치 데이터 및/또는 실행 데이터를 유지하고, 제2 애플릿의 적어도 일부 사용자 데이터를 메모리(214)에서 제거할 수 있다. 일 실시예에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 제2 애플릿을 실행하고 제2 애플릿을 통해 데이터 저장 영역(408)에 저장된, 적어도 일부 사용자 데이터를 제거할 수 있다. 제2 애플릿의 설치 데이터 및/또는 실행 데이터는 팩토리 리셋 이후에도 메모리(214)에 남아있을 수 있다.In operation 835, the secure element 210 (e.g., processor 212) may receive a reset command instructing a factory reset. In one embodiment, the reset command may be received from the application processor 202. In operation 840, the security element 210 (e.g., processor 212) sets the reset type of the applet to a data removal option with an initialization function (e.g., a third option) from the option DB 312. It can be identified that it exists. In operation 845, the security element 210 (e.g., processor 212) maintains installation data and/or execution data of the applet (e.g., a second applet) specified with a data removal option based on the reset command, and , at least some user data of the second applet may be removed from the memory 214. In one embodiment, the secure element 210 (e.g., processor 212) may execute a second applet and remove at least some user data stored in data storage area 408 through the second applet. Installation data and/or execution data of the second applet may remain in the memory 214 even after factory reset.

도시하지 않을 것이지만, 일 실시예에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 옵션 DB(312)로부터, 보안 엘리먼트(210)에 설치된 하나 이상의 애플릿들의 리셋 타입들을 확인하고, 모두 유지 옵션(예를 들어 제1 옵션)의 리셋 타입을 가지는 적어도 하나의 애플릿(예를 들어 제1 애플릿)이 존재하는지 판단할 수 있다. 모두 유지 옵션의 리셋 타입을 가지는 제1 애플릿이 존재하는 경우, 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 리셋 명령에 근거하여 제1 애플릿의 관련 데이터(예를 들어 설치 데이터, 실행 데이터 및 사용자 데이터)를 제거하지 않을 수 있다. 일 실시예에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 제1 애플릿에 대해 옵션 DB(312)에 아무런 옵션도 저장되어 있지 않은 경우, 제1 애플릿이 모두 유지 옵션의 리셋 타입을 가지는 것으로 판단할 수 있다. 제1 애플릿의 관련 데이터는 팩토리 리셋 이후에도 메모리(214)에 남아있을 수 있다.Although not shown, in one embodiment the secure element 210 (e.g., processor 212) checks from the options DB 312 the reset types of one or more applets installed on the secure element 210 and maintains all of them. It may be determined whether there is at least one applet (eg, a first applet) having a reset type of option (eg, a first option). If there is a first applet with a reset type of the Keep All option, the security element 210 (e.g., processor 212) retrieves the first applet's associated data (e.g., installation data, etc.) based on the reset command. execution data and user data) may not be removed. In one embodiment, the security element 210 (e.g., processor 212) sets the reset type of the keep all option for the first applet if no options are stored in the options DB 312 for the first applet. It can be judged by having it. Related data of the first applet may remain in memory 214 even after factory reset.

도시하지 않을 것이지만, 일 실시예에서 보안 엘리먼트(210)(예를 들어 프로세서(212))는 옵션 DB(312)로부터, 보안 엘리먼트(210)에 설치된 하나 이상의 애플릿들의 리셋 타입들을 확인하고, 모두 제거 옵션(예를 들어 제4 옵션)의 리셋 타입을 가지는 적어도 하나의 애플릿(예를 들어 제3 애플릿)이 존재하는지 판단할 수 있다. 모두 제거 옵션의 리셋 타입을 가지는 제3 애플릿이 존재하는 경우, 보안 엘리먼트(210)(예를 들어 프로세서(212))는 상기 리셋 명령에 근거하여 제3 애플릿의 관련 데이터(예를 들어 설치 데이터, 실행 데이터 및 사용자 데이터)를 메모리(214)에서 제거할 수 있다. Although not shown, in one embodiment the secure element 210 (e.g., processor 212) checks from the options DB 312 the reset types of one or more applets installed on the secure element 210 and removes them all. It may be determined whether there is at least one applet (eg, a third applet) having a reset type of option (eg, a fourth option). If there is a third applet with a reset type of Remove All option, the security element 210 (e.g., processor 212) retrieves the third applet's related data (e.g., installation data, etc.) based on the reset command. Execution data and user data) may be removed from the memory 214.

도 9는 일 실시예에 따라 보안 엘리먼트의 사용자 데이터를 제거하는 절차를 설명하는 신호 흐름도(sequence diagram)를 나타낸 것이다. 실시예들에 따라 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다. 후술되는 동작들 중 적어도 하나는 보안 엘리먼트(210)의 프로세서(212)에 의해 실행될 수 있다. FIG. 9 shows a sequence diagram illustrating a procedure for removing user data of a secure element according to an embodiment. Depending on the embodiments, at least one of the operations described below may be omitted, modified, or the order may be changed. At least one of the operations described below may be executed by the processor 212 of the secure element 210.

도 9를 참조하면, 동작 902에서 서버(314)(예를 들어 서비스 제공자 서버)는 전자 장치(200)의 어플리케이션 프로세서(202)를 통해 보안 엘리먼트(210)에 애플릿을 설치하기 위해, 상기 설치 명령에 리셋 타입을 지시하는 설치 파라미터를 포함하여 어플리케이션 프로세서(202)로 전송할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 설치 명령을 포함하는 로컬 스크립트(local script)를 사용하여 상기 애플릿을 보안 엘리먼트(210)에 설치할 수 있고, 이 경우 동작 902는 생략될 수 있다.Referring to FIG. 9 , in operation 902, the server 314 (e.g., a service provider server) sends the installation command to install the applet on the secure element 210 through the application processor 202 of the electronic device 200. It may be transmitted to the application processor 202, including installation parameters indicating the reset type. In one embodiment, the application processor 202 may install the applet on the secure element 210 using a local script containing an installation command, in which case operation 902 may be omitted.

동작 904에서 어플리케이션 프로세서(202)는 서버(314) 또는 로컬 스크립트에 의한 애플릿의 설치 명령을 보안 엘리먼트(210)의 운영 시스템(302)으로 전달할 수 있다. 상기 설치 명령은 설치 패키지를 포함할 수 있고, 상기 설치 패키지는 상기 애플릿을 위한 설치 데이터와 설치 파라미터를 포함할 수 있다. 상기 설치 파라미터는 상기 애플릿의 관련 데이터를 제거하는 방식을 나타내는 리셋 타입을 지정하는 옵션 태그를 포함할 수 있다. In operation 904, the application processor 202 may transmit an applet installation command by the server 314 or a local script to the operating system 302 of the security element 210. The installation command may include an installation package, and the installation package may include installation data and installation parameters for the applet. The installation parameters may include an option tag specifying a reset type that indicates how to remove the applet's associated data.

동작 906에서 운영 시스템(302)은 상기 설치 파라미터에 따른 리셋 타입을 저장할지 여부를 FRA(304)에게 문의할 수 있고, 동작 908에서 FRA(304)의 요청에 따라 상기 리셋 타입으로 설정된 옵션(예를 들어 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 어느 하나)을 옵션 DB(312)에 저장할 수 있다. 옵션 DB(312)는 상기 옵션을 상기 애플릿의 AID와 함께 저장할 수 있다. 일 실시예에서 운영 시스템(302)은 상기 애플릿이 설치된 이후, 어플리케이션 프로세서(202)로부터 상기 애플릿의 리셋 타입을 지정하는 리셋 타입 변경 명령을 수신하여, 상기 리셋 타입의 변경된 옵션을 옵션 DB(312)에 저장할 수 있다. In operation 906, the operating system 302 may inquire with the FRA 304 whether to store the reset type according to the installation parameter, and in operation 908, upon a request from the FRA 304, the operating system 302 may request an option (e.g. For example, one of the first option, second option, third option, or fourth option) may be stored in the option DB 312. The option DB 312 may store the option along with the AID of the applet. In one embodiment, after the applet is installed, the operating system 302 receives a reset type change command specifying the reset type of the applet from the application processor 202, and stores the changed option of the reset type in the option DB 312. It can be saved in .

동작 910에서 운영 시스템(302)은 상기 설치 패키지 내의 설치 데이터에 근거하여 상기 애플릿을 설치할 수 있고, 상기 애플릿의 설치 데이터 및 실행 데이터를 보조 보안 영역(314)에 저장될 수 있다. 도시하지 않을 것이지만 운영 시스템(302)은 상기 리셋 타입의 옵션에 따라 데이터 저장 영역(318) 내에 상기 애플릿을 위한 저장 공간(예를 들어 제2 데이터 영역(408))을 할당할 수 있다.In operation 910, the operating system 302 may install the applet based on installation data in the installation package, and may store the installation data and execution data of the applet in the auxiliary security area 314. Although not shown, the operating system 302 may allocate storage space (for example, the second data area 408) for the applet within the data storage area 318 according to the reset type option.

동작 912에서 운영 시스템(302)은 상기 애플릿에 의해 생성되는 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 운영 시스템(302)은 옵션 DB(312)에 저장된 상기 애플릿의 리셋 타입을 식별하고, 상기 리셋 타입이 지정된 데이터 제거 옵션(예를 들어 제2 옵션)임을 식별함에 근거하여 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 도시하지 않을 것이지만, 운영 시스템(302)은 옵션 DB(312)에 근거하여, 지정된 데이터 유지 옵션(예를 들어 제1 옵션)으로 설정된 애플릿에서 생성하는 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제1 데이터 영역(408))에 저장할 수 있다.In operation 912, the operating system 302 may store user data generated by the applet in the data storage area 318 (eg, the second data area 408). The operating system 302 identifies the reset type of the applet stored in the option DB 312, and stores user data in a data storage area (for example, a second option) based on identifying the reset type as a designated data removal option (e.g., a second option). 318) (for example, the second data area 408). Although not shown, the operating system 302 stores user data generated by an applet set to the specified data retention option (e.g., the first option) based on the option DB 312 in the data storage area 318 (e.g., For example, it can be stored in the first data area 408).

동작 914에서 어플리케이션 프로세서(202)는 사용자 입력을 통해 또는 서버(예를 들어 서버(314))로부터 팩토리 리셋을 위한 리셋 요청을 수신할 수 있다. 동작 916에서 어플리케이션 프로세서(202)는 팩토리 리셋을 위한 리셋 명령을 보안 엘리먼트(212)의 FRA(304)에게 전송할 수 있다. 동작 918에서 FRA(304)는 운영 시스템(302)에게 상기 리셋 명령을 전달할 수 있다. 동작 920에서 운영 시스템(302)은 상기 리셋 명령에 응답하여 옵션 DB(312)에게 리셋 타입을 요청할 수 있다. 동작 922에서 운영 시스템(302)은 옵션 DB(312)로부터 보안 엘리먼트(210)에 설치된 각 애플릿에 대한 리셋 타입을 수신할 수 있다.In operation 914, the application processor 202 may receive a reset request for a factory reset through a user input or from a server (eg, server 314). In operation 916, the application processor 202 may transmit a reset command for factory reset to the FRA 304 of the secure element 212. At operation 918, FRA 304 may transmit the reset command to operating system 302. In operation 920, the operating system 302 may request a reset type from the option DB 312 in response to the reset command. In operation 922, the operating system 302 may receive a reset type for each applet installed in the security element 210 from the option DB 312.

동작 924에서 운영 시스템(302)은 상기 수신한 리셋 타입이 데이터 제거 옵션(예를 들어 제2 옵션 또는 제3 옵션)을 지시함에 근거하여 데이터 저장 영역(318)에 있는 사용자 데이터를 제거하도록 데이터 저장 영역(318)에게 요청할 수 있다. 일 실시예에서 운영 시스템(302)은 상기 리셋 타입에 근거하여 데이터 저장 영역(318) 중 제2 데이터 영역(408)을 클리어하도록 요청할 수 있다. 동작 926에서 데이터 저장 영역(318) 중 제2 데이터 영역(408)이 클리어될 수 있다. 동작 928에서 운영 시스템(302)은 데이터 저장 영역(318)의 데이터 제거 결과를 수신할 수 있다. 도시하지 않을 것이지만, 팩토리 리셋 이후에 옵션 DB(312)는 초기화될 수 있다.In operation 924, the operating system 302 stores data to remove user data in the data storage area 318 based on the received reset type indicating a data removal option (e.g., a second option or a third option). A request can be made to area 318. In one embodiment, the operating system 302 may request to clear the second data area 408 of the data storage area 318 based on the reset type. In operation 926, the second data area 408 of the data storage area 318 may be cleared. In operation 928, the operating system 302 may receive a result of data removal in the data storage area 318. Although not shown, the option DB 312 may be initialized after factory reset.

동작 930에서 운영 시스템(302)은 데이터 제거의 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 일 실시예에서 운영 시스템(302)은 팩토리 리셋을 실행하고, 데이터 제거를 포함하는 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 동작 932에서 어플리케이션 프로세서(202)는 상기 처리 결과를 서버(314)로 보고할 수 있다.In operation 930, the operating system 302 may transmit the data removal processing result to the application processor 202. In one embodiment, the operating system 302 may perform a factory reset and transmit the processing results, including data removal, to the application processor 202. In operation 932, the application processor 202 may report the processing result to the server 314.

도 10은 일 실시예에 따라 보안 엘리먼트의 데이터를 제거하는 절차를 설명하는 신호 흐름도를 나타낸 것이다. 실시예들에 따라 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다. 후술되는 동작들 중 적어도 하나는 보안 엘리먼트(210)의 프로세서(212)에 의해 실행될 수 있다. Figure 10 shows a signal flow diagram illustrating a procedure for removing data from a secure element according to one embodiment. Depending on the embodiments, at least one of the operations described below may be omitted, modified, or the order may be changed. At least one of the operations described below may be executed by the processor 212 of the secure element 210.

도 10을 참조하면, 동작 1002에서 서버(314)(예를 들어 서비스 제공자 서버)는 전자 장치(200)의 어플리케이션 프로세서(202)를 통해 보안 엘리먼트(210)에 애플릿을 설치하기 위해, 상기 설치 명령에 리셋 타입을 지시하는 설치 파라미터를 포함하여 어플리케이션 프로세서(202)로 전송할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 로컬 스크립트를 사용하여 상기 애플릿을 보안 엘리먼트(210)에 설치할 수 있고, 이 경우 동작 1002는 생략될 수 있다.Referring to FIG. 10 , in operation 1002, the server 314 (e.g., a service provider server) executes the installation command to install an applet on the secure element 210 through the application processor 202 of the electronic device 200. It may be transmitted to the application processor 202, including installation parameters indicating the reset type. In one embodiment, the application processor 202 may install the applet on the secure element 210 using a local script, in which case operation 1002 may be omitted.

동작 1004에서 어플리케이션 프로세서(202)는 서버(314) 또는 로컬 스크립트에 의한 애플릿의 설치 명령을 보안 엘리먼트(210)의 운영 시스템(302)으로 전달할 수 있다. 상기 설치 명령은 설치 패키지를 포함할 수 있고, 상기 설치 패키지는 상기 애플릿을 위한 설치 데이터와 설치 파라미터를 포함할 수 있다. 상기 설치 파라미터는 상기 애플릿의 관련 데이터를 제거하는 방식을 나타내는 리셋 타입을 지정하는 옵션 태그를 포함할 수 있다. In operation 1004, the application processor 202 may transmit an applet installation command by the server 314 or a local script to the operating system 302 of the security element 210. The installation command may include an installation package, and the installation package may include installation data and installation parameters for the applet. The installation parameters may include an option tag specifying a reset type that indicates how to remove the applet's associated data.

동작 1006에서 운영 시스템(302)은 상기 설치 파라미터에 따른 리셋 타입을 저장할지 여부를 FRA(304)에게 문의할 수 있고, 동작 1008에서 FRA(304)의 요청에 따라 상기 리셋 타입으로 설정된 옵션(예를 들어 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 어느 하나)을 옵션 DB(312)에 저장할 수 있다. 옵션 DB(312)는 상기 옵션을 상기 애플릿의 AID와 함께 저장할 수 있다. 일 실시예에서 운영 시스템(302)은 상기 애플릿이 설치된 이후, 어플리케이션 프로세서(202)로부터 상기 애플릿의 리셋 타입을 지정하는 리셋 타입 변경 명령을 수신하여, 상기 리셋 타입의 옵션을 옵션 DB(312)에 저장할 수 있다. In operation 1006, the operating system 302 may inquire with the FRA 304 whether to store the reset type according to the installation parameter, and in operation 1008, upon a request from the FRA 304, the operating system 302 may request an option (e.g. For example, one of the first option, second option, third option, or fourth option) may be stored in the option DB 312. The option DB 312 may store the option along with the AID of the applet. In one embodiment, after the applet is installed, the operating system 302 receives a reset type change command specifying the reset type of the applet from the application processor 202 and stores the reset type option in the option DB 312. You can save it.

동작 1010에서 운영 시스템(302)은 상기 설치 패키지 내의 설치 데이터에 근거하여 상기 애플릿을 설치할 수 있고, 상기 애플릿의 설치 데이터 및 실행 데이터를 보조 보안 영역(314)에 저장될 수 있다. 도시하지 않을 것이지만 운영 시스템(302)은 상기 리셋 타입의 옵션에 따라 데이터 저장 영역(318) 내에 상기 애플릿을 위한 저장 공간(예를 들어 제2 데이터 영역(408))을 할당할 수 있다.In operation 1010, the operating system 302 may install the applet based on installation data in the installation package, and may store the installation data and execution data of the applet in the auxiliary security area 314. Although not shown, the operating system 302 may allocate storage space (for example, the second data area 408) for the applet within the data storage area 318 according to the reset type option.

동작 1012에서 운영 시스템(302)은 상기 애플릿에 의해 생성되는 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 운영 시스템(302)은 옵션 DB(312)에 저장된 상기 애플릿의 리셋 타입을 식별하고, 상기 리셋 타입이 지정된 데이터 제거 옵션(예를 들어 제2 옵션)임을 식별함에 근거하여 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 도시하지 않을 것이지만, 운영 시스템(302)은 옵션 DB(312)에 근거하여, 지정된 데이터 유지 옵션(예를 들어 제1 옵션)으로 설정된 애플릿에서 생성하는 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제1 데이터 영역(408))에 저장할 수 있다.In operation 1012, the operating system 302 may store user data generated by the applet in the data storage area 318 (eg, the second data area 408). The operating system 302 identifies the reset type of the applet stored in the option DB 312, and stores user data in a data storage area (for example, a second option) based on identifying the reset type as a designated data removal option (e.g., a second option). 318) (for example, the second data area 408). Although not shown, the operating system 302 stores user data generated by an applet set to the specified data retention option (e.g., the first option) based on the option DB 312 in the data storage area 318 (e.g., For example, it can be stored in the first data area 408).

동작 1014에서 어플리케이션 프로세서(202)는 사용자 입력을 통해 또는 서버(예를 들어 서버(314))로부터 팩토리 리셋을 위한 리셋 요청을 수신할 수 있다. 동작 1016에서 어플리케이션 프로세서(202)는 팩토리 리셋을 위한 리셋 명령을 보안 엘리먼트(212)의 FRA(304)에게 전송할 수 있다. 동작 1018에서 FRA(304)는 운영 시스템(302)에게 상기 리셋 명령을 전달할 수 있다. 동작 1020에서 운영 시스템(302)은 상기 리셋 명령에 응답하여 옵션 DB(312)에게 리셋 타입을 요청할 수 있다. 동작 1022에서 운영 시스템(302)은 옵션 DB(312)로부터 보안 엘리먼트(210)에 설치된 각 애플릿에 대한 리셋 타입을 수신할 수 있다.In operation 1014, the application processor 202 may receive a reset request for a factory reset through a user input or from a server (eg, server 314). In operation 1016, the application processor 202 may transmit a reset command for factory reset to the FRA 304 of the security element 212. In operation 1018, FRA 304 may transmit the reset command to operating system 302. In operation 1020, the operating system 302 may request a reset type from the option DB 312 in response to the reset command. In operation 1022, the operating system 302 may receive a reset type for each applet installed in the security element 210 from the option DB 312.

동작 1024a 및 동작 1024b에서 eSE 운영 시스템(302)은 상기 수신한 리셋 타입이 모두 제거 옵션(예를 들어 제4 옵션)을 지시함에 근거하여 해당 애플릿의 관련 데이터를 제거하도록 데이터 저장 영역(318)에게 요청할 수 있다. 동작 1024a에서 운영 시스템(302)은 데이터 저장 영역(318) 중 제2 데이터 영역(408)을 클리어하도록 요청할 수 있다. 동작 1026a에서 데이터 저장 영역(318) 중 제2 데이터 영역(408)이 클리어될 수 있다. 동작 1024b에서 운영 시스템(302)은 보조 보안 영역(314)의 해당 애플릿의 관련 데이터(예를 들어 설치 데이터 및/또는 실행 데이터)를 제거하도록 요청할 수 있다. 동작 1026b에서 보조 보안 영역(314)의 해당 애플릿의 관련 데이터가 제거될 수 있다.In operations 1024a and 1024b, the eSE operating system 302 instructs the data storage area 318 to remove the relevant data of the applet based on the received reset type indicating a remove all option (e.g., the fourth option). You can request it. In operation 1024a, the operating system 302 may request to clear the second data area 408 of the data storage area 318. In operation 1026a, the second data area 408 of the data storage area 318 may be cleared. In operation 1024b, operating system 302 may request removal of associated data (e.g., installation data and/or execution data) of that applet from secondary secure area 314. In operation 1026b, the associated data of the applet in the secondary secure area 314 may be removed.

동작 1028a 및 동작 1028b에서 운영 시스템(302)은 데이터 저장 영역(318) 및 보조 보안 영역(314)의 데이터 제거 결과를 수신할 수 있다. 도시하지 않을 것이지만, 팩토리 리셋 이후에 옵션 DB(312)는 초기화될 수 있다.In operations 1028a and 1028b, the operating system 302 may receive a result of data removal in the data storage area 318 and the auxiliary security area 314. Although not shown, the option DB 312 may be initialized after factory reset.

동작 1030에서 운영 시스템(302)은 데이터 제거의 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 일 실시예에서 운영 시스템(302)은 팩토리 리셋을 실행하고, 데이터 제거를 포함하는 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 동작 1032에서 어플리케이션 프로세서(202)는 상기 처리 결과를 서버(314)로 보고할 수 있다.In operation 1030, the operating system 302 may transmit the data removal processing result to the application processor 202. In one embodiment, the operating system 302 may perform a factory reset and transmit the processing results, including data removal, to the application processor 202. In operation 1032, the application processor 202 may report the processing result to the server 314.

도 11은 일 실시예에 따라 애플릿을 통해 보안 엘리먼트의 사용자 데이터를 제거하는 절차를 설명하는 신호 흐름도를 나타낸 것이다. 실시예들에 따라 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다. 후술되는 동작들 중 적어도 하나는 보안 엘리먼트(210)의 프로세서(212)에 의해 실행될 수 있다. Figure 11 shows a signal flow diagram illustrating a procedure for removing user data of a secure element through an applet according to one embodiment. Depending on the embodiments, at least one of the operations described below may be omitted, modified, or the order may be changed. At least one of the operations described below may be executed by the processor 212 of the secure element 210.

도 11을 참조하면, 동작 1102에서 서버(314)(예를 들어 서비스 제공자 서버)는 전자 장치(200)의 어플리케이션 프로세서(202)를 통해 보안 엘리먼트(210)에 애플릿을 설치하기 위해, 상기 설치 명령에 리셋 타입을 지시하는 설치 파라미터를 포함하여 어플리케이션 프로세서(202)로 전송할 수 있다. 일 실시예에서 어플리케이션 프로세서(202)는 로컬 스크립트에 따라서 상기 애플릿을 보안 엘리먼트(210)에 설치할 수 있고, 이 경우 동작 1102는 생략될 수 있다.Referring to FIG. 11 , in operation 1102, the server 314 (e.g., a service provider server) sends the installation command to install an applet on the secure element 210 through the application processor 202 of the electronic device 200. It may be transmitted to the application processor 202, including installation parameters indicating the reset type. In one embodiment, the application processor 202 may install the applet in the secure element 210 according to a local script, in which case operation 1102 may be omitted.

동작 1104에서 어플리케이션 프로세서(202)는 서버(314) 또는 로컬 스크립트에 의한 애플릿의 설치 명령을 보안 엘리먼트(210)의 운영 시스템(302)으로 전달할 수 있다. 상기 설치 명령은 설치 패키지를 포함할 수 있고, 상기 설치 패키지는 상기 애플릿을 위한 설치 데이터와 설치 파라미터를 포함할 수 있다. 상기 설치 파라미터는 상기 애플릿의 관련 데이터를 제거하는 방식을 나타내는 리셋 타입을 지정하는 옵션 태그를 포함할 수 있다. In operation 1104, the application processor 202 may transmit an applet installation command by the server 314 or a local script to the operating system 302 of the security element 210. The installation command may include an installation package, and the installation package may include installation data and installation parameters for the applet. The installation parameters may include an option tag specifying a reset type that indicates how to remove the applet's associated data.

동작 1106에서 운영 시스템(302)은 상기 설치 파라미터에 따른 리셋 타입을 저장할지 여부를 FRA(304)에게 문의할 수 있고, 동작 1108에서 FRA(304)의 요청에 따라 상기 리셋 타입으로 설정된 옵션(예를 들어 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 어느 하나)을 옵션 DB(312)에 저장할 수 있다. 옵션 DB(312)는 상기 옵션을 상기 애플릿의 AID와 함께 저장할 수 있다. 일 실시예에서 운영 시스템(302)은 상기 애플릿이 설치된 이후, 어플리케이션 프로세서(202)로부터 상기 애플릿의 리셋 타입을 지정하는 리셋 타입 변경 명령을 수신하여, 상기 리셋 타입의 옵션을 옵션 DB(312)에 저장할 수 있다. In operation 1106, the operating system 302 may inquire with the FRA 304 whether to store the reset type according to the installation parameter, and in operation 1108, at the request of the FRA 304, an option (e.g. For example, one of the first option, second option, third option, or fourth option) may be stored in the option DB 312. The option DB 312 may store the option along with the AID of the applet. In one embodiment, after the applet is installed, the operating system 302 receives a reset type change command specifying the reset type of the applet from the application processor 202 and stores the reset type option in the option DB 312. You can save it.

동작 1110에서 운영 시스템(302)은 상기 설치 패키지 내의 설치 데이터에 근거하여 상기 애플릿을 설치할 수 있고, 상기 애플릿의 설치 데이터 및 실행 데이터를 보조 보안 영역(314)에 저장될 수 있다. 도시하지 않을 것이지만 운영 시스템(302)은 상기 리셋 타입의 옵션에 따라 데이터 저장 영역(318) 내에 상기 애플릿을 위한 저장 공간(예를 들어 제2 데이터 영역(408))을 할당할 수 있다.In operation 1110, the operating system 302 may install the applet based on installation data in the installation package, and may store the installation data and execution data of the applet in the auxiliary security area 314. Although not shown, the operating system 302 may allocate storage space (for example, the second data area 408) for the applet within the data storage area 318 according to the reset type option.

동작 1112에서 운영 시스템(302)은 상기 애플릿에 의해 생성되는 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 운영 시스템(302)은 옵션 DB(312)에 저장된 상기 애플릿의 리셋 타입을 식별하고, 상기 리셋 타입이 지정된 데이터 제거 옵션(예를 들어 제2 옵션)임을 식별함에 근거하여 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제2 데이터 영역(408))에 저장할 수 있다. 도시하지 않을 것이지만, 운영 시스템(302)은 옵션 DB(312)에 근거하여, 지정된 데이터 유지 옵션(예를 들어 제1 옵션)으로 설정된 애플릿에서 생성하는 사용자 데이터를 데이터 저장 영역(318)(예를 들어 제1 데이터 영역(408))에 저장할 수 있다.In operation 1112, the operating system 302 may store user data generated by the applet in the data storage area 318 (eg, the second data area 408). The operating system 302 identifies the reset type of the applet stored in the option DB 312, and stores user data in a data storage area (for example, a second option) based on identifying the reset type as a designated data removal option (e.g., a second option). 318) (for example, the second data area 408). Although not shown, the operating system 302 stores user data generated by an applet set to the specified data retention option (e.g., the first option) based on the option DB 312 in the data storage area 318 (e.g., For example, it can be stored in the first data area 408).

동작 1114에서 어플리케이션 프로세서(202)는 사용자 입력을 통해 또는 서버(예를 들어 서버(314))로부터 팩토리 리셋을 위한 리셋 요청을 수신할 수 있다. 동작 1116에서 어플리케이션 프로세서(202)는 팩토리 리셋을 위한 리셋 명령을 보안 엘리먼트(212)의 FRA(304)에게 전송할 수 있다. 동작 1118에서 FRA(304)는 운영 시스템(302)에게 상기 리셋 명령을 전달할 수 있다. 동작 1120a에서 운영 시스템(302)은 상기 리셋 명령에 응답하여 옵션 DB(312)에게 리셋 타입을 요청할 수 있다. 동작 1120b에서 운영 시스템(302)은 옵션 DB(312)로부터 보안 엘리먼트(210)에 설치된 각 애플릿에 대한 리셋 타입을 수신할 수 있다.In operation 1114, the application processor 202 may receive a reset request for factory reset through a user input or from a server (eg, server 314). In operation 1116, the application processor 202 may transmit a reset command for factory reset to the FRA 304 of the security element 212. In operation 1118, the FRA 304 may transmit the reset command to the operating system 302. In operation 1120a, the operating system 302 may request a reset type from the option DB 312 in response to the reset command. In operation 1120b, the operating system 302 may receive a reset type for each applet installed in the security element 210 from the option DB 312.

동작 1122a에서 운영 시스템(302)은 상기 수신한 리셋 타입이 애플릿(1100)(예를 들어 애플릿 A(APP A))의 초기화 기능을 포함하는 데이터 제거 옵션(예를 들어 제3 옵션)을 지시함에 근거하여 FRA(304)에게 애플릿 A(1100)의 초기화 기능을 실행하기 위한 리셋 통지 요청을 전송할 수 있다. 동작 1022b에서 FRA(304)는 애플릿 A(1100)에게 초기화 기능의 실행을 요청하기 위한 리셋 통지를 전송할 수 있다. In operation 1122a, the operating system 302 determines that the received reset type indicates a data removal option (e.g., a third option) that includes an initialization function of the applet 1100 (e.g., Applet A (APP A)). Based on this, a reset notification request to execute the initialization function of applet A (1100) can be transmitted to the FRA (304). In operation 1022b, FRA 304 may transmit a reset notification to applet A 1100 to request execution of an initialization function.

동작 1024에서 애플릿 A(1100)는 초기화 기능을 실행하고 데이터 저장 영역(318)에 있는 관련 사용자 데이터를 제거하도록 요청할 수 있다. 일 실시예에서 애플릿 A(1100)는 상기 초기화 기능에 의해 팩토리 리셋 이후에 유지할 사용자 데이터와 제거할 사용자 데이터를 구분할 수 있고, 상기 리셋 통지에 응답하여 상기 해당 사용자 데이터를 제거하도록 데이터 저장 영역(318)에게 요청할 수 있다. 동작 1126에서 데이터 저장 영역(318) 내에서 애플릿 A(1100)에 의해 지정된 적어도 일부 사용자 데이터가 제거될 수 있다. 일 실시예에서 애플릿 A(1100)에 의해 생성된 사용자 데이터 중, 애플릿 A(1100)의 초기화 기능에 의해 구별된 적어도 일부 사용자 데이터가 제거될 수 있다.At operation 1024, applet A 1100 may execute a reset function and request removal of associated user data in data storage area 318. In one embodiment, applet A (1100) can distinguish between user data to be retained and user data to be removed after factory reset by the initialization function, and to remove the corresponding user data in response to the reset notification in the data storage area 318. ) can be requested. In operation 1126, at least some user data specified by applet A 1100 within the data storage area 318 may be removed. In one embodiment, among the user data generated by Applet A (1100), at least some user data distinguished by the initialization function of Applet A (1100) may be removed.

동작 1128a에서 애플릿 A(1100)는 데이터 저장 영역(318)의 데이터 제거 결과를 수신할 수 있다. 동작 1128b에서 애플릿 A(1100)는 상기 데이터 제거 결과를 운영 시스템(302)로 전달할 수 있다. In operation 1128a, applet A 1100 may receive a data removal result from the data storage area 318. In operation 1128b, applet A 1100 may transmit the data removal result to the operating system 302.

동작 1130에서 운영 시스템(302)은 데이터 제거의 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 일 실시예에서 운영 시스템(302)은 팩토리 리셋을 실행하고, 데이터 제거를 포함하는 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 동작 1132에서 어플리케이션 프로세서(202)는 상기 처리 결과를 서버(314)로 보고할 수 있다.In operation 1130, the operating system 302 may transmit the data removal processing result to the application processor 202. In one embodiment, the operating system 302 may perform a factory reset and transmit the processing results, including data removal, to the application processor 202. In operation 1132, the application processor 202 may report the processing result to the server 314.

도 12는 일 실시예에 따라 리셋 타입을 변경하는 절차를 설명하는 신호 흐름도를 나타낸 것이다. 실시예들에 따라 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다. 후술되는 동작들 중 적어도 하나는 보안 엘리먼트(210)의 프로세서(212)에 의해 실행될 수 있다.Figure 12 shows a signal flow diagram explaining a procedure for changing the reset type according to one embodiment. Depending on the embodiments, at least one of the operations described below may be omitted, modified, or the order may be changed. At least one of the operations described below may be executed by the processor 212 of the secure element 210.

도 12를 참조하면, 동작 1202에서 서버(314)(예를 들어 서비스 제공자 서버)는 애플릿의 리셋 타입을 변경하기 위한 리셋 타입 변경 명령을 수신할 수 있다. 상기 리셋 타입 변경 명령은 상기 애플릿의 변경된 옵션(예를 들어 제1 옵션, 제2 옵션, 제3 옵션, 또는 제4 옵션 중 어느 하나)을 포함할 수 있다. 일 실시예에서 상기 리셋 타입 변경 명령은 상기 애플릿을 위한 설치 파라미터를 포함할 수 있고, 상기 설치 파라미터는 상기 애플릿의 변경된 옵션을 지정하는 옵션 태그를 포함할 수 있다.Referring to FIG. 12, in operation 1202, the server 314 (eg, service provider server) may receive a reset type change command to change the reset type of the applet. The reset type change command may include a changed option of the applet (eg, any one of the first option, second option, third option, or fourth option). In one embodiment, the reset type change command may include installation parameters for the applet, and the installation parameters may include an option tag specifying changed options of the applet.

동작 1206에서 운영 시스템(302)은 상기 설치 파라미터에 따른 리셋 타입을 변경할지 여부를 FRA(304)에게 문의할 수 있고, 동작 1208에서 FRA(304)의 요청에 따라 상기 리셋 타입으로 설정된 옵션을 상기 애플릿의 AID와 함께 옵션 DB(312)에 다시 저장할 수 있다. In operation 1206, the operating system 302 may inquire with the FRA 304 whether to change the reset type according to the installation parameter, and in operation 1208, the option set to the reset type is requested by the FRA 304. It can be saved back to the option DB (312) along with the applet's AID.

동작 1210에서 FRA(304)는 상기 변경된 옵션에 따라 데이터 이동을 운영 시스템(302)으로 요청할 수 있다. 일 실시예에서 상기 설치 파라미터의 옵션 태그에 의해 상기 애플릿의 리셋 타입은 데이터 제거 옵션(예를 들어 제2 옵션 또는 제3 옵션)에서 유지 옵션(예를 들어 제1 옵션)으로 변경될 수 있고, FRA(304)는 데이터 저장 영역(318)에 저장된 상기 애플릿의 관련 사용자 데이터를 이동하도록 운영 시스템(302)에게 요청할 수 있다. 동작 1212에서 운영 시스템(302)은 상기 애플릿의 사용자 데이터를 상기 변경된 옵션에 따라 이동하도록 데이터 저장 영역(318)에게 지시할 수 있고, 동작 1214에서 데이터 저장 영역(318)의 상기 사용자 데이터는 이동하여 저장될 수 있다. 일 실시예에서 상기 애플릿의 사용자 데이터는 제2 데이터 영역(408)으로부터 제1 데이터 영역(306)으로 이동할 수 있다. 이에 따라 팩토리 리셋시 상기 애플릿의 사용자 데이터는 유지될 수 있다.In operation 1210, the FRA 304 may request data movement to the operating system 302 according to the changed option. In one embodiment, the reset type of the applet may be changed from a data removal option (e.g., a second option or a third option) to a maintenance option (e.g., a first option) by the option tag of the installation parameter, FRA 304 may request operating system 302 to move the applet's associated user data stored in data storage area 318. In operation 1212, the operating system 302 may instruct the data storage area 318 to move the user data of the applet according to the changed option, and in operation 1214, the user data in the data storage area 318 may be moved. It can be saved. In one embodiment, the applet's user data may move from the second data area 408 to the first data area 306. Accordingly, upon factory reset, the user data of the applet can be maintained.

동작 1216에서 운영 시스템(302)은 데이터 저장 영역(318)의 데이터 이동 결과를 수신할 수 있다. 일 실시예에서 운영 시스템(302)은 상기 데이터 이동 결과에 따라 FAT(file allocation table)를 업데이트하여, 상기 사용자 데이터가 이동된 위치를 기록할 수 있다.In operation 1216, the operating system 302 may receive the data movement result of the data storage area 318. In one embodiment, the operating system 302 may update a file allocation table (FAT) according to the data movement results to record the location to which the user data has been moved.

동작 1218에서 운영 시스템(302)은 데이터 이동의 처리 결과를 어플리케이션 프로세서(202)로 전송할 수 있다. 동작 1220에서 어플리케이션 프로세서(202)는 리셋 타입 변경의 처리 결과를 서버(314)로 보고할 수 있다. In operation 1218, the operating system 302 may transmit the data movement processing result to the application processor 202. In operation 1220, the application processor 202 may report the processing result of the reset type change to the server 314.

본 개시의 실시예들은 보안 엘리먼트에 저장되는 중요한 데이터를 팩토리 리셋 이후에도 유지하면서, 지정된 데이터(예를 들어 지정된 애플릿의 적어도 일부 사용자 데이터)를 제거할 수 있다.Embodiments of the present disclosure can remove designated data (for example, at least some user data of a designated applet) while maintaining important data stored in the security element even after a factory reset.

본 개시의 실시예들은 팩토리 리셋 이후에 애플릿들의 설치 데이터 및 실행 데이터를 모두 재설치하고 다시 설정하는 시간 낭비와 불편함을 줄이고 보안 엘리먼트의 재사용성을 향상시킬 수 있다.Embodiments of the present disclosure can reduce the time waste and inconvenience of reinstalling and reconfiguring all installation data and execution data of applets after a factory reset and improve the reusability of security elements.

본 개시의 실시예들은 장치 분실과 같은 상황에서 원격 팩토리 리셋을 통해 지정된 데이터를 제거할 수 있다.Embodiments of the present disclosure can remove designated data through remote factory reset in situations such as device loss.

본 개시의 실시예들은 사용자 데이터의 제거 방식에 대한 다양한 옵션들을 제공하고 원하는 서비스에 따른 제거 방식을 사용할 수 있다.Embodiments of the present disclosure provide various options for the removal method of user data and can use a removal method according to the desired service.

본 개시의 실시예들은 팩토리 리셋시 전체 사용자 데이터를 제거하는 대신 지정된 사용자 데이터를 제거할 수 있다.Embodiments of the present disclosure may remove specified user data instead of removing all user data upon factory reset.

본 개시의 실시예들은 보안 엘리먼트에 설치된 각 애플릿에서 팩토리 리셋에 의한 초기화 기능을 통해, 해당 애플릿의 사용자 데이터를 선별적으로 제거할 수 있다.Embodiments of the present disclosure can selectively remove user data of each applet installed in the security element through an initialization function by factory reset.

본 개시의 실시예들은 제거할 사용자 데이터와 유지할 사용자 데이터를 분리하여 저장하여 선별적인 데이터 제거를 용이하게 수행할 수 있다.Embodiments of the present disclosure can easily perform selective data removal by separately storing user data to be removed and user data to be retained.

일 실시예에 따른 전자 장치(200)는, 어플리케이션 프로세서(202), 및 프로세서(212) 및 메모리(214)를 포함하는 보안 엘리먼트(210)를 포함할 수 있다. 상기 프로세서는, 상기 어플리케이션 프로세서로부터 제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하도록 구성될 수 있다. 상기 프로세서는 상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하도록 구성될 수 있다. 상기 프로세서는 상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 상기 메모리에 저장하도록 구성될 수 있다. 상기 프로세서는 상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하도록 구성될 수 있다. 상기 프로세서는 상기 어플리케이션 프로세서로부터 상기 보안 엘리먼트에 대한 리셋 명령을 수신하도록 구성될 수 있다. 상기 프로세서는 상기 리셋 명령에 응답하여, 상기 설치 데이터 및/또는 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하도록 구성될 수 있다.The electronic device 200 according to one embodiment may include an application processor 202 and a security element 210 including the processor 212 and memory 214. The processor may be configured to receive a first installation command including installation data of the first applet from the application processor. The processor may be configured to install the first applet based on the first installation command. The processor may be configured to store the installation data and execution data of the first applet in the memory. The processor may be configured to store first user data associated with the first applet in the memory. The processor may be configured to receive a reset command for the secure element from the application processor. The processor may be configured to maintain the installation data and/or the execution data and remove the first user data in response to the reset command.

일 실시예에서 상기 프로세서는, 상기 제1 사용자 데이터를 상기 메모리 내의 제1 데이터 영역(408) 내에 저장하고, 상기 리셋 명령에 응답하여 상기 보안 엘리먼트가 리셋되기 이전에 상기 제1 데이터 영역을 클리어하도록 구성될 수 있다.In one embodiment, the processor stores the first user data in a first data area 408 in the memory and clears the first data area before the secure element is reset in response to the reset command. It can be configured.

일 실시예에서 상기 제1 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정된 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 상기 프로세서에 의해 할당될 수 있다.In one embodiment, the first data area may be allocated by the processor to store user data of at least one applet for which a data removal option is set among one or more applets installed in the security element.

일 실시예에서 상기 설치 데이터 및/또는 상기 실행 데이터는, 상기 리셋 명령에 의하여 상기 보안 엘리먼트가 리셋된 이후에 상기 메모리에 유지될 수 있다.In one embodiment, the installation data and/or the execution data may be maintained in the memory after the security element is reset by the reset command.

일 실시예에서 상기 프로세서는, 상기 제1 설치 명령으로부터 상기 제1 애플릿의 리셋 타입을 나타내는 리셋 옵션을 획득하고, 상기 리셋 옵션을 상기 메모리에 저장하도록 구성될 수 있다.In one embodiment, the processor may be configured to obtain a reset option indicating a reset type of the first applet from the first installation command and store the reset option in the memory.

일 실시예에서 상기 리셋 옵션은, 상기 보안 엘리먼트가 리셋될 때 상기 제1 애플릿의 상기 설치 데이터 및 상기 실행 데이터를 유지하고, 상기 제1 사용자 데이터를 유지하는 것을 지시할 수 있다.In one embodiment, the reset option may direct the secure element to retain the installation data and the execution data of the first applet and to retain the first user data when the secure element is reset.

일 실시예에서 상기 메모리는 옵션 데이터베이스(DB)를 포함할 수 있고, 상기 옵션 DB는, 상기 보안 엘리먼트에 설치된 각 애플릿의 리셋 타입을 나타내는 리셋 옵션을 저장할 수 있다.In one embodiment, the memory may include an option database (DB), and the option DB may store a reset option indicating a reset type of each applet installed in the security element.

일 실시예에서 상기 리셋 타입은, 상기 보안 엘리먼트가 리셋된 이후에 각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 유지하는 것을 나타내는 제1 리셋 옵션, 각 애플릿의 설치 데이터 및/또는 실행 데이터를 제외한 사용자 데이터를 제거하는 것을 나타내는 제2 리셋 옵션, 각 애플릿의 사용자 데이터 중 지정된 일부 사용자 데이터를 제거하는 것을 나타내는 제3 리셋 옵션, 또는 각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 제거하는 것을 나타내는 제4 리셋 옵션 중 적어도 하나를 포함할 수 있다.In one embodiment, the reset type includes: a first reset option indicating that the secure element retains associated data including installation data, execution data, and/or user data of each applet after the secure element is reset; a second reset option indicating removing user data excluding data and/or executable data, a third reset option indicating removing some specified user data among the user data of each applet, or installation data and executable data of each applet; and/or a fourth reset option indicating removing associated data including user data.

일 실시예에서 상기 프로세서는, 상기 어플리케이션 프로세서로부터 제2 애플릿의 설치 데이터를 포함하는 제2 설치 명령을 수신하고, 상기 제2 설치 명령에 근거하여 상기 제2 애플릿을 설치하고, 상기 설치 데이터 및 상기 제2 애플릿의 실행 데이터를 상기 메모리에 저장하고, 상기 제2 애플릿과 관련된 제2 사용자 데이터를 상기 메모리 내의 제2 데이터 영역(406)에 저장하고, 상기 리셋 명령에 응답하여, 상기 제2 애플릿의 설치 데이터 및 실행 데이터와 상기 제2 데이터 영역의 상기 제2 사용자 데이터를 유지하도록 구성될 수 있다.In one embodiment, the processor receives a second installation command including installation data of a second applet from the application processor, installs the second applet based on the second installation command, and installs the installation data and the second applet. Store execution data of a second applet in the memory, store second user data related to the second applet in a second data area 406 in the memory, and in response to the reset command, store the execution data of the second applet in the memory. It may be configured to maintain installation data, execution data, and the second user data in the second data area.

일 실시예에서 상기 제2 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정되지 않은 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 상기 프로세서에 의해 할당될 수 있다.In one embodiment, the second data area may be allocated by the processor to store user data of at least one applet for which a data removal option is not set among one or more applets installed in the security element.

일 실시예에 따른 보안 엘리먼트(210)를 포함하는 전자 장치(200)의 동작 방법은, 제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하는 동작(705)을 포함할 수 있다. 상기 방법은 상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하는 동작(715)을 포함할 수 있다. 상기 방법은 상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 메모리(214)에 저장하는 동작(710)을 포함할 수 있다. 상기 방법은 상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하는 동작(750)을 포함할 수 있다. 상기 방법은 상기 보안 엘리먼트에 대한 리셋 명령을 수신하는 동작(735)을 포함할 수 있다. 상기 방법은 상기 리셋 명령에 응답하여, 상기 설치 데이터 및 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하는 동작(745)을 포함할 수 있다.A method of operating the electronic device 200 including the security element 210 according to an embodiment may include an operation 705 of receiving a first installation command including installation data of the first applet. The method may include an operation 715 of installing the first applet based on the first installation command. The method may include an operation 710 of storing the installation data and execution data of the first applet in memory 214. The method may include an operation 750 of storing first user data related to the first applet in the memory. The method may include an operation 735 of receiving a reset command for the secure element. The method may include an operation 745 of maintaining the installation data and the execution data and removing the first user data in response to the reset command.

일 실시예에서 상기 제1 사용자 데이터는 상기 메모리 내의 제1 데이터 영역(408) 내에 저장될 수 있고, 상기 제1 데이터 영역은 상기 리셋 명령에 응답하여 상기 보안 엘리먼트가 리셋되기 이전에 클리어될 수 있다.In one embodiment, the first user data may be stored in a first data area 408 in the memory, and the first data area may be cleared before the security element is reset in response to the reset command. .

일 실시예에서 상기 제1 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정된 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 할당될 수 있다.In one embodiment, the first data area may be allocated to store user data of at least one applet for which a data removal option is set among one or more applets installed in the security element.

일 실시예에서 상기 설치 데이터 및 상기 실행 데이터는, 상기 리셋 명령에 의하여 상기 보안 엘리먼트가 리셋된 이후에 상기 메모리에 유지될 수 있다.In one embodiment, the installation data and the execution data may be maintained in the memory after the security element is reset by the reset command.

일 실시예에서 상기 방법은 상기 제1 설치 명령으로부터 상기 제1 애플릿의 리셋 타입을 나타내는 리셋 옵션을 획득하는 동작(720)과, 상기 리셋 옵션을 상기 메모리에 저장하는 동작을 더 포함할 수 있다.In one embodiment, the method may further include obtaining a reset option indicating the reset type of the first applet from the first installation command (720) and storing the reset option in the memory.

일 실시예에서 상기 리셋 옵션은, 상기 보안 엘리먼트가 리셋될 때 상기 제1 애플릿의 상기 설치 데이터 및 상기 실행 데이터를 유지하고, 상기 제1 사용자 데이터를 유지하는 것을 지시할 수 있다.In one embodiment, the reset option may direct the secure element to retain the installation data and the execution data of the first applet and to retain the first user data when the secure element is reset.

일 실시예에서 상기 메모리는 옵션 데이터베이스(DB)를 포함할 수 있고, 상기 옵션 DB는, 상기 보안 엘리먼트에 설치된 각 애플릿의 리셋 타입을 나타내는 리셋 옵션을 저장할 수 있다.In one embodiment, the memory may include an option database (DB), and the option DB may store a reset option indicating a reset type of each applet installed in the security element.

일 실시예에서 상기 리셋 타입은, 상기 보안 엘리먼트가 리셋된 이후에 각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 유지하는 것을 나타내는 제1 리셋 옵션, 각 애플릿의 설치 데이터 및/또는 실행 데이터를 제외한 사용자 데이터를 제거하는 것을 나타내는 제2 리셋 옵션, 각 애플릿의 사용자 데이터 중 지정된 일부 사용자 데이터를 제거하는 것을 나타내는 제3 리셋 옵션, 또는 각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 제거하는 것을 나타내는 제4 리셋 옵션 중 적어도 하나를 포함할 수 있다.In one embodiment, the reset type includes: a first reset option indicating that the secure element retains associated data including installation data, execution data, and/or user data of each applet after the secure element is reset; a second reset option indicating removing user data excluding data and/or executable data, a third reset option indicating removing some specified user data among the user data of each applet, or installation data and executable data of each applet; and/or a fourth reset option indicating removing associated data including user data.

일 실시예에서 상기 방법은, 제2 애플릿의 설치 데이터를 포함하는 제2 설치 명령을 수신하는 동작과, 상기 제2 설치 명령에 근거하여 상기 제2 애플릿을 설치하는 동작과, 상기 설치 데이터 및 상기 제2 애플릿의 실행 데이터를 상기 메모리에 저장하는 동작과, 상기 제2 애플릿과 관련된 제2 사용자 데이터를 상기 메모리 내의 제2 데이터 영역(406)에 저장하는 동작과, 상기 리셋 명령에 응답하여, 상기 제2 애플릿의 설치 데이터 및 실행 데이터와 상기 제2 데이터 영역의 상기 제2 사용자 데이터를 유지하는 동작을 포함할 수 있다.In one embodiment, the method includes receiving a second installation command including installation data of a second applet, installing the second applet based on the second installation command, the installation data and the An operation of storing execution data of a second applet in the memory, an operation of storing second user data related to the second applet in a second data area 406 in the memory, and in response to the reset command, It may include maintaining installation data and execution data of the second applet and the second user data in the second data area.

일 실시예에서 상기 제2 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정되지 않은 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 할당할 수 있다.In one embodiment, the second data area may be allocated to store user data of at least one applet for which a data removal option is not set among one or more applets installed in the security element.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be of various types. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments of this document are not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the above items, unless the relevant context clearly indicates otherwise. As used herein, “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 “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” Where mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.

일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be provided and included in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. 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 through an application store (e.g. Play StoreTM) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is. According to various embodiments, one or more of the components or operations described above may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Alternatively, one or more other operations may be added.

Claims (20)

전자 장치(200)에 있어서,
어플리케이션 프로세서(202); 및
프로세서(212) 및 메모리(214)를 포함하는 보안 엘리먼트(210)를 포함하고, 상기 프로세서는,
상기 어플리케이션 프로세서로부터 제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하고,
상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하고,
상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 상기 메모리에 저장하고,
상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하고,
상기 어플리케이션 프로세서로부터 상기 보안 엘리먼트에 대한 리셋 명령을 수신하고,
상기 리셋 명령에 응답하여, 상기 설치 데이터 및/또는 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하도록 구성되는 것을 특징으로 하는 전자 장치.
In the electronic device 200,
application processor 202; and
A security element 210 including a processor 212 and a memory 214, wherein the processor includes:
Receiving a first installation command including installation data of a first applet from the application processor,
Installing the first applet based on the first installation command,
Store the installation data and execution data of the first applet in the memory,
store first user data associated with the first applet in the memory,
Receiving a reset command for the security element from the application processor,
In response to the reset command, the electronic device is configured to maintain the installation data and/or the execution data and remove the first user data.
제 1 항에 있어서, 상기 프로세서는,
상기 제1 사용자 데이터를 상기 메모리 내의 제1 데이터 영역(408) 내에 저장하고,
상기 리셋 명령에 응답하여 상기 보안 엘리먼트가 리셋되기 이전에 상기 제1 데이터 영역을 클리어하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of claim 1, wherein the processor:
storing the first user data in a first data area 408 in the memory,
The electronic device is configured to clear the first data area before the security element is reset in response to the reset command.
제 2 항에 있어서, 상기 제1 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정된 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 상기 프로세서에 의해 할당되는 것을 특징으로 하는 전자 장치.The electronic device of claim 2, wherein the first data area is allocated by the processor to store user data of at least one applet for which a data removal option is set among one or more applets installed in the security element. . 제 1 항 내지 제 3 항 중 어느 한 항에 있어서, 상기 설치 데이터 및/또는 상기 실행 데이터는,
상기 리셋 명령에 의하여 상기 보안 엘리먼트가 리셋된 이후에 상기 메모리에 유지되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 3, wherein the installation data and/or the execution data are:
An electronic device characterized in that the security element is maintained in the memory after being reset by the reset command.
제 1 항 내지 제 4 항 중 어느 한 항에 있어서, 상기 프로세서는,
상기 제1 설치 명령으로부터 상기 제1 애플릿의 리셋 타입을 나타내는 리셋 옵션을 획득하고,
상기 리셋 옵션을 상기 메모리에 저장하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 4, wherein the processor:
Obtain a reset option indicating a reset type of the first applet from the first installation command,
An electronic device configured to store the reset option in the memory.
제 5 항에 있어서, 상기 리셋 옵션은,
상기 보안 엘리먼트가 리셋될 때 상기 제1 애플릿의 상기 설치 데이터 및 상기 실행 데이터를 유지하고, 상기 제1 사용자 데이터를 유지하는 것을 지시하는 것을 특징으로 하는 전자 장치.
The method of claim 5, wherein the reset option is:
and instructing to maintain the installation data and the execution data of the first applet and to maintain the first user data when the secure element is reset.
제 1 항 내지 제 6 항 중 어느 한 항에 있어서, 상기 메모리는
옵션 데이터베이스(DB)를 포함하고,
상기 옵션 DB는, 상기 보안 엘리먼트에 설치된 각 애플릿의 리셋 타입을 나타내는 리셋 옵션을 저장하는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 6, wherein the memory
Contains an optional database (DB),
The option DB stores a reset option indicating a reset type of each applet installed in the security element.
제 7 항에 있어서, 상기 리셋 타입은,
상기 보안 엘리먼트가 리셋된 이후에 각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 유지하는 것을 나타내는 제1 리셋 옵션,
각 애플릿의 설치 데이터 및/또는 실행 데이터를 제외한 사용자 데이터를 제거하는 것을 나타내는 제2 리셋 옵션,
각 애플릿의 사용자 데이터 중 지정된 일부 사용자 데이터를 제거하는 것을 나타내는 제3 리셋 옵션, 또는
각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 제거하는 것을 나타내는 제4 리셋 옵션 중 적어도 하나를 포함하는 것을 특징으로 하는 전자 장치.
The method of claim 7, wherein the reset type is:
a first reset option indicating that the secure element retains associated data including installation data, execution data, and/or user data of each applet after being reset;
a second reset option indicating removal of user data excluding installation data and/or execution data of each applet;
a third reset option indicating removing a specified portion of the user data of each applet, or
An electronic device comprising at least one of a fourth reset option indicating removing associated data including installation data, execution data, and/or user data of each applet.
제 1 항 내지 제 8 항 중 어느 한 항에 있어서, 상기 프로세서는,
상기 어플리케이션 프로세서로부터 제2 애플릿의 설치 데이터를 포함하는 제2 설치 명령을 수신하고,
상기 제2 설치 명령에 근거하여 상기 제2 애플릿을 설치하고,
상기 설치 데이터 및 상기 제2 애플릿의 실행 데이터를 상기 메모리에 저장하고,
상기 제2 애플릿과 관련된 제2 사용자 데이터를 상기 메모리 내의 제2 데이터 영역(406)에 저장하고,
상기 리셋 명령에 응답하여, 상기 제2 애플릿의 설치 데이터 및 실행 데이터와 상기 제2 데이터 영역의 상기 제2 사용자 데이터를 유지하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 8, wherein the processor:
Receiving a second installation command including installation data of a second applet from the application processor,
Installing the second applet based on the second installation command,
Store the installation data and execution data of the second applet in the memory,
storing second user data related to the second applet in a second data area (406) in the memory;
In response to the reset command, the electronic device is configured to maintain installation data and execution data of the second applet and the second user data in the second data area.
제 9 항에 있어서, 상기 제2 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정되지 않은 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 상기 프로세서에 의해 할당되는 것을 특징으로 하는 전자 장치.The method of claim 9, wherein the second data area is allocated by the processor to store user data of at least one applet for which a data removal option is not set among one or more applets installed in the security element. Electronic devices. 보안 엘리먼트(210)를 포함하는 전자 장치(200)의 동작 방법에 있어서,
제1 애플릿의 설치 데이터를 포함하는 제1 설치 명령을 수신하는 동작(705)과,
상기 제1 설치 명령에 근거하여 상기 제1 애플릿을 설치하는 동작(715)과,
상기 설치 데이터 및 상기 제1 애플릿의 실행 데이터를 메모리(214)에 저장하는 동작(710)과,
상기 제1 애플릿과 관련된 제1 사용자 데이터를 상기 메모리에 저장하는 동작(750)과,
상기 보안 엘리먼트에 대한 리셋 명령을 수신하는 동작(735)과,
상기 리셋 명령에 응답하여, 상기 설치 데이터 및 상기 실행 데이터를 유지하고 상기 제1 사용자 데이터를 제거하는 동작(745)을 포함하는 것을 특징으로 하는 방법.
In a method of operating an electronic device 200 including a security element 210,
An operation 705 of receiving a first installation command including installation data of the first applet;
An operation 715 of installing the first applet based on the first installation command,
An operation 710 of storing the installation data and execution data of the first applet in the memory 214;
An operation 750 of storing first user data related to the first applet in the memory;
An operation 735 of receiving a reset command for the security element;
In response to the reset command, an operation (745) of maintaining the installation data and the execution data and removing the first user data.
제 11 항에 있어서, 상기 제1 사용자 데이터는, 상기 메모리 내의 제1 데이터 영역(408) 내에 저장되고,
상기 제1 데이터 영역은 상기 리셋 명령에 응답하여 상기 보안 엘리먼트가 리셋되기 이전에 클리어되는 것을 특징으로 하는 방법.
12. The method of claim 11, wherein the first user data is stored in a first data area (408) in the memory,
Wherein the first data area is cleared before the security element is reset in response to the reset command.
제 12 항에 있어서, 상기 제1 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정된 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 할당되는 것을 특징으로 하는 방법.The method of claim 12, wherein the first data area is allocated to store user data of at least one applet for which a data removal option is set among one or more applets installed in the security element. 제 11 항 내지 제 13 항 중 어느 한 항에 있어서, 상기 설치 데이터 및 상기 실행 데이터는,
상기 리셋 명령에 의하여 상기 보안 엘리먼트가 리셋된 이후에 상기 메모리에 유지되는 것을 특징으로 하는 방법.
The method of any one of claims 11 to 13, wherein the installation data and the execution data are:
A method characterized in that the security element is maintained in the memory after being reset by the reset command.
제 11 항 내지 제 14 항 중 어느 한 항에 있어서,
상기 제1 설치 명령으로부터 상기 제1 애플릿의 리셋 타입을 나타내는 리셋 옵션을 획득하는 동작(720)과,
상기 리셋 옵션을 상기 메모리에 저장하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 14,
An operation 720 of obtaining a reset option indicating a reset type of the first applet from the first installation command,
The method further comprising storing the reset option in the memory.
제 15 항에 있어서, 상기 리셋 옵션은,
상기 보안 엘리먼트가 리셋될 때 상기 제1 애플릿의 상기 설치 데이터 및 상기 실행 데이터를 유지하고, 상기 제1 사용자 데이터를 유지하는 것을 지시하는 것을 특징으로 하는 방법.
The method of claim 15, wherein the reset option is:
and instructing the secure element to maintain the installation data and the execution data of the first applet and to retain the first user data when the secure element is reset.
제 11 항 내지 제 16 항 중 어느 한 항에 있어서, 상기 메모리는
옵션 데이터베이스(DB)를 포함하고,
상기 옵션 DB는, 상기 보안 엘리먼트에 설치된 각 애플릿의 리셋 타입을 나타내는 리셋 옵션을 저장하는 것을 특징으로 하는 방법.
17. The method of any one of claims 11 to 16, wherein the memory
Contains an optional database (DB),
The option DB stores a reset option indicating a reset type of each applet installed in the security element.
제 17 항에 있어서, 상기 리셋 타입은,
상기 보안 엘리먼트가 리셋된 이후에 각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 유지하는 것을 나타내는 제1 리셋 옵션,
각 애플릿의 설치 데이터 및/또는 실행 데이터를 제외한 사용자 데이터를 제거하는 것을 나타내는 제2 리셋 옵션,
각 애플릿의 사용자 데이터 중 지정된 일부 사용자 데이터를 제거하는 것을 나타내는 제3 리셋 옵션, 또는
각 애플릿의 설치 데이터, 실행 데이터, 및/또는 사용자 데이터를 포함하는 관련 데이터를 제거하는 것을 나타내는 제4 리셋 옵션 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.
The method of claim 17, wherein the reset type is:
a first reset option indicating that the secure element retains associated data including installation data, execution data, and/or user data of each applet after being reset;
a second reset option indicating removal of user data excluding installation data and/or execution data of each applet;
a third reset option indicating removing a specified portion of the user data of each applet, or
and at least one of a fourth reset option indicating removing associated data including installation data, execution data, and/or user data of each applet.
제 11 항 내지 제 18 항 중 어느 한 항에 있어서,
제2 애플릿의 설치 데이터를 포함하는 제2 설치 명령을 수신하는 동작과,
상기 제2 설치 명령에 근거하여 상기 제2 애플릿을 설치하는 동작과,
상기 설치 데이터 및 상기 제2 애플릿의 실행 데이터를 상기 메모리에 저장하는 동작과,
상기 제2 애플릿과 관련된 제2 사용자 데이터를 상기 메모리 내의 제2 데이터 영역(406)에 저장하는 동작과,
상기 리셋 명령에 응답하여, 상기 제2 애플릿의 설치 데이터 및 실행 데이터와 상기 제2 데이터 영역의 상기 제2 사용자 데이터를 유지하는 동작을 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 18,
Receiving a second installation command including installation data of a second applet;
An operation of installing the second applet based on the second installation command;
An operation of storing the installation data and execution data of the second applet in the memory;
An operation of storing second user data related to the second applet in a second data area (406) in the memory;
In response to the reset command, the method comprising maintaining installation data and execution data of the second applet and the second user data in the second data area.
제 19 항에 있어서, 상기 제2 데이터 영역은, 상기 보안 엘리먼트에 설치된 하나 이상의 애플릿들 중 데이터 제거 옵션이 설정되지 않은 적어도 하나의 애플릿의 사용자 데이터를 저장하도록 할당되는 것을 특징으로 하는 방법.The method of claim 19, wherein the second data area is allocated to store user data of at least one applet for which a data removal option is not set among one or more applets installed in the security element.
KR1020220145022A 2022-09-30 2022-11-03 Electronic device including secure element and method of operating the same KR20240045934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/013918 WO2024071769A1 (en) 2022-09-30 2023-09-15 Electronic device comprising secure element and method of operating same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220125502 2022-09-30

Publications (1)

Publication Number Publication Date
KR20240045934A true KR20240045934A (en) 2024-04-08

Family

ID=

Similar Documents

Publication Publication Date Title
EP3703432A1 (en) Electronic device supporting 5g network communication and method for electronic device to control transmit power
US20230161673A1 (en) Method for restoring backup data and electronic device therefor
US11449318B2 (en) Application optimization method and electronic device supporting the same
US11875035B2 (en) Electronic device and method for managing memory using the same
KR20240045934A (en) Electronic device including secure element and method of operating the same
KR20220099322A (en) Electronic device and method for managing memory using the same
US20230168831A1 (en) Electronic device and operation method of electronic device for managing storage space
KR20240004081A (en) Electronic device for updating applet of secure circuit and operating method thereof
US20230342209A1 (en) Service operation method and electronic device supporting same
US20240118887A1 (en) Method for updating application and electronic device thereof
WO2024071769A1 (en) Electronic device comprising secure element and method of operating same
US20240020035A1 (en) Data processing system and operation method of data processing apparatus
EP4325914A1 (en) Method for setting network lock function of electronic device and electronic device for same
EP4283473A1 (en) Device and method for reduction of garbage collection operations
KR20240021071A (en) Electronic device for updating firmware program and control method thereof
KR20240034076A (en) Electronic device providing security mode and operating method of the electronic deivce thereof
KR20240039547A (en) Apparatus and method for providing customized software
KR20240045929A (en) Method of update and electronic device therefor
KR20240044287A (en) Electronic device and method for protecting data using the same
KR20240047867A (en) A method for updating application and an electronic device of the same
KR20220069380A (en) Method for receiving log information and electronic device therefor
KR20230148550A (en) Electronic device and method for notifying access of personal data in electronic device
KR20240047263A (en) Electronic device for providing trusted execution environment
KR20240026071A (en) Electronic device and method for executing privacy enhance mode in electronic device
KR20240045935A (en) electronic device and method for communicating between applications