KR20230110161A - Electronic device for operating security device and operating method thereof - Google Patents

Electronic device for operating security device and operating method thereof Download PDF

Info

Publication number
KR20230110161A
KR20230110161A KR1020220116036A KR20220116036A KR20230110161A KR 20230110161 A KR20230110161 A KR 20230110161A KR 1020220116036 A KR1020220116036 A KR 1020220116036A KR 20220116036 A KR20220116036 A KR 20220116036A KR 20230110161 A KR20230110161 A KR 20230110161A
Authority
KR
South Korea
Prior art keywords
processor
security subsystem
security
authority
access
Prior art date
Application number
KR1020220116036A
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/000055 priority Critical patent/WO2023136531A1/en
Publication of KR20230110161A publication Critical patent/KR20230110161A/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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • 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
    • 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

본 발명의 다양한 실시예는 전자 장치에서 보안 장치를 운영하기 위한 장치 및 방법에 관한 것이다. 다양한 실시예에 따르면, 전자 장치는, 어플리케이션 프로세서와 커뮤니케이션 프로세서와 보안 기능을 처리하는 보안 서브시스템, 상기 보안 서브시스템의 접근 권한을 할당하는 권한 할당 장치, 및 상기 권한 할당 장치에서 상기 보안 서브시스템의 접근 권한을 할당받은 프로세서에 기반하여, 상기 프로세서의 키를 상기 보안 서브시스템으로 제공하는 프로세서 키 관리 장치를 포함하며, 상기 보안 서브시스템은 상기 프로세서 키 관리 장치로부터 제공받은 프로세서의 키를 사용하여 상기 접근 권한이 할당된 프로세서와 관련된 보안 기능을 처리하고, 상기 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 프로세서와 관련된 데이터를 초기화할 수 있다. 다른 실시예들도 가능할 수 있다.Various embodiments of the present invention relate to an apparatus and method for operating a security device in an electronic device. According to various embodiments, an electronic device includes an application processor, a communication processor, a security subsystem for processing security functions, an authority assignment device for allocating access rights of the security subsystem, and a processor key management device for providing a processor key to the security subsystem based on a processor to which access rights of the security subsystem are assigned in the rights allocation device. Data related to the processor may be initialized based on the return of the access authority of the system. Other embodiments may also be possible.

Description

보안 장치를 운영하기 위한 전자 장치 및 그의 동작 방법{ELECTRONIC DEVICE FOR OPERATING SECURITY DEVICE AND OPERATING METHOD THEREOF}Electronic device for operating a security device and its operating method {ELECTRONIC DEVICE FOR OPERATING SECURITY DEVICE AND OPERATING METHOD THEREOF}

본 발명의 다양한 실시예는 보안 장치를 운영하기 위한 전자 장치 및 그의 동작 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device for operating a security device and an operating method thereof.

전자 장치는 정보통신 기술 및 반도체 기술의 발전으로 인해 다양한 기능을 제공할 수 있다. 예를 들어, 다양한 기능은 통화 기능, 메시지 기능, 방송 기능, 무선 인터넷 기능, 카메라 기능, 전자 결제 기능, 사용자 인증 기능 또는 음악 재생 기능 중 적어도 하나를 포함할 수 있다.Electronic devices may provide various functions due to the development of information communication technology and semiconductor technology. For example, the various functions may include at least one of a call function, a message function, a broadcasting function, a wireless Internet function, a camera function, an electronic payment function, a user authentication function, or a music playback function.

전자 장치는 사용자가 전자 장치를 통해 사용하는 기능이 다양해짐에 따라 전자 장치에 저장되는 개인 정보가 증가하고 있다. 예를 들어, 전자 장치에 저장되는 개인 정보는 결제 정보, 인증 정보 및/또는 크레덴셜(credential)과 관련된 정보와 같이 보안 설정이 필요한 정보를 포함할 수 있다.Personal information stored in the electronic device is increasing as the functions that users use through the electronic device become more diverse. For example, personal information stored in an electronic device may include information requiring security settings, such as payment information, authentication information, and/or information related to credentials.

전자 장치는 전자 장치의 보안을 강화하기 위해 보안 서브시스템(security subsystem)과 같은 보안 장치를 포함할 수 있다. 예를 들어, 전자 장치는 어플리케이션 프로세서(AP: application processor) 및 커뮤니케이션 프로세서(CP: communication processor)가 물리적으로 분리된 경우, 어플리케이션 프로세서를 위한 제 1 보안 서브시스템 및 커뮤니케이션 프로세서를 위한 제 2 보안 서브시스템을 포함할 수 있다. 어플리케이션 프로세서를 위한 제 1 보안 서브시스템과 커뮤니케이션 프로세서를 위한 제 2 보안 서브시스템은 동일한 기능을 수행할 수 있다. 일예로, 물리적으로 구분된 어플리케이션 프로세서 및 커뮤니케이션 프로세서는 서로 다른 칩으로 구성된 상태를 포함할 수 있다. An electronic device may include a security device such as a security subsystem to enhance security of the electronic device. For example, when an application processor (AP) and a communication processor (CP) are physically separated, the electronic device may include a first security subsystem for the application processor and a second security subsystem for the communication processor. The first security subsystem for the application processor and the second security subsystem for the communication processor may perform the same function. For example, the physically separated application processor and communication processor may include a state composed of different chips.

전자 장치는 전자 장치의 보안을 강화하기 위해 동일한 기능을 수행하는 복수의 보안 서브시스템들을 사용하는 경우, 보안 서브시스템들을 배치하기 위한 전자 장치의 내부 공간이 요구될 수 있다. 또한, 전자 장치는 복수의 보안 서브시스템들의 사용으로 인해 전자 장치의 단가가 상승하고 전력 소모가 증가할 수 있다.When an electronic device uses a plurality of security subsystems that perform the same function to enhance security of the electronic device, internal space of the electronic device may be required to place the security subsystems. In addition, the unit cost of the electronic device may increase and power consumption may increase due to the use of a plurality of security subsystems.

본 발명의 다양한 실시예는 전자 장치에서 복수의 프로세서들(예: 어플리케이션 프로세서 및 커뮤니케이션 프로세서)이 하나의 보안 장치(예: 보안 서브시스템)를 공유하기 위한 장치 및 방법에 대해 개시한다.Various embodiments of the present disclosure disclose an apparatus and method for sharing one security device (eg, a security subsystem) by a plurality of processors (eg, an application processor and a communication processor) in an electronic device.

다양한 실시예에 따르면, 전자 장치는, 어플리케이션 프로세서와 커뮤니케이션 프로세서와 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 보안 서브시스템, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 권한 할당 장치 및 상기 권한 할당 장치에서 상기 보안 서브시스템의 접근 권한을 할당받은 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 기반하여, 상기 어플리케이션 프로세서와 관련된 제 1 키 또는 상기 커뮤니케이션 프로세서와 관련된 제 2 키를 상기 보안 서브시스템으로 제공하는 프로세서 키 관리 장치를 포함하며, 상기 보안 서브시스템은, 상기 권한 할당 장치에서 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 상기 보안 서브시스템의 접근 권한의 할당에 기반하여 상기 프로세서 키 관리 장치로부터 제공받은 상기 제 1 키 또는 상기 제 2 키를 사용하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하고, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 데이터를 초기화할 수 있다.According to various embodiments, an electronic device includes an application processor, a communication processor, a security subsystem that processes a security function related to the application processor or the communication processor, a rights assignment device that assigns access rights of the security subsystem to the application processor or the communication processor, and a processor key management device that provides a first key related to the application processor or a second key related to the communication processor to the security subsystem based on the application processor or the communication processor to which the rights allocation device has been assigned access rights of the security subsystem, the security subsystem comprising: , The security function related to the application processor or the communication processor may be processed using the first key or the second key provided from the processor key management device based on the assignment of access rights of the security subsystem to the application processor or the communication processor in the rights assignment device, and data related to the application processor or the communication processor may be initialized based on the return of the access rights of the security subsystem assigned to the application processor or the communication processor.

다양한 실시예에 따르면, 어플리케이션 프로세서 및 커뮤니케이션 프로세서를 포함하는 전자 장치의 동작 방법은, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 보안 서브시스템의 접근 권한을 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작과 상기 보안 서브시스템의 접근 권한이 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당된 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 키를 획득하는 동작과 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 키에 기반하여 상기 보안 서브시스템을 통해 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 동작, 및 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 데이터를 초기화하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, a method of operating an electronic device including an application processor and a communication processor includes assigning an access right of a security subsystem for processing a security function related to the application processor or the communication processor to the application processor or the communication processor, obtaining a key related to the application processor or the communication processor when the access right of the security subsystem is assigned to the application processor or the communication processor, and processing the security function related to the application processor or the communication processor through the security subsystem based on the key related to the application processor or the communication processor. and initializing data related to the application processor or the communication processor based on the return of the access authority of the security subsystem assigned to the application processor or the communication processor.

본 발명의 다양한 실시예에 따르면, 전자 장치에서 복수의 프로세서들(예: 어플리케이션 프로세서 및 커뮤니케이션 프로세서)이 하나의 보안 장치(예: 보안 서브시스템)를 공유함으로써, 보안 장치를 배치하기 위한 물리적 영역을 줄일 수 있고, 보안 장치에 의한 전자 장치의 단가 및/또는 전력 소모를 줄일 수 있다.According to various embodiments of the present disclosure, a plurality of processors (eg, an application processor and a communication processor) in an electronic device share one security device (eg, a security subsystem), thereby reducing a physical area for arranging a security device, and reducing unit cost and/or power consumption of the electronic device by the security device.

다양한 실시예에 따르면, 전자 장치에서 보안 장치를 공유하는 복수의 프로세서들 중 적어도 하나의 프로세서가 보안 장치를 점유하는 시간을 관리함으로써, 보안 장치의 사용을 위한 안정성을 확보할 수 있다. According to various embodiments, stability for use of the security device may be secured by managing the time at which at least one processor among a plurality of processors sharing the security device in the electronic device occupies the security device.

도 1은 다양한 실시예에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2a는 다양한 실시예에 따른 보안 기능을 제공하기 위한 전자 장치의 블록도이다.
도 2b는 다양한 실시예에 따른 보안 장치의 블록도이다.
도 3은 다양한 실시예에 따른 보안 기능을 제공하기 위한 전자 장치의 블록도이다.
도 4a는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 제 1 프로세서에 할당하기 위한 일예이다.
도 4b는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 제 1 프로세서에 할당하기 위한 일예이다.
도 5는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 할당하기 위한 흐름도이다.
도 6은 다양한 실시예에 따른 전자 장치에서 제 1 권한 할당 방식에 기반하여 보안 장치의 접근 권한을 할당하기 위한 흐름도이다.
도 7은 다양한 실시예에 따른 전자 장치에서 제 1 권한 할당 방식에 기반하여 보안 장치의 접근 권한을 할당하기 위한 일예이다.
도 8은 다양한 실시예에 따른 전자 장치에서 권한 요청 시점에 기반하여 보안 장치의 접근 권한을 할당하기 위한 흐름도이다.
도 9는 다양한 실시예에 따른 전자 장치에서 권한 요청 시점에 기반하여 보안 장치의 접근 권한을 할당하기 위한 일예이다.
도 10은 다양한 실시예에 따른 전자 장치에서 권한 할당 우선순위에 기반하여 보안 장치의 접근 권한을 할당하기 위한 흐름도이다.
도 11은 다양한 실시예에 따른 전자 장치에서 권한 할당 우선순위에 기반하여 보안 장치의 접근 권한을 할당하기 위한 일예이다.
도 12는 다양한 실시예에 따른 전자 장치에서 권한 할당 우선순위에 기반하여 보안 장치의 접근 권한을 할당하기 위한 다른 일예이다.
도 13은 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 요청하기 위한 흐름도이다.
도 14는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 반환하기 위한 흐름도이다.
도 15a는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 요청하기 위한 일예이다.
도 15b는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 요청하기 위한 일예이다.
도 16a는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 반환하기 위한 일예이다.
도 16b는 다양한 실시예에 따른 전자 장치에서 보안 장치의 접근 권한을 반환하기 위한 일예이다.
도 17은 다양한 실시예에 따른 전자 장치에서 보안 장치를 통해 보안 기능을 수행하기 위한 흐름도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2A is a block diagram of an electronic device for providing a security function according to various embodiments.
2B is a block diagram of a security device according to various embodiments.
3 is a block diagram of an electronic device for providing security functions according to various embodiments.
4A is an example of allocating an access authority of a security device to a first processor in an electronic device according to various embodiments of the present disclosure.
4B is an example of allocating access authority of a security device to a first processor in an electronic device according to various embodiments.
5 is a flowchart for allocating access rights of a security device in an electronic device according to various embodiments.
6 is a flowchart for allocating access rights of a security device based on a first rights allocation method in an electronic device according to various embodiments.
7 is an example for allocating access rights of a security device based on a first rights allocation method in an electronic device according to various embodiments.
8 is a flowchart for allocating access rights of a security device based on a permission request time point in an electronic device according to various embodiments.
9 is an example of allocating access rights of a security device based on a permission request time point in an electronic device according to various embodiments.
10 is a flowchart for allocating access rights of a security device based on rights allocation priority in an electronic device according to various embodiments.
11 is an example for allocating access rights of a security device based on rights allocation priority in an electronic device according to various embodiments.
12 is another example of allocating access rights of a security device based on rights allocation priority in an electronic device according to various embodiments.
13 is a flowchart for requesting access authority of a security device in an electronic device according to various embodiments.
14 is a flowchart for returning an access right of a security device in an electronic device according to various embodiments.
15A is an example of requesting an access authority of a security device in an electronic device according to various embodiments.
15B is an example for requesting an access right of a security device in an electronic device according to various embodiments.
16A is an example for returning an access right of a security device in an electronic device according to various embodiments.
16B is an example for returning the access authority of a security device in an electronic device according to various embodiments.
17 is a flowchart for performing a security function through a security device in an electronic device according to various embodiments.

이하 다양한 실시예들이 첨부된 도면을 참고하여 상세히 설명된다.Hereinafter, various embodiments will be described in detail with reference to the accompanying drawings.

도 1은, 다양한 실시예에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 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))로 통합될 수 있다.1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments. Referring to FIG. 1 , in a network environment 100, an electronic device 101 may communicate with the electronic device 102 through a first network 198 (eg, a short-distance wireless communication network) or a second network 199 (eg, a long-distance wireless communication network) to communicate with at least one of the electronic device 104 and the server 108. According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, a sound output module 155, a display module 160, an audio module 170, a sensor module 176, an interface 177, a connection terminal 178, a haptic module 179, a camera module 180, a power management module 188, a battery 189, and a communication module 1. 90), a subscriber identification module 196, or an antenna module 197. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) may be integrated into one component (eg, display module 160).

프로세서(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 may, for example, execute software (eg, program 140) to control at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, processor 120 may store commands or data received from other components (e.g., sensor module 176 or communication module 190) in volatile memory 132, process the commands or data stored in volatile memory 132, and store resultant data in non-volatile memory 134. According to one embodiment, the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that may operate independently or together with the main processor 121. For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may use less power than the main processor 121 or may be set to be specialized for a designated function. The secondary processor 123 may be implemented separately from or as part of the main processor 121 .

보조 프로세서(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 functions related to at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) along with the main processor 121 while the main processor 121 is in an active (eg, application execution) state or instead of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state. Alternatively, at least some of the states may be controlled. According to one embodiment, the auxiliary processor 123 (eg, an image signal processor or a communication processor) may be implemented as a part of other functionally related components (eg, the camera module 180 or the communication module 190). According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the above examples. The artificial intelligence model may include a plurality of artificial neural network layers. The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), deep Q-networks, or a combination of two or more, but is not limited to the above examples. The artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware 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 . The data may include, for example, input data or output data for software (eg, program 140) and commands related thereto. The 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 an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.The input module 150 may receive a command or data to be used for a component (eg, the processor 120) of the electronic device 101 from an outside of the electronic device 101 (eg, a user). The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a 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. The speaker can be used for general purposes such as multimedia playback or recording playback. A receiver may be used to receive an incoming call. 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 an embodiment, the display module 160 may include a touch sensor configured to detect a touch or a pressure sensor configured to measure the strength of a force generated by a touch.

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

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.The sensor module 176 may detect an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generate an electrical signal or data value corresponding to the detected state. According to one embodiment, the sensor module 176 may include, 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 infrared (IR) sensor, a bio sensor, a temperature sensor, a humidity sensor, or an illuminance 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 may be used to directly or wirelessly connect the electronic device 101 to 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 may 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 may convert electrical signals into mechanical stimuli (eg, vibration or movement) or electrical stimuli that a user may 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 may 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 may manage power supplied to the electronic device 101 . According to one embodiment, the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.

배터리(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 cell, a rechargeable secondary cell, 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)(예: 블루투스, Wi-Fi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.The communication module 190 may support establishment of a direct (e.g., wired) communication channel or wireless communication channel between the electronic device 101 and an external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108), and communication through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (eg, 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 (eg, a local area network (LAN) communication module or a power line communication module). A corresponding communication module among these communication modules may communicate with the external electronic device 104 through a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (Wi-Fi) direct, or an infrared data association (IrDA)) or a second network 199 (eg, a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a long-distance communication network such as a computer network (eg, a LAN or a WAN)). These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 may identify or authenticate the electronic device 101 within a communication network such as the first network 198 or the second network 199 using subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196.

무선 통신 모듈(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 이하)를 지원할 수 있다. 다양한 실시예에 따르면, 가입자 식별 모듈(196)은 복수의 가입자 식별 모듈을 포함할 수 있다. 예를 들어, 복수의 가입자 식별 모듈은 서로 다른 가입자 정보를 저장할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology). NR access technology can support high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access to multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) in order to achieve a high data throughput, for example. The wireless communication module 192 may support various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199). According to an embodiment, the wireless communication module 192 may support 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., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for realizing URLLC. According to various embodiments, the subscriber identification module 196 may include a plurality of subscriber identification modules. For example, a plurality of subscriber identification modules may store different subscriber information.

안테나 모듈(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 the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiator formed 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 scheme used in a communication network such as the first network 198 or the second network 199 may be selected from a plurality of antennas by, for example, the communication module 190. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through at least one selected antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197 in addition to the radiator.

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

구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signals (eg, 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 an 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 the same as or different from the electronic device 101 . According to an embodiment, all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to automatically perform a certain function or service or in response to a request from a user or another device, the electronic device 101 may request one or more external electronic devices to perform the function or at least part of the service, instead of or in addition to executing the function or service by itself. One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 . The electronic device 101 may provide the result as at least part of a response to the request as it is or after additional processing. To this end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may 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 (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

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

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

본 문서의 다양한 실시예에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.The term "module" used in various embodiments of this document may include units implemented in hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logical blocks, components, or circuits. A module may be an integral part or the smallest unit of a part or 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 this document may be implemented as software (eg, program 140) including one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). For example, a processor (eg, the processor 120 ) of a device (eg, the electronic device 101 ) may call at least one command among one or more instructions stored from a storage medium and execute it. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic wave), and this term does not distinguish between the case where data is semi-permanently stored in the storage medium and the case where it is temporarily stored.

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

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

도 2a는 다양한 실시예에 따른 보안 기능을 제공하기 위한 전자 장치(101)의 블록도이다. 도 2b는 다양한 실시예에 따른 보안 장치(예: 보안 서브시스템(230))의 블록도이다. 이하 설명에서 전자 장치(101)는 보안 기능을 실행하기 위한 보안 장치로, 보안 서브시스템(230)을 포함할 수 있다. 하지만, 보안 장치는 보안 서브시스템(230)에 한정되지 않으며, 전자 장치(101)의 보안 기능을 실행하기 위한 다른 장치를 포함할 수도 있다. 2A is a block diagram of an electronic device 101 for providing security functions according to various embodiments. 2B is a block diagram of a security device (eg, security subsystem 230) according to various embodiments. In the following description, the electronic device 101 is a security device for executing a security function and may include a security subsystem 230 . However, the security device is not limited to the security subsystem 230 and may include other devices for executing security functions of the electronic device 101 .

도 2a 및 도 2b를 참조하는 다양한 실시예에 따르면, 전자 장치(101)는 제 1 프로세서(200), 제 2 프로세서(210), 권한 할당 장치(220) 및/또는 보안 서브시스템(230)을 포함할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200)는 도 1의 프로세서(120) 또는 메인 프로세서(121)와 실질적으로 동일하거나, 프로세서(120) 또는 메인 프로세서(121)를 포함할 수 있다. 제 2 프로세서(210)는 도 1의 프로세서(120) 또는 보조 프로세서(123)(예: 커뮤니케이션 프로세서)와 실질적으로 동일하거나, 프로세서(120) 또는 보조 프로세서(123)를 포함할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)는 권한 할당 장치(220) 및/또는 보안 서브시스템(230)과 작동적으로(operatively), 기능적으로(functionally) 및/또는 전기적으로 (electrically) 연결될 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및 제 2 프로세서(210)는 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일 실시예에 따르면, 제 1 프로세서(200), 제 2 프로세서(210), 권한 할당 장치(220) 및/또는 보안 서브시스템(230)은 하나의 패키지에 포함될 수 있다. 일 실시예에 따르면, 제 1 프로세서(200), 제 2 프로세서(210), 권한 할당 장치(220) 및/또는 보안 서브시스템(230)은 복수의 패키지들(예: 프로세서 패키지)에 포함될 수 있다.According to various embodiments referring to FIGS. 2A and 2B , the electronic device 101 may include a first processor 200, a second processor 210, an authority assignment device 220, and/or a security subsystem 230. According to one embodiment, the first processor 200 may be substantially the same as the processor 120 or the main processor 121 of FIG. 1 , or may include the processor 120 or the main processor 121 . The second processor 210 may be substantially the same as the processor 120 or the auxiliary processor 123 (eg, a communication processor) of FIG. 1 , or may include the processor 120 or the auxiliary processor 123 . According to one embodiment, the first processor 200 and/or the second processor 210 may be operatively, functionally and/or electrically connected to the rights assignment device 220 and/or the security subsystem 230. According to one embodiment, the first processor 200 and the second processor 210 may be physically or hardwarely separated. According to one embodiment, the first processor 200, the second processor 210, the rights assignment device 220 and/or the security subsystem 230 may be included in one package. According to one embodiment, the first processor 200, the second processor 210, the authority assignment device 220, and/or the security subsystem 230 may be included in a plurality of packages (eg, a processor package).

다양한 실시예에 따르면, 제 1 프로세서(200)는 제 1 프로세서(200)와 작동적, 기능적 및/또는 전기적으로 연결된 전자 장치(101)의 적어도 하나의 구성요소(예: 제 2 프로세서(210))의 제어 및/또는 다양한 데이터의 처리(또는 연산)를 수행할 수 있다. 일예로, 제 1 프로세서(200)는 어플리케이션 프로세서(AP)를 포함할 수 있다. 일예로, 제 1 프로세서(200)는 메모리(미 도시)를 포함할 수 있다. 일예로, 제 1 프로세서(200)의 메모리는 플래시 메모리를 포함할 수 있다.According to various embodiments, the first processor 200 may control at least one component (eg, the second processor 210) of the electronic device 101 operably, functionally, and/or electrically connected to the first processor 200 and/or process (or calculate) various data. For example, the first processor 200 may include an application processor (AP). For example, the first processor 200 may include a memory (not shown). For example, the memory of the first processor 200 may include a flash memory.

일 실시예에 따르면, 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 보안 서브시스템(230)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. 예를 들어, 제 1 프로세서(200)는 보안 서브시스템(230)로부터 제공받은 보안 기능의 수행 결과(예: 암호키)를 제 1 프로세서(200)의 메모리에 저장할 수 있다. 일예로, 보안 기능은 작업과 관련된 데이터의 서명 생성, 작업과 관련된 데이터의 서명의 검사, 작업과 관련된 인증, 작업과 관련된 데이터의 인증서 생성, 작업과 관련된 데이터의 인증서의 검사, 작업과 관련된 데이터의 암호화, 작업과 관련된 데이터의 복호화 또는 작업과 관련된 암호키 생성 중 적어도 하나를 포함할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200)는 보안 서브시스템(230)을 통해 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업을 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한을 반환(또는 반납)할 수 있다. 예를 들어, 제 1 프로세서(200)는 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다.According to an embodiment, the first processor 200 may transmit a request signal related to the access authority of the security subsystem 230 to the authority allocation device 220 when there is at least one job related to the security function. When the access authority of the security subsystem 230 is allocated from the authority assignment device 220, the first processor 200 may perform a security function related to at least one task through the security subsystem 230. For example, the first processor 200 may store a security function execution result (eg, an encryption key) provided from the security subsystem 230 in the memory of the first processor 200 . For example, the security function may include at least one of generating a signature of job-related data, checking the signature of job-related data, authenticating the job, generating a certificate of job-related data, inspecting a certificate of job-related data, encrypting job-related data, decrypting job-related data, or generating an encryption key related to the job. According to an embodiment, when at least one task corresponding to a request signal related to access rights is completed through the security subsystem 230, the first processor 200 returns (or returns) the access rights to the security subsystem 230. For example, the first processor 200 may transmit a request signal related to the return of access rights to the rights assignment device 220 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 전자 장치(101)의 통신과 관련된 데이터의 처리(또는 연산)를 수행할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 하나의 커뮤니케이션 프로세서를 포함하거나, 하드웨어적으로 또는 소프트웨어적으로 구분된 복수의 커뮤니케이션 프로세서들을 포함할 수 있다. 예를 들어, 복수의 커뮤니케이션 프로세서들은 서로 다른 종류의 RAT(radio access technology)와 관련된 네트워크 통신을 지원할 수 있다. 일예로, 제 2 프로세서(210)는 메모리(미 도시)를 포함할 수 있다. 일예로, 제 2 프로세서(210)의 메모리는 플래시 메모리를 포함할 수 있다.According to various embodiments, the second processor 210 may process (or calculate) data related to communication of the electronic device 101 . According to an embodiment, the second processor 210 may include one communication processor or may include a plurality of communication processors divided in terms of hardware or software. For example, a plurality of communication processors may support network communication related to different types of radio access technology (RAT). For example, the second processor 210 may include a memory (not shown). For example, the memory of the second processor 210 may include a flash memory.

일 실시예에 따르면, 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 보안 서브시스템(230)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. 예를 들어, 제 2 프로세서(210)는 보안 서브시스템(230)로부터 제공받은 보안 기능의 수행 결과(예: 암호화된 데이터)를 제 2 프로세서(210)의 메모리에 저장할 수 있다. 일예로, 보안 기능은 작업과 관련된 데이터의 서명 생성, 작업과 관련된 데이터의 서명의 검사, 작업과 관련된 인증, 작업과 관련된 데이터의 인증서 생성, 작업과 관련된 데이터의 인증서의 검사, 작업과 관련된 데이터의 암호화, 작업과 관련된 데이터의 복호화 또는 작업과 관련된 암호키 생성 중 적어도 하나를 포함할 수 있다. 일예로, 작업과 관련된 데이터는 IMEI(international mobile equipment identity), MEID(mobile equipment identifier), DS IMEI, 네트워크 락(network lock) 정보, SIM(subscriber identity module) 락(lock) 정보, IMEI CERT 정보, 지역향 정보, 사업자 정보, 심의 사업자 정보, NCK, SPCK, MCK, PIN(personal identification number) 정보, 네트워크 락 암호(network lock password), 암호, 사업자 망 정보, 네트워크 정보, MCC/MCK 허용 리스트, CDMA 정보 또는 RF 대역 정보 중 적어도 하나를 포함할 수 있다.According to an embodiment, the second processor 210 may transmit a request signal related to the access authority of the security subsystem 230 to the authority allocation device 220 when there is at least one job related to the security function. When the access authority of the security subsystem 230 is allocated from the authority assignment device 220, the second processor 210 may perform a security function related to at least one task through the security subsystem 230. For example, the second processor 210 may store a security function execution result (eg, encrypted data) provided from the security subsystem 230 in the memory of the second processor 210 . For example, the security function may include at least one of generating a signature of job-related data, checking the signature of job-related data, authenticating the job, generating a certificate of job-related data, inspecting a certificate of job-related data, encrypting job-related data, decrypting job-related data, or generating an encryption key related to the job. For example, data related to work may include international mobile equipment identity (IMEI), mobile equipment identifier (MEID), DS IMEI, network lock (network lock) information, subscriber identity module (SIM) lock information, IMEI CERT information, regional information, operator information, review operator information, NCK, SPCK, MCK, PIN (personal identification number) information, network lock password, password, operator network information, network information, MCC/MCK whitelist, CDMA information, or RF It may include at least one of band information.

일 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(230)을 통해 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업을 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한을 반환(또는 반납)할 수 있다. 예를 들어, 제 2 프로세서(210)는 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다.According to one embodiment, when the second processor 210 completes at least one task corresponding to the request signal related to the access right through the security subsystem 230, the access right to the security subsystem 230 may be returned (or returned). For example, the second processor 210 may transmit a request signal related to the return of access rights to the rights assignment device 220 .

일 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 접근 권한을 반환(또는 반납)할 수 있다. 예를 들어, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 지정된 기준시간 동안 구동되는 타이머를 구동시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동이 종료되는 경우, 적어도 하나의 작업의 완료 여부와 무관하게 보안 서브시스템(230)에 대한 접근 권한을 반환(또는 반납)할 수 있다. 일예로, 타이머는 제 2 프로세서(210)에 의해 실행되는 타이머 명령어, 타이머 프로그램 및/또는 제 2 프로세서(210)에 포함된 하드웨어로 구현된 타이머를 포함할 수 있다. 예를 들어, 제 2 프로세서(210)는 지정된 기준시간에 기반하여 적어도 하나의 작업을 완료되지 못한 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 보안 서브시스템(230)을 통해 이전에 완료하지 못한 적어도 하나의 작업과 관련된 보안 기능을 우선적으로 수행할 수 있다. 일예로, 지정된 기준시간은 제 2 프로세서(210)에서 처리하기 위한 데이터를 처리하기 위한 최대 시간을 포함할 수 있다. 일예로, 데이터를 처리하기 위한 최대 시간은 제 2 프로세서(210)에서 처리하는 데이터의 크기(또는 최대 크기)가 예측 가능하므로 제 2 프로세서(210)에서 처리하는 데이터의 크기에 기반하여 예측될 수 있다.According to an embodiment, the second processor 210 may return (or return) access rights to the security subsystem 230 when it is determined that the occupation time of the security subsystem 230 exceeds a specified reference time. For example, when the access authority of the security subsystem 230 is allocated from the authority allocation unit 220, the second processor 210 may drive a timer that runs for a specified reference time. When the timer runs out, the second processor 210 may return (or return) access rights to the security subsystem 230 regardless of whether at least one task is completed. For example, the timer may include a timer instruction executed by the second processor 210, a timer program, and/or a timer implemented by hardware included in the second processor 210. For example, if at least one task is not completed based on a specified reference time, the second processor 210 may transmit a request signal related to the access right of the security subsystem 230 to the right assigning device 220 . When the second processor 210 is assigned the access authority of the security subsystem 230 from the authority assignment unit 220, the security function related to at least one previously uncompleted task can be performed through the security subsystem 230 with priority. For example, the designated reference time may include a maximum time for processing data to be processed by the second processor 210 . For example, since the size (or maximum size) of data processed by the second processor 210 is predictable, the maximum time for processing data can be predicted based on the size of data processed by the second processor 210.

다양한 실시예에 따르며, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한을 관리할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200) 또는 제 2 프로세서(210)에 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 및 제 2 프로세서(210)와 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 메모리(미 도시)를 포함할 수 있다. 일예로, 권한 할당 장치(220)의 메모리는 RAM(random access memory)을 포함할 수 있다.According to various embodiments, the authority assignment device 220 may manage access rights to the security subsystem 230 . According to an embodiment, the authority assignment device 220 may allocate the access authority for the security subsystem 230 to the first processor 200 or the second processor 210 . According to one embodiment, the authority allocation device 220 may be physically or hardware separated from the first processor 200 and the second processor 210 . According to one embodiment, the authority assignment device 220 may include a memory (not shown). For example, the memory of the authority assignment device 220 may include random access memory (RAM).

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 권한 할당 방식(예: semaphore 방식)을 사용하는 경우, 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200) 또는 제 2 프로세서(210)에 교번하게 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 1 프로세서(200)로부터 보안 서브시스템(230)의 접근 권한에 대한 복수의 요청 신호들을 연속적으로 수신하고, 제 2 프로세서(210)로부터 보안 서브시스템(230)의 접근 권한에 대한 요청 신호를 수신한 경우, 제 1 프로세서(200)로부터 수신한 복수의 요청 신호들을 하나의 요청 신호로 판단할 수 있다. 권한 할당 장치(220)는 제 1 프로세서(200)의 요청 신호에 기반하여 보안 서브시스템(230)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 권한 할당 장치(220)는 제 1 프로세서(200)가 보안 서브시스템(230)의 접근 권한을 반환한 경우, 보안 서브시스템(230)의 접근 권한을 제 2 프로세서(210)로 할당할 수 있다. 일예로, 권한 할당 장치(220)가 수신한 보안 서브시스템(230)의 접근 권한에 대한 요청 신호와 관련된 정보는 권한 할당 장치(220)의 메모리에 저장될 수 있다.According to an embodiment, when the first permission assignment method (eg, semaphore method) is used, the permission assignment device 220 may alternately allocate access rights to the security subsystem 230 to the first processor 200 or the second processor 210. For example, the authority assignment device 220 continuously receives a plurality of request signals for the access authority of the security subsystem 230 from the first processor 200, and when receiving a request signal for the access authority of the security subsystem 230 from the second processor 210, the plurality of request signals received from the first processor 200 may be determined as one request signal. The authority assignment device 220 may allocate the access authority of the security subsystem 230 to the first processor 200 based on the request signal of the first processor 200 . When the first processor 200 returns the access right of the security subsystem 230 , the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 . For example, information related to the request signal for the access authority of the security subsystem 230 received by the authority allocation unit 220 may be stored in the memory of the authority allocation unit 220 .

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 및/또는 제 2 프로세서(210)의 보안 서브시스템(230)에 대한 접근 권한 요청 시점(또는 요청 순서)에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200) 또는 제 2 프로세서(210)에 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 2 권한 할당 방식(예: queue 방식)을 사용하고, 프로세서들(200 및/또는 210)에 우선순위가 설정되지 않은 경우, 보안 서브시스템(230)에 대한 접근 권한 요청 시점(또는 요청 순서)에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200) 또는 제 2 프로세서(210)에 할당할 수 있다. 일예로, 보안 서브시스템(230)에 대한 접근 권한은 보안 서브시스템(230)에 대한 접근 권한 요청 시점이 상대적으로 빠른 프로세서(200 또는 210)에 우선적으로 할당될 수 있다.According to an embodiment, the authority assignment device 220 may allocate the access authority to the security subsystem 230 to the first processor 200 or the second processor 210 based on the timing (or request order) of the first processor 200 and/or the second processor 210 requesting access authority to the security subsystem 230. For example, when the second permission assignment method (eg, the queue method) is used and priorities are not set for the processors 200 and/or 210, the permission assignment device 220 may allocate the access permission to the security subsystem 230 to the first processor 200 or the second processor 210 based on the request time (or order of request) of the access permission to the security subsystem 230. For example, the access right to the security subsystem 230 may be preferentially assigned to the processor 200 or 210 at which the access right to the security subsystem 230 is requested.

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 및 제 2 프로세서(210)의 우선순위에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200) 또는 제 2 프로세서(210)에 우선적으로 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한에 대한 요청 신호를 버퍼에 저장할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 2 권한 할당 방식(예: queue 방식)을 사용하고, 제 1 프로세서(200)에 권한 할당 우선순위가 설정된 경우, 버퍼에 저장된 요청 신호들 중 제 1 프로세서(200)로부터 수신한 적어도 하나의 요청 신호에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200)에 우선적으로 할당할 수 있다. 권한 할당 장치(220)는 버퍼에 저장된 요청 신호들 중 제 1 프로세서(200)로부터 수신한 적어도 하나의 요청 신호를 처리한 경우, 제 2 프로세서(210)로부터 수신한 적어도 하나의 요청 신호에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 2 권한 할당 방식(예: queue 방식)을 사용하고, 제 2 프로세서(210)에 권한 할당 우선순위가 설정된 경우, 버퍼에 저장된 요청 신호들 중 제 2 프로세서(210)로부터 수신한 적어도 하나의 요청 신호에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 2 프로세서(210)에 우선적으로 할당할 수 있다. 권한 할당 장치(220)는 버퍼에 저장된 요청 신호들 중 제 2 프로세서(210)로부터 수신한 적어도 하나의 요청 신호를 처리한 경우, 제 1 프로세서(200)로부터 수신한 적어도 하나의 요청 신호에 기반하여 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200)에 할당할 수 있다.According to an embodiment, the authority assignment device 220 may preferentially allocate access rights to the security subsystem 230 to the first processor 200 or the second processor 210 based on the priorities of the first processor 200 and the second processor 210. For example, the authority assignment device 220 may store a request signal for the access authority of the security subsystem 230 in a buffer. For example, when the second permission assignment method (eg, the queue method) is used and permission assignment priority is set for the first processor 200, the first processor 200 among the request signals stored in the buffer. Based on at least one request signal received from the processor 200, the permission to access the security subsystem 230 may be preferentially assigned to the first processor 200. Upon processing at least one request signal received from the first processor 200 among the request signals stored in the buffer, the authority assignment device 220 may allocate access rights to the security subsystem 230 to the second processor 210 based on the at least one request signal received from the second processor 210. For example, when the second permission assignment method (eg, the queue method) is used and the permission assignment priority is set in the second processor 210, the second processor 210 among the request signals stored in the buffer. Based on at least one request signal received from the processor 210, the permission to access the security subsystem 230 may be preferentially assigned to the second processor 210. When processing at least one request signal received from the second processor 210 among the request signals stored in the buffer, the authority assignment device 220 may allocate access rights to the security subsystem 230 to the first processor 200 based on the at least one request signal received from the first processor 200.

일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서와 관련된 정보를 보안 서브시스템(230)에 제공할 수 있다. 예를 들어, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한을 제 1 프로세서(200)에 할당한 경우, 보안 서브시스템(230)에 대한 접근 권한이 할당된 제 1 프로세서(200)와 관련된 정보를 보안 서브시스템(230)에 제공할 수 있다. 예를 들어, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한을 제 2 프로세서(210)에 할당한 경우, 보안 서브시스템(230)에 대한 접근 권한이 할당된 제 2 프로세서(210)와 관련된 정보를 보안 서브시스템(230)에 제공할 수 있다. 일예로, 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서와 관련된 정보는 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 키 및/또는 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서의 키 선택과 관련된 지시 정보를 포함할 수 있다.According to an embodiment, the authority assignment device 220 may provide the security subsystem 230 with information related to a processor to which an access authority for the security subsystem 230 is assigned. For example, when the access authority for the security subsystem 230 is assigned to the first processor 200, the authority assignment device 220 may provide information related to the first processor 200 to which the access authority for the security subsystem 230 is assigned to the security subsystem 230. For example, when the authority assignment unit 220 assigns the access authority to the security subsystem 230 to the second processor 210, the security subsystem 230 may provide information related to the second processor 210 to which access authority to the security subsystem 230 is assigned. For example, the information related to the processor to which the access right to the security subsystem 230 is assigned may include a key of the processor (eg, the first processor 200 or the second processor 210) to which the access right to the security subsystem 230 is assigned and/or instruction information related to key selection of the processor to which the access right to the security subsystem 230 is assigned.

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로부터 보안 서브시스템(230)의 접근 권한 반환과 관련된 요청 신호를 수신한 경우, 제 1 프로세서(200) 또는 제 2 프로세서(210)에 대한 보안 서브시스템(230)의 접근 권한을 회수할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로부터 보안 서브시스템(230)의 접근 권한 반환과 관련된 요청 신호를 수신한 경우, 보안 서브시스템(230)의 접근 권한이 할당되었던 프로세서와 관련된 데이터를 삭제하도록 보안 서브시스템(230)을 제어할 수 있다. 일예로, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로부터 보안 서브시스템(230)의 접근 권한 반환과 관련된 요청 신호를 수신한 경우, 초기화 요청 신호를 보안 서브시스템(230)으로 제공할 수 있다. 일예로, 권한 할당 장치(220)는 보안 서브시스템(230)에서 보안 서브시스템(230)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제가 완료된 것으로 판단한 경우, 보안 서브시스템(230)에 대한 접근 권한이 회수된 것으로 판단할 수 있다. 일예로, 보안 서브시스템(230)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제는 권한 할당 장치(220)의 유한 상태 기계(FSM: finite state machine)(미 도시)에 기반하여 확인(또는 모니터링)될 수 있다. 일예로, 권한 할당 장치(220)의 유한 상태 기계는 권한 할당 장치(220)에 포함된 유한 상태 기계를 포함할 수 있다. 일예로, 권한 할당 장치(220)의 유한 상태 기계(FSM)는 보안 서브시스템(230)을 통해 접근 권한이 할당된 프로세서와 관련된 데이터가 처리 및/또는 저장되는 경우, 제 1 상태(예: lock 상태)로 설정될 수 있다. 일예로, 권한 할당 장치(220)의 유한 상태 기계(FSM)는 보안 서브시스템(230)에서 접근 권한이 할당되었던 프로세서와 관련된 데이터가 삭제되는 경우, 제 2 상태(예: free 상태)로 설정될 수 있다. 일예로, 보안 서브시스템(230)의 접근 권한이 할당되었던 프로세서는 보안 서브시스템(230)의 접근 권한 반환과 관련된 요청 신호를 전송한 프로세서를 포함할 수 있다. 일예로, 프로세서와 관련된 데이터는 프로세서가 보안 서브시스템(230)을 이용하여 생성 및/또는 처리되는 데이터로, 암호화된 데이터, 암호화된 연산 값, 복호화된 데이터, 복호화된 연산 값, 서명, 인증서 또는 암호키 중 적어도 하나와 관련된 데이터를 포함할 수 있다.According to an embodiment, when receiving a request signal related to the return of the access right of the security subsystem 230 from the first processor 200 or the second processor 210, the rights assignment device 220 may retrieve the access right of the security subsystem 230 to the first processor 200 or the second processor 210. For example, when receiving a request signal related to the return of the access authority of the security subsystem 230 from the first processor 200 or the second processor 210, the authority assignment unit 220 may control the security subsystem 230 to delete data related to the processor to which the access authority of the security subsystem 230 has been assigned. For example, when receiving a request signal related to the return of the access right of the security subsystem 230 from the first processor 200 or the second processor 210, the authority assignment device 220 may provide an initialization request signal to the security subsystem 230. For example, when the authority assignment device 220 determines that the security subsystem 230 has completed deleting data related to the processor to which the access authority of the security subsystem 230 has been assigned, it can be determined that the access authority to the security subsystem 230 has been revoked. For example, deletion of data related to a processor to which access rights of the security subsystem 230 have been assigned can be confirmed (or monitored) based on a finite state machine (FSM) (not shown) of the rights assignment device 220. For example, the finite state machine of the rights assignment device 220 may include a finite state machine included in the rights assignment device 220 . For example, the finite state machine (FSM) of the authority assignment device 220 is in a first state (e.g., lock state) when data related to a processor to which an access authority is assigned is processed and/or stored through the security subsystem 230. For example, the finite state machine (FSM) of the authority assignment unit 220 may be set to a second state (eg, free state) when data related to a processor to which an access authority has been assigned is deleted in the security subsystem 230. For example, the processor to which the access authority of the security subsystem 230 has been assigned may include a processor that transmits a request signal related to the return of the access authority of the security subsystem 230 . As an example, the data related to the processor is data generated and/or processed by the processor using the security subsystem 230, and may include data related to at least one of encrypted data, encrypted operation value, decrypted data, decrypted operation value, signature, certificate, or encryption key.

일 실시예에 따르면, 권한 할당 장치(220)는 복수의 유한 상태 기계(FSM)들을 포함할 수도 있다. 예를 들어, 복수의 유한 상태 기계(FSM)들은 보안 서브시스템(230)의 접근 권한이 할당된 프로세서와 관련된 데이터의 저장 여부를 나타내는 제 1 FSM, 보안 서브시스템(230)의 접근 권한이 할당된 프로세서의 종류를 나타내는 제 2 FSM 및 보안 서브시스템(230)의 접근 권한과 관련된 적어도 하나의 요청을 나타내는 제 3 FSM을 포함할 수 있다. 일예로, 권한 할당 장치(220)에 포함되는 유한 상태 기계(FSM)의 종류 및/또는 개수는 이에 제한되지 않는다.According to one embodiment, the rights assignment unit 220 may include a plurality of finite state machines (FSMs). For example, the plurality of finite state machines (FSMs) may include a first FSM indicating whether data related to the processor to which the access right of the security subsystem 230 is assigned is stored, a second FSM indicating the type of processor to which the access right of the security subsystem 230 is assigned, and a third FSM indicating at least one request related to the access right of the security subsystem 230. For example, the type and/or number of finite state machines (FSMs) included in the rights assignment device 220 are not limited thereto.

다양한 실시예에 따르면, 보안 서브시스템(230)은 제 1 프로세서(200) 또는 제 2 프로세서(210)와 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)에 의해 보안 서브시스템(230)에 대한 접근 권한이 할당된 제 1 프로세서(200) 또는 제 2 프로세서(210)에서 처리하는 작업과 관련된 인증, 작업과 관련된 데이터의 인증서 생성, 작업과 관련된 데이터의 인증서의 검사, 작업과 관련된 데이터의 서명 생성, 작업과 관련된 데이터의 서명의 검사,작업과 관련된 데이터의 암호화, 작업과 관련된 데이터의 복호화 또는 작업과 관련된 암호키 생성과 같은 보안 기능 중 적어도 하나를 수행할 수 있다. 보안 서브시스템(230)은 보안 기능의 처리 결과를 제 1 프로세서(200) 또는 제 2 프로세서(210)로 제공할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230)은 제 1 프로세서(200) 및 제 2 프로세서(210)와 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일 실시예에 따르면, 보안 서브시스템(230)은 메모리(미 도시)를 포함할 수 있다. 일예로, 보안 서브시스템(230)의 메모리는 RAM을 포함할 수 있다. 일예로, 보안 서브시스템(230)의 메모리는 보안 서브시스템(230)에서 처리되는 프로세서와 관련된 데이터를 저장할 수 있다. 일예로, 프로세서와 관련된 데이터는 프로세서(200 및/또는 210)가 보안 서브시스템(230)을 이용하여 생성 및/또는 처리되는 데이터로, 암호화된 데이터, 암호화된 연산 값, 복호화된 데이터, 복호화된 연산 값, 서명, 인증서 또는 암호키 중 적어도 하나와 관련된 데이터를 포함할 수 있다.According to various embodiments, the security subsystem 230 may perform a security function related to the first processor 200 or the second processor 210 . According to an embodiment, the security subsystem 230 performs authentication related to a task processed by the first processor 200 or the second processor 210 to which access rights to the security subsystem 230 are assigned by the authority assigning unit 220, generation of a certificate of task-related data, inspection of a certificate of task-related data, generation of a signature of task-related data, inspection of a signature of task-related data, encryption of task-related data, decryption of task-related data, or task-related encryption key. It may perform at least one of the security functions such as creation. The security subsystem 230 may provide a processing result of the security function to the first processor 200 or the second processor 210 . According to one embodiment, the security subsystem 230 may be physically or hardware separated from the first processor 200 and the second processor 210 . According to one embodiment, security subsystem 230 may include a memory (not shown). In one example, the memory of security subsystem 230 may include RAM. For example, the memory of the security subsystem 230 may store data related to a processor processed in the security subsystem 230 . As an example, the processor-related data is data generated and/or processed by the processors 200 and/or 210 using the security subsystem 230, and may include data related to at least one of encrypted data, encrypted operation values, decrypted data, decrypted operation values, signatures, certificates, and encryption keys.

일 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 초기화 요청 신호를 수신한 경우, 보안 서브시스템(230)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제할 수 있다. 예를 들어, 보안 서브시스템(230)은 보안 서브시스템(230)의 내부 메모리(예: SRAM(static RAM)) 및/또는 등록 경로(register path)에 존재하는 이전 프로세서(200 또는 210)와 관련된 정보(예: 프로세서 키와 관련된 정보)를 삭제할 수 있다. According to an embodiment, the security subsystem 230 may delete data related to the processor to which the access authority of the security subsystem 230 has been assigned when receiving an initialization request signal from the authority assignment device 220 . For example, the security subsystem 230 may delete information related to the previous processor 200 or 210 (eg, information related to a processor key) existing in an internal memory (eg, static RAM (SRAM)) of the security subsystem 230 and/or a register path.

일 실시예에 따르면, 보안 서브시스템(230)은 도 2b와 같이, 버스(231), 키 생성 모듈(232), 프로세서 키 관리 모듈(233), 키 관리 모듈(234) 및/또는 암호화 모듈(235)을 포함할 수 있다. 예를 들어, 버스(231)는 보안 서브시스템(230)에 포함되는 구성요소들(예: 키 생성 모듈(232), 프로세서 키 관리 모듈(233), 키 관리 모듈(234) 및/또는 암호화 모듈(235)) 사이의 정보(예: 제어 메시지 및/또는 데이터) 교환을 위한 회로를 포함할 수 있다. 예를 들어, 키 생성 모듈(232)은 보안 서브시스템(230)의 보안 기능 수행을 위해 랜덤 키(random key)를 생성할 수 있다. 일예로, 키생성 모듈(232)은 TRNG(true random number generator)를 포함할 수 있다. 예를 들어, 프로세서 키 관리 모듈(233)은 보안 서브시스템(230)에 접근 가능한 제 1 프로세서(200)의 키 및 제 2 프로세서(210)의 키를 관리할 수 있다. 예를 들어, 키 관리 모듈(234)은 키 생성 모듈(232)에 의해 생성된 랜덤 키(random key) 및 프로세서 키 관리 모듈(233)로부터 제공받은 보안 서브시스템(230)의 접근 권한이 할당된 프로세서의 키에 기반하여 보안 기능을 수행하기 위한 보안 키를 생성할 수 있다. 예를 들어, 암호화 모듈(235)은 키 관리 모듈(234)에서 생성된 보안 키에 기반하여 보안 서브시스템(230)의 접근 권한이 할당된 프로세서로부터 수신한 데이터를 암호화하거나 또는 복호화할 수 있다. 일예로, 암호화 모듈(235)은 키 관리 모듈(234)에서 생성된 보안 키에 기반한 암호(crypto) 연산 또는 해쉬(hash) 연산 또는 KDF(key derivation function) 연산 중 적어도 하나를 수행할 수 있다. According to one embodiment, the security subsystem 230 may include a bus 231, a key generation module 232, a processor key management module 233, a key management module 234, and/or an encryption module 235, as shown in FIG. 2B. For example, the bus 231 may include a circuit for exchanging information (eg, control messages and/or data) between components included in the security subsystem 230 (eg, the key generation module 232, the processor key management module 233, the key management module 234, and/or the encryption module 235). For example, the key generation module 232 may generate a random key to perform security functions of the security subsystem 230 . For example, the key generation module 232 may include a true random number generator (TRNG). For example, the processor key management module 233 may manage a key of the first processor 200 and a key of the second processor 210 accessible to the security subsystem 230 . For example, the key management module 234 may generate a security key for performing a security function based on the random key generated by the key generation module 232 and the key of the processor to which the access authority of the security subsystem 230 provided from the processor key management module 233 is assigned. For example, the encryption module 235 may encrypt or decrypt data received from a processor to which access authority of the security subsystem 230 is assigned based on the security key generated by the key management module 234 . For example, the encryption module 235 may perform at least one of a cryptographic operation, a hash operation, or a key derivation function (KDF) operation based on the security key generated by the key management module 234 .

일 실시예에 따르면, 프로세서 키 관리 모듈(233)은 프로세서 키 선택 모듈(241), 제 1 프로세서 키 관리 모듈(242) 및 제 2 프로세서 키 관리 모듈(243)을 포함할 수 있다. 예를 들어, 제 1 프로세서 키 관리 모듈(242)은 제 1 프로세서(200)의 키를 저장 및 관리하는 회로를 포함할 수 있다. 예를 들어, 제 2 프로세서 키 관리 모듈(243)은 제 2 프로세서(210)의 키를 저장 및 관리하는 회로를 포함할 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(242) 및 제 2 프로세서 키 관리 모듈(243)은 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(242) 및 제 2 프로세서 키 관리 모듈(243)은 하나의 패키지에 포함될 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(242) 및/또는 제 2 프로세서 키 관리 모듈(243)은 제 1 프로세서(200)의 키 및/또는 제 2 프로세서(210)의 키를 저장하는 메모리(예: ROM(read only memory))를 포함할 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(242) 및/또는 제 2 프로세서 키 관리 모듈(243)은 제 1 프로세서(200)의 키 및/또는 제 2 프로세서(210)의 키를 저장하는 메모리(예: ROM)로 구성될 수 있다. 일예로, 제 1 프로세서(200)의 키는 제 1 프로세서(200)의 루트 키로, 제 1 프로세서(200)와 관련된 OTP(one time programmable) 또는 이퓨즈(eFuse)를 포함할 수 있다. 일예로, 제 1 프로세서(200)의 키는 제 1 프로세서(200)의 루트 키에 기반하여 생성된 키(derived key)를 포함할 수도 있다. 일예로, 제 2 프로세서(210)의 키는 제 2 프로세서(210)의 루트 키로, 제 2 프로세서(210)와 관련된 OTP 또는 이퓨즈를 포함할 수 있다. 일예로, 제 2 프로세서(210)의 키는 제 2 프로세서(210)의 루트 키에 기반하여 생성된 키(derived key)를 포함할 수도 있다. 일예로, 프로세서(200 및/또는 210)의 루트 키는 전자 장치(101)의 생산 공정 시 설정된 프로세서의 고유 값으로, 고정된 값을 포함할 수 있다.According to one embodiment, the processor key management module 233 may include a processor key selection module 241 , a first processor key management module 242 and a second processor key management module 243 . For example, the first processor key management module 242 may include a circuit for storing and managing a key of the first processor 200 . For example, the second processor key management module 243 may include a circuit for storing and managing a key of the second processor 210 . For example, the first processor key management module 242 and the second processor key management module 243 may be physically or hardwarely separated. For example, the first processor key management module 242 and the second processor key management module 243 may be included in one package. For example, the first processor key management module 242 and/or the second processor key management module 243 may include a memory (e.g., read only memory (ROM)) for storing the key of the first processor 200 and/or the key of the second processor 210. For example, the first processor key management module 242 and/or the second processor key management module 243 may be configured with a memory (e.g., ROM) that stores the key of the first processor 200 and/or the key of the second processor 210. For example, the key of the first processor 200 is a root key of the first processor 200 and may include one time programmable (OTP) or eFuse related to the first processor 200 . For example, the key of the first processor 200 may include a key generated based on the root key of the first processor 200 (derived key). For example, the key of the second processor 210 is a root key of the second processor 210, and may include an OTP or eFuse related to the second processor 210. For example, the key of the second processor 210 may include a key generated based on the root key of the second processor 210 (derived key). For example, the root key of the processor 200 and/or 210 is a unique value of the processor set during the manufacturing process of the electronic device 101 and may include a fixed value.

예를 들어, 프로세서 키 선택 모듈(241)은 권한 할당 장치(220)에 의해 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서(200 또는 210)의 키를 선택하여 키 관리 모듈(234)(또는 보안 서브시스템(230))로 제공할 수 있다. 일예로, 프로세서 키 선택 모듈(241)은 권한 할당 장치(220)에 의해 보안 서브시스템(230)에 대한 접근 권한이 제 1 프로세서(200)에 할당된 경우, 제 1 프로세서(200)의 키를 키 관리 모듈(234)(또는 보안 서브시스템(230))로 제공할 수 있다. 일예로, 프로세서 키 선택 모듈(241)은 권한 할당 장치(220)에 의해 보안 서브시스템(230)에 대한 접근 권한이 제 2 프로세서(210)에 할당된 경우, 제 2 프로세서(210)의 키를 키 관리 모듈(234)(또는 보안 서브시스템(230))로 제공할 수 있다. 일예로, 프로세서 키 선택 모듈(241)은 권한 할당 장치(220)로부터 수신한 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서와 관련된 정보에 기반하여 보안 서브시스템(230)에 대한 접근 권한이 할당된 프로세서(200 또는 210)를 확인할 수 있다. 일예로, 프로세서 키 선택 모듈(241)은 멀티플렉서(multiplexer)를 포함할 수 있다.For example, the processor key selection module 241 may select a key of the processor 200 or 210 to which access authority to the security subsystem 230 is assigned by the authority assignment unit 220 and provide the selected key to the key management module 234 (or the security subsystem 230). For example, the processor key selection module 241 may provide the key of the first processor 200 to the key management module 234 (or the security subsystem 230) when the access authority to the security subsystem 230 is assigned to the first processor 200 by the authority assignment unit 220. For example, the processor key selection module 241 may provide the key of the second processor 210 to the key management module 234 (or the security subsystem 230) when the access authority to the security subsystem 230 is assigned to the second processor 210 by the authority assignment unit 220. For example, the processor key selection module 241 may identify the processor 200 or 210 to which the access authority to the security subsystem 230 is assigned based on the information related to the processor to which the access authority to the security subsystem 230 is assigned received from the authority assignment unit 220. For example, the processor key selection module 241 may include a multiplexer.

도 3은 다양한 실시예에 따른 보안 기능을 제공하기 위한 전자 장치(101)의 블록도이다. 이하 설명에서 전자 장치(101)는 보안 기능을 실행하기 위한 보안 장치로, 보안 서브시스템(310)을 포함할 수 있다. 하지만, 보안 장치는 보안 서브시스템(310)에 한정되지 않으며, 전자 장치(101)의 보안 기능을 실행하기 위한 다른 장치를 포함할 수도 있다. 3 is a block diagram of an electronic device 101 for providing security functions according to various embodiments. In the following description, the electronic device 101 is a security device for executing a security function, and may include a security subsystem 310 . However, the security device is not limited to the security subsystem 310 and may include other devices for executing security functions of the electronic device 101 .

도 3을 참조하는 다양한 실시예에 따르면, 전자 장치(101)는 제 1 프로세서(200), 제 2 프로세서(210), 권한 할당 장치(220), 프로세서 키 관리 장치(300) 및/또는 보안 서브시스템(310)을 포함할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200)는 도 1의 프로세서(120) 또는 메인 프로세서(121)와 실질적으로 동일하거나, 프로세서(120) 또는 메인 프로세서(121)를 포함할 수 있다. 제 2 프로세서(210)는 도 1의 프로세서(120) 또는 보조 프로세서(123)(예: 커뮤니케이션 프로세서)와 실질적으로 동일하거나, 프로세서(120) 또는 보조 프로세서(123)를 포함할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)는 권한 할당 장치(220), 프로세서 키 관리 장치(300) 및/또는 보안 서브시스템(310)과 작동적으로(operatively), 기능적으로(functionally) 및/또는 전기적으로 (electrically) 연결될 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및 제 2 프로세서(210)는 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일 실시예에 따르면, 제 1 프로세서(200), 제 2 프로세서(210), 권한 할당 장치(220), 프로세서 키 관리 장치(300) 및/또는 보안 서브시스템(310)은 하나의 패키지에 포함될 수 있다. 일 실시예에 따르면, 제 1 프로세서(200), 제 2 프로세서(210), 권한 할당 장치(220) 프로세서 키 관리 장치(300) 및/또는 보안 서브시스템(310)은 복수의 패키지들(예: 프로세서 패키지)에 포함될 수 있다. 일 실시예에 따르면, 도 3의 제 1 프로세서(200), 제 2 프로세서(210) 및 권한 할당 장치(220)는 도 2a의 제 1 프로세서(200), 제 2 프로세서(210) 및 권한 할당 장치(220)과 동일하게 동작하므로, 도 3의 제 1 프로세서(200), 제 2 프로세서(210) 및 권한 할당 장치(220)에 대한 상세한 설명을 생략한다.According to various embodiments of the present disclosure with reference to FIG. 3 , the electronic device 101 may include a first processor 200, a second processor 210, an authority assignment device 220, a processor key management device 300, and/or a security subsystem 310. According to one embodiment, the first processor 200 may be substantially the same as the processor 120 or the main processor 121 of FIG. 1 , or may include the processor 120 or the main processor 121 . The second processor 210 may be substantially the same as the processor 120 or the auxiliary processor 123 (eg, a communication processor) of FIG. 1 , or may include the processor 120 or the auxiliary processor 123 . According to an embodiment, the first processor 200 and/or the second processor 210 may be operatively, functionally and/or electrically connected to the rights assignment device 220, the processor key management device 300 and/or the security subsystem 310. According to one embodiment, the first processor 200 and the second processor 210 may be physically or hardwarely separated. According to one embodiment, the first processor 200, the second processor 210, the authority assignment device 220, the processor key management device 300 and / or the security subsystem 310 may be included in one package. According to an embodiment, the first processor 200, the second processor 210, the authority assignment device 220, the processor key management device 300, and/or the security subsystem 310 may be included in a plurality of packages (eg, a processor package). According to one embodiment, the first processor 200, the second processor 210, and the rights assignment device 220 of FIG. 3 operate in the same way as the first processor 200, the second processor 210, and the rights assignment device 220 of FIG.

다양한 실시예에 따르면, 프로세서 키 관리 장치(300)는 보안 서브시스템(310)에 접근 가능한 제 1 프로세서(200)의 키 및 제 2 프로세서(210)의 키를 관리할 수 있다. 일 실시예에 따르면, 프로세서 키 관리 장치(300)는 프로세서 키 선택 모듈(302), 제 1 프로세서 키 관리 모듈(304) 및 제 2 프로세서 키 관리 모듈(306)을 포함할 수 있다. 예를 들어, 제 1 프로세서 키 관리 모듈(302)은 제 1 프로세서(200)의 키를 저장 및 관리하는 회로를 포함할 수 있다. 예를 들어, 제 2 프로세서 키 관리 모듈(304)은 제 2 프로세서(210)의 키를 저장 및 관리하는 회로를 포함할 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(302) 및 제 2 프로세서 키 관리 모듈(304)은 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(302) 및 제 2 프로세서 키 관리 모듈(304)은 하나의 패키지에 포함될 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(302) 및/또는 제 2 프로세서 키 관리 모듈(304)은 제 1 프로세서(200)의 키 및/또는 제 2 프로세서(210)의 키를 저장하는 메모리(예: ROM)를 포함할 수 있다. 일예로, 제 1 프로세서 키 관리 모듈(302) 및/또는 제 2 프로세서 키 관리 모듈(304)은 제 1 프로세서(200)의 키 및/또는 제 2 프로세서(210)의 키를 저장하는 메모리(예: ROM)로 구성될 수 있다. 일예로, 제 1 프로세서(200)의 키는 제 1 프로세서(200)의 루트 키로, 제 1 프로세서(200)와 관련된 OTP 또는 이퓨즈를 포함할 수 있다. 일예로, 제 1 프로세서(200)의 키는 제 1 프로세서(200)의 루트 키에 기반하여 생성된 키(derived key)를 포함할 수도 있다. 일예로, 제 2 프로세서(210)의 키는 제 2 프로세서(210)의 루트 키로, 제 2 프로세서(210)와 관련된 OTP 또는 이퓨즈를 포함할 수 있다. 일예로, 제 2 프로세서(210)의 키는 제 2 프로세서(210)의 루트 키에 기반하여 생성된 키(derived key)를 포함할 수도 있다. 일예로, 프로세서(200 및/또는 210)의 루트 키는 전자 장치(101)의 생산 공정 시 설정된 프로세서의 고유 값으로, 고정된 값을 포함할 수 있다.According to various embodiments, the processor key management device 300 may manage a key of the first processor 200 and a key of the second processor 210 accessible to the security subsystem 310 . According to one embodiment, the processor key management device 300 may include a processor key selection module 302 , a first processor key management module 304 and a second processor key management module 306 . For example, the first processor key management module 302 may include a circuit for storing and managing a key of the first processor 200 . For example, the second processor key management module 304 may include a circuit for storing and managing a key of the second processor 210 . For example, the first processor key management module 302 and the second processor key management module 304 may be physically or hardwarely separated. For example, the first processor key management module 302 and the second processor key management module 304 may be included in one package. For example, the first processor key management module 302 and/or the second processor key management module 304 may include a memory (e.g., ROM) for storing the key of the first processor 200 and/or the key of the second processor 210. As an example, the first processor key management module 302 and / or the second processor key management module 304 stores the key of the first processor 200 and / or the key of the second processor 210. It may be configured with a memory (eg, ROM). For example, the key of the first processor 200 is a root key of the first processor 200, and may include an OTP or eFuse related to the first processor 200. For example, the key of the first processor 200 may include a key generated based on the root key of the first processor 200 (derived key). For example, the key of the second processor 210 is a root key of the second processor 210, and may include an OTP or eFuse related to the second processor 210. For example, the key of the second processor 210 may include a key generated based on the root key of the second processor 210 (derived key). For example, the root key of the processor 200 and/or 210 is a unique value of the processor set during the production process of the electronic device 101 and may include a fixed value.

예를 들어, 프로세서 키 선택 모듈(302)은 권한 할당 장치(220)에 의해 보안 서브시스템(310)에 대한 접근 권한이 할당된 프로세서(200 또는 210)의 키를 선택하여 보안 서브시스템(310)로 제공할 수 있다. 일예로, 프로세서 키 선택 모듈(302)은 권한 할당 장치(220)에 의해 보안 서브시스템(310)에 대한 접근 권한이 제 1 프로세서(200)에 할당된 경우, 제 1 프로세서(200)의 키를 보안 서브시스템(310)로 제공할 수 있다. 일예로, 프로세서 키 선택 모듈(302)은 권한 할당 장치(220)에 의해 보안 서브시스템(310)에 대한 접근 권한이 제 2 프로세서(210)에 할당된 경우, 제 2 프로세서(210)의 키를 보안 서브시스템(310)로 제공할 수 있다. 일예로, 프로세서 키 선택 모듈(302)은 권한 할당 장치(220)로부터 수신한 보안 서브시스템(310)에 대한 접근 권한이 할당된 프로세서와 관련된 정보에 기반하여 보안 서브시스템(310)에 대한 접근 권한이 할당된 프로세서(200 또는 210)를 확인할 수 있다. 일예로, 프로세서 키 선택 모듈(302)은 멀티플렉서를 포함할 수 있다.For example, the processor key selection module 302 selects the key of the processor 200 or 210 to which the access authority to the security subsystem 310 is assigned by the authority assignment unit 220 and provides the selected key to the security subsystem 310. For example, the processor key selection module 302 may provide the key of the first processor 200 to the security subsystem 310 when the access authority to the security subsystem 310 is assigned to the first processor 200 by the authority assignment unit 220. For example, the processor key selection module 302 may provide the key of the second processor 210 to the security subsystem 310 when the access authority to the security subsystem 310 is assigned to the second processor 210 by the authority assignment unit 220. For example, the processor key selection module 302 may identify the processor 200 or 210 to which the access authority to the security subsystem 310 is assigned based on the information related to the processor to which the access authority to the security subsystem 310 is assigned received from the authority assignment unit 220. As an example, the processor key selection module 302 may include a multiplexer.

다양한 실시예에 따르면, 보안 서브시스템(310)은 제 1 프로세서(200) 또는 제 2 프로세서(210)와 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(310)은 권한 할당 장치(220)에 의해 보안 서브시스템(310)에 대한 접근 권한이 할당된 제 1 프로세서(200) 또는 제 2 프로세서(210)에서 처리하는 작업과 관련된 인증, 작업과 관련된 데이터의 서명 생성, 작업과 관련된 데이터의 서명의 검사, 작업과 관련된 데이터의 인증서 생성, 작업과 관련된 데이터의 인증서의 검사, 작업과 관련된 데이터의 암호화, 작업과 관련된 데이터의 복호화 또는 작업과 관련된 암호키 생성과 같은 보안 기능 중 적어도 하나를 수행할 수 있다. 보안 서브시스템(310)은 보안 기능의 처리 결과를 제 1 프로세서(200) 또는 제 2 프로세서(210)로 제공할 수 있다. 일 실시예에 따르면, 보안 서브시스템(310)은 제 1 프로세서(200) 및 제 2 프로세서(210)와 물리적으로 또는 하드웨어적으로 구분될 수 있다. 일 실시예에 따르면, 보안 서브시스템(310)은 메모리(미 도시)를 포함할 수 있다. 일예로, 보안 서브시스템(310)의 메모리는 RAM을 포함할 수 있다. 일예로, 보안 서브시스템(310)의 메모리는 보안 서브시스템(310)에서 처리되는 프로세서와 관련된 데이터를 저장할 수 있다. 일예로, 프로세서와 관련된 데이터는 프로세서(200 및/또는 210)가 보안 서브시스템(310)을 이용하여 생성 및/또는 처리되는 데이터로, 암호화된 데이터, 암호화된 연산 값, 복호화된 데이터, 복호화된 연산 값, 서명, 인증서 또는 암호키 중 적어도 하나와 관련된 데이터를 포함할 수 있다.According to various embodiments, the security subsystem 310 may perform a security function related to the first processor 200 or the second processor 210 . According to an embodiment, the security subsystem 310 performs authentication related to a task processed by the first processor 200 or the second processor 210 to which access rights to the security subsystem 310 are assigned by the authority assignment unit 220, generation of a signature of data related to the task, inspection of the signature of data related to the task, generation of a certificate of the data related to the task, inspection of a certificate of data related to the task, encryption of task-related data, decryption of data related to the task, or encryption key related to the task. It may perform at least one of the security functions such as creation. The security subsystem 310 may provide processing results of the security function to the first processor 200 or the second processor 210 . According to an embodiment, the security subsystem 310 may be physically or hardware separated from the first processor 200 and the second processor 210 . According to one embodiment, the security subsystem 310 may include a memory (not shown). In one example, the memory of security subsystem 310 may include RAM. For example, the memory of the security subsystem 310 may store data related to a processor processed in the security subsystem 310 . As an example, the data related to the processor is data generated and/or processed by the processor 200 and/or 210 using the security subsystem 310, and may include data related to at least one of encrypted data, encrypted operation value, decrypted data, decrypted operation value, signature, certificate, or encryption key.

일 실시예에 따르면, 보안 서브시스템(310)은 권한 할당 장치(220)로부터 초기화 요청 신호를 수신한 경우, 보안 서브시스템(310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제할 수 있다. 예를 들어, 보안 서브시스템(310)은 보안 서브시스템(310)의 내부 메모리(예: SRAM(static RAM)) 및/또는 등록 경로(register path)에 존재하는 이전 프로세서(200 또는 210)와 관련된 정보(예: 프로세서 키와 관련된 정보)를 삭제할 수 있다. According to an embodiment, the security subsystem 310 may delete data related to a processor to which the access authority of the security subsystem 310 has been assigned when receiving an initialization request signal from the authority assignment device 220 . For example, the security subsystem 310 may delete information related to the previous processor 200 or 210 (eg, information related to a processor key) existing in an internal memory (eg, static RAM (SRAM)) and/or a register path of the security subsystem 310.

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)에 대한 접근 권한의 회수를 위해 보안 서브시스템(230 또는 310)에서 이전에 접근 권한을 할당하였던 프로세서와 관련된 데이터를 삭제하도록 제어함으로써, 제 1 프로세서(200) 및 제 2 프로세서(210)를 격리(isolation)하여 전자 장치(101)의 보안을 강화할 수 있다.According to various embodiments, the authority assignment device 220 isolates the first processor 200 and the second processor 210 to reinforce the security of the electronic device 101 by controlling the security subsystem 230 or 310 to delete data related to the processor to which the access authority was previously assigned in order to recover the access authority to the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 도 1, 도 2a 또는 도 3의 전자 장치(101))는, 어플리케이션 프로세서(예: 도 1의 메인 프로세서(121) 또는 도 2a 또는 도 3의 제 1 프로세서(200))와 커뮤니케이션 프로세서(예: 도 1의 보조 프로세서(123) 또는 도 2a 또는 도 3의 제 2 프로세서(210))와 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 보안 서브시스템(예: 도 2a 또는 도 3의 보안 서브시스템(230 또는 310)), 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 권한 할당 장치(예: 도 2a 또는 도 3의 권한 할당 장치(220)) 및 상기 권한 할당 장치에서 상기 보안 서브시스템의 접근 권한을 할당받은 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 기반하여, 상기 어플리케이션 프로세서와 관련된 제 1 키 또는 상기 커뮤니케이션 프로세서와 관련된 제 2 키를 상기 보안 서브시스템으로 제공하는 프로세서 키 관리 장치(예: 도 2b의 프로세서 키 관리 모듈(233) 또는 도 3의 프로세서 키 관리 장치(300))를 포함하며, 상기 보안 서브시스템은, 상기 권한 할당 장치에서 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 상기 보안 서브시스템의 접근 권한의 할당에 기반하여 상기 프로세서 키 관리 장치로부터 제공받은 상기 제 1 키 또는 상기 제 2 키를 사용하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하고, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 데이터를 초기화할 수 있다.According to various embodiments, an electronic device (eg, the electronic device 101 of FIGS. 1, 2A, or 3) may include an application processor (eg, the main processor 121 of FIG. 1 or the first processor 200 of FIG. 2A or 3) and a communication processor (eg, the auxiliary processor 123 of FIG. 1 or the second processor 210 of FIG. 2A or 3) and a security function related to the application processor or the communication processor. A security subsystem (eg, the security subsystem 230 or 310 of FIG. 2A or 3), a rights assignment device for assigning access rights of the security subsystem to the application processor or the communication processor (eg, rights assignment device 220 of FIG. 2A or 3), and a first key related to the application processor or a second key related to the communication processor, based on the application processor or the communication processor to which the rights assignment device has been assigned access rights of the security subsystem, the security subsystem and a processor key management device (e.g., the processor key management module 233 of FIG. 2B or the processor key management device 300 of FIG. 3) provided by the security subsystem, wherein the security subsystem processes a security function related to the application processor or the communication processor using the first key or the second key provided from the processor key management device based on the allocation of access rights of the security subsystem from the permission assignment device to the application processor or the communication processor, and the security assigned to the application processor or the communication processor. Data related to the application processor or the communication processor may be initialized based on the return of the access authority of the subsystem.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 교번하게 할당할 수 있다.According to various embodiments, the authority assignment device, upon receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, alternately allocates the access authority of the security subsystem to the application processor or the communication processor.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서로부터 연속적으로 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 후 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 적어도 하나의 요청 신호를 수신한 경우, 상기 요청 신호의 수신 시점에 기반하여 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하고, 상기 어플리케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한을 회수한 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당할 수 있다.According to various embodiments of the present disclosure, the authority assigning apparatus may allocate the access authority of the security subsystem to the application processor based on the reception time of the request signal when receiving at least one request signal related to the access authority of the security subsystem from the communication processor after continuously receiving a plurality of request signals related to the access authority of the security subsystem from the application processor, and may allocate the access authority of the security subsystem to the communication processor when the access authority of the security subsystem is retrieved from the application processor.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및/또는 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호를 수신한 경우, 상기 접근 요청의 수신 시점에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당할 수 있다.According to various embodiments, when receiving a request signal related to the access authority of the security subsystem from the application processor and/or the communication processor, the authority assignment device may allocate the access authority of the security subsystem to the application processor or the communication processor based on a time point at which the access request is received.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하고, 상기 어플리케이션 프로세서로의 우선순위가 설정된 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하고, 상기 어플리케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당할 수 있다.According to various embodiments, the authority assignment device, when receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, identifies a processor for which the priority of the access authority of the security subsystem is set, allocates the access authority of the security subsystem to the application processor when priority is set to the application processor, and determines that processing of at least one task corresponding to the request signal related to the access authority of the security subsystem received from the application processor has been completed. You can assign system access rights.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하고, 상기 커뮤니케이션 프로세서로의 우선순위가 설정된 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하고, 상기 커뮤니케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당할 수 있다.According to various embodiments, the authority assignment device, when receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, identifies a processor for which the priority of the access authority of the security subsystem is set, allocates the access authority of the security subsystem to the communication processor when priority is set to the communication processor, and determines that processing of at least one task corresponding to the request signal related to the access authority of the security subsystem received from the communication processor has been completed. You can assign system access rights.

다양한 실시예에 따르면, 상기 커뮤니케이션 프로세서는, 상기 권한 할당 장치로부터 상기 보안 서브시스템의 접근 권한을 할당받은 시점을 기준으로 지정된 기준시간이 경과한 경우, 상기 커뮤니케이션 프로세서와 관련된 보안 기능이 처리 완료와 무관하게 상기 보안 서브시스템에 대한 접근 권한을 반환할 수 있다.According to various embodiments, the communication processor may return the access authority to the security subsystem regardless of the completion of processing by the security function related to the communication processor when a specified reference time has elapsed based on the time point at which the access authority of the security subsystem is allocated from the authority allocation device.

다양한 실시예에 따르면, 상기 커뮤니케이션 프로세서는, 상기 권한 할당 장치로부터 상기 보안 서브시스템의 접근 권한을 할당받은 경우, 이전에 상기 보안 서브시스템의 접근 권한을 할당받은 상태에서 상기 지정된 기준시간에 기반하여 처리가 완료되지 않은 보안 기능이 존재하는지 확인하고, 상기 처리가 완료되지 않은 보안 기능이 존재하는 경우, 상기 보안 서브시스템을 통해 상기 처리가 완료되지 않은 보안 기능을 처리할 수 있다.According to various embodiments of the present disclosure, when the access authority of the security subsystem is allocated from the authority assignment device, the communication processor may check whether there is a security function whose processing has not been completed based on the specified reference time in a state in which the access authority of the security subsystem has been previously allocated, and if there is a security function whose processing has not been completed, the communication processor may process the security function whose processing has not been completed through the security subsystem.

다양한 실시예에 따르면, 상기 보안 서브시스템은, 상기 권한 할당 장치로부터 상기 어플리케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 1 키 및 상기 어플리케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하고, 상기 권한 할당 장치로부터 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 2 키 및 상기 커뮤니케이션 프로세서의 보안 기능과 관련된 데이터를 삭제할 수 있다.According to various embodiments, the security subsystem may delete data related to the security function of the security function of the application processor and the first key when receiving information related to the return of the access right of the security subsystem allocated to the application processor from the authority allocation device, and delete data related to the second key and security function of the communication processor when receiving information related to the return of the access authority of the security subsystem allocated to the communication processor from the authority allocation unit.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당한 경우, 상기 어플리케이션 프로세서로의 접근 권한 할당과 관련된 정보를 상기 보안 서브시스템에 제공하고, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당한 경우, 상기 커뮤니케이션 프로세서로의 접근 권한 할당과 관련된 정보를 상기 보안 서브시스템에 제공할 수 있다.According to various embodiments of the present disclosure, when the access right of the security subsystem is assigned to the application processor, information related to the assignment of access rights to the application processor may be provided to the security subsystem, and when the access rights of the security subsystem are assigned to the communication processor, information related to the assignment of access rights to the communication processor may be provided to the security subsystem.

다양한 실시예에 따르면, 상기 커뮤니케이션 프로세서는, 상기 지정된 기준시간이 경과하기 이전에 상기 커뮤니케이션 프로세서와 관련된 보안 기능의 처리를 완료한 경우, 상기 보안 서브시스템의 접근 권한을 반환할 수 있다.According to various embodiments, the communication processor may return the access authority of the security subsystem when processing of the security function related to the communication processor is completed before the specified reference time elapses.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당한 경우, 상기 어플리케이션 프로세서로의 접근 권한의 할당과 관련된 정보를 상기 프로세서 키 관리 장치로 제공하고, 상기 프로세서 키 관리 장치는, 상기 어플리케이션 프로세서로의 접근 권한의 할당과 관련된 정보에 기반하여 상기 어플리케이션 프로세서와 관련된 상기 제 1 키를 상기 보안 서브시스템으로 전송할 수 있다.According to various embodiments, when the access authority of the security subsystem is assigned to the application processor, the authority assignment device may provide information related to the allocation of access authority to the application processor to the processor key management unit, and the processor key management apparatus may transmit the first key related to the application processor to the security subsystem based on the information related to the allocation of access authority to the application processor.

다양한 실시예에 따르면, 상기 권한 할당 장치는, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당한 경우, 상기 커뮤니케이션 프로세서로의 접근 권한의 할당과 관련된 정보를 상기 프로세서 키 관리 장치로 제공하고, 상기 프로세서 키 관리 장치는, 상기 커뮤니케이션 프로세서로의 접근 권한의 할당과 관련된 정보에 기반하여 상기 커뮤니케이션 프로세서와 관련된 상기 제 2 키를 상기 보안 서브시스템으로 전송할 수 있다.According to various embodiments, when the access authority of the security subsystem is assigned to the communication processor, the authority allocation device provides information related to the allocation of access authority to the communication processor to the processor key management unit, and the processor key management unit transmits the second key related to the communication processor to the security subsystem based on the information related to the allocation of access authority to the communication processor.

도 4a는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230))의 접근 권한을 제 1 프로세서에 할당하기 위한 일예이다.4A is an example of allocating access rights of a security device (eg, the security subsystem 230) to a first processor in an electronic device according to various embodiments.

도 4a를 참조하는 다양한 실시예에 따르면, 전자 장치(101)의 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 401). 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 제 1 프로세서(200)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 4A, when there is at least one job related to a security function, the first processor 200 of the electronic device 101 may transmit a request signal related to the access authority of the security subsystem 230 to the authority allocation device 220 (operation 401). As an example, the request signal related to access rights may include information related to the first processor 200 requesting access rights (eg, identification information) and/or a first value indicating a request for access rights (eg '1').

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터 수신한 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호에 기반하여 제 1 프로세서(200)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 1 프로세서(200)로 전송할 수 있다(동작 403). 일예로, 접근 권한의 할당과 관련된 신호는 접근 권한을 할당한 프로세서(예: 제 1 프로세서(200))와 관련된 정보(예: 식별 정보)를 포함할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 할당받은 프로세서가 존재하지 않는 경우, 제 1 프로세서(200)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 할당받은 프로세서가 존재하는 경우, 보안 서브시스템(230)의 접근 권한이 회수되는지 확인할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한이 회수되는 경우, 제 1 프로세서(200)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한에 대한 복수의 요청 신호들이 수신된 경우, 권한 할당 방식, 접근 권한의 요청 시점 또는 접근 권한의 우선순위 중 적어도 하나에 기반하여 제 1 프로세서(200)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the first processor 200 based on the request signal related to the access authority of the security subsystem 230 received from the first processor 200. The authority allocation device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 230 to the first processor 200 (operation 403). For example, the signal related to the assignment of access rights may include information (eg, identification information) related to the processor (eg, the first processor 200) that has assigned the access rights. According to an embodiment, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the first processor 200 when there is no processor assigned the access authority of the security subsystem 230. According to an embodiment, the authority assignment device 220 may check whether the access authority of the security subsystem 230 is recovered when there is a processor assigned the access authority of the security subsystem 230 . When the access authority of the security subsystem 230 is recovered, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the first processor 200 . For example, when a plurality of request signals for the access rights of the security subsystem 230 are received, the rights assignment device 220 may allocate the access rights of the security subsystem 230 to the first processor 200 based on at least one of a rights assignment method, a request time of access rights, or priority of access rights.

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 1 프로세서(200)에 할당한 경우, 제 1 프로세서(200)로의 접근 권한 할당과 관련된 정보(예: 제 1 프로세서(200)의 키 선택과 관련된 지시 정보)를 보안 서브시스템(230)으로 전송할 수 있다(동작 405). 일 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 제 1 프로세서(200)로의 접근 권한 할당과 관련된 정보(예: 제 1 프로세서(200)의 키 선택과 관련된 지시 정보)에 기반하여 제 1 프로세서(200)의 키를 획득할 수 있다. 일예로, 제 1 프로세서(200)의 키는 도 2b의 프로세서 키 관리 모듈(233)에 포함되는 프로세서 키 선택 모듈(241)을 통해 제 1 프로세서 키 관리 모듈(242)로부터 획득될 수 있다.According to various embodiments, when the access authority of the security subsystem 230 is assigned to the first processor 200, the authority allocation device 220 may transmit information related to the allocation of access authority to the first processor 200 (eg, instruction information related to key selection of the first processor 200) to the security subsystem 230 (operation 405). According to an embodiment, the security subsystem 230 may obtain the key of the first processor 200 based on information related to the assignment of access rights to the first processor 200 (eg, instruction information related to key selection of the first processor 200) received from the rights assignment device 220. For example, the key of the first processor 200 may be acquired from the first processor key management module 242 through the processor key selection module 241 included in the processor key management module 233 of FIG. 2B.

다양한 실시예에 따르면, 제 1 프로세서(200)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 보안 서브시스템(230)을 통해 보안 기능을 수행할 수 있다(동작 407). 일 실시예에 따르면, 보안 서브시스템(230)은 제 1 프로세서(200)의 키에 기반하여 제 1 프로세서(200)의 보안 기능을 처리할 수 있다. 예를 들어, 보안 기능은 제 1 프로세서(200)와 관련된 파일 시스템의 암호화, 제 1 프로세서(200)와 관련된 RAM(random access memory)의 암호화, 제 1 프로세서(200)와 관련된 중요 데이터(예: 결제 데이터)의 암호화 서명 생성, 서명 검사 또는 암호키 생성을 위한 기능 중 적어도 하나를 포함할 수 있다. According to various embodiments, when the access authority of the security subsystem 230 is allocated from the authority assignment device 220, the first processor 200 may perform a security function through the security subsystem 230 (operation 407). According to an embodiment, the security subsystem 230 may process the security function of the first processor 200 based on the key of the first processor 200 . For example, the security function may include at least one of functions for encrypting a file system related to the first processor 200, encrypting a random access memory (RAM) related to the first processor 200, generating an encryption signature of important data (eg, payment data) related to the first processor 200, checking a signature, or generating an encryption key.

다양한 실시예에 따르면, 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한의 반환(또는 반납)을 요청할 수 있다(동작 409). 일 실시예에 따르면, 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한을 반환하는 제 1 프로세서(200)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when processing of at least one task related to the security function is completed, the first processor 200 may request the return (or return) of the access right to the security subsystem 230 (operation 409). According to an embodiment, when processing of at least one task related to the security function is completed, the first processor 200 transmits a request signal related to return of access rights to the security subsystem 230 to the rights assignment device 220. As an example, the request signal related to the return of the access right may include information (eg, identification information) related to the first processor 200 returning the access right and/or a second value different from the first value to indicate the return of the access right (eg '0').

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청에 기반하여 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 1 프로세서(200)로 전송할 수 있다(동작 411).According to various embodiments, the authority assignment device 220 may retrieve the access authority of the first processor 200 to the security subsystem 230 based on a request for return (or return) of the access authority of the security subsystem 230 from the first processor 200. The authority assignment device 220 may transmit information related to return (or return) of the access authority of the security subsystem 230 (eg, authority return notification information) to the first processor 200 (operation 411).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한의 반환에 기반하여 제 1 프로세서(200)와 관련된 데이터를 삭제하도록 보안 서브시스템(230)을 제어할 수 있다(동작 413). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 1 프로세서(200)로부터 회수한 경우, 초기화 요청 신호를 보안 서브시스템(230)으로 제공할 수 있다(동작 413).According to various embodiments, the authority assignment device 220 may control the security subsystem 230 to delete data related to the first processor 200 based on the return of the access authority of the first processor 200 to the security subsystem 230 (operation 413). According to an embodiment, when the access right of the security subsystem 230 is retrieved from the first processor 200, the authority assignment device 220 may provide an initialization request signal to the security subsystem 230 (operation 413).

다양한 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 초기화 요청 신호에 기반하여 보안 서브시스템(230)을 초기화할 수 있다(동작 415). 일 실시예에 따르면, 보안 서브시스템(230)은 보안 서브시스템(230)의 초기화를 통해, 보안 서브시스템(230)의 내부 메모리 및/또는 등록 경로에 존재하는 제 1 프로세서(200)와 관련된 정보를 삭제할 수 있다. 일예로, 제 1 프로세서(200)와 관련된 정보는 제 1 프로세서(200)의 키 및/또는 제 1 프로세서(200)의 키에 기반한 연산 정보를 포함할 수 있다.According to various embodiments, the security subsystem 230 may initialize the security subsystem 230 based on the initialization request signal received from the authority assignment device 220 (operation 415). According to an embodiment, the security subsystem 230 may delete information related to the first processor 200 existing in an internal memory and/or a registration path of the security subsystem 230 through initialization of the security subsystem 230. For example, the information related to the first processor 200 may include a key of the first processor 200 and/or operation information based on the key of the first processor 200 .

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청과 무관하게 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한을 회수할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)의 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한의 회수에 기반하여 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 1 프로세서(200)로 전송할 수 있다(동작 411). 일예로, 도 4a의 동작 409는 생략될 수 있다.According to various embodiments, the authority assignment device 220 may retrieve the access authority of the first processor 200 to the security subsystem 230 irrespective of a request for return (or return) of the access authority of the security subsystem 230 from the first processor 200. According to an embodiment, when the authority assignment device 220 determines that the occupation time of the security subsystem 230 of the first processor 200 exceeds a specified reference time, the access authority of the first processor 200 to the security subsystem 230 may be recovered. Based on the recovery of the access right of the first processor 200 to the security subsystem 230, the authority assignment device 220 may transmit information related to return (or return) of the access authority of the security subsystem 230 (eg, authority return notification information) to the first processor 200 (operation 411). For example, operation 409 of FIG. 4A may be omitted.

도 4b는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(310))의 접근 권한을 제 1 프로세서에 할당하기 위한 일예이다.4B is an example for allocating access rights of a security device (eg, the security subsystem 310) to a first processor in an electronic device according to various embodiments.

도 4b를 참조하는 다양한 실시예에 따르면, 전자 장치(101)의 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 421). According to various embodiments of the present disclosure with reference to FIG. 4B, when there is at least one job related to a security function, the first processor 200 of the electronic device 101 may transmit a request signal related to the access authority of the security subsystem 310 to the authority allocation device 220 (operation 421).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터 수신한 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호에 기반하여 제 1 프로세서(200)로 보안 서브시스템(310)의 접근 권한을 할당할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 1 프로세서(200)로 전송할 수 있다(동작 423). 일예로, 접근 권한의 할당과 관련된 신호는 접근 권한을 할당한 프로세서(예: 제 1 프로세서(200))와 관련된 정보(예: 식별 정보)를 포함할 수 있다. 일예로, 도 4b의 동작 421 및 동작 423은 도 4a의 동작 401 및 동작 403에 대응되는 동작(또는 동일한 동작)을 포함할 수 있다.According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 310 to the first processor 200 based on the request signal related to the access authority of the security subsystem 310 received from the first processor 200. The authority allocation device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 310 to the first processor 200 (operation 423). For example, the signal related to the assignment of access rights may include information (eg, identification information) related to the processor (eg, the first processor 200) that has assigned the access rights. For example, operations 421 and 423 of FIG. 4B may include operations corresponding to (or identical to) operations 401 and 403 of FIG. 4A .

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한을 제 1 프로세서(200)에 할당한 경우, 제 1 프로세서(200)로의 접근 권한 할당과 관련된 정보(예: 제 1 프로세서(200)의 키 선택과 관련된 지시 정보)를 프로세서 키 관리 장치(300)로 전송할 수 있다(동작 425). According to various embodiments, when the access authority of the security subsystem 310 is allocated to the first processor 200, the authority assignment device 220 may transmit information related to the allocation of access authority to the first processor 200 (eg, instruction information related to key selection of the first processor 200) to the processor key management apparatus 300 (operation 425).

다양한 실시예에 따르면, 프로세서 키 관리 장치(300)는 권한 할당 장치(220)로부터 수신한 제 1 프로세서(200)로의 접근 권한 할당과 관련된 정보(예: 제 1 프로세서(200)의 키 선택과 관련된 지시 정보)에 기반하여 제 1 프로세서(200)의 키를 선택할 수 있다. 프로세서 키 관리 장치(300)는 제 1 프로세서(200)의 키와 관련된 정보(또는 제 1 프로세서(200)의 키)를 보안 서브시스템(310)으로 제공할 수 있다(동작 427). 일예로, 제 1 프로세서(200)의 키는 도 3의 프로세서 키 선택 모듈(302)에 의해 제 1 프로세서 키 관리 모듈(304)로부터 획득될 수 있다.According to various embodiments, the processor key management device 300 may select the key of the first processor 200 based on information related to assigning access rights to the first processor 200 received from the permission assignment device 220 (eg, instruction information related to key selection of the first processor 200). The processor key management device 300 may provide information related to the key of the first processor 200 (or the key of the first processor 200) to the security subsystem 310 (operation 427). As an example, the key of the first processor 200 may be obtained from the first processor key management module 304 by the processor key selection module 302 of FIG. 3 .

다양한 실시예에 따르면, 제 1 프로세서(200)는 권한 할당 장치(220)로부터 보안 서브시스템(310)의 접근 권한을 할당받은 경우, 보안 서브시스템(310)을 통해 보안 기능을 수행할 수 있다(동작 429). 일 실시예에 따르면, 보안 서브시스템(310)은 프로세서 키 관리 장치(300)로부터 획득한 제 1 프로세서(200)의 키에 기반하여 제 1 프로세서(200)의 보안 기능을 처리할 수 있다. 예를 들어, 보안 기능은 제 1 프로세서(200)와 관련된 파일 시스템의 암호화, 제 1 프로세서(200)와 관련된 RAM의 암호화, 제 1 프로세서(200)와 관련된 중요 데이터(예: 결제 데이터)의 암호화, 서명 생성 서명 검사 또는 암호키 생성을 위한 기능 중 적어도 하나를 포함할 수 있다. According to various embodiments, when the access authority of the security subsystem 310 is allocated from the authority assignment device 220, the first processor 200 may perform a security function through the security subsystem 310 (operation 429). According to an embodiment, the security subsystem 310 may process the security function of the first processor 200 based on the key of the first processor 200 obtained from the processor key management device 300 . For example, the security function may include at least one of encryption of a file system related to the first processor 200, encryption of RAM related to the first processor 200, encryption of important data (e.g., payment data) related to the first processor 200, signature generation, signature inspection, or encryption key generation functions.

다양한 실시예에 따르면, 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(310)에 대한 접근 권한의 반환(또는 반납)을 요청할 수 있다(동작 431). 일 실시예에 따르면, 제 1 프로세서(200)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. According to various embodiments, when processing of at least one task related to the security function is completed, the first processor 200 may request the return (or return) of the access right to the security subsystem 310 (operation 431). According to an embodiment, when processing of at least one task related to the security function is completed, the first processor 200 transmits a request signal related to return of the access right to the security subsystem 310 to the right assignment device 220.

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터의 보안 서브시스템(310)의 접근 권한의 반환 요청에 기반하여 보안 서브시스템(310)에 대한 제 1 프로세서(200)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한의 반환과 관련된 정보(예: 권한 반납 알림 정보)를 제 1 프로세서(200)로 전송할 수 있다(동작 433)According to various embodiments, the authority assignment device 220 may retrieve the access authority of the first processor 200 to the security subsystem 310 based on the return request of the access authority of the security subsystem 310 from the first processor 200. The authority assignment device 220 may transmit information related to return of the access authority of the security subsystem 310 (eg, authority return notification information) to the first processor 200 (operation 433).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 제 1 프로세서(200)의 접근 권한의 반환에 기반하여 제 1 프로세서(200)와 관련된 데이터를 삭제하도록 보안 서브시스템(310)을 제어할 수 있다(동작 435). 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터 보안 서브시스템(310)의 접근 권한 반환과 관련된 요청 신호를 수신한 경우, 초기화 요청 신호를 보안 서브시스템(310)으로 제공할 수 있다(동작 435).According to various embodiments, the authority assignment device 220 may control the security subsystem 310 to delete data related to the first processor 200 based on the return of the access authority of the first processor 200 to the security subsystem 310 (operation 435). According to an embodiment, when receiving a request signal related to the return of the access right of the security subsystem 310 from the first processor 200, the authority assignment device 220 may provide an initialization request signal to the security subsystem 310 (operation 435).

다양한 실시예에 따르면, 보안 서브시스템(310)은 권한 할당 장치(220)로부터 수신한 초기화 요청 신호에 기반하여 보안 서브시스템(310)을 초기화할 수 있다(동작 437). 일 실시예에 따르면, 보안 서브시스템(310)은 보안 서브시스템(310)의 초기화를 통해, 보안 서브시스템(310)의 내부 메모리 및/또는 등록 경로에 존재하는 제 1 프로세서(200)와 관련된 정보를 삭제할 수 있다.According to various embodiments, the security subsystem 310 may initialize the security subsystem 310 based on the initialization request signal received from the authority assignment device 220 (operation 437). According to an embodiment, the security subsystem 310 may delete information related to the first processor 200 existing in an internal memory and/or a registration path of the security subsystem 310 through initialization of the security subsystem 310.

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청과 무관하게 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한을 회수할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)의 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 1 프로세서(200)의 접근 권한의 회수에 기반하여 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 1 프로세서(200)로 전송할 수 있다(동작 433). 일예로, 도 4b의 동작 431은 생략될 수 있다.According to various embodiments, the authority assignment device 220 may retrieve the access authority of the first processor 200 to the security subsystem 230 irrespective of a request for return (or return) of the access authority of the security subsystem 230 from the first processor 200. According to an embodiment, when the authority assignment device 220 determines that the occupation time of the security subsystem 230 of the first processor 200 exceeds a specified reference time, the access authority of the first processor 200 to the security subsystem 230 may be recovered. Based on the recovery of the access right of the first processor 200 to the security subsystem 230, the authority assignment device 220 may transmit information related to return (or return) of the access authority of the security subsystem 230 (eg, authority return notification information) to the first processor 200 (operation 433). For example, operation 431 of FIG. 4B may be omitted.

도 5는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230 또는 310))의 접근 권한을 할당하기 위한 흐름도(500)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 5의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다. 5 is a flowchart 500 for allocating access rights of a security device (eg, the security subsystem 230 or 310) in an electronic device according to various embodiments. In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 5 may be the electronic device 101 of FIG. 1 or 2 .

도 5를 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 권한 할당 장치(220))는 동작 501에서, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호가 수신되는지 확인할 수 있다. 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 5 , the electronic device (eg, the permission assignment device 220 of FIG. 2 ) checks whether a request signal related to the access permission of the security subsystem 230 or 310 is received from the first processor 200 and/or the second processor 210 in operation 501. As an example, the request signal related to access rights may include information (eg, identification information) related to a processor requesting access rights (eg, the first processor 200 or the second processor 210) and/or a request for access rights. A first value (eg, '1') may be included.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호가 수신되지 않는 경우(예: 동작 501의 '아니오'), 보안 서브시스템(230 또는 310)의 접근 권한을 할당하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, the electronic device (eg, the authority assignment device 220) does not receive a request signal related to the access authority of the security subsystem 230 or 310 (eg, 'No' in operation 501).

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 수신한 경우(예: 동작 501의 '예'), 동작 503에서, 제 1 프로세서(200) 또는 제 2 프로세서(210)에서 보안 서브시스템(230 또는 310)을 사용 중인지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)의 접근 권한을 할당한 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))가 존재하는 경우, 보안 서브시스템(230 또는 310)이 사용 중인 것으로 판단할 수 있다.According to various embodiments, when the electronic device (eg, the authority assignment device 220) receives a request signal related to the access authority of the security subsystem 230 or 310 (eg, 'Yes' in operation 501), in operation 503, it may be determined whether the security subsystem 230 or 310 is being used by the first processor 200 or the second processor 210. According to an embodiment, the authority assignment device 220 may determine that the security subsystem 230 or 310 is in use when there exists a processor (eg, the first processor 200 or the second processor 210) to which the access authority of the security subsystem 230 or 310 is assigned.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)이 사용되지 않는 것으로 판단한 경우(예: 동작 503의 '아니오'), 동작 507에서, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 전송한 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))에 보안 서브시스템(230)의 접근 권한을 할당할 수 있다.According to various embodiments, when the electronic device (eg, the authority assignment unit 220) determines that the security subsystem 230 or 310 is not in use (eg, 'No' in operation 503), the security subsystem 230 accesses the processor (eg, the first processor 200 or the second processor 210) that has transmitted the request signal related to the access authority of the security subsystem 230 or 310 in operation 507. Permissions can be assigned.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)이 사용 중인 것으로 판단한 경우(예: 동작 503의 '예'), 동작 505에서, 보안 서브시스템(230 또는 310)의 접근 권한이 회수되었는지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))로부터 접근 권한의 반환과 관련된 요청 신호를 수신한 경우, 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터를 삭제하도록 보안 서브시스템(230 또는 310)을 제어할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)에서 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제가 완료된 것으로 판단한 경우, 보안 서브시스템(230 또는 310)의 접근 권한이 회수된 것으로 판단할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한을 반환하는 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when the electronic device (eg, the authority assignment device 220) determines that the security subsystem 230 or 310 is in use (eg, 'Yes' in operation 503), in operation 505, it may be determined whether the access authority of the security subsystem 230 or 310 has been revoked. According to an embodiment, the authority assignment unit 220 may control the security subsystem 230 or 310 to delete data related to the processor to which the access authority of the security subsystem 230 or 310 has been allocated, when a request signal related to the return of the access authority is received from a processor to which the access authority of the security subsystem 230 or 310 has been allocated (eg, the first processor 200 or the second processor 210). When the security subsystem 230 or 310 determines that the data related to the processor to which the security subsystem 230 or 310 has been assigned has been deleted, the authority assignment device 220 determines that the access authority of the security subsystem 230 or 310 has been recovered. As an example, the request signal related to the return of the access right may include information (eg, identification information) related to the processor returning the access right (eg, the first processor 200 or the second processor 210) and/or a second value different from the first value (eg '0') to indicate the return of the access right.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)의 접근 권한이 회수되지 않은 것으로 판단한 경우(예: 동작 505의 '아니오'), 동작 505에서, 보안 서브시스템(230 또는 310)의 접근 권한이 회수되는지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호가 수신되는지 확인할 수 있다.According to various embodiments, when the electronic device (eg, the authority assignment device 220) determines that the access authority of the security subsystem 230 or 310 has not been revoked (eg, 'No' in operation 505), in operation 505, it may be determined whether the access authority of the security subsystem 230 or 310 is revoked. According to an embodiment, the authority assignment device 220 may check whether a request signal related to the return of access authority to the security subsystem 230 or 310 is received.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)의 접근 권한이 회수된 것으로 판단한 경우(예: 동작 505의 '예'), 동작 507에서, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 전송한 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))에 보안 서브시스템(230 또는 310)의 접근 권한을 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)의 접근 권한에 대한 복수의 요청 신호들이 수신된 경우, 권한 할당 방식, 접근 권한의 요청 시점 또는 접근 권한의 우선순위 중 적어도 하나에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 전송한 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))에 보안 서브시스템(230 또는 310)의 접근 권한을 할당할 수 있다. According to various embodiments, when the electronic device (eg, the authority assignment unit 220) determines that the access authority of the security subsystem 230 or 310 has been revoked (eg, 'Yes' in operation 505), in operation 507, the security subsystem 230 or the security subsystem 230 or 310) access rights can be assigned. According to an embodiment, when the plurality of request signals for the access right of the security subsystem 230 or 310 are received, the rights assignment device 220 transmits a request signal related to the access right of the security subsystem 230 or 310 based on at least one of the right allocation method, the request time of the access right, or the priority of the access right to the security subsystem 230 or 31 to the processor (eg, the first processor 200 or the second processor 210) that transmits the request signal related to the access right of the security subsystem 230 or 310 0) access rights can be assigned.

다양한 실시예에 따르면, 보안 서브시스템(230 또는 310)은 권할 할당 장치(220)의 제어에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 키를 획득할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230)은 도 2b의 키 선택 모듈(241)을 통해 제 1 프로세서 키 관리 모듈(242) 또는 제 2 프로세서 키 관리 모듈(243)로부터 제 1 프로세서(200)의 키 또는 제 2 프로세서(210)의 키를 획득할 수 있다. 일 실시예에 따르면, 보안 서브시스템(310)은 도 3의 프로세서 키 관리 장치(300)로부터 보안 서브시스템(310)의 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 키(예: 제 1 프로세서(200)의 키 또는 제 2 프로세서(210)의 키)를 획득할 수 있다.According to various embodiments, the security subsystem 230 or 310 may acquire a key of a processor (eg, the first processor 200 or the second processor 210) to which the access authority of the security subsystem 230 or 310 is assigned based on the control of the authority assignment device 220. According to an embodiment, the security subsystem 230 may obtain the key of the first processor 200 or the key of the second processor 210 from the first processor key management module 242 or the second processor key management module 243 through the key selection module 241 of FIG. 2B. According to an embodiment, the security subsystem 310 may acquire a key (eg, a key of the first processor 200 or a key of the second processor 210) of the processor (eg, the first processor 200 or the second processor 210) to which the access authority of the security subsystem 310 is assigned, from the processor key management device 300 of FIG.

도 6은 다양한 실시예에 따른 전자 장치에서 제 1 권한 할당 방식에 기반하여 보안 장치(예: 보안 서브시스템(230 또는 310))의 접근 권한을 할당하기 위한 흐름도(600)이다. 일 실시예에 따르면, 도 6의 동작들은 도 5의 동작 505 및 동작 507의 상세한 동작일 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 6의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다. 이하에서 도 6의 적어도 일부 구성은 도 7을 참조하여 설명할 수 있다. 도 7은 다양한 실시예에 따른 전자 장치에서 제 1 권한 할당 방식에 기반하여 보안 장치의 접근 권한을 할당하기 위한 일예이다. 6 is a flowchart 600 for allocating access rights of a security device (eg, the security subsystem 230 or 310) based on a first rights allocation method in an electronic device according to various embodiments. According to an embodiment, the operations of FIG. 6 may be detailed operations of operations 505 and 507 of FIG. 5 . In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 6 may be the electronic device 101 of FIG. 1 or 2 . Hereinafter, at least some components of FIG. 6 may be described with reference to FIG. 7 . 7 is an example for allocating access rights of a security device based on a first rights allocation method in an electronic device according to various embodiments.

도 6 및 도 7을 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 권한 할당 장치(220))는 동작 601에서, 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되는지 확인할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200)는 도 7과 같이, 보안 기능과 관련된 복수의 작업들이 존재하는 경우, 각각의 작업에 대응하는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(702, 704, 706 및 708)을 권한 할당 장치(220)로 전송할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)이 사용되지 않는 것으로 판단한 경우, 제 1 프로세서(200)(예: AP(application processor))로부터 수신한 복수의 요청 신호들(702, 704, 706 및 708)의 적어도 일부(예: 제 1 작업에 대응하는 요청 신호(702))에 기반하여 제 1 프로세서(200)로 보안 서브시스템(230 또는 310)의 접근 권한을 할당할 수 있다(722). 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 제 1 작업과 관련된 보안 기능을 수행할 수 있다. 제 1 프로세서(200)는 제 1 작업과 관련된 보안 기능의 수행이 완료된 것으로 판단한 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 수신한 경우, 제 1 프로세서(200)와 관련된 데이터의 삭제를 요청하는 신호를 보안 서브시스템(230 또는 310)로 전송할 수 있다. 보안 서브시스템(230 또는 310)은 제 1 프로세서(200)와 관련된 데이터의 삭제를 요청하는 신호에 기반하여 제 1 프로세서(200)와 관련된 데이터를 삭제할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)에서 제 1 프로세서(200)와 관련된 데이터의 삭제가 완료된 것으로 판단한 경우, 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수된 것으로 판단할 수 있다. 일예로, 권한 할당 장치는 유한 상태 기계(FSM)를 통해 보안 서브시스템(230 또는 310)에서 제 1 프로세서(200)와 관련된 데이터의 삭제가 완료되는지 확인할 수 있다. 예를 들어, 권한 할당 장치(220)는 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호가 수신되지 않은 경우, 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되지 않은 것으로 판단할 수 있다.According to various embodiments of the present disclosure with reference to FIGS. 6 and 7 , the electronic device (eg, the permission assignment device 220 of FIG. 2 ) checks whether the access permission to the security subsystem 230 or 310 is recovered from the first processor 200 in operation 601. According to an embodiment, the first processor 200 may transmit request signals 702, 704, 706, and 708 related to the access authority of the security subsystem 230 or 310 corresponding to each task to the permission assignment device 220, as shown in FIG. When the authority allocation device 220 determines that the security subsystem 230 or 310 is not in use, the security subsystem 230 or 3 to the first processor 200 based on at least a part (eg, the request signal 702 corresponding to the first task) of the plurality of request signals 702, 704, 706, and 708 received from the first processor 200 (eg, an application processor (AP)). 10) may be assigned access rights (722). The first processor 200 may perform a security function related to the first task through the security subsystem 230 or 310 based on the access authority assigned by the authority allocation device 220 . When it is determined that the performance of the security function related to the first task is completed, the first processor 200 transmits a request signal related to the return of access rights to the security subsystem 230 or 310 to the rights assignment device 220. For example, when receiving a request signal related to the return of access rights to the security subsystem 230 or 310 from the first processor 200, the rights assignment device 220 may transmit a signal requesting deletion of data related to the first processor 200 to the security subsystem 230 or 310. The security subsystem 230 or 310 may delete data related to the first processor 200 based on a signal requesting deletion of data related to the first processor 200 . When the security subsystem 230 or 310 determines that data related to the first processor 200 has been deleted, the authority assignment device 220 determines that the access authority to the security subsystem 230 or 310 has been recovered from the first processor 200. For example, the authority assignment device may check whether deletion of data related to the first processor 200 is completed in the security subsystem 230 or 310 through a finite state machine (FSM). For example, when a request signal related to the return of the access right to the security subsystem 230 or 310 is not received from the first processor 200, the rights assignment device 220 may determine that the access right to the security subsystem 230 or 310 has not been recovered from the first processor 200.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되지 않은 경우(예: 동작 601의 '아니오'), 보안 서브시스템(230 또는 310)의 접근 권한을 할당하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the access right to the security subsystem 230 or 310 is not retrieved from the first processor 200 (eg, 'No' in operation 601), the electronic device (eg, the authority assignment device 220) may terminate an embodiment for allocating the access authority of the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수된 경우(예: 동작 601의 '예'), 동작 603에서, 제 2 프로세서(210)(예: CP(communication processor))의 권한 요청이 존재하는지 확인할 수 있다. 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 제 1 프로세서(200)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다. According to various embodiments, when the access authority to the security subsystem 230 or 310 is retrieved from the first processor 200 (eg, 'Yes' in operation 601), the electronic device (eg, the authority assignment unit 220) may check whether there is a permission request from the second processor 210 (eg, a communication processor (CP)) in operation 603. As an example, the request signal related to access rights may include information related to the first processor 200 requesting access rights (eg, identification information) and/or a first value indicating a request for access rights (eg '1').

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로 보안 서브시스템(230 또는 310)의 접근 권한을 할당한 경우(722), 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 수신한 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(704, 706, 708, 710 및/또는 712)을 저장할 수 있다. 예를 들어, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(704, 706, 708, 710 및/또는 712)과 관련된 정보는 권한 할당 장치(220)의 메모리(미 도시)에 저장될 수 있다. 예를 들어, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(704, 706, 708, 710 및/또는 712)과 관련된 정보는 제 1 프로세서(200)의 메모리(미 도시) 및/또는 제 2 프로세서(200)의 메모리(미 도시)에 저장될 수 있다. 권한 할당 장치(220)는 권한 할당 장치(220)의 유한 상태 기계(예: 제 3 FSM)를 통해, 제 1 프로세서(200)로 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 상태에서 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(704, 706, 708, 710 및/또는 712)을 확인할 수 있다. 일예로, 제 1 프로세서(200)의 메모리는 제 1 프로세서(200)를 포함하는 프로세서 패키지에 포함된 메모리를 포함할 수 있다. 일예로, 제 2 프로세서(210)의 메모리는 제 2 프로세서(210)를 포함하는 프로세서 패키지에 포함된 메모리를 포함할 수 있다. 일예로, 제 1 프로세서(200)의 메모리 및 제 2 프로세서(200)의 메모리는 제 1 프로세서(200) 및 제 2 프로세서(210)가 포함되는 하나의 프로세서 패키지에 포함된 메모리를 포함할 수 있다.According to an embodiment, when the authority assignment device 220 assigns the access authority of the security subsystem 230 or 310 to the first processor 200 (722), the first processor 200 and/or the second processor 210 transmits request signals 704, 706, 708, 710 and/or 712) can be stored. For example, information related to the request signals 704, 706, 708, 710, and/or 712 related to the access rights of the security subsystem 230 or 310 may be stored in a memory (not shown) of the rights allocation device 220. For example, information related to the request signals 704, 706, 708, 710 and/or 712 related to the access authority of the security subsystem 230 or 310 may be stored in a memory (not shown) of the first processor 200 and/or a memory (not shown) of the second processor 200. The authority assignment unit 220 transmits request signals 704, 706, 70 related to the access authority of the security subsystem 230 or 310 received from the first processor 200 and/or the second processor 210 in a state in which the access authority of the security subsystem 230 or 310 is allocated to the first processor 200 through the finite state machine (eg, the third FSM) of the authority allocation unit 220. 8, 710 and/or 712). For example, the memory of the first processor 200 may include a memory included in a processor package including the first processor 200 . For example, the memory of the second processor 210 may include a memory included in a processor package including the second processor 210 . For example, the memory of the first processor 200 and the memory of the second processor 200 may include a memory included in one processor package including the first processor 200 and the second processor 210 .

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 동안 저장된 요청 신호들(704, 706, 708, 710 및/또는 712) 중 제 1 프로세서(200)와 상이한 제 2 프로세서(210)로부터 수신된 요청 신호(예: 제 5 작업에 대응하는 요청 신호(710))가 존재하는지 확인할 수 있다. 일예로, 지정된 개수는 권한 할당 장치(220)가 저장할 수 있는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호의 최대 개수로, 권한 할당 장치(220)와 관련된 메모리(또는 버퍼, 큐)의 크기에 기반하여 설정될 수 있다. According to an embodiment, the permission assignment device 220 has a request signal received from the second processor 210 different from the first processor 200 among the stored request signals 704, 706, 708, 710 and/or 712 while the access permission of the security subsystem 230 or 310 is assigned to the first processor 200 (eg, the request signal 710 corresponding to the fifth task) exists. you can check if it does. As an example, the designated number is the maximum number of request signals related to the access rights of the security subsystem 230 or 310 that can be stored by the rights assignment device 220, and may be set based on the size of the memory (or buffer or queue) related to the rights assignment device 220.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 제 2 프로세서(210)의 권한 요청이 존재하는 경우(예: 동작 603의 '예'), 동작 605에서, 보안 서브시스템(230 또는 310)의 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 권한 할당 방식(예: semaphore 방식)을 사용하는 경우, 하나의 프로세서(예: 제 1 프로세서(200))로부터 연속적으로 수신한 복수의 요청 신호들(702, 704, 706 및 708)의 하나의 요청 신호로 판단할 수 있다. 권한 할당 장치(220)는 제 1 프로세서(200)로부터 수신한 복수의 요청 신호들(702, 704, 706 및 708)에 기반하여 이전 시점에 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당한 경우, 제 2 프로세서(210)의 요청 신호(710 및/또는 712)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 제 5 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, the electronic device (eg, the authority assignment device 220) may allocate the access authority of the security subsystem 230 or 310 to the second processor 210 in operation 605 when there is a request for authority from the second processor 210 (eg, 'Yes' in operation 603). According to an embodiment, when the first permission assignment method (eg, semaphore method) is used, the permission assignment device 220 may determine that one of the plurality of request signals 702, 704, 706, and 708 successively received from one processor (for example, the first processor 200) is one request signal. When the authority allocation unit 220 allocates the access authority of the security subsystem 230 or 310 to the first processor 200 at a previous time based on the plurality of request signals 702, 704, 706 and 708 received from the first processor 200, the security subsystem 230 or 310 is based on the request signals 710 and/or 712 of the second processor 210. ) may be assigned to the second processor 210. The second processor 210 may perform a security function related to the fifth task through the security subsystem 230 or 310 based on the access authority allocated from the authority allocation device 220 .

일 실시예에 따르면, 보안 서브시스템(230 또는 310)은 권할 할당 장치(220)의 제어에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 제 2 프로세서(210)의 키를 획득할 수 있다. 예를 들어, 보안 서브시스템(230)은 도 2b의 키 선택 모듈(241)을 통해 제 2 프로세서 키 관리 모듈(243)로부터 제 2 프로세서(210)의 키를 획득할 수 있다. 예를 들어, 보안 서브시스템(310)은 도 3의 프로세서 키 관리 장치(300)로부터 제 2 프로세서(210)의 키를 획득할 수 있다.According to an embodiment, the security subsystem 230 or 310 may acquire the key of the second processor 210 to which the access authority of the security subsystem 230 or 310 is assigned based on the control of the authority assignment device 220. For example, the security subsystem 230 may obtain the key of the second processor 210 from the second processor key management module 243 through the key selection module 241 of FIG. 2B. For example, the security subsystem 310 may obtain the key of the second processor 210 from the processor key management device 300 of FIG. 3 .

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 제 2 프로세서(210)의 권한 요청이 존재하지 않고, 제 1 프로세서(200)의 권한 요청이 존재하는 경우(예: 동작 603의 '아니오'), 동작 607에서, 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(210)에 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)로 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 동안 제 1 프로세서(200)로부터 복수의 요청 신호들(704, 706 및 708)만 수신한 경우, 제 1 프로세서(200)의 제 2 작업에 대응하는 요청 신호(704)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 제 2 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, the electronic device (eg, the authority assignment device 220) may allocate the access authority of the security subsystem 230 or 310 to the first processor 210 in operation 607 when the authority request of the second processor 210 does not exist and the authority request of the first processor 200 exists (eg, 'No' in operation 603). According to an embodiment, when the authority assignment device 220 receives only a plurality of request signals 704, 706, and 708 from the first processor 200 while the access authority of the security subsystem 230 or 310 is assigned to the first processor 200, the access of the security subsystem 230 or 310 based on the request signal 704 corresponding to the second task of the first processor 200 Authority may be assigned to the first processor 200 . The first processor 200 may perform a security function related to the second task through the security subsystem 230 or 310 based on the access authority assigned by the authority allocation device 220 .

일 실시예에 따르면, 보안 서브시스템(230 또는 310)은 권할 할당 장치(220)의 제어에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 제 1 프로세서(200)의 키를 획득할 수 있다. 예를 들어, 보안 서브시스템(230)은 도 2b의 키 선택 모듈(241)을 통해 제 1 프로세서 키 관리 모듈(242)로부터 제 1 프로세서(200)의 키를 획득할 수 있다. 예를 들어, 보안 서브시스템(310)은 도 3의 프로세서 키 관리 장치(300)로부터 제 1 프로세서(110)의 키를 획득할 수 있다.According to an embodiment, the security subsystem 230 or 310 may acquire the key of the first processor 200 to which the access authority of the security subsystem 230 or 310 is assigned based on the control of the authority assignment device 220. For example, the security subsystem 230 may acquire the key of the first processor 200 from the first processor key management module 242 through the key selection module 241 of FIG. 2B. For example, the security subsystem 310 may obtain the key of the first processor 110 from the processor key management device 300 of FIG. 3 .

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 제 2 프로세서(210)로부터 보안 서브시스템(230 또는 310)의 접근 권한을 회수한 경우, 제 1 프로세서(200)의 제 2 작업에 대응하는 요청 신호(704)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 제 2 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, when the electronic device (eg, the authority assignment device 220) retrieves the access authority of the security subsystem 230 or 310 from the second processor 210, the access authority of the security subsystem 230 or 310 may be allocated to the first processor 200 based on the request signal 704 corresponding to the second task of the first processor 200. The first processor 200 may perform a security function related to the second task through the security subsystem 230 or 310 based on the access authority assigned by the authority allocation device 220 .

도 8은 다양한 실시예에 따른 전자 장치에서 권한 요청 시점에 기반하여 보안 장치(예: 보안 서브시스템(230 또는 310))의 접근 권한을 할당하기 위한 흐름도(800)이다. 일 실시예에 따르면, 도 8의 동작들은 도 5의 동작 505 및 동작 507의 상세한 동작일 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 8의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다. 이하에서 도 8의 적어도 일부 구성은 도 9를 참조하여 설명할 수 있다. 도 9는 다양한 실시예에 따른 전자 장치에서 권한 요청 시점에 기반하여 보안 장치의 접근 권한을 할당하기 위한 일예이다.8 is a flowchart 800 for allocating access rights of a security device (eg, the security subsystem 230 or 310) based on a permission request time point in an electronic device according to various embodiments. According to an embodiment, the operations of FIG. 8 may be detailed operations of operations 505 and 507 of FIG. 5 . In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 8 may be the electronic device 101 of FIG. 1 or 2 . Hereinafter, at least some components of FIG. 8 may be described with reference to FIG. 9 . 9 is an example of allocating access rights of a security device based on a permission request time point in an electronic device according to various embodiments.

도 8 및 도 9를 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 권한 할당 장치(220))는 동작 801에서, 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되는지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 수신한 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 전송한 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))와 관련된 데이터의 삭제를 요청하는 신호를 보안 서브시스템(230 또는 310)로 전송할 수 있다. 보안 서브시스템(230 또는 310)은 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 전송한 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))와 관련된 데이터의 삭제를 요청하는 신호에 기반하여 제 1 프로세서(200) 또는 제 2 프로세서(210)와 관련된 데이터를 삭제할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)에서 제 1 프로세서(200) 또는 제 2 프로세서(210)와 관련된 데이터의 삭제가 완료된 것으로 판단한 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수된 것으로 판단할 수 있다. 일예로, 권한 할당 장치는 유한 상태 기계(FSM)를 통해 보안 서브시스템(230 또는 310)에서 제 1 프로세서(200) 또는 제 2 프로세서(210)와 관련된 데이터의 삭제가 완료되는지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호가 수신되지 않은 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되지 않은 것으로 판단할 수 있다.According to various embodiments of the present disclosure with reference to FIGS. 8 and 9 , the electronic device (eg, the permission assignment device 220 of FIG. 2 ) may check in operation 801 whether the access right to the security subsystem 230 or 310 is revoked. According to an embodiment, when receiving a request signal related to the return of the access right to the security subsystem 230 or 310 from the first processor 200 or the second processor 210, the rights assignment unit 220 transmits the request signal related to the return of the access right to the security subsystem 230 or 310 (eg, a signal requesting deletion of data related to the first processor 200 or the second processor 210). may be transmitted to the security subsystem 230 or 310. The security subsystem 230 or 310 may delete data related to the first processor 200 or the second processor 210 based on a signal requesting deletion of data related to the processor (e.g., the first processor 200 or the second processor 210) that has transmitted the request signal related to the return of the access right to the security subsystem 230 or 310. When the security subsystem 230 or 310 determines that data related to the first processor 200 or the second processor 210 has been deleted, the authority assignment device 220 determines that the access authority to the security subsystem 230 or 310 has been revoked. For example, the authority assignment device may check whether deletion of data related to the first processor 200 or the second processor 210 is completed in the security subsystem 230 or 310 through a finite state machine (FSM). According to an embodiment, when the request signal related to the return of the access right to the security subsystem 230 or 310 is not received from the first processor 200 or the second processor 210, the rights assignment device 220 may determine that the access right to the security subsystem 230 or 310 has not been recovered.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되지 않은 경우(예: 동작 801의 '아니오'), 보안 서브시스템(230 또는 310)의 접근 권한을 할당하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the access right to the security subsystem 230 or 310 is not recovered (eg, 'No' in operation 801), the electronic device (eg, the authority assignment device 220) may terminate an embodiment for allocating the access authority of the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)에 대한 접근 권한을 회수한 경우(예: 동작 801의 '예'), 동작 803에서, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)의 권한 요청 시점에 기반하여 보안 서브시스템(230 또는 310)에 대한 접근 권한을 할당하기 위한 프로세서를 선택할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)(예: AP) 또는 제 2 프로세서(210)(예: CP)로 보안 서브시스템(230 또는 310)의 접근 권한을 할당한 경우, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 수신한 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(902, 904, 906, 908, 910 및/또는 912)을 저장할 수 있다. 일예로, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(902, 904, 906, 908, 910 및/또는 912)과 관련된 정보는 권한 할당 장치(220)의 메모리(미 도시)에 저장될 수 있다. 권한 할당 장치(220)는 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 수신한 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(902, 904, 906, 908, 910 및/또는 912) 중 접근 권한의 요청 시점(예: 902)이 가장 빠른 제 2 프로세서(210)를 보안 서브시스템(230 또는 310)의 접근 권한을 할당하기 위한 프로세서로 선택할 수 있다. According to various embodiments, when the access right to the security subsystem 230 or 310 is retrieved (eg, 'Yes' in operation 801), the electronic device (eg, the authority assignment device 220) may select a processor for allocating the access authority to the security subsystem 230 or 310 based on the authority request timing of the first processor 200 and/or the second processor 210 in operation 803. According to an embodiment, when the authority allocation device 220 allocates the access authority of the security subsystem 230 or 310 to the first processor 200 (eg, AP) or the second processor 210 (eg, CP), the request signals 902 and 90 related to the access authority of the specified number of security subsystems 230 or 310 received from the first processor 200 and/or the second processor 210 4, 906, 908, 910 and/or 912). For example, information related to request signals 902, 904, 906, 908, 910, and/or 912 related to access rights of the security subsystem 230 or 310 may be stored in a memory (not shown) of the rights allocation device 220. The authority assignment unit 220 assigns the second processor 210 at which the access authority request time point (eg, 902) is the earliest among the request signals 902, 904, 906, 908, 910, and/or 912 related to the access authority of the specified number of security subsystems 230 or 310 received from the first processor 200 and/or the second processor 210. 0 or 310) can be selected as the processor for assigning access rights.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 동작 805에서, 보안 서브시스템(230 또는 310)에 대한 접근 권한을 할당하기 위해 선택된 프로세서로 보안 서브시스템(230 또는 310)의 접근 권한을 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 2 권한 할당 방식(예: queue 방식)을 사용하고 제 1 프로세서(200) 및 제 2 프로세서(210)의 우선순위가 설정되지 않은 경우, 보안 서브시스템(230 또는 310)의 접근 권한의 요청 시점에 기반하여 순차적으로 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200) 또는 제 2 프로세서(210)로 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 도 9와 같이, 제 2 프로세서(210)의 권한 요청 시점이 가장 빠른 경우, 제 2 프로세서(210)의 요청 신호(902)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(902)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, the electronic device (e.g., the authority assignment device 220) may allocate the access authority of the security subsystem 230 or 310 to a processor selected to allocate access authority to the security subsystem 230 or 310 in operation 805. According to one embodiment, when the second permission assignment method (eg, queue method) is used and the priorities of the first processor 200 and the second processor 210 are not set, the permission assignment device 220 sequentially allocates the access permission of the security subsystem 230 or 310 to the first processor 200 or the second processor 210 based on the request time of the access permission of the security subsystem 230 or 310. there is For example, as shown in FIG. 9 , when the second processor 210 requests permission at the earliest, the access right of the security subsystem 230 or 310 may be allocated to the second processor 210 based on the request signal 902 of the second processor 210. The second processor 210 may perform a security function related to a task corresponding to the request signal 902 through the security subsystem 230 or 310 based on the access authority allocated from the authority allocation device 220 .

다양한 실시예에 따르면, 보안 서브시스템(230 또는 310)은 권할 할당 장치(220)의 제어에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 키를 획득할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 키는 도 2b와 같이, 보안 서브시스템(230)의 내부에 포함된 제 1 프로세서 키 관리 모듈(242) 또는 제 2 프로세서 키 관리 모듈(243)로부터 획득될 수 있다. 일 실시예에 따르면, 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 키는 도 3과 같이, 보안 서브시스템(310)과 별도의 프로세서 키 관리 장치(300)로부터 획득될 수 있다.According to various embodiments, the security subsystem 230 or 310 may acquire a key of a processor (eg, the first processor 200 or the second processor 210) to which the access authority of the security subsystem 230 or 310 is assigned based on the control of the authority assignment device 220. According to an embodiment, the key of the processor (e.g., the first processor 200 or the second processor 210) to which the access authority of the security subsystem 230 or 310 is assigned may be obtained from the first processor key management module 242 or the second processor key management module 243 included in the security subsystem 230, as shown in FIG. 2B. According to one embodiment, the key of the processor (e.g., the first processor 200 or the second processor 210) to which the access authority of the security subsystem 230 or 310 is assigned may be obtained from the security subsystem 310 and the separate processor key management device 300, as shown in FIG.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 제 2 프로세서(210)로부터 보안 서브시스템(230 또는 310)의 접근 권한을 회수한 경우, 제 1 프로세서(200)의 요청 신호(904)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(904)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, when the electronic device (eg, the authority assignment device 220) retrieves the access authority of the security subsystem 230 or 310 from the second processor 210, the access authority of the security subsystem 230 or 310 may be allocated to the first processor 200 based on the request signal 904 of the first processor 200. The first processor 200 may perform a security function related to a task corresponding to the request signal 904 through the security subsystem 230 or 310 based on the access authority allocated from the authority allocation device 220 .

도 10은 다양한 실시예에 따른 전자 장치에서 권한 할당 우선순위에 기반하여 보안 장치(예: 보안 서브시스템(230 또는 310))의 접근 권한을 할당하기 위한 흐름도(1000)이다. 일 실시예에 따르면, 도 10의 동작들은 도 5의 동작 505 및 동작 507의 상세한 동작일 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 10의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다. 이하에서 도 10의 적어도 일부 구성은 도 11 및 도 12를 참조하여 설명할 수 있다. 도 11은 다양한 실시예에 따른 전자 장치에서 권한 할당 우선순위에 기반하여 보안 장치의 접근 권한을 할당하기 위한 일예이다. 도 12는 다양한 실시예에 따른 전자 장치에서 권한 할당 우선순위에 기반하여 보안 장치의 접근 권한을 할당하기 위한 다른 일예이다.10 is a flowchart 1000 for allocating access rights of a security device (eg, the security subsystem 230 or 310) based on the priority of rights allocation in an electronic device according to various embodiments. According to an embodiment, the operations of FIG. 10 may be detailed operations of operations 505 and 507 of FIG. 5 . In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 10 may be the electronic device 101 of FIG. 1 or 2 . Hereinafter, at least some components of FIG. 10 may be described with reference to FIGS. 11 and 12 . 11 is an example for allocating access rights of a security device based on rights allocation priority in an electronic device according to various embodiments. 12 is another example of allocating access rights of a security device based on rights allocation priority in an electronic device according to various embodiments.

도 10, 도 11 및/또는 도 12를 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 권한 할당 장치(220))는 동작 1001에서, 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되는지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200)(예: AP) 또는 제 2 프로세서(210)(예: CP)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 수신한 경우, 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제를 요청하는 신호를 보안 서브시스템(230 또는 310)로 전송할 수 있다. 보안 서브시스템(230 또는 310)은 데이터의 삭제를 요청하는 신호에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터를 삭제할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230 또는 310)에서 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제가 완료된 것으로 판단한 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수된 것으로 판단할 수 있다. 일예로, 권한 할당 장치는 유한 상태 기계(FSM)를 통해 보안 서브시스템(230 또는 310)에서 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서와 관련된 데이터의 삭제가 완료되는지 확인할 수 있다. 일예로, 보안 서브시스템(230 또는 310)의 접근 권한이 할당되었던 프로세서는 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 전송한 프로세서를 포함할 수 있다.According to various embodiments of the present disclosure referring to FIGS. 10, 11, and/or 12, the electronic device (e.g., the rights assignment device 220 of FIG. 2) checks in operation 1001 whether the right to access the security subsystem 230 or 310 is revoked. According to an embodiment, the authority assignment device 220 may transmit, to the security subsystem 230 or 310, a signal requesting deletion of data related to the processor to which the access authority of the security subsystem 230 or 310 has been assigned when receiving a request signal related to the return of the access authority to the security subsystem 230 or 310 from the first processor 200 (eg AP) or the second processor 210 (eg CP). The security subsystem 230 or 310 may delete data related to the processor to which the access authority of the security subsystem 230 or 310 has been assigned based on a signal requesting deletion of data. When the security subsystem 230 or 310 determines that the data related to the processor to which the security subsystem 230 or 310 has been assigned has been deleted, the authority assignment unit 220 determines that the access authority to the security subsystem 230 or 310 has been recovered. For example, the authority assignment device may check whether deletion of data related to a processor to which access rights of the security subsystem 230 or 310 have been assigned is completed in the security subsystem 230 or 310 through a finite state machine (FSM). For example, the processor to which the access authority of the security subsystem 230 or 310 has been assigned may include a processor that transmits a request signal related to the return of the access authority to the security subsystem 230 or 310 .

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호가 수신되지 않은 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되지 않은 것으로 판단할 수 있다.According to an embodiment, when the request signal related to the return of the access right to the security subsystem 230 or 310 is not received from the first processor 200 or the second processor 210, the rights assignment device 220 may determine that the access right to the security subsystem 230 or 310 has not been recovered.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)에 대한 접근 권한이 회수되지 않은 경우(예: 동작 1001의 '아니오'), 보안 서브시스템(230 또는 310)의 접근 권한을 할당하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the access right to the security subsystem 230 or 310 is not recovered (eg, 'No' in operation 1001), the electronic device (eg, the authority assignment device 220) may end an embodiment for allocating the access authority of the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 보안 서브시스템(230 또는 310)에 대한 접근 권한을 회수한 경우(예: 동작 1001의 '예'), 동작 1003에서, 우선순위가 설정된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 권한 요청이 존재하는지 확인할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로 보안 서브시스템(230 또는 310)의 접근 권한을 할당한 경우, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 수신한 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(1102, 1104, 1106, 1108, 1110 및/또는 1112)을 저장할 수 있다. 일예로, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(1102, 1104, 1106, 1108, 1110 및/또는 1112)과 관련된 정보는 권한 할당 장치(220)의 메모리(미 도시)에 저장될 수 있다. 권한 할당 장치(220)는 제 1 프로세서(200)에 보안 서브시스템(230 또는 310)에 대한 접근 권한의 우선순위가 설정된 경우, 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(1102, 1104, 1106, 1108, 1110 및/또는 1112) 중 제 1 프로세서(200)로부터 수신한 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호(예: 1104, 1108 및/또는 1112)가 존재하는지 확인할 수 있다. According to various embodiments, when the electronic device (eg, the authority assignment device 220) retrieves the access authority to the security subsystem 230 or 310 (eg, 'yes' in operation 1001), in operation 1003, it may check whether there is a permission request from a processor (eg, the first processor 200 or the second processor 210) to which priority is set. According to an embodiment, when the authority assignment device 220 allocates the access authority of the security subsystem 230 or 310 to the first processor 200 or the second processor 210, the request signals 1102, 1104, 1106, 1108, 1110 and/or 1112). For example, information related to the request signals 1102, 1104, 1106, 1108, 1110, and/or 1112 related to the access rights of the security subsystem 230 or 310 may be stored in a memory (not shown) of the rights allocation device 220. When the priority of access rights to the security subsystems 230 or 310 is set in the first processor 200, the rights assignment device 220 transmits the security subsystem received from the first processor 200 among the request signals 1102, 1104, 1106, 1108, 1110 and/or 1112 related to the access rights of the specified number of security subsystems 230 or 310 ( 230 or 310) may check whether a request signal (eg, 1104, 1108, and/or 1112) related to the access authority exists.

일 실시예에 따르면, 권한 할당 장치(220)는 제 1 프로세서(200) 또는 제 2 프로세서(210)로 보안 서브시스템(230 또는 310)의 접근 권한을 할당한 경우, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)로부터 수신한 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(1202, 1204, 1206, 1208, 1210 및/또는 1212)을 저장할 수 있다. 일예로, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(1202, 1204, 1206, 1208, 1210 및/또는 1212)과 관련된 정보는 권한 할당 장치(220)의 메모리(미 도시)에 저장될 수 있다. 권한 할당 장치(220)는 제 2 프로세서(200)에 보안 서브시스템(230 또는 310)에 대한 접근 권한의 우선순위가 설정된 경우, 지정된 개수의 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호들(1202, 1204, 1206, 1208, 1210 및/또는 1212) 중 제 2 프로세서(210)로부터 수신한 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호(예: 1210 및/또는 1212)가 존재하는지 확인할 수 있다.According to an embodiment, when the authority assignment device 220 allocates the access authority of the security subsystem 230 or 310 to the first processor 200 or the second processor 210, the request signals 1202, 1204, 1206, 1208, 1210 and/or 1212). For example, information related to the request signals 1202, 1204, 1206, 1208, 1210, and/or 1212 related to the access rights of the security subsystem 230 or 310 may be stored in a memory (not shown) of the rights allocation device 220. When the priority of the access rights to the security subsystem 230 or 310 is set in the second processor 200, the rights assignment device 220 transmits the security subsystem received from the second processor 210 among the request signals 1202, 1204, 1206, 1208, 1210 and/or 1212 related to the access rights of the specified number of security subsystems 230 or 310 ( 230 or 310) may check whether a request signal (eg, 1210 and/or 1212) related to the access authority exists.

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 우선순위가 설정된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 권한 요청이 존재하는 경우(예: 동작 1003의 '예'), 동작 1005에서, 보안 서브시스템(230 또는 310)의 접근 권한을 우선순위가 설정된 프로세서에 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 도 11을 참조하면, 제 2 권한 할당 방식(예: queue 방식)을 사용하고 제 1 프로세서(200)에 우선순위가 설정된 경우, 제 1 프로세서(200)로부터 수신한 요청 신호들(1104, 1108 및 1112) 중 가장 먼저 수신한 요청 신호(1104)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(1104)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, the electronic device (eg, the authority assignment device 220) may allocate the access authority of the security subsystem 230 or 310 to the processor for which the priority is set, in operation 1005, when there is a request for authority from the processor (eg, the first processor 200 or the second processor 210) for which priority is set (eg, 'Yes' in operation 1003). According to one embodiment, referring to FIG. 11 , the permission allocation device 220 controls the access authority of the security subsystem 230 or 310 based on the request signal 1104 received first among the request signals 1104 , 1108 and 1112 received from the first processor 200 when the second permission allocation method (eg, queue method) is used and the priority is set in the first processor 200 . 1 can be assigned to the processor 200. The first processor 200 may perform a security function related to a task corresponding to the request signal 1104 through the security subsystem 230 or 310 based on the access authority allocated from the authority allocation device 220 .

일 실시예에 따르면, 권한 할당 장치(220)는 도 12를 참조하면, 제 2 권한 할당 방식(예: queue 방식)을 사용하고 제 2 프로세서(210)에 우선순위가 설정된 경우, 제 2 프로세서(210)로부터 수신한 요청 신호들(1210 및 1212) 중 가장 먼저 수신한 요청 신호(1210)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(1210)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다.According to one embodiment, referring to FIG. 12, the permission allocation device 220 assigns the access authority of the security subsystem 230 or 310 to the second processor 210 based on the request signal 1210 received first among the request signals 1210 and 1212 received from the second processor 210 when a second permission allocation method (eg, a queue method) is used and a priority is set to the second processor 210. ) can be assigned to The second processor 210 may perform a security function related to a task corresponding to the request signal 1210 through the security subsystem 230 or 310 based on the access authority assigned by the authority allocation device 220 .

일 실시예에 따르면, 보안 서브시스템(230 또는 310)은 권할 할당 장치(220)의 제어에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 제 2 프로세서(210)의 키를 획득할 수 있다. 예를 들어, 제 2 프로세서(210)의 키는 도 2b와 같이, 보안 서브시스템(230)에 내부에 포함된 제 2 프로세서 키 관리 모듈(243)로부터 획득될 수 있다. 예를 들어, 제 2 프로세서(210)의 키는 도 3과 같이, 보안 서브시스템(310)와 별도의 프로세서 키 관리 장치(300)로부터 획득될 수 있다.According to an embodiment, the security subsystem 230 or 310 may obtain the key of the second processor 210 to which the access authority of the security subsystem 230 or 310 is assigned based on the control of the authority assignment device 220. For example, the key of the second processor 210 may be obtained from the second processor key management module 243 included in the security subsystem 230, as shown in FIG. 2B. For example, as shown in FIG. 3 , the key of the second processor 210 may be acquired from the security subsystem 310 and a separate processor key management device 300 .

다양한 실시예에 따르면, 전자 장치(예: 권한 할당 장치(220))는 우선순위가 설정된 프로세서(예: 제 1 프로세서(200) 또는 제 2 프로세서(210))의 권한 요청이 존재하지 않는 경우(예: 동작 1003의 '아니오'), 동작 1007에서, 우선순위가 설정되지 않은 다른 프로세서의 권한 요청에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 다른 프로세서에 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 도 11을 참조하면, 제 1 프로세서(200)로부터 보안 서브시스템(230 또는 310)의 접근 권한을 회수한 경우, 우선순위가 설정된 제 1 프로세서(200)의 요청 신호(1108)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(1108)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다. 예를 들어, 권한 할당 장치(220)는 우선순위가 설정된 제 1 프로세서(200)의 권한 요청이 존재하는 경우, 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 반복적으로 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 우선순위가 설정된 제 1 프로세서(200)의 권한 요청이 존재하지 않는 경우, 우선순위가 설정되지 않은 제 2 프로세서(210)의 요청 신호(1102)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(1102)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다.According to various embodiments, the electronic device (eg, the authority assignment device 220) may allocate the access authority of the security subsystem 230 or 310 to another processor based on the authority request of another processor for which priority is not set, in operation 1007, when there is no authority request from the processor (eg, the first processor 200 or the second processor 210) to which priority is set (eg, 'No' in operation 1003). According to an embodiment, referring to FIG. 11 , when the access right of the security subsystem 230 or 310 is retrieved from the first processor 200, the access right of the security subsystem 230 or 310 may be allocated to the first processor 200 based on the request signal 1108 of the first processor 200 to which priority is set. The first processor 200 may perform a security function related to a task corresponding to the request signal 1108 through the security subsystem 230 or 310 based on the access authority assigned by the authority allocation device 220 . For example, if there is a permission request from the first processor 200 for which priority is set, the permission assignment device 220 may repeatedly allocate the access permission of the security subsystem 230 or 310 to the first processor 200. For example, if there is no permission request from the first processor 200 for which priority is set, the permission assignment device 220 may allocate the access permission of the security subsystem 230 or 310 to the second processor 210 based on the request signal 1102 of the second processor 210 for which priority is not set. The second processor 210 may perform a security function related to a task corresponding to the request signal 1102 through the security subsystem 230 or 310 based on the access authority assigned by the authority allocation device 220 .

일 실시예에 따르면, 권한 할당 장치(220)는 도 12를 참조하면, 제 2 프로세서(200)로부터 보안 서브시스템(230 또는 310)의 접근 권한을 회수한 경우, 우선순위가 설정된 제 2 프로세서(210)의 요청 신호(1212)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 2 프로세서(210)에 할당할 수 있다. 제 2 프로세서(210)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(1212)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다. 권한 할당 장치(220)는 우선순위가 설정된 제 2 프로세서(210)의 권한 요청이 존재하지 않는 경우, 우선순위가 설정되지 않은 제 1 프로세서(200)의 요청 신호(1202)에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 제 1 프로세서(200)에 할당할 수 있다. 제 1 프로세서(200)는 권한 할당 장치(220)로부터 할당받은 접근 권한에 기반하여 보안 서브시스템(230 또는 310)을 통해 요청 신호(1202)에 대응하는 작업과 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230 또는 310)은 권할 할당 장치(220)의 제어에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 제 1 프로세서(200)의 키를 획득할 수 있다. 예를 들어, 제 1 프로세서(200)의 키는 도 2b와 같이, 보안 서브시스템(230)의 내부에 포함된 제 1 프로세서 키 관리 모듈(242)로부터 획득될 수 있다. 예를 들어, 제 1 프로세서(200)의 키는 도 3과 같이, 보안 서브시스템(310)와 별도의 프로세서 키 관리 장치(300)로부터 획득될 수 있다.According to an embodiment, referring to FIG. 12 , when the access right of the security subsystem 230 or 310 is retrieved from the second processor 200, the access right of the security subsystem 230 or 310 may be allocated to the second processor 210 based on the request signal 1212 of the second processor 210 in which priority is set. The second processor 210 may perform a security function related to a task corresponding to the request signal 1212 through the security subsystem 230 or 310 based on the access authority allocated from the authority allocation device 220 . When there is no permission request from the second processor 210 for which priority is set, the permission assignment device 220 may allocate the access permission of the security subsystem 230 or 310 to the first processor 200 based on the request signal 1202 of the first processor 200 for which priority is not set. The first processor 200 may perform a security function related to a task corresponding to the request signal 1202 through the security subsystem 230 or 310 based on the access authority allocated from the authority allocation device 220 . According to an embodiment, the security subsystem 230 or 310 may acquire the key of the first processor 200 to which the access authority of the security subsystem 230 or 310 is assigned based on the control of the authority assignment device 220. For example, the key of the first processor 200 may be obtained from the first processor key management module 242 included in the security subsystem 230, as shown in FIG. 2B. For example, as shown in FIG. 3 , the key of the first processor 200 may be obtained from the security subsystem 310 and a separate processor key management device 300 .

도 13은 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230 또는 310))의 접근 권한을 요청하기 위한 흐름도(1300)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 13의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다. 13 is a flowchart 1300 for requesting an access right of a security device (eg, the security subsystem 230 or 310) in an electronic device according to various embodiments. In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 13 may be the electronic device 101 of FIG. 1 or 2 .

도 13을 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 동작 1301에서, 보안 서브시스템(230 또는 310)을 이용한 보안 기능을 수행할 것인지 판단할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(230 또는 310)을 이용한 보안 기능을 수행하는 것으로 판단할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간에 기반하여 보안 서브시스템(230 또는 310)을 통해 완료하지 못한 작업이 존재하는 경우, 보안 서브시스템(230 또는 310)을 이용한 보안 기능을 수행하는 것으로 판단할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하지 않는 경우, 보안 서브시스템(230 또는 310)을 이용한 보안 기능을 수행하지 않는 것으로 판단할 수 있다.According to various embodiments of the present disclosure referring to FIG. 13 , the electronic device (eg, the first processor 200 and/or the second processor 210 of FIG. 2 ) determines whether to perform a security function using the security subsystem 230 or 310 in operation 1301. According to an embodiment, the first processor 200 and/or the second processor 210 may determine that a security function using the security subsystem 230 or 310 is performed when at least one job related to the security function exists. According to an embodiment, the second processor 210 may determine that a security function using the security subsystem 230 or 310 is performed when there is a task that has not been completed through the security subsystem 230 or 310 based on the designated reference time. According to an embodiment, the first processor 200 and/or the second processor 210 may determine that the security function using the security subsystem 230 or 310 is not performed when at least one job related to the security function does not exist.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)을 이용한 보안 기능을 수행하지 않는 것으로 판단한 경우(예: 동작 1301의 '아니오'), 보안 서브시스템(230 또는 310)의 접근 권한을 요청하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when it is determined that the electronic device (eg, the first processor 200 and/or the second processor 210) does not perform a security function using the security subsystem 230 or 310 (eg, 'No' in operation 1301), an embodiment for requesting access authority of the security subsystem 230 or 310 may be terminated.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)을 이용한 보안 기능을 수행하는 것으로 판단한 경우(예: 동작 1301의 '예'), 동작 1303에서, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 프로세서와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다.According to various embodiments, when it is determined that the electronic device (eg, the first processor 200 and/or the second processor 210) performs a security function using the security subsystem 230 or 310 (eg, 'Yes' in operation 1301), in operation 1303, a request signal related to the access authority of the security subsystem 230 or 310 may be transmitted to the authority allocation device 220. For example, a request signal related to access rights may include information (eg, identification information) related to a processor requesting access rights and/or a first value (eg, '1') indicating a request for access rights.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 동작 1305에서, 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한이 할당되는지 확인할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호에 대한 응답으로 권한 할당 장치(220)로부터 ACK 신호를 수신한 경우, 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 것으로 판단할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 및/또는 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호에 대한 응답으로 권한 할당 장치(220)로부터 ACK 신호를 수신하지 못한 경우, 보안 서브시스템(230 또는 310)의 접근 권한이 할당되지 않은 것으로 판단할 수 있다.According to various embodiments, the electronic device (eg, the first processor 200 and/or the second processor 210), in operation 1305, determines whether the security subsystem 230 or 310 is assigned access rights from the rights assignment device 220. According to an embodiment, the first processor 200 and/or the second processor 210 may determine that the access authority of the security subsystem 230 or 310 has been assigned when an ACK signal is received from the authority assignment device 220 in response to a request signal related to the access authority of the security subsystem 230 or 310. According to an embodiment, the first processor 200 and/or the second processor 210 may determine that the access authority of the security subsystem 230 or 310 is not assigned when an ACK signal is not received from the authority assignment device 220 in response to a request signal related to the access authority of the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한이 할당되지 않은 것으로 판단한 경우(예: 동작 1305의 '아니오'), 보안 서브시스템(230 또는 310)의 접근 권한을 요청하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the electronic device (eg, the first processor 200 and/or the second processor 210) determines that the access authority of the security subsystem 230 or 310 is not assigned by the authority assignment device 220 (eg, 'No' in operation 1305), an embodiment for requesting the access authority of the security subsystem 230 or 310 may be terminated.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 것으로 판단한 경우(예: 동작 1305의 '예'), 동작 1307에서, 보안 서브시스템(230 또는 310)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 제 1 프로세서(200) 또는 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)의 접근 권한을 할당 받기 위해 권한 할당 장치(220)로 전송한 요청 신호에 대응하는 적어도 하나의 작업과 관련된 보안 기능을 보안 서브시스템(230 또는 310)을 통해 수행할 수 있다. According to various embodiments, when the electronic device (eg, the first processor 200 and/or the second processor 210) determines that the access authority of the security subsystem 230 or 310 has been assigned by the authority assignment device 220 (eg, 'yes' in operation 1305), in operation 1307, it may perform a security function related to at least one task through the security subsystem 230 or 310. According to an embodiment, the first processor 200 or the second processor 210 may perform a security function related to at least one task corresponding to a request signal transmitted to the authority assignment device 220 to be assigned an access authority of the security subsystem 230 or 310 through the security subsystem 230 or 310.

다양한 실시예에 따르면, 제 1 프로세서(200) 또는 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)을 통해 적어도 하나의 작업과 관련된 보안 기능의 수행을 완료한 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 요청하는 프로세서와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내는 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when the first processor 200 or the second processor 210 completes performing a security function related to at least one task through the security subsystem 230 or 310, the security subsystem 230 or 310 may transmit a request signal related to the return of access rights to the authority assignment device 220. As an example, the request signal related to the return of the access right differs from the first value indicating the request for information (e.g., identification information) and/or the request for the access right related to the processor requesting the return of the access right. It may include a second value (eg '0').

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)의 접근 권한을 할당받은 시점부터 지정된 기준시간이 경과하는 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. According to various embodiments, the second processor 210 may transmit a request signal related to the return of the access authority to the security subsystem 230 or 310 to the authority assignment device 220 when a specified reference time elapses from the time when the access authority of the security subsystem 230 or 310 is allocated.

도 14는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230 또는 310))의 접근 권한을 반환하기 위한 흐름도(1400)이다. 일 실시예에 따르면, 도 14의 동작들은 도 13의 동작 1307의 상세한 동작일 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 14의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다. 14 is a flowchart 1400 for returning an access right of a security device (eg, the security subsystem 230 or 310) in an electronic device according to various embodiments. According to one embodiment, the operations of FIG. 14 may be detailed operations of operation 1307 of FIG. 13 . In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 14 may be the electronic device 101 of FIG. 1 or 2 .

도 14를 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 제 2 프로세서(210))는 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한을 할당받은 경우(예: 도 13의 동작 1305의 '예'), 동작 1401에서, 제 2 프로세서(210)에 의한 보안 서브시스템(230 또는 310)의 점유 시간을 확인할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간을 확인할 수 있다. 일예로, 타이머는 제 2 프로세서(210)에 의해 실행되는 타이머 명령어, 타이머 프로그램 및/또는 제 2 프로세서(210)에 포함된 하드웨어로 구현된 타이머를 포함할 수 있다.According to various embodiments of the present disclosure referring to FIG. 14 , when the electronic device (eg, the second processor 210 of FIG. 2 ) is assigned the access authority of the security subsystem 230 or 310 from the authority assignment device 220 (eg, 'YES' in operation 1305 of FIG. 13 ), in operation 1401 , the occupation time of the security subsystem 230 or 310 by the second processor 210 may be checked. . According to an embodiment, when the second processor 210 receives a signal (eg, an ACK signal) related to the assignment of access rights to the security subsystem 230 or 310 from the rights assignment device 220, the timer may be driven. The second processor 210 may check the time the second processor 210 occupies the security subsystem 230 or 310 based on the running time of the timer. For example, the timer may include a timer instruction executed by the second processor 210, a timer program, and/or a timer implemented by hardware included in the second processor 210.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 동작 1403에서, 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는지 확인할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간 동안 보안 서브시스템(230 또는 310)을 점유할 수 있다. 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간 및 지정된 기준시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 사용할 수 있는 시간을 검출할 수 있다. 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)을 사용할 수 있는 시간 동안 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는지 확인할 수 있다. According to various embodiments, in operation 1403, the electronic device (eg, the second processor 210) determines whether the second processor 210 can process a security function related to at least one task of the second processor 210 based on the time the security subsystem 230 or 310 is occupied. According to one embodiment, the second processor 210 may occupy the security subsystem 230 or 310 for a designated reference time. The second processor 210 can detect the time at which the second processor 210 can use the security subsystem 230 or 310 based on the time the second processor 210 occupies the security subsystem 230 or 310 and the designated reference time. The second processor 210 may check whether the security function related to at least one task of the second processor 210 can be processed during the time when the security subsystem 230 or 310 can be used.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 없는 것으로 판단한 경우(예: 동작 1403의 '아니오'), 동작 1409에서, 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간에 기반하여 보안 서브시스템(230 또는 310)의 접근 권한을 반환한 경우, 처리하기 못한 적어도 하나의 작업의 처리를 위해 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. According to various embodiments, when it is determined that the electronic device (eg, the second processor 210) cannot process a security function related to at least one task of the second processor 210 (eg, 'No' in operation 1403), in operation 1409, a request signal related to return of access authority to the security subsystem 230 or 310 may be transmitted to the authority allocation unit 220. According to an embodiment, when the second processor 210 returns the access right of the security subsystem 230 or 310 based on the time the second processor 210 occupies the security subsystem 230 or 310, it may transmit a request signal related to the access right of the security subsystem 230 or 310 to the right allocating device 220 in order to process at least one unprocessed task.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우(예: 동작 1403의 '예'), 동작 1405에서, 보안 서브시스템(230 또는 310)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다.According to various embodiments, when it is determined that the electronic device (eg, the second processor 210) can process the security function related to the at least one task of the second processor 210 (eg, 'Yes' in operation 1403), in operation 1405, the security function related to the at least one operation may be performed through the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 동작 1407에서, 보안 서브시스템(230 또는 310)을 통해 적어도 하나의 작업과 관련된 보안 기능 수행 중 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간에 기반하여 보안 서브시스템(230 또는 310)과 관련된 지정된 점유 조건을 만족하는지 확인할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간이 지정된 기준시간 미만인 경우, 보안 서브시스템(230 또는 310)과 관련된 지정된 점유 조건을 만족하는 것으로 판단할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간이 지정된 기준시간 이상인 경우, 보안 서브시스템(230 또는 310)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단할 수 있다.According to various embodiments, in operation 1407, the electronic device (eg, the second processor 210) may determine whether the security subsystem 230 or 310 satisfies a specified occupancy condition related to the security subsystem 230 or 310 based on the amount of time the second processor 210 occupies the security subsystem 230 or 310 while performing a security function related to at least one task. According to an embodiment, the second processor 210 may determine that a specified occupation condition related to the security subsystem 230 or 310 is satisfied when the time for which the second processor 210 occupies the security subsystem 230 or 310 is less than a specified reference time. According to an embodiment, the second processor 210 may determine that a specified occupation condition related to the security subsystem 230 or 310 is not satisfied when the time during which the second processor 210 occupies the security subsystem 230 or 310 is equal to or longer than a specified reference time.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)과 관련된 지정된 점유 조건을 만족하는 것으로 판단한 경우(예: 동작 1407의 '예'), 동작 1405에서, 보안 서브시스템(230 또는 310)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. According to various embodiments, when the electronic device (eg, the second processor 210) determines that the specified occupancy condition related to the security subsystem 230 or 310 is satisfied (eg, 'yes' in operation 1407), in operation 1405, it may perform a security function related to at least one task through the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단한 경우(예: 동작 1407의 '아니오'), 동작 1409에서, 보안 서브시스템(230 또는 310)에 대한 접근 권한을 반환(또는 반납)할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간이 지정된 기준시간 이상인 경우, 적어도 하나의 작업의 완료 여부와 무관하게 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 요청하는 프로세서와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 위한 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when the electronic device (eg, the second processor 210) determines that the specified occupancy condition related to the security subsystem 230 or 310 is not satisfied (eg, 'No' in operation 1407), in operation 1409, the access authority to the security subsystem 230 or 310 may be returned (or returned). According to an embodiment, when the time the second processor 210 occupies the security subsystem 230 or 310 is equal to or longer than a specified reference time, the second processor 210 may transmit a request signal related to the return of access rights to the security subsystem 230 or 310 to the authority assignment device 220 regardless of whether or not at least one task is completed. As an example, the request signal related to the return of access rights may include information (eg, identification information) related to the processor requesting the return of access rights and/or a second value different from the first value for requesting access rights (eg '0').

다양한 실시예에 따르면, 전자 장치(101)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유하는 시간을 지정된 기준시간으로 한정함으로써, 제 1 프로세서(200)가 보안 서브시스템(230 또는 310)을 통해 보안 기능을 수행하기 위한 안전성을 확보할 수 있다.According to various embodiments, the electronic device 101 limits the time that the second processor 210 occupies the security subsystem 230 or 310 to a specified reference time, so that the first processor 200 can secure safety for performing security functions through the security subsystem 230 or 310.

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)의 점유 시간이 지정된 기준시간 미만인 상태에서 보안 서브시스템(230 또는 310)을 통해 적어도 하나의 작업과 관련된 보안 기능의 수행을 완료한 경우, 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. According to various embodiments, the second processor 210 may transmit a request signal related to the return of access rights to the security subsystem 230 or 310 to the authority assignment device 220 when the security function related to at least one task is completed through the security subsystem 230 or 310 in a state where the occupation time of the security subsystem 230 or 310 is less than a specified reference time.

다양한 실시예에 따르면, 전자 장치(101)는 제 2 프로세서(210)뿐만 아니라 제 1 프로세서(200)가 보안 서브시스템(230 또는 310)을 점유하는 시간을 지정된 기준시간으로 한정할 수도 있다.According to various embodiments, the electronic device 101 may limit the time that the security subsystem 230 or 310 is occupied by the first processor 200 as well as the second processor 210 to a specified reference time.

도 15a는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230))의 접근 권한을 요청하기 위한 일예이다.15A is an example of requesting an access right of a security device (eg, the security subsystem 230) in an electronic device according to various embodiments.

도 15a를 참조하는 다양한 실시예에 따르면, 전자 장치(101)의 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1501). 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 15A, when there is at least one job related to a security function, the second processor 210 of the electronic device 101 may transmit a request signal related to the access right of the security subsystem 230 to the right assignment device 220 (operation 1501). As an example, the request signal related to access rights may include information related to the second processor 210 requesting access rights (eg, identification information) and/or a first value indicating a request for access rights (eg '1').

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호에 기반하여 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 2 프로세서(210)로 전송할 수 있다(동작 1503). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 할당받은 프로세서가 존재하지 않는 경우, 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 할당받은 프로세서가 존재하는 경우, 보안 서브시스템(230)의 접근 권한이 회수되는지 확인할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한이 회수되는 경우, 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 예를 들어, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한에 대한 복수의 요청 신호들을 수신한 경우, 권한 할당 방식, 접근 권한의 요청 시점 및/또는 접근 권한의 우선순위에 기반하여 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 based on the request signal related to the access authority of the security subsystem 230 received from the second processor 210. The authority allocation device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 230 to the second processor 210 (operation 1503). According to an embodiment, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 when there is no processor assigned the access authority of the security subsystem 230. According to an embodiment, the authority assignment device 220 may check whether the access authority of the security subsystem 230 is recovered when there is a processor assigned the access authority of the security subsystem 230 . When the access authority of the security subsystem 230 is recovered, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 . For example, upon receiving a plurality of request signals for the access right of the security subsystem 230, the rights assignment device 220 may allocate the access right of the security subsystem 230 to the second processor 210 based on the right allocation method, the request time point of the access right, and/or the priority of the access right.

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 2 프로세서(210)에 할당한 경우, 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)를 보안 서브시스템(230)으로 전송할 수 있다(동작 1506). 일 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)에 기반하여 제 2 프로세서(210)의 키를 획득할 수 있다. 일예로, 제 2 프로세서(210)의 키는 도 2b의 프로세서 키 관리 모듈(233)에 포함되는 프로세서 키 선택 모듈(241)을 통해 제 2 프로세서 키 관리 모듈(243)로부터 획득될 수 있다. 일예로, 제 2 프로세서(210)의 키는 보안 서브시스템(230)의 접근 권한을 할당받은 제 2 프로세서(210)의 루트 키(root key)로, OTP 또는 이퓨즈를 포함할 수 있다.According to various embodiments, when the access authority of the security subsystem 230 is assigned to the second processor 210, the authority assignment device 220 may transmit information related to the allocation of access authority to the second processor 210 (eg, instruction information related to key selection of the second processor 210) to the security subsystem 230 (operation 1506). According to an embodiment, the security subsystem 230 may acquire the key of the second processor 210 based on information related to the assignment of access rights to the second processor 210 (eg, instruction information related to key selection of the second processor 210) received from the rights assignment device 220. For example, the key of the second processor 210 may be obtained from the second processor key management module 243 through the processor key selection module 241 included in the processor key management module 233 of FIG. 2B. For example, the key of the second processor 210 is a root key of the second processor 210 to which the access authority of the security subsystem 230 is assigned, and may include OTP or eFuse.

다양한 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간을 확인할 수 있다(동작 1505). 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간을 확인할 수 있다.According to various embodiments, when the access authority of the security subsystem 230 is allocated from the authority assignment device 220, the second processor 210 may check the time the second processor 210 occupies the security subsystem 230 (operation 1505). According to an embodiment, the second processor 210 may drive a timer when receiving a signal (eg, an ACK signal) related to the assignment of access rights to the security subsystem 230 from the rights assignment device 220 . The second processor 210 may check the time the second processor 210 occupies the security subsystem 230 based on the running time of the timer.

다양한 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(230)을 통해 보안 기능을 수행할 수 있다(동작 1507). 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간 및 지정된 기준시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(230)을 사용할 수 있는 시간을 검출할 수 있다. 제 2 프로세서(210)는 보안 서브시스템(230)을 사용할 수 있는 시간 동안 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는지 확인할 수 있다. 제 2 프로세서(210)는 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(230)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230)은 제 2 프로세서(210)의 키에 기반하여 제 2 프로세서(210)의 보안 기능을 처리할 수 있다. 예를 들어, 보안 기능은 제 2 프로세서(210)와 관련된 RAM의 암호화, 제 2 프로세서(210)와 관련된 중요 데이터(예: IMEI 또는 MEID)의 암호화, 제 2 프로세서(210)와 관련된 중요 데이터의 복호화, 제 2 프로세서(210)와 관련된 중요 데이터의 인증서 및/또는 서명 생성, 제 2 프로세서(210)와 관련된 중요 데이터의 인증서 및/또는 서명 검수, 또는 암호키 생성을 위한 기능 중 적어도 하나를 포함할 수 있다. 예를 들어, 보안 기능은 제 1 프로세서(200)와 관련된 중요 데이터(예: 결제 데이터)의 암호화 및/또는 암호키 생성을 위한 기능을 포함할 수 있다. According to various embodiments, when it is determined that the second processor 210 can process a security function related to at least one task of the second processor 210 based on the time the second processor 210 occupies the security subsystem 230, it may perform the security function through the security subsystem 230 (operation 1507). According to an embodiment, the second processor 210 may detect the time at which the second processor 210 can use the security subsystem 230 based on the time the second processor 210 occupies the security subsystem 230 and the designated reference time. The second processor 210 may check whether the security function related to at least one task of the second processor 210 can be processed during the time during which the security subsystem 230 can be used. When it is determined that the second processor 210 can process the security function related to at least one task, the second processor 210 may perform the security function related to the at least one task through the security subsystem 230 . According to an embodiment, the security subsystem 230 may process the security function of the second processor 210 based on the key of the second processor 210 . For example, the security function may include at least one of encryption of RAM related to the second processor 210, encryption of important data (eg, IMEI or MEID) related to the second processor 210, decryption of important data related to the second processor 210, generation of a certificate and/or signature of important data related to the second processor 210, verification of a certificate and/or signature of important data related to the second processor 210, or generation of an encryption key. there is For example, the security function may include a function for encrypting important data (eg, payment data) related to the first processor 200 and/or generating an encryption key.

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한의 반환(또는 반납)을 요청할 수 있다(동작 1509). 일 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간 내에 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when processing of at least one task related to the security function is completed, the second processor 210 may request the return (or return) of the access right to the security subsystem 230 (operation 1509). According to one embodiment, when the second processor 210 completes processing of at least one task related to the security function within a specified reference time, a request signal related to the return of access rights to the security subsystem 230 may be transmitted to the rights assignment device 220. As an example, the request signal related to the return of the access right may indicate information (eg, identification information) related to the second processor 210 requesting the return of the access right and/or return of the access right. A second value different from the first value (eg '0') may be included.

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(230)의 접근 권한의 반환 요청에 기반하여 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한의 반환과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1511)According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 230 based on a request for return of the access authority of the security subsystem 230 from the second processor 210. The authority assignment device 220 may transmit information related to return of the access authority of the security subsystem 230 (eg, authority return notification information) to the second processor 210 (operation 1511).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 2 프로세서(200)의 접근 권한의 반환에 기반하여 제 2 프로세서(210)와 관련된 데이터를 삭제하도록 보안 서브시스템(230)을 제어할 수 있다(동작 1513). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 2 프로세서(210)로부터 회수한 경우, 초기화 요청 신호를 보안 서브시스템(230)으로 제공할 수 있다(동작 1513).According to various embodiments, the authority assignment device 220 may control the security subsystem 230 to delete data related to the second processor 210 based on the return of the access authority of the second processor 200 to the security subsystem 230 (operation 1513). According to an embodiment, when the access right of the security subsystem 230 is retrieved from the second processor 210, the authority assignment device 220 may provide an initialization request signal to the security subsystem 230 (operation 1513).

다양한 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 초기화 요청 신호에 기반하여 보안 서브시스템(230)을 초기화할 수 있다(동작 1515). 일 실시예에 따르면, 보안 서브시스템(230)은 보안 서브시스템(230)의 초기화를 통해, 보안 서브시스템(230)의 내부 메모리 및/또는 등록 경로에 존재하는 제 2 프로세서(210)와 관련된 정보를 삭제할 수 있다. 일예로, 제 2 프로세서(210)와 관련된 정보는 제 2 프로세서(210)의 키 및/또는 제 2 프로세서(210)의 키에 기반한 연산 정보를 포함할 수 있다.According to various embodiments, the security subsystem 230 may initialize the security subsystem 230 based on the initialization request signal received from the authority assignment device 220 (operation 1515). According to an embodiment, the security subsystem 230 may delete information related to the second processor 210 existing in an internal memory and/or a registration path of the security subsystem 230 through initialization of the security subsystem 230. For example, the information related to the second processor 210 may include a key of the second processor 210 and/or operation information based on the key of the second processor 210 .

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청과 무관하게 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)의 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한의 회수에 기반하여 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1511). 일예로, 도 15a의 동작 1511은 생략될 수 있다.According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 230 regardless of the return (or return) request of the access authority of the security subsystem 230 from the second processor 210. According to an embodiment, when the authority assignment device 220 determines that the occupation time of the security subsystem 230 of the second processor 210 exceeds a specified reference time, the access authority of the second processor 210 to the security subsystem 230 may be recovered. Based on the recovery of the access right of the second processor 210 to the security subsystem 230, the rights assignment device 220 may transmit information related to return (or return) of the access right of the security subsystem 230 (eg, right return notification information) to the second processor 210 (operation 1511). For example, operation 1511 of FIG. 15A may be omitted.

도 15b는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(310))의 접근 권한을 요청하기 위한 일예이다.15B is an example of requesting an access right of a security device (eg, the security subsystem 310) in an electronic device according to various embodiments.

도 15b를 참조하는 다양한 실시예에 따르면, 전자 장치(101)의 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1521). According to various embodiments of the present disclosure with reference to FIG. 15B, when there is at least one job related to a security function, the second processor 210 of the electronic device 101 transmits a request signal related to the access right of the security subsystem 310 to the right assignment device 220 (operation 1521).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호에 기반하여 제 2 프로세서(210)로 보안 서브시스템(310)의 접근 권한을 할당할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 2 프로세서(210)로 전송할 수 있다(동작 1523). 일예로, 도 15b의 동작 1521 및 동작 1523은 도 15a의 동작 1501 및 동작 1503에 대응되는 동작(또는 동일한 동작)을 포함할 수 있다.According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 310 to the second processor 210 based on the request signal related to the access authority of the security subsystem 310 received from the second processor 210. The authority allocation unit 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 310 to the second processor 210 (operation 1523). For example, operations 1521 and 1523 of FIG. 15B may include operations corresponding to (or identical to) operations 1501 and 1503 of FIG. 15A.

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한을 제 2 프로세서(210)에 할당한 경우, 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)를 프로세서 키 관리 장치(300)로 전송할 수 있다(동작 1525). According to various embodiments, when the access authority of the security subsystem 310 is allocated to the second processor 210, the authority allocation unit 220 may transmit information related to the allocation of access authority to the second processor 210 (eg, instruction information related to key selection of the second processor 210) to the processor key management unit 300 (operation 1525).

다양한 실시예에 따르면, 프로세서 키 관리 장치(300)는 권한 할당 장치(220)로부터 수신한 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)에 기반하여 제 2 프로세서(210)의 키를 선택할 수 있다. 프로세서 키 관리 장치(300)는 제 2 프로세서(210)의 키와 관련된 정보(또는 제 2 프로세서(210)의 키)를 보안 서브시스템(310)으로 제공할 수 있다(동작 1527). 일예로, 제 2 프로세서(210)의 키는 도 3의 프로세서 키 선택 모듈(302)에 의해 제 2 프로세서 키 관리 모듈(306)로부터 획득될 수 있다.According to various embodiments, the processor key management device 300 may select a key of the second processor 210 based on information related to assigning access rights to the second processor 210 received from the permission assignment device 220 (eg, instruction information related to key selection of the second processor 210). The processor key management device 300 may provide information related to the key of the second processor 210 (or the key of the second processor 210) to the security subsystem 310 (operation 1527). As an example, the key of the second processor 210 may be obtained from the second processor key management module 306 by the processor key selection module 302 of FIG. 3 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(310)의 접근 권한을 할당받은 경우, 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간을 확인할 수 있다(동작 1529). 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간을 확인할 수 있다.According to various embodiments, when the access authority of the security subsystem 310 is allocated from the authority assignment device 220, the second processor 210 may check the time the second processor 210 occupies the security subsystem 310 (operation 1529). According to an embodiment, the second processor 210 may drive a timer when receiving a signal (eg, an ACK signal) related to the assignment of access rights to the security subsystem 310 from the rights assignment device 220 . The second processor 210 may check the time the second processor 210 occupies the security subsystem 310 based on the running time of the timer.

다양한 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(310)을 통해 보안 기능을 수행할 수 있다(동작 1531). 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간 및 지정된 기준시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(310)을 사용할 수 있는 시간을 검출할 수 있다. 제 2 프로세서(210)는 보안 서브시스템(310)을 사용할 수 있는 시간 동안 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는지 확인할 수 있다. 제 2 프로세서(210)는 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(310)을 통해 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(310)은 제 2 프로세서(210)의 키에 기반하여 제 2 프로세서(210)의 보안 기능을 처리할 수 있다. According to various embodiments, when it is determined that the second processor 210 can process a security function related to at least one task of the second processor 210 based on the time the second processor 210 occupies the security subsystem 310, it may perform the security function through the security subsystem 310 (operation 1531). According to an embodiment, the second processor 210 may detect the time at which the second processor 210 can use the security subsystem 310 based on the time the second processor 210 occupies the security subsystem 310 and the designated reference time. The second processor 210 may check whether the security function related to at least one task of the second processor 210 can be processed during the time when the security subsystem 310 can be used. When it is determined that the second processor 210 can process the security function related to at least one task, the second processor 210 may perform the security function related to the at least one task through the security subsystem 310 . According to an embodiment, the security subsystem 310 may process the security function of the second processor 210 based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(310)에 대한 접근 권한의 반환(또는 반납)을 요청할 수 있다(동작 1533). 일 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간 내에 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when processing of at least one task related to the security function is completed, the second processor 210 may request return (or return) of the access right to the security subsystem 310 (operation 1533). According to one embodiment, when the second processor 210 completes the processing of at least one task related to the security function within a specified reference time, a request signal related to the return of access rights to the security subsystem 310 may be transmitted to the rights assignment device 220. As an example, the request signal related to the return of the access right may indicate information (eg, identification information) related to the second processor 210 requesting the return of the access right and/or return of the access right. A second value different from the first value (eg '0') may be included.

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(310)의 접근 권한의 반환 요청에 기반하여 보안 서브시스템(310)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한의 반환과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1535)According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 310 based on a request for return of the access authority of the security subsystem 310 from the second processor 210. The authority assignment device 220 may transmit information related to the return of the access authority of the security subsystem 310 (eg, authority return notification information) to the second processor 210 (operation 1535).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 제 2 프로세서(200)의 접근 권한의 반환에 기반하여 제 2 프로세서(210)와 관련된 데이터를 삭제하도록 보안 서브시스템(310)을 제어할 수 있다(동작 1537). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한을 제 2 프로세서(210)로부터 회수한 경우, 초기화 요청 신호를 보안 서브시스템(310)으로 제공할 수 있다(동작 1537).According to various embodiments, the authority assignment device 220 may control the security subsystem 310 to delete data related to the second processor 210 based on the return of the access authority of the second processor 200 to the security subsystem 310 (operation 1537). According to an embodiment, when the access right of the security subsystem 310 is retrieved from the second processor 210, the authority assignment device 220 may provide an initialization request signal to the security subsystem 310 (operation 1537).

다양한 실시예에 따르면, 보안 서브시스템(310)은 권한 할당 장치(220)로부터 수신한 초기화 요청 신호에 기반하여 보안 서브시스템(310)을 초기화할 수 있다(동작 1539). 일 실시예에 따르면, 보안 서브시스템(310)은 보안 서브시스템(310)의 초기화를 통해, 보안 서브시스템(310)의 내부 메모리 및/또는 등록 경로에 존재하는 제 2 프로세서(210)와 관련된 정보를 삭제할 수 있다. 일예로, 제 2 프로세서(210)와 관련된 정보는 제 2 프로세서(210)의 키 및/또는 제 2 프로세서(210)의 키에 기반한 연산 정보를 포함할 수 있다.According to various embodiments, the security subsystem 310 may initialize the security subsystem 310 based on the initialization request signal received from the authority assignment device 220 (operation 1539). According to an embodiment, the security subsystem 310 may delete information related to the second processor 210 existing in an internal memory and/or a registration path of the security subsystem 310 through initialization of the security subsystem 310. For example, the information related to the second processor 210 may include a key of the second processor 210 and/or operation information based on the key of the second processor 210 .

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청과 무관하게 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)의 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한의 회수에 기반하여 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1535). 일예로, 도 15b의 동작 1533은 생략될 수 있다.According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 230 regardless of the return (or return) request of the access authority of the security subsystem 230 from the second processor 210. According to an embodiment, when the authority assignment device 220 determines that the occupation time of the security subsystem 230 of the second processor 210 exceeds a specified reference time, the access authority of the second processor 210 to the security subsystem 230 may be recovered. Based on the recovery of the access right of the second processor 210 to the security subsystem 230, the rights assignment device 220 may transmit information related to return (or return) of the access right of the security subsystem 230 (eg, right return notification information) to the second processor 210 (operation 1535). For example, operation 1533 of FIG. 15B may be omitted.

도 16a는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230))의 접근 권한을 반환하기 위한 일예이다.16A is an example for returning an access right of a security device (eg, the security subsystem 230) in an electronic device according to various embodiments.

도 16a를 참조하는 다양한 실시예에 따르면, 전자 장치(101)의 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1601). 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 16A, when there is at least one job related to a security function, the second processor 210 of the electronic device 101 may transmit a request signal related to the access authority of the security subsystem 230 to the authority allocation device 220 (operation 1601). As an example, the request signal related to access rights may include information related to the second processor 210 requesting access rights (eg, identification information) and/or a first value indicating a request for access rights (eg '1').

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호에 기반하여 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 2 프로세서(210)로 전송할 수 있다(동작 1603). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 할당받은 프로세서가 존재하지 않는 경우, 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 회수한 경우, 권한 할당 방식, 접근 권한의 요청 시점 및/또는 접근 권한의 우선순위에 기반하여 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다. According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 based on the request signal related to the access authority of the security subsystem 230 received from the second processor 210. The authority allocation device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 230 to the second processor 210 (operation 1603). According to an embodiment, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 when there is no processor assigned the access authority of the security subsystem 230. According to an embodiment, when the access rights of the security subsystem 230 are recovered, the rights assignment device 220 may allocate the access rights of the security subsystem 230 to the second processor 210 based on the rights assignment method, the request time of access rights, and/or the priority of the access rights.

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 2 프로세서(210)에 할당한 경우, 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)를 보안 서브시스템(230)으로 전송할 수 있다(예: 동작 1606). 일 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)에 기반하여 제 2 프로세서(210)의 키를 획득할 수 있다. 일예로, 제 2 프로세서(210)의 키는 도 2b의 프로세서 키 관리 모듈(233)에 포함되는 프로세서 키 선택 모듈(241)을 통해 제 2 프로세서 키 관리 모듈(243)로부터 획득될 수 있다. According to various embodiments, when the access authority of the security subsystem 230 is allocated to the second processor 210, the authority assignment device 220 may transmit information related to the allocation of access authority to the second processor 210 (eg, instruction information related to key selection of the second processor 210) to the security subsystem 230 (eg, operation 1606). According to an embodiment, the security subsystem 230 may acquire the key of the second processor 210 based on information related to the assignment of access rights to the second processor 210 (eg, instruction information related to key selection of the second processor 210) received from the rights assignment device 220. For example, the key of the second processor 210 may be obtained from the second processor key management module 243 through the processor key selection module 241 included in the processor key management module 233 of FIG. 2B.

다양한 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간을 확인할 수 있다(동작 1605). 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간을 확인할 수 있다.According to various embodiments, when the access authority of the security subsystem 230 is allocated from the authority assignment device 220, the second processor 210 may check the time the second processor 210 occupies the security subsystem 230 (operation 1605). According to an embodiment, the second processor 210 may drive a timer when receiving a signal (eg, an ACK signal) related to the assignment of access rights to the security subsystem 230 from the rights assignment device 220 . The second processor 210 may check the time the second processor 210 occupies the security subsystem 230 based on the running time of the timer.

다양한 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(230)을 통해 보안 기능을 수행할 수 있다(동작 1607). 일 실시예에 따르면, 보안 서브시스템(230)은 제 2 프로세서(210)의 키에 기반하여 제 2 프로세서(210)의 보안 기능을 처리할 수 있다.According to various embodiments, when it is determined that the second processor 210 can process a security function related to at least one task of the second processor 210 based on the time the second processor 210 occupies the security subsystem 230, it may perform the security function through the security subsystem 230 (operation 1607). According to an embodiment, the security subsystem 230 may process the security function of the second processor 210 based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(230)을 통해 보안 기능을 수행 중 보안 서브시스템(230)과 관련된 지정된 점유 조건을 만족하는지 할 수 있다(동작 1609). 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간이 지정된 기준시간 미만인 경우, 보안 서브시스템(230)과 관련된 지정된 점유 조건을 만족하는 것으로 판단할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간이 지정된 기준시간 이상인 경우, 보안 서브시스템(230)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단할 수 있다.According to various embodiments, the second processor 210 may determine whether a specified occupancy condition related to the security subsystem 230 is satisfied while performing the security function through the security subsystem 230 (operation 1609). According to an embodiment, the second processor 210 may determine that a specified occupation condition related to the security subsystem 230 is satisfied when the time at which the second processor 210 occupies the security subsystem 230 is less than a specified reference time. According to an embodiment, the second processor 210 may determine that a specified occupation condition related to the security subsystem 230 is not satisfied when the time during which the second processor 210 occupies the security subsystem 230 is equal to or longer than a specified reference time.

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(230)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단한 경우(동작 1609), 보안 서브시스템(230)에 대한 접근 권한의 반환(또는 반납)을 요청할 수 있다(동작 1611). 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간이 지정된 기준시간 이상인 경우, 적어도 하나의 작업의 완료 여부와 무관하게 보안 서브시스템(230)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1611). 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when it is determined that the specified occupancy condition related to the security subsystem 230 is not satisfied (operation 1609), the second processor 210 may request the return (or return) of the access right to the security subsystem 230 (operation 1611). According to an embodiment, when the time that the second processor 210 occupies the security subsystem 230 is equal to or longer than a specified reference time, the second processor 210 may transmit a request signal related to the return of access rights to the security subsystem 230 to the rights assignment device 220 regardless of whether at least one task is completed (operation 1611). As an example, the request signal related to the return of the access right may indicate information (eg, identification information) related to the second processor 210 requesting the return of the access right and/or return of the access right. A second value different from the first value (eg '0') may be included.

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(230)의 접근 권한의 반환 요청에 기반하여 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한의 반환과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1613)According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 230 based on a request for return of the access authority of the security subsystem 230 from the second processor 210. The authority assignment device 220 may transmit information (eg, authority return notification information) related to the return of the access authority of the security subsystem 230 to the second processor 210 (operation 1613).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 2 프로세서(200)의 접근 권한의 반환에 기반하여 제 2 프로세서(210)와 관련된 데이터를 삭제하도록 보안 서브시스템(230)을 제어할 수 있다(동작 1615). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 2 프로세서(210)로부터 회수한 경우, 초기화 요청 신호를 보안 서브시스템(230)으로 제공할 수 있다(동작 1615).According to various embodiments, the authority assignment device 220 may control the security subsystem 230 to delete data related to the second processor 210 based on the return of the access authority of the second processor 200 to the security subsystem 230 (operation 1615). According to an embodiment, when the access right of the security subsystem 230 is retrieved from the second processor 210, the authority assignment device 220 may provide an initialization request signal to the security subsystem 230 (operation 1615).

다양한 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 초기화 요청 신호에 기반하여 보안 서브시스템(230)을 초기화할 수 있다(동작 1617). 일 실시예에 따르면, 보안 서브시스템(230)은 보안 서브시스템(230)의 초기화를 통해, 보안 서브시스템(230)의 내부 메모리 및/또는 등록 경로에 존재하는 제 2 프로세서(210)와 관련된 정보를 삭제할 수 있다. 일예로, 제 2 프로세서(210)와 관련된 정보는 제 2 프로세서(210)의 키 및/또는 제 2 프로세서(210)의 키에 기반한 연산 정보를 포함할 수 있다.According to various embodiments, the security subsystem 230 may initialize the security subsystem 230 based on the initialization request signal received from the authority assignment device 220 (operation 1617). According to an embodiment, the security subsystem 230 may delete information related to the second processor 210 existing in an internal memory and/or a registration path of the security subsystem 230 through initialization of the security subsystem 230. For example, the information related to the second processor 210 may include a key of the second processor 210 and/or operation information based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간에 기반하여 적어도 하나의 작업을 완료하지 못한 경우, 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1619).According to various embodiments, when the second processor 210 fails to complete at least one task based on a designated reference time, the second processor 210 transmits a request signal related to the access right of the security subsystem 230 to the right assignment device 220 (operation 1619).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(230)의 접근 권한과 관련된 요청 신호에 기반하여 제 2 프로세서(210)로 보안 서브시스템(230)의 접근 권한을 할당할 수 있다(동작 1621). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 2 프로세서(210)로 전송할 수 있다(동작 1621).According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 230 to the second processor 210 based on the request signal related to the access authority of the security subsystem 230 received from the second processor 210 (operation 1621). According to an embodiment, the authority assignment device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 230 to the second processor 210 (operation 1621).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(230)의 접근 권한을 제 2 프로세서(210)에 할당한 경우, 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)를 보안 서브시스템(230)으로 전송할 수 있다(예: 동작 1623). 일 실시예에 따르면, 보안 서브시스템(230)은 권한 할당 장치(220)로부터 수신한 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)에 기반하여 제 2 프로세서(210)의 키를 획득할 수 있다. 일예로, 제 2 프로세서(210)의 키는 도 2b의 프로세서 키 관리 모듈(233)에 포함되는 프로세서 키 선택 모듈(241)을 통해 제 2 프로세서 키 관리 모듈(243)로부터 획득될 수 있다.According to various embodiments, when the access authority of the security subsystem 230 is allocated to the second processor 210, the authority assignment device 220 may transmit information related to the allocation of access authority to the second processor 210 (eg, instruction information related to key selection of the second processor 210) to the security subsystem 230 (eg, operation 1623). According to an embodiment, the security subsystem 230 may acquire the key of the second processor 210 based on information related to the assignment of access rights to the second processor 210 (eg, instruction information related to key selection of the second processor 210) received from the rights assignment device 220. For example, the key of the second processor 210 may be obtained from the second processor key management module 243 through the processor key selection module 241 included in the processor key management module 233 of FIG. 2B.

다양한 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)의 접근 권한을 할당받은 경우, 보안 서브시스템(230)을 통해 보안 기능을 수행할 수 있다(동작 1625). 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(230)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동(예: reset)시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간을 확인할 수 있다. 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(230)을 통해 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(230)은 제 2 프로세서(210)의 키에 기반하여 제 2 프로세서(210)의 보안 기능을 처리할 수 있다.According to various embodiments, the second processor 210 may perform a security function through the security subsystem 230 when the access authority of the security subsystem 230 is allocated from the authority assignment unit 220 (operation 1625). According to an embodiment, when the second processor 210 receives a signal (eg, ACK signal) related to the assignment of access rights to the security subsystem 230 from the authority assignment device 220, the timer may be driven (eg, reset). The second processor 210 may check the time the second processor 210 occupies the security subsystem 230 based on the running time of the timer. When the second processor 210 determines that the security function related to at least one task of the second processor 210 can be processed based on the time the second processor 210 occupies the security subsystem 230, the security function can be performed through the security subsystem 230. According to an embodiment, the security subsystem 230 may process the security function of the second processor 210 based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한을 반환(또는 반납)할 수 있다(동작 1627). 일 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간 내에 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(230)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1627). 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments, when processing of at least one task related to the security function is completed, the second processor 210 may return (or return) access rights to the security subsystem 230 (operation 1627). According to an embodiment, when the second processor 210 completes the processing of at least one task related to the security function within a specified reference time, a request signal related to the return of access rights to the security subsystem 230 may be transmitted to the rights assignment device 220 (operation 1627). As an example, the request signal related to the return of the access right may indicate information (eg, identification information) related to the second processor 210 requesting the return of the access right and/or return of the access right. A second value different from the first value (eg '0') may be included.

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청과 무관하게 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)의 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한의 회수에 기반하여 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1613). 일예로, 도 16a의 동작 1611 및 동작 1627은 생략될 수 있다.According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 230 regardless of the return (or return) request of the access authority of the security subsystem 230 from the second processor 210. According to an embodiment, when the authority assignment device 220 determines that the occupation time of the security subsystem 230 of the second processor 210 exceeds a specified reference time, the access authority of the second processor 210 to the security subsystem 230 may be recovered. Based on the recovery of the access right of the second processor 210 to the security subsystem 230, the authority assignment device 220 may transmit information related to return (or return) of the access authority of the security subsystem 230 (eg, authority return notification information) to the second processor 210 (operation 1613). For example, operations 1611 and 1627 of FIG. 16A may be omitted.

도 16b는 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(310))의 접근 권한을 반환하기 위한 일예이다.16B is an example for returning an access right of a security device (eg, the security subsystem 310) in an electronic device according to various embodiments.

도 16b를 참조하는 다양한 실시예에 따르면, 전자 장치(101)의 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업(job)이 존재하는 경우, 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1631). According to various embodiments of the present disclosure with reference to FIG. 16B, when there is at least one job related to the security function, the second processor 210 of the electronic device 101 transmits a request signal related to the access right of the security subsystem 310 to the right assignment device 220 (operation 1631).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호에 기반하여 제 2 프로세서(210)로 보안 서브시스템(310)의 접근 권한을 할당할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 2 프로세서(210)로 전송할 수 있다(동작 1633). 일예로, 도 16b의 동작 1631 및 동작 1633은 도 16a의 동작 1601 및 동작 1603에 대응되는 동작(또는 동일한 동작)을 포함할 수 있다.According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 310 to the second processor 210 based on the request signal related to the access authority of the security subsystem 310 received from the second processor 210. The authority allocation device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 310 to the second processor 210 (operation 1633). For example, operations 1631 and 1633 of FIG. 16B may include operations corresponding to (or identical to) operations 1601 and 1603 of FIG. 16A .

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한을 제 2 프로세서(210)에 할당한 경우, 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)를 프로세서 키 관리 장치(300)로 전송할 수 있다(동작 1635). According to various embodiments, when the access authority of the security subsystem 310 is allocated to the second processor 210, the authority allocation device 220 may transmit information related to the allocation of access authority to the second processor 210 (eg, instruction information related to key selection of the second processor 210) to the processor key management apparatus 300 (operation 1635).

다양한 실시예에 따르면, 프로세서 키 관리 장치(300)는 권한 할당 장치(220)로부터 수신한 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)에 기반하여 제 2 프로세서(210)의 키를 선택할 수 있다. 프로세서 키 관리 장치(300)는 제 2 프로세서(210)의 키와 관련된 정보(또는 제 2 프로세서(210)의 키)를 보안 서브시스템(310)으로 제공할 수 있다(동작 1637). 일예로, 제 2 프로세서(210)의 키는 도 3의 프로세서 키 선택 모듈(302)에 의해 제 2 프로세서 키 관리 모듈(306)로부터 획득될 수 있다.According to various embodiments, the processor key management device 300 may select a key of the second processor 210 based on information related to assigning access rights to the second processor 210 received from the permission assignment device 220 (eg, instruction information related to key selection of the second processor 210). The processor key management device 300 may provide information related to the key of the second processor 210 (or the key of the second processor 210) to the security subsystem 310 (operation 1637). As an example, the key of the second processor 210 may be obtained from the second processor key management module 306 by the processor key selection module 302 of FIG. 3 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(310)의 접근 권한을 할당받은 경우, 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간을 확인할 수 있다(동작 1639). 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간을 확인할 수 있다.According to various embodiments, when the access authority of the security subsystem 310 is allocated from the authority assignment unit 220, the second processor 210 may check the time the second processor 210 occupies the security subsystem 310 (operation 1639). According to an embodiment, the second processor 210 may drive a timer when receiving a signal (eg, an ACK signal) related to the assignment of access rights to the security subsystem 310 from the rights assignment device 220 . The second processor 210 may check the time the second processor 210 occupies the security subsystem 310 based on the running time of the timer.

다양한 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(310)을 통해 보안 기능을 수행할 수 있다(동작 1641). 일 실시예에 따르면, 보안 서브시스템(310)은 제 2 프로세서(210)의 키에 기반하여 제 2 프로세서(210)의 보안 기능을 처리할 수 있다.According to various embodiments, when it is determined that the second processor 210 can process a security function related to at least one task of the second processor 210 based on the time the second processor 210 occupies the security subsystem 310, it may perform the security function through the security subsystem 310 (operation 1641). According to an embodiment, the security subsystem 310 may process the security function of the second processor 210 based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(310)을 통해 보안 기능을 수행 중 보안 서브시스템(310)과 관련된 지정된 점유 조건을 만족하는지 할 수 있다(동작 1643). 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간이 지정된 기준시간 미만인 경우, 보안 서브시스템(310)과 관련된 지정된 점유 조건을 만족하는 것으로 판단할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간이 지정된 기준시간 이상인 경우, 보안 서브시스템(310)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단할 수 있다.According to various embodiments, the second processor 210 may determine whether a specified occupancy condition related to the security subsystem 310 is satisfied while performing the security function through the security subsystem 310 (operation 1643). According to an embodiment, the second processor 210 may determine that a specified occupation condition related to the security subsystem 310 is satisfied when the time at which the second processor 210 occupies the security subsystem 310 is less than a specified reference time. According to an embodiment, the second processor 210 may determine that a specified occupation condition related to the security subsystem 310 is not satisfied when the time during which the second processor 210 occupies the security subsystem 310 is equal to or longer than a specified reference time.

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 서브시스템(310)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단한 경우(동작 1643), 보안 서브시스템(310)에 대한 접근 권한의 반환(또는 반납)을 요청할 수 있다(동작 1645). 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간이 지정된 기준시간 이상인 경우, 적어도 하나의 작업의 완료 여부와 무관하게 보안 서브시스템(310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1645). According to various embodiments, when it is determined that the specified occupancy condition related to the security subsystem 310 is not satisfied (operation 1643), the second processor 210 may request the return (or return) of the access right to the security subsystem 310 (operation 1645). According to an embodiment, when the time that the second processor 210 occupies the security subsystem 310 is equal to or longer than a specified reference time, the second processor 210 may transmit a request signal related to the return of access rights to the security subsystem 310 to the rights assignment device 220 regardless of whether at least one task is completed (operation 1645).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(310)의 접근 권한의 반환 요청에 기반하여 보안 서브시스템(310)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한의 반환과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1647)According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 310 based on a request for return of the access authority of the security subsystem 310 from the second processor 210. The authority assignment device 220 may transmit information related to the return of the access authority of the security subsystem 310 (eg, authority return notification information) to the second processor 210 (operation 1647).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 제 2 프로세서(200)의 접근 권한의 반환에 기반하여 제 2 프로세서(210)와 관련된 데이터를 삭제하도록 보안 서브시스템(310)을 제어할 수 있다(동작 1649). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한을 제 2 프로세서(210)로부터 회수한 경우, 초기화 요청 신호를 보안 서브시스템(310)으로 제공할 수 있다(동작 1649).According to various embodiments, the authority assignment device 220 may control the security subsystem 310 to delete data related to the second processor 210 based on the return of the access authority of the second processor 200 to the security subsystem 310 (operation 1649). According to an embodiment, when the access right of the security subsystem 310 is retrieved from the second processor 210, the authority assignment device 220 may provide an initialization request signal to the security subsystem 310 (operation 1649).

다양한 실시예에 따르면, 보안 서브시스템(310)은 권한 할당 장치(220)로부터 수신한 초기화 요청 신호에 기반하여 보안 서브시스템(310)을 초기화할 수 있다(동작 1651). 일 실시예에 따르면, 보안 서브시스템(310)은 보안 서브시스템(310)의 초기화를 통해, 보안 서브시스템(310)의 내부 메모리 및/또는 등록 경로에 존재하는 제 2 프로세서(210)와 관련된 정보를 삭제할 수 있다. 일예로, 제 2 프로세서(210)와 관련된 정보는 제 2 프로세서(210)의 키 및/또는 제 2 프로세서(210)의 키에 기반한 연산 정보를 포함할 수 있다.According to various embodiments, the security subsystem 310 may initialize the security subsystem 310 based on the initialization request signal received from the authority assignment device 220 (operation 1651). According to an embodiment, the security subsystem 310 may delete information related to the second processor 210 existing in an internal memory and/or a registration path of the security subsystem 310 through initialization of the security subsystem 310. For example, the information related to the second processor 210 may include a key of the second processor 210 and/or operation information based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간에 기반하여 적어도 하나의 작업을 완료하지 못한 경우, 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1653).According to various embodiments, when the at least one task is not completed based on the designated reference time, the second processor 210 transmits a request signal related to the access authority of the security subsystem 310 to the authority allocation device 220 (operation 1653).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터 수신한 보안 서브시스템(310)의 접근 권한과 관련된 요청 신호에 기반하여 제 2 프로세서(210)로 보안 서브시스템(310)의 접근 권한을 할당할 수 있다(동작 1655). 일 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 제 2 프로세서(210)로 전송할 수 있다(동작 1655).According to various embodiments, the authority assignment device 220 may allocate the access authority of the security subsystem 310 to the second processor 210 based on the request signal related to the access authority of the security subsystem 310 received from the second processor 210 (operation 1655). According to an embodiment, the authority allocation device 220 may transmit a signal (eg, an ACK signal) related to the allocation of access authority to the security subsystem 310 to the second processor 210 (operation 1655).

다양한 실시예에 따르면, 권한 할당 장치(220)는 보안 서브시스템(310)의 접근 권한을 제 2 프로세서(210)에 할당한 경우, 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)를 프로세서 키 관리 장치(300)로 전송할 수 있다(동작 1657). According to various embodiments, when the access authority of the security subsystem 310 is allocated to the second processor 210, the authority allocation device 220 may transmit information related to the allocation of access authority to the second processor 210 (eg, instruction information related to key selection of the second processor 210) to the processor key management apparatus 300 (operation 1657).

다양한 실시예에 따르면, 프로세서 키 관리 장치(300)는 권한 할당 장치(220)로부터 수신한 제 2 프로세서(210)로의 접근 권한 할당과 관련된 정보(예: 제 2 프로세서(210)의 키 선택과 관련된 지시 정보)에 기반하여 제 2 프로세서(210)의 키를 선택할 수 있다. 프로세서 키 관리 장치(300)는 제 2 프로세서(210)의 키와 관련된 정보(또는 제 2 프로세서(210)의 키)를 보안 서브시스템(310)으로 제공할 수 있다(동작 1659). 일예로, 제 2 프로세서(210)의 키는 도 3의 프로세서 키 선택 모듈(302)에 의해 제 2 프로세서 키 관리 모듈(306)로부터 획득될 수 있다.According to various embodiments, the processor key management device 300 may select a key of the second processor 210 based on information related to assigning access rights to the second processor 210 received from the permission assignment device 220 (eg, instruction information related to key selection of the second processor 210). The processor key management device 300 may provide information related to the key of the second processor 210 (or the key of the second processor 210) to the security subsystem 310 (operation 1659). As an example, the key of the second processor 210 may be obtained from the second processor key management module 306 by the processor key selection module 302 of FIG. 3 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(310)의 접근 권한을 할당받은 경우, 보안 서브시스템(310)을 통해 보안 기능을 수행할 수 있다(동작 1661). 일 실시예에 따르면, 제 2 프로세서(210)는 권한 할당 장치(220)로부터 보안 서브시스템(310)에 대한 접근 권한의 할당과 관련된 신호(예: ACK 신호)를 수신한 경우, 타이머를 구동(예: reset)시킬 수 있다. 제 2 프로세서(210)는 타이머의 구동 시간에 기반하여 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간을 확인할 수 있다. 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(310)을 점유한 시간에 기반하여 제 2 프로세서(210)의 적어도 하나의 작업과 관련된 보안 기능을 처리할 수 있는 것으로 판단한 경우, 보안 서브시스템(310)을 통해 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 보안 서브시스템(310)은 제 2 프로세서(210)의 키에 기반하여 제 2 프로세서(210)의 보안 기능을 처리할 수 있다.According to various embodiments, when the access authority of the security subsystem 310 is allocated from the authority assignment device 220, the second processor 210 may perform a security function through the security subsystem 310 (operation 1661). According to an embodiment, when the second processor 210 receives a signal (eg, ACK signal) related to the assignment of access rights to the security subsystem 310 from the authority assignment device 220, the timer may be driven (eg, reset). The second processor 210 may check the time the second processor 210 occupies the security subsystem 310 based on the running time of the timer. When the second processor 210 determines that the security function related to at least one task of the second processor 210 can be processed based on the time the second processor 210 occupies the security subsystem 310, the security function can be performed through the security subsystem 310. According to an embodiment, the security subsystem 310 may process the security function of the second processor 210 based on the key of the second processor 210 .

다양한 실시예에 따르면, 제 2 프로세서(210)는 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(310)에 대한 접근 권한을 반환(또는 반납)할 수 있다(동작 1663). 일 실시예에 따르면, 제 2 프로세서(210)는 지정된 기준시간 내에 보안 기능과 관련된 적어도 하나의 작업의 처리를 완료한 경우, 보안 서브시스템(310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다(동작 1663). According to various embodiments, when processing of at least one task related to the security function is completed, the second processor 210 may return (or return) access rights to the security subsystem 310 (operation 1663). According to one embodiment, when the second processor 210 completes the processing of at least one task related to the security function within a specified reference time, a request signal related to the return of access rights to the security subsystem 310 may be transmitted to the rights assignment device 220 (operation 1663).

다양한 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)로부터의 보안 서브시스템(230)의 접근 권한의 반환(또는 반납) 요청과 무관하게 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 일 실시예에 따르면, 권한 할당 장치(220)는 제 2 프로세서(210)의 보안 서브시스템(230)의 점유 시간이 지정된 기준시간을 초과하는 것으로 판단한 경우, 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한을 회수할 수 있다. 권한 할당 장치(220)는 보안 서브시스템(230)에 대한 제 2 프로세서(210)의 접근 권한의 회수에 기반하여 보안 서브시스템(230)의 접근 권한의 반환(또는 반납)과 관련된 정보(예: 권한 반납 알림 정보)를 제 2 프로세서(210)로 전송할 수 있다(동작 1647). 일예로, 도 16b의 동작 1645 및 동작 1663은 생략될 수 있다.According to various embodiments, the authority assignment device 220 may retrieve the access authority of the second processor 210 to the security subsystem 230 regardless of the return (or return) request of the access authority of the security subsystem 230 from the second processor 210. According to an embodiment, when the authority assignment device 220 determines that the occupation time of the security subsystem 230 of the second processor 210 exceeds a specified reference time, the access authority of the second processor 210 to the security subsystem 230 may be recovered. Based on the recovery of the access right of the second processor 210 to the security subsystem 230, the authority assignment device 220 may transmit information related to return (or return) of the access authority of the security subsystem 230 (eg, authority return notification information) to the second processor 210 (operation 1647). For example, operations 1645 and 1663 of FIG. 16B may be omitted.

도 17은 다양한 실시예에 따른 전자 장치에서 보안 장치(예: 보안 서브시스템(230 또는 310))를 통해 보안 기능을 수행하기 위한 흐름도(1700)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 17의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다.17 is a flowchart 1700 for performing a security function through a security device (eg, the security subsystem 230 or 310) in an electronic device according to various embodiments. In the following embodiments, each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel. As an example, the electronic device of FIG. 17 may be the electronic device 101 of FIG. 1 or 2 .

도 17을 참조하는 다양한 실시예에 따르면, 전자 장치(예: 도 2의 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)과 관련된 지정된 점유 조건을 만족하지 않는 것으로 판단한 경우(예: 도 14의 동작 1407의 '아니오'), 동작 1701에서, 보안 서브시스템(230 또는 310)에 대한 접근 권한을 반환(또는 반납)할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 점유한 시간이 지정된 기준시간 이상인 경우, 적어도 하나의 작업의 완료 여부와 무관하게 보안 서브시스템(230 또는 310)에 대한 접근 권한의 반환과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한의 반환과 관련된 요청 신호는 접근 권한의 반환을 나타내기 위해 제 1 값과 상이한 제 2 값(예: '0')을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 17 , the electronic device (eg, the second processor 210 of FIG. 2 ) may return (or return) access rights to the security subsystem 230 or 310 in operation 1701 when it is determined that the specified occupancy condition related to the security subsystem 230 or 310 is not satisfied (eg, 'No' in operation 1407 of FIG. 14 ). According to an embodiment, when the time the second processor 210 occupies the security subsystem 230 or 310 is equal to or longer than a specified reference time, the second processor 210 may transmit a request signal related to the return of access rights to the security subsystem 230 or 310 to the authority assignment device 220 regardless of whether or not at least one task is completed. For example, the request signal related to the return of the access right may include a second value different from the first value (eg '0') to indicate the return of the access right.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 동작 1703에서, 보안 서브시스템(230 또는 310)을 이용하여 보안 기능의 처리를 완료하였는지 확인할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 2 프로세서(210)가 보안 서브시스템(230 또는 310)을 지정된 기준시간 동안 점유함에 기반하여 보안 서브시스템(230 또는 310)을 통해 처리 중이던 보안 기능을 종료한 경우, 보안 서브시스템(230 또는 310)을 이용하여 보안 기능의 처리를 완료하지 못한 적어도 하나의 작업이 존재하는 것으로 판단할 수 있다. According to various embodiments, in operation 1703, the electronic device (eg, the second processor 210) may check whether processing of the security function has been completed using the security subsystem 230 or 310. According to an embodiment, the second processor 210 may determine that there is at least one task in which the processing of the security function using the security subsystem 230 or 310 is not completed when the security function being processed through the security subsystem 230 or 310 is terminated based on that the second processor 210 occupies the security subsystem 230 or 310 for a specified reference time.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)을 이용하여 보안 기능의 처리를 완료한 것으로 판단한 경우(예: 동작 1703의 '예'), 보안 서브시스템(230 또는 310)을 통해 보안 기능을 수행하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the electronic device (eg, the second processor 210) determines that the processing of the security function has been completed using the security subsystem 230 or 310 (eg, 'yes' in operation 1703), an embodiment for performing the security function may be terminated through the security subsystem 230 or 310.

다양한 실시예에 따르면, 전자 장치(예: 제 2 프로세서(210))는 보안 서브시스템(230 또는 310)을 이용하여 보안 기능의 처리를 완료하지 못한 것으로 판단한 경우(예: 동작 1703의 '아니오'), 동작 1705에서, 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 일예로, 접근 권한과 관련된 요청 신호는 접근 권한을 요청하는 제 2 프로세서(210)와 관련된 정보(예: 식별 정보) 및/또는 접근 권한의 요청을 나타내기 위한 제 1 값(예: '1')을 포함할 수 있다.According to various embodiments, when the electronic device (eg, the second processor 210) determines that the processing of the security function has not been completed using the security subsystem 230 or 310 (eg, 'No' in operation 1703), in operation 1705, a request signal related to the access authority of the security subsystem 230 or 310 may be transmitted to the authority allocation device 220. As an example, the request signal related to access rights may include information related to the second processor 210 requesting access rights (eg, identification information) and/or a first value indicating a request for access rights (eg '1').

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 동작 1707에서, 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한이 할당되는지 확인할 수 있다. According to various embodiments, the electronic device (e.g., the first processor 200 and/or the second processor 210), in operation 1707, determines whether the security subsystem 230 or 310 is assigned access rights from the rights assignment device 220.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한이 할당되지 않은 것으로 판단한 경우(예: 동작 1707의 '아니오'), 보안 서브시스템(230 또는 310)을 통해 보안 기능을 수행하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the electronic device (eg, the first processor 200 and/or the second processor 210) determines that the access authority of the security subsystem 230 or 310 is not assigned by the authority assignment device 220 (eg, 'No' in operation 1707), an embodiment for performing a security function through the security subsystem 230 or 310 may be terminated.

다양한 실시예에 따르면, 전자 장치(예: 제 1 프로세서(200) 및/또는 제 2 프로세서(210))는 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한이 할당된 것으로 판단한 경우(예: 동작 1707의 '예'), 동작 1709에서, 보안 서브시스템(230 또는 310)을 통해 처리를 완료하지 못한 적어도 하나의 작업과 관련된 보안 기능을 수행할 수 있다. 일 실시예에 따르면, 제 2 프로세서(210)는 제 1 작업에 대응하는 권한 요청 신호 및 제 2 작업에 대응하는 권한 요청 신호를 순차적으로 권한 할당 장치(220)로 전송할 수 있다. 제 2 프로세서(210)는 보안 서브시스템(230 또는 310)의 접근 권한을 할당 받았으나 지정된 기준시간에 기반하여 제 1 작업을 완료하지 못한 경우, 제 1 작업에 대응하는 요청 신호를 권한 할당 장치(220)로 전송할 수 있다. 제 2 프로세서(210)는 제 2 작업에 대응하는 권한 요청 신호에 기반하여 권한 할당 장치(220)로부터 보안 서브시스템(230 또는 310)의 접근 권한을 할당받은 경우, 제 2 작업보다 지정된 기준시간에 기반하여 처리를 완료하지 못한 제 1 작업과 관련된 보안 기능을 먼저 수행할 수 있다. 일예로, 권한 요청 신호는 보안 서브시스템(230 또는 310)의 접근 권한과 관련된 요청 신호를 포함할 수 있다.According to various embodiments, when the electronic device (eg, the first processor 200 and/or the second processor 210) determines that the access authority of the security subsystem 230 or 310 has been assigned by the authority assignment device 220 (eg, 'Yes' in operation 1707), in operation 1709, the security subsystem 230 or 310 may perform a security function related to at least one task for which processing has not been completed. . According to an embodiment, the second processor 210 may sequentially transmit a permission request signal corresponding to the first task and a permission request signal corresponding to the second task to the permission assignment device 220 . When the second processor 210 has been assigned access rights of the security subsystem 230 or 310 but has not completed the first task based on the specified reference time, a request signal corresponding to the first task can be transmitted to the permission assignment device 220. When the second processor 210 is assigned access rights to the security subsystem 230 or 310 from the permission assignment unit 220 based on the permission request signal corresponding to the second task, the second processor 210 may first perform a security function related to the first task for which processing has not been completed based on a designated reference time rather than the second task. For example, the permission request signal may include a request signal related to the access permission of the security subsystem 230 or 310 .

다양한 실시예에 따르면, 어플리케이션 프로세서(예: 도 1의 메인 프로세서(121) 또는 도 2a 또는 도 3의 제 1 프로세서(200)) 및 커뮤니케이션 프로세서(예: 도 1의 보조 프로세서(123) 또는 도 2a 또는 도 3의 제 2 프로세서(210))를 포함하는 전자 장치(예: 도 1, 도 2a 또는 도 3의 전자 장치(101))의 동작 방법은, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 보안 서브시스템(예: 도 2a 또는 도 3의 보안 서브시스템(230 또는 310))의 접근 권한을 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작과 상기 보안 서브시스템의 접근 권한이 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당된 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 키를 획득하는 동작과 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 키에 기반하여 상기 보안 서브시스템을 통해 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 동작, 및 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 데이터를 초기화하는 동작을 포함할 수 있다.According to various embodiments, a method of operating an electronic device (eg, the electronic device 101 of FIGS. 1, 2A or 3 ) including an application processor (eg, the main processor 121 of FIG. 1 or the first processor 200 of FIG. 2A or 3 ) and a communication processor (eg, the auxiliary processor 123 of FIG. 1 or the second processor 210 of FIG. 2A or 3 ) is related to the application processor or the communication processor. Allocating the access right of a security subsystem (e.g., the security subsystem 230 or 310 of FIG. 2A or 3) to the application processor or the communication processor, obtaining a key related to the application processor or the communication processor when the access right of the security subsystem is assigned to the application processor or the communication processor, and processing the security function related to the communication processor through the security subsystem based on the key related to the application processor or the communication processor, and the application processor or the communication processor. An operation of initializing data related to the application processor or the communication processor based on the return of the access right of the security subsystem assigned to the processor.

다양한 실시예에 따르면, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 교번하게 할당하는 동작을 포함할 수 있다.According to various embodiments, the operation of assigning the access authority of the security subsystem to the application processor or the communication processor may include alternately allocating the access authority of the security subsystem to the application processor or the communication processor when a plurality of request signals related to the access authority of the security subsystem are received from the application processor and the communication processor.

다양한 실시예에 따르면, 상기 교번하게 할당하는 동작은, 상기 어플리케이션 프로세서로부터 연속적으로 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 후 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 적어도 하나의 요청 신호를 수신한 경우, 상기 요청 신호의 수신 시점에 기반하여 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작, 및 상기 어플리케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한이 회수된 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the alternately allocating may include allocating the access right of the security subsystem to the application processor based on the time point at which the request signal is received, and allocating the access right of the security subsystem to the communication processor when the access right of the security subsystem is retrieved from the application processor, when at least one request signal related to the access right of the security subsystem is received from the communication processor after continuously receiving a plurality of request signals related to the access right of the security subsystem from the application processor. there is

다양한 실시예에 따르면, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은, 상기 어플리케이션 프로세서 및/또는 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호를 수신한 경우, 상기 접근 요청의 수신 시점에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함할 수 있다.According to various embodiments, the operation of allocating the access authority of the security subsystem to the application processor or the communication processor may include allocating the access authority of the security subsystem to the application processor or the communication processor based on a time point at which the access request is received when a request signal related to the access authority of the security subsystem is received from the application processor and/or the communication processor.

다양한 실시예에 따르면, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하는 동작과 상기 어플리케이션 프로세서로의 우선순위가 설정된 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작, 및 상기 어플리케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함할 수 있다.According to various embodiments, the operation of allocating to the application processor or the communication processor includes, when receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, identifying a processor for which the priority of the access authority of the security subsystem is set, assigning the access authority of the security subsystem to the application processor when the priority to the application processor is set, and determining that at least one task corresponding to the request signal received from the application processor and related to the access authority of the security subsystem has been completed. In one case, an operation of allocating the access authority of the security subsystem to the communication processor may be included.

다양한 실시예에 따르면, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하는 동작과 상기 커뮤니케이션 프로세서로의 우선순위가 설정된 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작, 및 상기 커뮤니케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함할 수 있다.According to various embodiments, the operation of assigning to the application processor or the communication processor includes, when a plurality of request signals related to the access authority of the security subsystem are received from the application processor and the communication processor, identifying a processor for which the priority of the access authority of the security subsystem is set, assigning the access authority of the security subsystem to the communication processor when the priority to the communication processor is set, and determining that at least one task corresponding to the request signal related to the access authority of the security subsystem received from the communication processor has been completed. In one case, an operation of assigning the access authority of the security subsystem to the application processor may be included.

다양한 실시예에 따르면, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 시점을 기준으로 지정된 기준시간이 경과한 경우, 상기 커뮤니케이션 프로세서와 관련된 보안 기능이 처리 완료와 무관하게 상기 보안 서브시스템에 대한 접근 권한을 반환하는 동작을 포함할 수 있다.According to various embodiments, when a specified reference time has elapsed based on the time point at which the access authority of the security subsystem is assigned to the communication processor, the security function related to the communication processor may include an operation of returning the access authority to the security subsystem regardless of completion of processing.

다양한 실시예에 따르면, 상기 보안 서브시스템의 접근 권한이 상기 커뮤니케이션 프로세서에 할당되는 경우, 이전에 상기 보안 서브시스템의 접근 권한을 할당받은 상태에서 상기 지정된 기준시간에 기반하여 처리가 완료되지 않은 보안 기능이 존재하는지 확인하는 동작, 및 상기 처리가 완료되지 않은 보안 기능이 존재하는 경우, 상기 보안 서브시스템을 통해 상기 처리가 완료되지 않은 보안 기능을 처리하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, when the access right of the security subsystem is assigned to the communication processor, the method may further include checking whether there is a security function whose processing has not been completed based on the specified reference time in a state in which the access right of the security subsystem has been previously assigned, and processing the security function whose processing has not been completed through the security subsystem if there is a security function whose processing has not been completed.

다양한 실시예에 따르면, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 경우, 상기 어플리케이션 프로세서에 대응하는 키에 기반하여 상기 어플리케이션 프로세서와 관련된 보안 기능을 수행하는 동작, 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 경우, 상기 커뮤니케이션 프로세서에 대응하는 키에 기반하여 상기 어플리케이션 프로세서와 관련된 보안 기능을 수행하는 동작을 더 포함할 수 있다.According to various embodiments, the method may further include performing a security function related to the application processor based on a key corresponding to the application processor when the access authority of the security subsystem is allocated to the application processor, or performing a security function related to the application processor based on a key corresponding to the communication processor when the access authority of the security subsystem is allocated to the communication processor.

다양한 실시예에 따르면, 상기 보안 서브시스템의 접근 권한이 상기 커뮤니케이션 프로세서에 할당된 시간이 상기 지정된 기준시간이 경과하기 이전에 상기 커뮤니케이션 프로세서와 관련된 보안 기능의 처리를 완료한 경우, 상기 보안 서브시스템의 접근 권한을 반환하는 동작을 더 포함할 수 있다.According to various embodiments, when the time allotted to the communication processor by the access authority of the security subsystem completes processing of the security function related to the communication processor before the designated reference time elapses, an operation of returning the access authority of the security subsystem may be further included.

다양한 실시예에 따르면, 상기 커뮤니케이션 프로세서와 관련된 키를 획득하는 동작은, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 경우, 상기 보안 서브시스템과 별도의 프로세서 키 관리 장치(예: 도 3의 프로세서 키 관리 장치(300))를 통해 상기 커뮤니케이션 프로세서와 관련된 루트 키를 획득하는 동작을 포함할 수 있다.According to various embodiments, the operation of acquiring the key related to the communication processor may include, when the access authority of the security subsystem is assigned to the communication processor, an operation of acquiring a root key related to the communication processor through a processor key management device separate from the security subsystem (eg, the processor key management device 300 of FIG. 3 ).

다양한 실시예에 따르면, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 경우, 상기 보안 서브시스템과 별도의 프로세서 키 관리 장치를 통해 상기 어플리케이션 프로세서와 관련된 루크 키를 획득하는 동작, 및 상기 어플리케이션 프로세서와 관련된 키에 기반하여 상기 보안 서브시스템을 통해 상기 어플리케이션 프로세서와 관련된 보안 기능을 처리하는 동작을 더 포함할 수 있다.According to various embodiments, when the access authority of the security subsystem is assigned to the application processor, the method may further include obtaining a root key related to the application processor through a processor key management device separate from the security subsystem, and processing a security function related to the application processor through the security subsystem based on the key related to the application processor.

다양한 실시예에 따르면, 상기 데이터를 초기화하는 동작은, 상기 권한 할당 장치로부터 상기 어플리케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 1 키 및 상기 어플리케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하는 동작, 및 상기 권한 할당 장치로부터 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 2 키 및 상기 커뮤니케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하는 동작을 포함할 수 있다.According to various embodiments, the operation of initializing the data may include deleting the first key and data related to the security function of the application processor when information related to the return of the access right of the security subsystem assigned to the application processor is received from the right assigning device, and deleting data related to the second key and the security function of the communication processor when receiving information related to the return of the access right of the security subsystem assigned to the communication processor from the right assigning device.

본 명세서와 도면에 개시된 본 발명의 실시예는 본 발명의 실시예에 따른 기술 내용을 쉽게 설명하고 본 발명의 실시예의 이해를 돕기 위해 특정 예를 제시한 것일 뿐이며, 본 발명의 실시예의 범위를 한정하고자 하는 것은 아니다. 따라서 본 발명의 다양한 실시예의 범위는 여기에 개시된 실시예 이외에도 본 발명의 다양한 실시예의 기술적 사상을 바탕으로 도출되는 모든 변경 또는 변형된 형태가 본 발명의 다양한 실시예의 범위에 포함되는 것으로 해석되어야 한다. The embodiments of the present invention disclosed in the present specification and drawings are only presented as specific examples to easily explain the technical content according to the embodiments of the present invention and help understanding of the embodiments of the present invention, It is not intended to limit the scope of the embodiments of the present invention. Therefore, the scope of various embodiments of the present invention should be construed as including all changes or modified forms derived based on the technical spirit of various embodiments of the present invention in addition to the embodiments disclosed herein are included in the scope of various embodiments of the present invention.

Claims (20)

전자 장치에 있어서,
어플리케이션 프로세서,
커뮤니케이션 프로세서,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 보안 서브시스템(security subsystem),
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 권한 할당 장치, 및
상기 권한 할당 장치에서 상기 보안 서브시스템의 접근 권한을 할당받은 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 기반하여, 상기 어플리케이션 프로세서와 관련된 제 1 키 또는 상기 커뮤니케이션 프로세서와 관련된 제 2 키를 상기 보안 서브시스템으로 제공하는 프로세서 키 관리 장치를 포함하며,
상기 보안 서브시스템은,
상기 권한 할당 장치에서 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로의 상기 보안 서브시스템의 접근 권한의 할당에 기반하여 상기 프로세서 키 관리 장치로부터 제공받은 상기 제 1 키 또는 상기 제 2 키를 사용하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하고,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 데이터를 초기화하는 전자 장치.
In electronic devices,
application processor,
communication processor,
A security subsystem for processing security functions related to the application processor or the communication processor;
an authority assignment device for allocating the access authority of the security subsystem to the application processor or the communication processor; and
A processor key management device for providing a first key related to the application processor or a second key related to the communication processor to the security subsystem based on the application processor or the communication processor to which the access right of the security subsystem is assigned by the permission assignment device,
The security subsystem,
Processing a security function related to the application processor or the communication processor using the first key or the second key provided from the processor key management device based on the allocation of access rights of the security subsystem from the permission assignment device to the application processor or the communication processor;
An electronic device that initializes data related to the application processor or the communication processor based on return of the access authority of the security subsystem assigned to the application processor or the communication processor.
제 1항에 있어서,
상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 교번하게 할당하는 전자 장치.
According to claim 1,
The authority assigning device, when receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, alternately assigns the access authority of the security subsystem to the application processor or the communication processor.
제 2항에 있어서,
상기 권한 할당 장치는, 상기 어플리케이션 프로세서로부터 연속적으로 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 후 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 적어도 하나의 요청 신호를 수신한 경우, 상기 요청 신호의 수신 시점에 기반하여 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하고,
상기 어플리케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한을 회수한 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 전자 장치.
According to claim 2,
The authority assigning device, when receiving at least one request signal related to the access authority of the security subsystem from the communication processor after continuously receiving a plurality of request signals related to the access authority of the security subsystem from the application processor, assigns the access authority of the security subsystem to the application processor based on the reception time of the request signal;
and allocating the access authority of the security subsystem to the communication processor when the access authority of the security subsystem is retrieved from the application processor.
제 1항에 있어서,
상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및/또는 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호를 수신한 경우, 상기 접근 요청의 수신 시점에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 전자 장치.
According to claim 1,
When the authority assignment device receives a request signal related to the access authority of the security subsystem from the application processor and/or the communication processor, the electronic device assigns the access authority of the security subsystem to the application processor or the communication processor based on the reception time of the access request.
제 1항에 있어서,
상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하고,
상기 어플리케이션 프로세서로의 우선순위가 설정된 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하고,
상기 어플리케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 전자 장치.
According to claim 1,
The authority assignment device, when receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, identifies a processor for which the priority of the access authority of the security subsystem is set;
When the priority of the application processor is set, assigning the access authority of the security subsystem to the application processor;
and allocating the access authority of the security subsystem to the communication processor when it is determined that processing of at least one job corresponding to a request signal related to the access authority of the security subsystem received from the application processor is completed.
제 1항에 있어서,
상기 권한 할당 장치는, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하고,
상기 커뮤니케이션 프로세서로의 우선순위가 설정된 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하고,
상기 커뮤니케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 전자 장치.
According to claim 1,
The authority assignment device, when receiving a plurality of request signals related to the access authority of the security subsystem from the application processor and the communication processor, identifies a processor for which the priority of the access authority of the security subsystem is set;
When the priority to the communication processor is set, assigning the access authority of the security subsystem to the communication processor;
and allocating the access authority of the security subsystem to the application processor when it is determined that processing of at least one job corresponding to the request signal related to the access authority of the security subsystem received from the communication processor is completed.
제 1항에 있어서,
상기 커뮤니케이션 프로세서는, 상기 권한 할당 장치로부터 상기 보안 서브시스템의 접근 권한을 할당받은 시점을 기준으로 지정된 기준시간이 경과한 경우, 상기 커뮤니케이션 프로세서와 관련된 보안 기능이 처리 완료와 무관하게 상기 보안 서브시스템에 대한 접근 권한을 반환하는 전자 장치.
According to claim 1,
The communication processor returns the access right to the security subsystem regardless of the completion of processing by the security function related to the communication processor when a specified reference time has elapsed based on the time point at which the right to access the security subsystem is assigned by the right assigning device.
제 1항에 있어서,
상기 보안 서브시스템은,
상기 권한 할당 장치로부터 상기 어플리케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 1 키 및 상기 어플리케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하고,
상기 권한 할당 장치로부터 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 2 키 및 상기 커뮤니케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하는 전자 장치.
According to claim 1,
The security subsystem,
When information related to the return of the access right of the security subsystem allocated to the application processor is received from the rights assignment device, the first key and data related to the security function of the application processor are deleted;
The electronic device for deleting the second key and data related to the security function of the communication processor when information related to the return of the access right of the security subsystem allocated to the communication processor is received from the right assigning device.
제 1항에 있어서,
상기 권한 할당 장치는, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당한 경우, 상기 어플리케이션 프로세서로의 접근 권한의 할당과 관련된 정보를 상기 프로세서 키 관리 장치로 제공하고,
상기 프로세서 키 관리 장치는, 상기 어플리케이션 프로세서로의 접근 권한의 할당과 관련된 정보에 기반하여 상기 어플리케이션 프로세서와 관련된 상기 제 1 키를 상기 보안 서브시스템으로 전송하는 전자 장치.
According to claim 1,
When the access authority of the security subsystem is assigned to the application processor, the authority assignment unit provides information related to the allocation of access authority to the application processor to the processor key management unit;
wherein the processor key management device transmits the first key associated with the application processor to the security subsystem based on information related to assignment of access rights to the application processor.
제 1항에 있어서,
상기 권한 할당 장치는, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당한 경우, 상기 커뮤니케이션 프로세서로의 접근 권한의 할당과 관련된 정보를 상기 프로세서 키 관리 장치로 제공하고,
상기 프로세서 키 관리 장치는, 상기 커뮤니케이션 프로세서로의 접근 권한의 할당과 관련된 정보에 기반하여 상기 커뮤니케이션 프로세서와 관련된 상기 제 2 키를 상기 보안 서브시스템으로 전송하는 전자 장치.
According to claim 1,
When the access authority of the security subsystem is allocated to the communication processor, the authority assignment unit provides information related to the allocation of access authority to the communication processor to the processor key management unit;
wherein the processor key management device transmits the second key related to the communication processor to the security subsystem based on information related to assignment of access rights to the communication processor.
어플리케이션 프로세서 및 커뮤니케이션 프로세서를 포함하는 전자 장치의 동작 방법에 있어서,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 보안 서브시스템(security subsystem)의 접근 권한을 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작,
상기 보안 서브시스템의 접근 권한이 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당된 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 키를 획득하는 동작,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 키에 기반하여 상기 보안 서브시스템을 통해 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 보안 기능을 처리하는 동작, 및
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서와 관련된 데이터를 초기화하는 동작을 포함하는 방법.
In the operating method of an electronic device including an application processor and a communication processor,
Allocating access rights of a security subsystem that processes a security function related to the application processor or the communication processor to the application processor or the communication processor;
obtaining a key related to the application processor or the communication processor when the access authority of the security subsystem is assigned to the application processor or the communication processor;
processing a security function related to the application processor or the communication processor through the security subsystem based on a key related to the application processor or the communication processor; and
and initializing data related to the application processor or the communication processor based on return of the access authority of the security subsystem assigned to the application processor or the communication processor.
제 11항에 있어서,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은, 상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 교번하게 할당하는 동작을 포함하는 방법.
According to claim 11,
The assigning operation to the application processor or the communication processor includes alternately allocating the access authority of the security subsystem to the application processor or the communication processor when a plurality of request signals related to the access authority of the security subsystem are received from the application processor and the communication processor.
제 12항에 있어서,
상기 교번하게 할당하는 동작은,
상기 어플리케이션 프로세서로부터 연속적으로 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 후 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 적어도 하나의 요청 신호를 수신한 경우, 상기 요청 신호의 수신 시점에 기반하여 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작, 및
상기 어플리케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한이 회수된 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함하는 방법.
According to claim 12,
The operation of alternately allocating,
Allocating the access authority of the security subsystem to the application processor based on the reception time of the request signal when at least one request signal related to the access authority of the security subsystem is received from the communication processor after continuously receiving a plurality of request signals related to the access authority of the security subsystem from the application processor; and
and allocating the access authority of the security subsystem to the communication processor when the access authority of the security subsystem is retrieved from the application processor.
제 11항에 있어서,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은, 상기 어플리케이션 프로세서 및/또는 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호를 수신한 경우, 상기 접근 요청의 수신 시점에 기반하여 상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함하는 방법.
According to claim 11,
The assigning operation to the application processor or the communication processor includes, when receiving a request signal related to the access authority of the security subsystem from the application processor and/or the communication processor, allocating the access authority of the security subsystem to the application processor or the communication processor based on a receiving time point of the access request.
제 11항에 있어서,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은,
상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하는 동작,
상기 어플리케이션 프로세서로의 우선순위가 설정된 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작, 및
상기 어플리케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함하는 방법.
According to claim 11,
The operation of assigning to the application processor or the communication processor,
When a plurality of request signals related to the access authority of the security subsystem are received from the application processor and the communication processor, confirming a processor for which the priority of the access authority of the security subsystem is set;
assigning the access authority of the security subsystem to the application processor when the priority of the application processor is set; and
and allocating the access authority of the security subsystem to the communication processor when it is determined that processing of at least one job corresponding to a request signal related to the access authority of the security subsystem received from the application processor is completed.
제 11항에 있어서,
상기 어플리케이션 프로세서 또는 상기 커뮤니케이션 프로세서에 할당하는 동작은,
상기 어플리케이션 프로세서 및 상기 커뮤니케이션 프로세서로부터 상기 보안 서브시스템의 접근 권한과 관련된 복수의 요청 신호들을 수신한 경우, 상기 보안 서브시스템의 접근 권한의 우선순위가 설정된 프로세서를 확인하는 동작,
상기 커뮤니케이션 프로세서로의 우선순위가 설정된 경우, 상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작, 및
상기 커뮤니케이션 프로세서로부터 수신한 상기 보안 서브시스템의 접근 권한과 관련된 요청 신호에 대응하는 적어도 하나의 작업의 처리를 완료한 것으로 판단한 경우, 상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한을 할당하는 동작을 포함하는 방법.
According to claim 11,
The operation of assigning to the application processor or the communication processor,
When a plurality of request signals related to the access authority of the security subsystem are received from the application processor and the communication processor, confirming a processor for which the priority of the access authority of the security subsystem is set;
Allocating the access authority of the security subsystem to the communication processor when the priority to the communication processor is set; and
and allocating the access authority of the security subsystem to the application processor when it is determined that processing of at least one job corresponding to a request signal related to the access authority of the security subsystem received from the communication processor is completed.
제 11항에 있어서,
상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 시점을 기준으로 지정된 기준시간이 경과한 경우, 상기 커뮤니케이션 프로세서와 관련된 보안 기능이 처리 완료와 무관하게 상기 보안 서브시스템에 대한 접근 권한을 반환하는 동작을 더 포함하는 방법.
According to claim 11,
Returning, by a security function related to the communication processor, the access authority to the security subsystem, regardless of completion of processing, when a specified reference time has elapsed based on a point in time when the access authority of the security subsystem is assigned to the communication processor.
제 11항에 있어서,
상기 데이터를 초기화하는 동작은,
상기 권한 할당 장치로부터 상기 어플리케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 1 키 및 상기 어플리케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하는 동작, 및
상기 권한 할당 장치로부터 상기 커뮤니케이션 프로세서로 할당된 상기 보안 서브시스템의 접근 권한의 반환과 관련된 정보를 수신한 경우, 상기 제 2 키 및 상기 커뮤니케이션 프로세서의 보안 기능과 관련된 데이터를 삭제하는 동작을 포함하는 방법.
According to claim 11,
The operation of initializing the data,
deleting the first key and data related to the security function of the application processor when information related to the return of the access right of the security subsystem assigned to the application processor is received from the rights assignment device; and
and deleting the second key and data related to a security function of the communication processor when receiving information related to the return of the access right of the security subsystem allocated to the communication processor from the right assigning device.
제 11항에 있어서,
상기 커뮤니케이션 프로세서와 관련된 키를 획득하는 동작은,
상기 커뮤니케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 경우, 상기 보안 서브시스템과 별도의 프로세서 키 관리 장치를 통해 상기 커뮤니케이션 프로세서와 관련된 루트 키를 획득하는 동작을 포함하는 방법.
According to claim 11,
The operation of obtaining a key related to the communication processor,
and obtaining a root key related to the communication processor through a processor key management device separate from the security subsystem when the access authority of the security subsystem is assigned to the communication processor.
제 11항에 있어서,
상기 어플리케이션 프로세서에 상기 보안 서브시스템의 접근 권한이 할당된 경우, 상기 보안 서브시스템과 별도의 프로세서 키 관리 장치를 통해 상기 어플리케이션 프로세서와 관련된 루크 키를 획득하는 동작, 및
상기 어플리케이션 프로세서와 관련된 키에 기반하여 상기 보안 서브시스템을 통해 상기 어플리케이션 프로세서와 관련된 보안 기능을 처리하는 동작을 더 포함하는 방법.
According to claim 11,
obtaining a rook key related to the application processor through a processor key management device separate from the security subsystem when the access authority of the security subsystem is assigned to the application processor; and
and processing a security function related to the application processor through the security subsystem based on the key related to the application processor.
KR1020220116036A 2022-01-14 2022-09-15 Electronic device for operating security device and operating method thereof KR20230110161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/000055 WO2023136531A1 (en) 2022-01-14 2023-01-03 Electronic device for operating security device, and operating method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220006075 2022-01-14
KR20220006075 2022-01-14

Publications (1)

Publication Number Publication Date
KR20230110161A true KR20230110161A (en) 2023-07-21

Family

ID=87430040

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220116036A KR20230110161A (en) 2022-01-14 2022-09-15 Electronic device for operating security device and operating method thereof

Country Status (1)

Country Link
KR (1) KR20230110161A (en)

Similar Documents

Publication Publication Date Title
KR20210017083A (en) Electronic device and method for generating attestation certificate based on fused key
EP3709205B1 (en) Electronic device including secure integrated circuit
US20200366471A1 (en) Electronic device and method for receiving push message stored in blockchain
US11290888B2 (en) Electronic device for discovering device and method thereof
KR20230020262A (en) Method and apparatus for managing non-fungible token for digital content
US20230396604A1 (en) Method for performing user authentication and device for performing same
US20230252461A1 (en) Electronic device for providing transaction in blockchain network and operating method thereof
US20230004660A1 (en) Method of processing secure data and electronic device supporting the same
US20220209940A1 (en) Method for providing encrypted object and electronic device for supporting the same
KR20230110161A (en) Electronic device for operating security device and operating method thereof
EP4080816A1 (en) Method for updating shared secret key, and electronic device supporting same
KR20220096725A (en) Electronic device performing wireless communication with accessary device and operating method thereof
US20230093667A1 (en) Method of providing login information and electronic device performing thereof
EP4328768A1 (en) Electronic device for performing different login processes according to authentication type and control method thereof
US20230261887A1 (en) Electronic device having partial ledger in blockchain network and operating method thereof
US20230289786A1 (en) Electronic device for transmitting transaction by using external device and operation method thereof
US20230029025A1 (en) Electronic device and method of backing up secure element
US20230359530A1 (en) Electronic device for supporting data backup, and operation method thereof
US20230267190A1 (en) Electronic device, method, and non-transitory computer-readable storage media for executing setup via communication with another device
US20220329420A1 (en) Electronic device to enhance randomness of security module using multiple hardware random number generator and the method thereof
US20220329615A1 (en) Method of processing network security policy of electronic device
KR20240032591A (en) Electronic device for storing encrypted data in non-volatile memory and method thereof
KR20230037954A (en) Electronic device performing an encryption operation about transaction data and method in blockchain network
KR20230126135A (en) Electronic device, method, and non-transitory computer readable storage medium for executing setup through communication with another electronic device
KR20230022729A (en) An electronic device for performing different login process according to authentication type and control method thereof