KR20230119569A - Electronic device providing security function and method of operation therof - Google Patents

Electronic device providing security function and method of operation therof Download PDF

Info

Publication number
KR20230119569A
KR20230119569A KR1020220030661A KR20220030661A KR20230119569A KR 20230119569 A KR20230119569 A KR 20230119569A KR 1020220030661 A KR1020220030661 A KR 1020220030661A KR 20220030661 A KR20220030661 A KR 20220030661A KR 20230119569 A KR20230119569 A KR 20230119569A
Authority
KR
South Korea
Prior art keywords
electronic device
certificate
certificate chain
memory
security function
Prior art date
Application number
KR1020220030661A
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/KR2022/020128 priority Critical patent/WO2023149648A1/en
Publication of KR20230119569A publication Critical patent/KR20230119569A/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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • G06F21/35User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3234Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving additional secure or trusted devices, e.g. TPM, smartcard, USB or software token
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3271Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

본 문서에 개시되는 일 실시 예에 따른 제1 전자 장치는, 제2 전자 장치와 통신을 위한 무선 통신 회로, 상기 무선 통신 회로와 작동적으로 연결된 프로세서, 및 상기 프로세서와 작동적으로 연결된 메모리를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 무선 통신 회로를 통해 상기 제2 전자 장치로부터 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 수신하고, 상기 보안 기능은 상기 제2 전자 장치에 대하여 보안을 요구하는 동작에 대한 사용자 요청이 있는 경우 상기 제2 전자 장치가 상기 인증서 체인의 검증 과정을 수행하도록 하는 기능이며, 상기 챌린지 값 및 상기 제1 전자 장치의 고유의 식별자(unique ID)를 포함하는 상기 인증서 체인을 형성하여 상기 무선 통신 회로를 통해 상기 제2 전자 장치로 전송하도록 하는 인스트럭션들을 저장할 수 있다. A first electronic device according to an embodiment disclosed herein includes a wireless communication circuit for communication with a second electronic device, a processor operatively connected to the wireless communication circuit, and a memory operatively connected to the processor. and the memory, when executed, when the processor receives a user input requesting activation of a security function through the first electronic device or the second electronic device, the second electronic device via the wireless communication circuit. When a certificate chain request including a challenge value is received from an electronic device, and there is a user request for an operation requesting security for the second electronic device, the security function determines the second electronic device. It is a function that causes a device to perform a verification process of the certificate chain, and forms the certificate chain including the challenge value and a unique identifier (unique ID) of the first electronic device to obtain the second electronic device through the wireless communication circuit. It may store instructions to be transmitted to the electronic device.

Description

보안 기능을 제공하는 전자 장치 및 그의 동작 방법{ELECTRONIC DEVICE PROVIDING SECURITY FUNCTION AND METHOD OF OPERATION THEROF}Electronic device providing security function and operation method thereof

본 문서에서 개시되는 실시 예들은, 보안 기능을 제공하는 전자 장치 및 그의 동작 방법 에 관한 것이다.Embodiments disclosed in this document relate to an electronic device providing a security function and an operating method thereof.

웨어러블 장치(또는 액세서리 장치)(예: 스마트 워치, 블루투스 이어폰)는 호스트 전자 장치(예: 스마트 폰)과 연결하여 사용이 가능하다. 웨어러블 장치의 분실 시 타인이 습득하여 기기 초기화를 한 후에 무단 사용이 가능한 상태가 될 수 있다. A wearable device (or accessory device) (eg, a smart watch or a Bluetooth earphone) may be connected to and used with a host electronic device (eg, a smart phone). When a wearable device is lost, it may become available for unauthorized use after another person acquires it and initializes the device.

네트워크 통신을 지원하는 웨어러블 장치의 경우 네트워크에 접속하여 계정을 인증하는 방법을 이용하여 기기 초기화 및 타 호스트 장치와의 연결을 방지하는 기능을 지원할 수 있다. 예를 들어, 온라인 계정에 웨어러블 장치를 등록하고, 추후 기기 초기화 또는 호스트 장치와의 연결 해제 동작 시 계정 인증(예: 로그인)을 사용자에게 요구하여, 계정 내 등록된 기기 항목의 설정 변경 후 기기 초기화 또는 호스트 장치와의 연결 해제를 수행하도록 할 수 있다. 또한 기기 초기화 후 새로운 호스트 장치와 연결하려면 초기화 전 등록된 온라인 계정의 인증을 거쳐야만 새로운 호스트 장치와의 연결 동작이 시작되도록 할 수 있다.In the case of a wearable device supporting network communication, a function of initializing the device and preventing connection with other host devices may be supported by using a method of authenticating an account by accessing a network. For example, after registering a wearable device to an online account, requesting account authentication (e.g., log-in) from the user when resetting the device later or disconnecting from the host device, changing the settings of the registered device item in the account, and then resetting the device Alternatively, disconnection from the host device may be performed. In addition, in order to connect to a new host device after device initialization, the connection operation with the new host device can be started only after authentication of an online account registered before initialization.

또는 UICC(universal integrated circuit card; 범용 집적 회로 카드)(예: USIM(universal subscriber identity module) 카드, eSIM(embedded SIM))가 지원되는 웨어러블 장치의 경우 UICC가 포함된 웨어러블 장치 정보를 이용하여 무단 사용을 봉쇄하는 기능이 지원될 수 있다. 예를 들어, UICC 가 지원되는 웨어러블 장치 경우 웨어러블 장치의 기기 초기화 후 최초 부팅 시, 잠금 응용프로그램이 자동으로 실행되어 웨어러블 장치의 잠금 처리를 수행할 수 있다.Or, in the case of a wearable device that supports UICC (universal integrated circuit card) (e.g. USIM (universal subscriber identity module) card, eSIM (embedded SIM)), unauthorized use by using wearable device information including UICC Blocking function can be supported. For example, in the case of a wearable device supporting UICC, when the wearable device is first booted after device initialization, a locking application program may be automatically executed to perform locking of the wearable device.

네트워크 통신이나 UICC를 지원하지 않는 웨어러블 장치의 경우 본인 인증을 할 수 있는 수단이 없어 기기 초기화 및 타 호스트 장치와의 연결을 방지하는 기능을 제공하는 것이 불가능할 수 있다.In the case of a wearable device that does not support network communication or UICC, it may be impossible to provide a function of initializing the device and preventing connection with other host devices because there is no means for authenticating the user.

본 개시의 다양한 실시예는, 네트워크 통신이나 UICC를 지원하지 않는 웨어러블 장치이거나, 웨어러블 장치의 제조사에서 관리하는 자체 계정이 없는 등의 경우에도, 호스트 장치와 웨어러블 장치 간의 인증서 체인 검증 방법을 활용하여 웨어러블 장치의 보안 기능을 제공하는 전자 장치 및 그의 동작 방법을 제공하고자 한다.According to various embodiments of the present disclosure, even if the wearable device does not support network communication or UICC, or the wearable device does not have its own account managed by the wearable device manufacturer, a method for verifying a certificate chain between a host device and a wearable device is utilized to provide a wearable device. An electronic device providing a security function of the device and an operating method thereof are provided.

본 문서에 개시되는 일 실시 예에 따른 제1 전자 장치는, 제2 전자 장치와 통신을 위한 무선 통신 회로, 상기 무선 통신 회로와 작동적으로 연결된 프로세서, 및 상기 프로세서와 작동적으로 연결된 메모리를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 무선 통신 회로를 통해 상기 제2 전자 장치로부터 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 수신하고, 상기 보안 기능은 상기 제2 전자 장치에 대하여 보안을 요구하는 동작에 대한 사용자 요청이 있는 경우 상기 제2 전자 장치가 상기 인증서 체인의 검증 과정을 수행하도록 하는 기능이며, 상기 챌린지 값 및 상기 제1 전자 장치의 고유의 식별자(unique ID)를 포함하는 상기 인증서 체인을 형성하여 상기 무선 통신 회로를 통해 상기 제2 전자 장치로 전송하도록 하는 인스트럭션들을 저장할 수 있다. A first electronic device according to an embodiment disclosed herein includes a wireless communication circuit for communication with a second electronic device, a processor operatively connected to the wireless communication circuit, and a memory operatively connected to the processor. and the memory, when executed, when the processor receives a user input requesting activation of a security function through the first electronic device or the second electronic device, the second electronic device via the wireless communication circuit. When a certificate chain request including a challenge value is received from an electronic device, and there is a user request for an operation requesting security for the second electronic device, the security function determines the second electronic device. It is a function that causes a device to perform a verification process of the certificate chain, and forms the certificate chain including the challenge value and a unique identifier (unique ID) of the first electronic device to obtain the second electronic device through the wireless communication circuit. It may store instructions to be transmitted to the electronic device.

본 문서에 개시되는 일 실시 예에 따른 제2 전자 장치는, 제1 전자 장치와 통신을 위한 무선 통신 회로, 상기 무선 통신 회로와 작동적으로 연결된 프로세서, 및 상기 프로세서와 작동적으로 연결된 메모리;를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 제1 전자 장치에게 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 전송하고, 상기 제1 전자 장치로부터 수신된 상기 인증서 체인의 유효성을 검증하며, 상기 인증서 체인의 유효성이 검증됨에 따라, 상기 인증서 체인 및 상기 인증서 체인에 포함된 상기 제1 전자 장치의 고유의 식별자를 상기 메모리의 제2 보안 메모리에 저장하고, 상기 보안 기능을 활성화하도록 하는 인스트럭션들을 저장할 수 있다.A second electronic device according to an embodiment disclosed in this document includes a wireless communication circuit for communication with a first electronic device, a processor operatively connected to the wireless communication circuit, and a memory operatively connected to the processor. and, when the memory is executed, when the processor receives a user input requesting activation of a security function through the first electronic device or the second electronic device, the memory provides a challenge value to the first electronic device. (challenge value) is transmitted, the validity of the certificate chain received from the first electronic device is verified, and as the validity of the certificate chain is verified, the certificate chain and the A unique identifier of the first electronic device included in the certificate chain may be stored in a second secure memory of the memory, and instructions for activating the security function may be stored.

본 개시의 다양한 실시예에 따르면, 네트워크 통신이나 UICC를 지원하지 않는 웨어러블 장치이거나, 웨어러블 장치의 제조사에서 관리하는 자체 계정이 없는 등의 경우에도, 호스트 장치와 웨어러블 장치 간의 인증서 체인 검증 방법을 활용하여 웨어러블 장치의 보안 기능을 제공하는 전자 장치 및 그의 동작 방법이 제공될 수 있다.According to various embodiments of the present disclosure, even in the case of a wearable device that does not support network communication or UICC or does not have its own account managed by the manufacturer of the wearable device, a method for verifying a certificate chain between a host device and a wearable device can be used. An electronic device providing a security function of a wearable device and an operating method thereof may be provided.

이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.In addition to this, various effects identified directly or indirectly through this document may be provided.

도 1은, 다양한 실시 예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는 일 실시예에 따른 전자 장치들의 구성을 나타낸 블록도이다.
도 3은 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.
도 4는 일 실시예에 따른 전자 장치의 인증서 체인을 나타낸 도면이다.
도 5는 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.
도 6은 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.
도 7은 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.
도 8은 일 실시예에 따른 제1 전자 장치의 동작을 나타낸 흐름도이다.
도 9는 일 실시예에 따른 제2 전자 장치의 동작을 나타낸 흐름도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is a block diagram illustrating configurations of electronic devices according to an exemplary embodiment.
3 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.
4 is a diagram illustrating a certificate chain of an electronic device according to an embodiment.
5 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.
6 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.
7 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.
8 is a flowchart illustrating an operation of a first electronic device according to an embodiment.
9 is a flowchart illustrating an operation of a second electronic device according to an embodiment.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar elements.

이하, 본 발명의 다양한 실시 예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 실시 예의 다양한 변경(modification), 균등물(equivalent), 및/또는 대체물(alternative)을 포함하는 것으로 이해되어야 한다. Hereinafter, various embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that this is not intended to limit the present invention to the specific embodiments, and includes various modifications, equivalents, and/or alternatives of the embodiments of the present invention.

도 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 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It is possible to communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. 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) are integrated into a single component (eg, display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the 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 graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor). 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 be set to be specialized for a designated function. can 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 secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, 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) It is possible to control at least some of the related functions or states. According to one embodiment, the auxiliary processor 123 (eg, image signal processor or communication processor) may be implemented as part of other functionally related components (eg, camera module 180 or communication module 190). there is. 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 artificial intelligence 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 in the above example Not limited. The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing 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 by a component (eg, the processor 120) of the electronic device 101 from the 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 may visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set to measure the intensity of force generated by the touch.

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

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

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that 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 motion) 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)(예: 블루투스, WiFi(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 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported. 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 one embodiment, the communication module 190 is 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). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications 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 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 may be identified or authenticated.

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

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device). According to one 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 method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one 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 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

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

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to 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 perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself. Alternatively or additionally, one or more external electronic devices may be requested to perform the function or at least part of the service. 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 additionally processed. 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, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A Each of the phrases such as "at least one of , B, or C" may include any one of the items listed together in that phrase, or all possible combinations thereof. Terms such as "first", "second", or "first" or "secondary" may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited. A (e.g., first) component is said to be "coupled" or "connected" to another (e.g., second) component, with or without the terms "functionally" or "communicatively." When mentioned, it means that the certain component may be connected to the other component directly (eg 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 a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion 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 provide 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). It may be implemented as software (eg, the program 140) including them. 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 refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.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 is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store™) or on two user devices (e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones. 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. there is. 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 are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.

이하, 도 2, 도 3, 및 도 4를 참고하여, 일 실시예에 따른 전자 장치 및 전자 장치의 동작에 대하여 설명한다.Hereinafter, an electronic device and an operation of the electronic device according to an exemplary embodiment will be described with reference to FIGS. 2, 3, and 4 .

도 2는 일 실시예에 따른 전자 장치들의 구성을 나타낸 블록도이다. 도 3은 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다. 도 4는 일 실시예에 따른 전자 장치의 인증서 체인을 나타낸 도면이다. 이하, 전자 장치의 동작은 각 전자 장치의 프로세서(예: 제1 프로세서(215), 제2 프로세서(225))에 의해 수행될 수 있다.2 is a block diagram illustrating configurations of electronic devices according to an exemplary embodiment. 3 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment. 4 is a diagram illustrating a certificate chain of an electronic device according to an embodiment. Hereinafter, the operation of the electronic device may be performed by a processor (eg, the first processor 215 and the second processor 225) of each electronic device.

도 2를 참조하면, 일 실시예에 따라 제1 전자 장치(210)(예: 도 1의 전자 장치(101))는 제1 블루투스 모듈(211), 웨어러블 장치 관리 모듈(212), 인증서 생성 모듈(213), 제1 보안 메모리(214) 및 제1 프로세서(215)를 포함할 수 있다. 제1 프로세서(215)는 제1 블루투스 모듈(211), 웨어러블 장치 관리 모듈(212), 인증서 생성 모듈(213) 및 제1 보안 메모리(214)와 연결될 수 있다. 제1 블루투스 모듈(211), 웨어러블 장치 관리 모듈(212), 인증서 생성 모듈(213) 각각은 하드웨어 모듈 및/또는 소프트웨어 모듈을 포함할 수 있으며, 연결된 제1 프로세서(215)에 의해 제어 또는 실행될 수 있다. Referring to FIG. 2 , according to an embodiment, a first electronic device 210 (eg, the electronic device 101 of FIG. 1 ) includes a first Bluetooth module 211, a wearable device management module 212, and a certificate generation module. 213 , a first secure memory 214 and a first processor 215 . The first processor 215 may be connected to the first Bluetooth module 211 , the wearable device management module 212 , the certificate generation module 213 and the first secure memory 214 . Each of the first Bluetooth module 211, the wearable device management module 212, and the certificate generation module 213 may include a hardware module and/or a software module, and may be controlled or executed by the connected first processor 215. there is.

일 실시예에 따라 제1 전자 장치(210)은 호스트 전자 장치로, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 또는 가전 장치 중 어느 하나일 수 있다. 본 문서의 실시예에 따른 제1 전자 장치(210)는 전술한 기기들에 한정되지 않는다.According to an embodiment, the first electronic device 210 is a host electronic device and may be any one of a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, and a home appliance. . The first electronic device 210 according to an embodiment of the present document is not limited to the aforementioned devices.

일 실시예에 따라 제2 전자 장치(220)는 제2 블루투스 모듈(221), 인증서 발급 요청 모듈(222), 인증서 검증 모듈(223), 제2 보안 메모리(224) 및 제2 프로세서(225)를 포함할 수 있다. 제2 프로세서(225)는 제2 블루투스 모듈(221), 인증서 발급 요청 모듈(222), 인증서 검증 모듈(223) 및 제2 보안 메모리(224)와 연결될 수 있다. 제2 블루투스 모듈(221), 인증서 발급 요청 모듈(222), 인증서 검증 모듈(223) 각각은 하드웨어 모듈 및/또는 소프트웨어 모듈을 포함할 수 있으며, 연결된 제2 프로세서(225)에 의해 제어 또는 실행될 수 있다. According to an embodiment, the second electronic device 220 includes a second Bluetooth module 221, a certificate issue request module 222, a certificate verification module 223, a second secure memory 224, and a second processor 225. can include The second processor 225 may be connected to the second Bluetooth module 221 , the certificate issue request module 222 , the certificate verification module 223 and the second secure memory 224 . Each of the second Bluetooth module 221, the certificate issue request module 222, and the certificate verification module 223 may include a hardware module and/or a software module, and may be controlled or executed by the connected second processor 225. there is.

일 실시예에 따라 제2 전자 장치(220)는 웨어러블 장치일 수 있으며, 스마트 워치, 블루투스 이어폰, 헤드 마운트 디스플레이(Head Mounted Display) 중 어느 하나일 수 있다. 본 문서의 실시예에 따른 제2 전자 장치(220)는 전술한 기기들에 한정되지 않으며, 사용자에게 착용되지 않더라도 제1 전자 장치(210)의 액세서리 전자 장치이면 족할 수 있다. According to an embodiment, the second electronic device 220 may be a wearable device, and may be any one of a smart watch, a Bluetooth earphone, and a head mounted display. The second electronic device 220 according to an embodiment of the present document is not limited to the aforementioned devices, and may be an accessory electronic device of the first electronic device 210 even if it is not worn by the user.

일 실시예에 따라 제1 블루투스 모듈(211)는 제1 전자 장치(210)와 외부 전자 장치(예: 제2 전자 장치(220)) 간의 블루투스 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 제1 블루투스 모듈(211)는 제1 프로세서(215) 와 독립적으로 운영되고, 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있으나 제한은 없다. 일 실시예에 따르면, 제1 블루투스 모듈(211)는 블루투스 네트워크를 통하여 제2 전자 장치(220)와 패어링(paring)하여 블루투스 통신을 수행할 수 있다. According to an embodiment, the first Bluetooth module 211 establishes a Bluetooth communication channel between the first electronic device 210 and an external electronic device (eg, the second electronic device 220), and communicates through the established communication channel. can support implementation. The first Bluetooth module 211 may include, but is not limited to, one or more communication processors that operate independently of the first processor 215 and support wireless communication. According to an embodiment, the first Bluetooth module 211 may perform Bluetooth communication by pairing with the second electronic device 220 through a Bluetooth network.

일 실시예에 따라 웨어러블 장치 관리 모듈(212)는 제2 전자 장치(220)로부터 특정 기능에 대한 요청을 수신하여 요청된 기능에 적합한 모듈로 해당 요청을 전달할 수 있다. 일 실시예에 따라 웨어러블 장치 관리 모듈(212)는 웨어러블 장치로부터 인증서 체인 생성 요청을 수신하는 웨어러블 장치 관리 어플리케이션을 포함할 수 있으며, 웨어러블 장치 관리 어플리케이션은 제2 전자 장치(220)로부터 인증서 체인(certificate chain)의 생성 요청을 수신하여 요청과 함께 수신한 챌린지 값(challenge value)를 인증서 생성 모듈(213)로 전달할 수 있다.According to an embodiment, the wearable device management module 212 may receive a request for a specific function from the second electronic device 220 and transmit the request to a module suitable for the requested function. According to an embodiment, the wearable device management module 212 may include a wearable device management application that receives a certificate chain generation request from the wearable device, and the wearable device management application receives a certificate chain (certificate) from the second electronic device 220 . chain) may be received, and a challenge value received together with the request may be transmitted to the certificate generation module 213.

일 실시예에 따라 인증서 생성 모듈(213)은 상기 어플리케이션으로부터 요청을 수신하는 인터페이스 유닛과 인증서 및 인증서 체인을 생성하는 동작 유닛을 포함할 수 있다. 동작 유닛은 제1 보안 메모리(214)에서 실행되어 인증서 체인을 형성함으로써 형성된 인증서 체인의 보안성을 보장할 수 있으며, 인터페이스 유닛은 상기 어플리케이션과 동작 유닛을 연결해주는 통로 역할을 할 수 있다.According to an embodiment, the certificate generating module 213 may include an interface unit receiving a request from the application and an operation unit generating a certificate and certificate chain. The operation unit may be executed in the first secure memory 214 to ensure security of the certificate chain formed by forming a certificate chain, and the interface unit may serve as a passage connecting the application and the operation unit.

일 실시예에 따라 제1 보안 메모리(214)는 신뢰실행환경(TEE, Trusted Execution Environment)이거나, 신뢰실행환경과 동등 또는 그 이상의 보안 수준을 제공하는 하드웨어 저장 공간일 수 있다. 일 실시예에 따라 제1 보안 메모리(214)에는 제1 전자 장치(210) 고유의 고유 인증 키(attestation key)(이하, 본 명세서의 다양한 실시예에서 제2 인증 키와 동일한 의미로 사용됨) 및 고유 인증 키의 페어(pair) 인증서인 고유 인증 키 인증서(attestation key certificate)(이하, 본 명세서의 다양한 실시예에서 제2 인증서와 동일한 의미로 사용됨)가 저장되어 있을 수 있다. 제2 인증 키 및 제2 인증서는 제1 보안 메모리(214)에 저장되어 외부로부터 보호될 수 있다.According to an embodiment, the first secure memory 214 may be a Trusted Execution Environment (TEE) or a hardware storage space providing a security level equal to or higher than that of a Trusted Execution Environment. According to an embodiment, the first secure memory 214 includes a unique authentication key unique to the first electronic device 210 (hereinafter used as the same meaning as the second authentication key in various embodiments of the present specification) and A unique authentication key certificate, which is a pair certificate of a unique authentication key (hereinafter, used as the same meaning as a second certificate in various embodiments of the present specification) may be stored. The second authentication key and the second certificate may be stored in the first secure memory 214 and protected from the outside.

일 실시예에 따라 제2 인증 키 및 제2 인증서는 제1 전자 장치(210)의 제조 시에 제1 보안 메모리(214)에 저장될 수 있다. 일 실시예에 따라 제2 인증서는 제1 전자 장치(210)의 제조 시에 별도의 하드웨어 보안 모듈(hardware security module)에서 루트 키(root key)(이하, 본 명세서의 다양한 실시예에서 제1 인증 키와 동일한 의미로 사용됨)로 서명되어 제1 보안 메모리(214)에 저장될 수 있다. 일 실시예에 따라 제1 인증 키의 페어 인증서인 루트 인증서(root certificate)(이하, 본 명세서의 다양한 실시예에서 제1 인증서와 동일한 의미로 사용됨)도 제1 보안 메모리(214)에 함께 저장될 수 있다. According to an embodiment, the second authentication key and the second certificate may be stored in the first secure memory 214 when the first electronic device 210 is manufactured. According to an embodiment, the second certificate is a root key (hereinafter, first authentication in various embodiments of the present specification) in a separate hardware security module when the first electronic device 210 is manufactured. It may be signed with a key) and stored in the first secure memory 214 . According to an embodiment, a root certificate that is a pair certificate of the first authentication key (hereinafter, used as the same meaning as the first certificate in various embodiments of the present specification) is also stored in the first secure memory 214. can

일 실시예에 따라 고유 인증 키(제2 인증 키)는 제1 전자 장치(210)의 제조사가 제1 전자 장치(210)의 제조시 제1 전자 장치(210)에 저장한 고유의 것으로, 제조사의 모든 전자 장치마다 상이할 수 있으며, 제1 전자 장치(210)의 제1 프로세서(215)가 변경되는 경우 외에는 제1 전자 장치(210)의 제조 이후에 제1 전자 장치(210) 내에서 동일하게 유지될 수 있다.According to an embodiment, the unique authentication key (second authentication key) is unique to the manufacturer of the first electronic device 210 and stored in the first electronic device 210 when the first electronic device 210 is manufactured. may be different for all electronic devices of the first electronic device 210, and may be the same within the first electronic device 210 after manufacturing the first electronic device 210 except when the first processor 215 of the first electronic device 210 is changed. can be maintained.

일 실시예에 따라 제2 블루투스 모듈(221)은 제2 전자 장치(220)와 제1 전자 장치(210) 간의 블루투스 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있으며, 제2 블루투스 모듈(221)에 대한 설명은 제1 블루투스 모듈(211)에 대한 설명과 적어도 일부가 동일할 수 있다.According to an embodiment, the second Bluetooth module 221 may support establishment of a Bluetooth communication channel between the second electronic device 220 and the first electronic device 210, and communication through the established communication channel. 2 A description of the Bluetooth module 221 may be at least partially the same as that of the first Bluetooth module 211 .

일 실시예에 따라 인증서 발급 요청 모듈(222)는 보안 기능 활성화 /비활성화 요청이 있는 경우, 호스트 전자 장치와의 연결/연결 해제 요청이 있는 경우 또는 장치 초기화 요청이 있는 경우에 블루투스 통신으로 연결된 호스트 전자 장치(예: 제1 전자 장치(210))에게 인증서 체인의 발급을 요청할 수 있다. 인증서 발급 요청 모듈(222)는 인증서 체인 발급 요청 메시지와 챌린지 값을 함께 제1 전자 장치(210)에게 전송할 수 있다. 일 실시예에 따라 챌린지 값은 예측 불가능하고 중복되지 않도록 랜덤하게 생성된 1회성 값일 수 있다.According to an embodiment, the certificate issuance request module 222 may perform a request for activation/deactivation of a security function, a request for connection/disconnection with a host electronic device, or a request for initialization of a host electronic device connected to a host electronic device through Bluetooth communication. A device (eg, the first electronic device 210) may be requested to issue a certificate chain. The certificate issue request module 222 may transmit a certificate chain issue request message and a challenge value together to the first electronic device 210 . According to an embodiment, the challenge value may be an unpredictable and randomly generated one-time value so as not to overlap.

일 실시예에 따라 인증서 검증 모듈(223)은 제1 전자 장치(210)으로부터 수신한 인증서 체인의 유효성을 검증할 수 있다. 인증서 체인의 유효성 검증 프로세스는 후술한다.According to an embodiment, the certificate verification module 223 may verify the validity of the certificate chain received from the first electronic device 210 . The validation process of the certificate chain will be described later.

일 실시예에 따라 제2 보안 메모리(224)에는 유효성이 검증된 인증서 체인이 저장될 수 있으며, 제2 보안 메모리(224)는 비휘발성 메모리일 수 있다. 일 실시예에 따라 제2 보안 메모리(224)에 대한 설명은 제1 보안 메모리(214)에 대한 설명과 적어도 일부가 동일할 수 있다.According to an embodiment, a certificate chain whose validity has been verified may be stored in the second secure memory 224, and the second secure memory 224 may be a non-volatile memory. According to an embodiment, a description of the second secure memory 224 may be at least partially the same as that of the first secure memory 214 .

이하, 도 3 및 도 4를 참조하여, 본 개시의 일 실시예에 따른 전자 장치 및 전자 장치의 동작에 대하여 보다 자세하게 설명한다. 현재 제2 전자 장치(220)는 보안 기능이 비활성화되어 있는 상태임을 가정한다. 일 실시예에 따라 보안 기능이란, 제2 전자 장치(220)의 소프트웨어 초기화, 제2 전자 장치(220)를 호스트 장치(예: 제1 전자 장치(210))로부터 연결 해제, 및/또는 제2 전자 장치(220)의 보안 기능 비활성화의 요청이 있는 경우에, 해당 요청을 요청한 사용자가 제2 전자 장치(220)의 정당한 소유자가 맞는지 호스트 장치를 통하여 검증 단계를 거치도록하여 제2 전자 장치(220)의 무단 사용을 방지하고 도난 등의 상황에서 제2 전자 장치(220)의 보안을 유지하는 기능일 수 있다. Hereinafter, an electronic device and an operation of the electronic device according to an embodiment of the present disclosure will be described in more detail with reference to FIGS. 3 and 4 . It is assumed that the current security function of the second electronic device 220 is deactivated. According to an embodiment, the security function includes software initialization of the second electronic device 220, disconnection of the second electronic device 220 from the host device (eg, the first electronic device 210), and/or the second electronic device 220. When there is a request to deactivate the security function of the electronic device 220, the second electronic device 220 verifies whether the user requesting the request is the rightful owner of the second electronic device 220 through the host device. ) may be prevented from unauthorized use and may be a function of maintaining security of the second electronic device 220 in situations such as theft.

도 3을 참조하면, 제2 전자 장치(220)는 동작 301에서 사용자로부터 보안 기능의 활성화를 요청하는 입력을 수신할 수 있다. 제2 전자 장치(220)(예: 도 2의 제2 전자 장치(220)의 제2 프로세서(225))는 보안 기능의 메뉴를 활성화하는 사용자의 입력을 통하여 보안 기능을 활성화하는 요청이 있음을 식별할 수 있다. Referring to FIG. 3 , in operation 301, the second electronic device 220 may receive an input requesting activation of a security function from the user. The second electronic device 220 (eg, the second processor 225 of the second electronic device 220 of FIG. 2 ) detects a request for activating the security function through a user's input for activating the menu of the security function. can be identified.

일 실시예에 따라 동작 302에서 제2 전자 장치(220)는, 연결되어 있는 제1 전자 장치(210)에게 인증서 체인을 요청할 수 있다. 제2 전자 장치(220)는 제1 전자 장치(210)에게 인증서 체인 요청(예: 요청 메시지)과 챌린지 값을 함께 전달할 수 있다.According to an embodiment, in operation 302, the second electronic device 220 may request a certificate chain from the connected first electronic device 210. The second electronic device 220 may transmit a certificate chain request (eg, a request message) and a challenge value to the first electronic device 210 together.

일 실시예에 따라 동작 303에서 제1 전자 장치(210) (예: 도 2의 제1 전자 장치(210)의 제1 프로세서 (215))은, 제2 전자 장치(220)로부터 인증서 체인 요청을 수신함에 따라 인증서 체인을 생성할 수 있다.According to an embodiment, in operation 303, the first electronic device 210 (eg, the first processor 215 of the first electronic device 210 of FIG. 2 ) receives a certificate chain request from the second electronic device 220. Upon receipt, you can create a certificate chain.

이하, 도 4를 참조하여, 제1 전자 장치(210)의 인증서 체인을 생성하는 동작의 일 실시예에 대하여 설명한다. 도 4는 인증서 체인에 포함된 제1 인증서(410), 제2 인증서(420), 제3 인증서(430)와 제1 인증서(410)의 세부 내용의 예시(411), 제2 인증서(420)의 세부 내용의 예시(421), 제3 인증서(430)의 세부 내용의 예시(431)을 나타낸다.Hereinafter, referring to FIG. 4 , an operation of generating a certificate chain of the first electronic device 210 according to an embodiment will be described. 4 is an example of details of a first certificate 410, a second certificate 420, a third certificate 430, and a first certificate 410 included in a certificate chain (411) and a second certificate (420). An example 421 of the detailed content of and an example 431 of the detailed content of the third certificate 430 are shown.

도 4를 참조하면, 인증서 체인은 3개의 인증서(410, 420, 430)를 포함할 수 있다. 도 4일 실시예에 따라 제2 인증서(420)은 제1 전자 장치(210)의 생성 시 제1 전자 장치(210)의 보안 메모리(예: 도 2의 제1 보안 메모리(214))에 저장된 인증서일 수 있다. 실시예에 따라 제2 인증서(420)은 제1 전자 장치(210)의 고유 인증 키(제2 인증 키)의 페어(pair) 인증서인 고유 인증 키 인증서일 수 있다. 일 실시예에 따라 제2 인증서는 제1 전자 장치(210)의 제조 시에 별도의 하드웨어 보안 모듈(HSM)에서 루트 키(제1 인증 키)로 서명되어 제1 전자 장치(210)에 저장되어 있을 수 있다. Referring to FIG. 4 , a certificate chain may include three certificates 410 , 420 , and 430 . According to the embodiment of FIG. 4 , the second certificate 420 is stored in the secure memory (eg, the first secure memory 214 of FIG. 2 ) of the first electronic device 210 when the first electronic device 210 is created. It can be a certificate. Depending on the embodiment, the second certificate 420 may be a unique authentication key certificate that is a pair certificate of the unique authentication key (second authentication key) of the first electronic device 210 . According to an embodiment, the second certificate is signed with a root key (first authentication key) in a separate hardware security module (HSM) when the first electronic device 210 is manufactured and stored in the first electronic device 210. There may be.

일 실시예에 따라 제1 인증서(410)은 제2 인증서(420)을 서명한 루트 키의 페어 인증서인 루트 인증서일 수 있으며, 제1 전자 장치(210)의 생성 시 제1 전자 장치(210)의 보안 메모리(예: 도 2의 제1 보안 메모리(214))에 저장된 인증서일 수 있다.According to an embodiment, the first certificate 410 may be a root certificate that is a pair certificate of a root key that signed the second certificate 420, and when the first electronic device 210 is generated, the first electronic device 210 may be a certificate stored in a secure memory (eg, the first secure memory 214 of FIG. 2 ).

일 실시예에 따라 제1 전자 장치(210)는 제2 전자 장치(220)로부터 인증서 체인 요청을 수신함에 따라 어플리케이션 키(application key)(이하, 본 명세서의 다양한 실시예에서 제3 인증 키와 동일한 의미로 사용됨) 및 어플리케이션 키의 페어 인증서인 어플리케이션 인증서(application certificate)(이하, 본 명세서의 다양한 실시예에서 제3 인증서와 동일한 의미로 사용됨)를 생성할 수 있다. According to an embodiment, upon receiving a certificate chain request from the second electronic device 210, the first electronic device 210 generates an application key (hereinafter, the same as the third authentication key in various embodiments of the present specification). meaning) and an application certificate, which is a pair certificate of an application key (hereinafter, used in the same meaning as a third certificate in various embodiments of the present specification).

일 실시예에 따라 제1 전자 장치(210)는 제2 전자 장치(220)로부터 수신한 챌린지 값(433)을 제3 인증서(430)에 포함시킬 수 있으며, 제2 인증서(420)의 제2 인증 키로 제3 인증서(430)를 서명할 수 있다. According to an embodiment, the first electronic device 210 may include the challenge value 433 received from the second electronic device 220 in the third certificate 430, and the second certificate 420 The third certificate 430 may be signed with the authentication key.

일 실시예에 따라 제1 전자 장치(210)는 제3 인증서(430)을 생성 시 제3 인증서(430)에 제1 전자 장치(210)의 고유의 식별자(unique ID)(432)를 포함시킬 수도 있다. 또한 이때, 제1 전자 장치(210)는 제1 전자 장치(210)의 고유의 식별자(432)의 값이 유요한지 확인하는 단계를 추가로 거칠 수도 있으며, 고유의 식별자(432)의 값이 유요한지 확인한 값(434)를 제3 인증서(430)에 포함시킬 수도 있다.According to an embodiment, when the first electronic device 210 generates the third certificate 430, a unique ID 432 of the first electronic device 210 is included in the third certificate 430. may be Also, at this time, the first electronic device 210 may additionally go through a step of checking whether the value of the unique identifier 432 of the first electronic device 210 is valid, and the value of the unique identifier 432 is valid. The value 434 for checking whether or not the authentication is valid may be included in the third certificate 430 .

일 실시예에 따라 제1 전자 장치(210)는 제3 인증서(430)에 서명을 완료함으로써 인증서 체인의 생성을 완료할 수 있다. 이때, 생성된 인증서 체인에는 제1 인증서(410)의 공개 키 및 제2 인증서(420)의 공개 키가 포함될 수 있다.According to an embodiment, the first electronic device 210 may complete the creation of the certificate chain by signing the third certificate 430 . At this time, the generated certificate chain may include the public key of the first certificate 410 and the public key of the second certificate 420 .

다시 도 3을 참조하며, 동작 304에서 제1 전자 장치(210)는 생성된 인증서 체인을 제2 전자 장치(220)에게 전송할 수 있다.Referring back to FIG. 3 , in operation 304 , the first electronic device 210 may transmit the generated certificate chain to the second electronic device 220 .

동작 305에서 제2 전자 장치(220)는 수신된 인증서 체인의 유효성을 검증할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 수신된 인증서 체인의 인증서에 표기된 발행인(issuer)의 공개 키로 해당 인증서의 서명(signature)이 유효한지 확인하는 방법으로 인증서 체인의 유효성을 검증할 수 있다. In operation 305, the second electronic device 220 may verify the validity of the received certificate chain. According to an embodiment, the second electronic device 220 may verify the validity of the certificate chain by checking whether the signature of the corresponding certificate is valid with the public key of the issuer indicated in the certificate of the received certificate chain. there is.

일 실시예에 따라 제2 전자 장치(220)는 수신된 인증서 체인의 제2 인증서(420)에 표기된 발행인인 제1 인증서(410)의 공개 키로 제2 인증서(420)의 서명이 유효한지 검증(verification)할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 수신된 인증서 체인의 제3 인증서(430)에 표기된 발행인인 제2 인증서(420)의 공개 키로 제3 인증서(430)의 서명이 유효한지 검증할 수 있다.According to an embodiment, the second electronic device 220 verifies whether the signature of the second certificate 420 is valid with the public key of the first certificate 410 as an issuer indicated in the second certificate 420 of the received certificate chain ( verification) can be done. According to an embodiment, the second electronic device 220 verifies whether the signature of the third certificate 430 is valid with the public key of the second certificate 420 as an issuer indicated in the third certificate 430 of the received certificate chain. can

일 실시예에 따라 제2 전자 장치(220)는 제3 인증서(430)의 유효성 검증까지 완료됨에 따라 제3 인증서(430)에 포함된 챌린지 값(433)이 제2 전자 장치(220)가 제1 전자 장치(210)에게 전송한 챌린지 값과 동일한지 확인할 수 있다.According to an embodiment, as the validation of the third certificate 430 is completed, the challenge value 433 included in the third certificate 430 is determined by the second electronic device 220. 1 It can be checked whether the challenge value is the same as the one transmitted to the electronic device 210 .

일 실시예에 따라 제2 전자 장치(220)는 제3 인증서(430)에 제1 전자 장치의 고유의 식별자(432)가 포함되어 있고 제2 전자 장치(220)의 메모리에 신뢰할 수 있는 기기(예: 연결 이력이 있는 기기 등)의 식별자가 저장되어 있는 경우 제3 인증서(430)에 포함된 고유의 식별자(432)를 확인하여 신뢰할 수 있는 기기로부터 전달된 인증서 체인인지 여부를 확인할 수 있다. According to an embodiment, the second electronic device 220 includes a unique identifier 432 of the first electronic device in the third certificate 430 and stores a trusted device in the memory of the second electronic device 220 ( Example: If the identifier of a device with a connection history, etc.) is stored, it is possible to check whether the certificate chain transmitted from a trusted device is confirmed by checking the unique identifier 432 included in the third certificate 430.

일 실시예에 따라 인증서 체인의 유효성이 검증됨에 따라 동작 306에서 제2 전자 장치(220)는 인증서 체인을 보안 메모리(예: 도 2의 제2 보안 메모리(224))에 저장하고 제2 전자 장치(220)의 보안 기능을 활성화할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 이후의 보안 기능 비활성화 요청 및/또는 장치 초기화 요청을 사용자로부터 수신하는 경우 검증 과정에서 사용하기 위해 유효성이 인증된 인증서 체인을 보안 메모리에 저장할 수 있다. According to an embodiment, as the validity of the certificate chain is verified, in operation 306, the second electronic device 220 stores the certificate chain in a secure memory (eg, the second secure memory 224 of FIG. 2) and stores the certificate chain in the second electronic device 220. The security function of (220) can be activated. According to an embodiment, when the second electronic device 220 receives a subsequent security function deactivation request and/or device initialization request from a user, the second electronic device 220 may store a certificate chain whose validity is verified for use in a verification process in a secure memory. .

또한 일 실시예에 따라 제2 전자 장치(220)는 제3 인증서(430)에 포함된 제1 전자 장치(210)의 고유의 식별자(432)를 신뢰할 수 있는 기기로 제2 전자 장치(220)에 등록할 수 있다. 제2 전자 장치(220)에 제1 전자 장치(210)의 고유의 식별자(432)가 신뢰할 수 있는 기기로 이미 등록되어 있는 경우 기기 식별자의 등록 동작은 생략될 수 있다.Also, according to an embodiment, the second electronic device 220 converts the unique identifier 432 of the first electronic device 210 included in the third certificate 430 into a trustworthy device. can be registered in If the unique identifier 432 of the first electronic device 210 is already registered as a trusted device in the second electronic device 220, the device identifier registration operation may be omitted.

이하, 도 5를 참조하여, 본 개시의 일 실시예에 따른 제1 전자 장치(210)에서 보안 기능 활성와 요청 입력이 수신되는 경우의 전자 장치들의 동작에 대하여 설명한다. 현재 제2 전자 장치(220)는 보안 기능이 비활성화되어 있는 상태임을 가정한다. 앞서 설명한 실시예와 동일한 구성에 대한 설명은 생략될 수 있다. Hereinafter, with reference to FIG. 5 , operations of electronic devices when a security function activation and a request input are received in the first electronic device 210 according to an embodiment of the present disclosure will be described. It is assumed that the current security function of the second electronic device 220 is deactivated. A description of the same configuration as the above-described embodiment may be omitted.

도 5는 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.5 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.

도 5를 참조하면, 동작 501에서 제1 전자 장치(210) (예: 도 2의 제1 전자 장치(210)의 제1 프로세서 (215))는 사용자로부터 제2 전자 장치(220)의 보안 기능을 활성화할 것을 요청하는 입력을 수신할 수 있다. 일 실시예에 따라 제1 전자 장치(210)는 보안 기능의 메뉴를 활성화하는 사용자의 입력을 통하여 보안 기능의 활성화하는 요청이 있음을 식별할 수 있다.Referring to FIG. 5 , in operation 501, the first electronic device 210 (eg, the first processor 215 of the first electronic device 210 of FIG. 2 ) blocks the security function of the second electronic device 220 from the user. may receive an input requesting activation. According to an embodiment, the first electronic device 210 may identify that there is a request to activate the security function through a user's input for activating the menu of the security function.

동작 502에서 제1 전자 장치(210)는 보안 기능 활성화 요청의 대상인, 연결되어 있는 제2 전자 장치(220)에게 보안 기능 활성화 요청이 있음을 전달할 수 있다. 예를 들어, 제1 전자 장치(210)는 제2 전자 장치(220)에게 보안 기능 활성화 요청 메시지를 전송할 수 있다.In operation 502, the first electronic device 210 may transmit that there is a security function activation request to the connected second electronic device 220, which is the target of the security function activation request. For example, the first electronic device 210 may transmit a security function activation request message to the second electronic device 220 .

동작 503에서 제2 전자 장치(220) (예: 도 2의 제2 전자 장치(220)의 제2 프로세서 (225))는 보안 기능 활성화 요청에 대한 사용자의 확인을 수신할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 제2 전자 장치(220)의 보안 기능의 활성화 요청을 제2 전자 장치(200)의 디스플레이 장치에 표시할 수 있고, 이에 대한 사용자의 확인(승인) 입력을 수신할 수 있다.In operation 503, the second electronic device 220 (eg, the second processor 225 of the second electronic device 220 of FIG. 2) may receive a user's confirmation of the security function activation request. According to an embodiment, the second electronic device 220 may display a request for activating the security function of the second electronic device 220 on the display device of the second electronic device 200, and the user's confirmation (approval) for this may be displayed. ) can receive input.

동작 504에서 제2 전자 장치(220)는 연결되어 있는 제1 전자 장치(210)에게 인증서 체인을 요청할 수 있다. 제2 전자 장치(220)는 제1 전자 장치(210)에게 인증서 체인 요청과 챌린지 값을 함께 전달할 수 있다.In operation 504, the second electronic device 220 may request a certificate chain from the connected first electronic device 210. The second electronic device 220 may transmit the certificate chain request and challenge value together to the first electronic device 210 .

동작 505에서 제1 전자 장치(210)은, 제2 전자 장치(220)로부터 인증서 체인 요청을 수신함에 따라 인증서 체인을 생성할 수 있다. 일 실시예에 따라 제1 전자 장치(210)가 인증서 체인을 형성하는 동작은 앞서 도 3 및 도 4를 참조하여 설명한 내용과 동일 할 수 있다. 일 실시예에 따라 제1 전자 장치(210)는 어플리케이션 인증서(제3 인증서) 및 어플리케이션 키(제3 인증 키)를 생성하고, 보안 메모리에 저장된 고유 인증 키(제2 인증 키)로 어플리케이션 인증서를 서명함으로써 루트 인증서(제1 인증서), 고유 인증 키 인증서(제2 인증서) 및 어플리케이션 인증서(제3 인증서)를 포함하는 인증서 체인을 형성할 수 있다. 일 실시예에 따라 어플리케이션 인증서(제3 인증서)는 제2 전자 장치(220)로부터 수신한 챌린지 값 및 제1 전자 장치(210)의 고유의 실별자가 포함될 수 있다.In operation 505, the first electronic device 210 may generate a certificate chain according to receiving a certificate chain request from the second electronic device 220. According to an embodiment, an operation of forming a certificate chain by the first electronic device 210 may be the same as that described above with reference to FIGS. 3 and 4 . According to an embodiment, the first electronic device 210 generates an application certificate (third certificate) and an application key (third authentication key), and converts the application certificate to a unique authentication key (second authentication key) stored in a secure memory. By signing, a certificate chain including a root certificate (first certificate), a unique authentication key certificate (second certificate), and an application certificate (third certificate) can be formed. According to an embodiment, the application certificate (third certificate) may include a challenge value received from the second electronic device 220 and a unique identifier of the first electronic device 210 .

동작 505에서 제1 전자 장치(210)는 생성된 인증서 체인을 제2 전자 장치(220)에게 전달할 수 있다.In operation 505, the first electronic device 210 may deliver the generated certificate chain to the second electronic device 220.

동작 507에서 제2 전자 장치(220)는 수신된 인증서 체인의 유효성을 검증할 수 있다. In operation 507, the second electronic device 220 may verify the validity of the received certificate chain.

일 실시예에 따라 제2 전자 장치(220)가 인증서 체인의 유효성을 검증하는 앞서 도 3 및 도 4를 참조하여 설명한 내용과 동일 할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 제1 인증서에 포함된 공개 키로 제2 인증서의 유효성을 검증하고 제2 인증서에 포함된 공개 키로 제3 인즐서의 유효성을 검증할 수 있다. 제2 전자 장치(220)는 인증서의 유효성 검증을 완료한 후 제3 인증서에 포함된 챌린지 값 및 제2 전자 장치(210)의 고유의 식별자를 확인할 수 있다. According to an embodiment, the verification of the validity of the certificate chain by the second electronic device 220 may be the same as that described with reference to FIGS. 3 and 4 . According to an embodiment, the second electronic device 220 may verify the validity of the second certificate with the public key included in the first certificate, and verify the validity of the third certificate with the public key included in the second certificate. After completing validation of the certificate, the second electronic device 220 may check the challenge value included in the third certificate and the unique identifier of the second electronic device 210 .

일 실시예에 따라 인증서 체인의 유효성 검증을 완료함에 따라 동작 506에서 제2 전자 장치(220)는 인증서 체인을 보안 메모리(예: 도 2의 제2 보안 메모리(224))에 저장하고 제2 전자 장치(220)의 보안 기능을 활성화할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 이후의 보안 기능 비활성화 요청 및/또는 장치 초기화 요청을 사용자로부터 수신하는 경우 검증 과정에서 사용하기 위해 유효성이 인증된 인증서 체인을 보안 메모리에 저장할 수 있다. According to an embodiment, upon completion of validation of the certificate chain, in operation 506, the second electronic device 220 stores the certificate chain in a secure memory (eg, the second secure memory 224 of FIG. 2) and stores the certificate chain in the second electronic device 220. A security feature of the device 220 may be activated. According to an embodiment, when the second electronic device 220 receives a subsequent security function deactivation request and/or device initialization request from a user, the second electronic device 220 may store a certificate chain whose validity is verified for use in a verification process in a secure memory. .

또한 일 실시예에 따라 제2 전자 장치(220)는 제3 인증서(430)에 포함된 제1 전자 장치(210)의 고유의 식별자를 신뢰할 수 있는 기기로 제2 전자 장치(220)에 등록할 수 있다. 제2 전자 장치(220)에 제1 전자 장치(210)의 고유의 식별자가 신뢰할 수 있는 기기로 이미 등록되어 있는 경우 기기 식별자의 등록 동작은 생략될 수 있다.Also, according to an embodiment, the second electronic device 220 may register the unique identifier of the first electronic device 210 included in the third certificate 430 with the second electronic device 220 as a trusted device. can If the unique identifier of the first electronic device 210 is already registered as a trusted device in the second electronic device 220, the operation of registering the device identifier may be omitted.

이하, 도 6을 참조하여, 본 개시의 일 실시예에 따른 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태에서 보안 기능 비활성와 요청 입력이 수신되는 경우의 전자 장치들의 동작에 대하여 설명한다. 앞서 설명한 실시예와 동일한 구성에 대한 설명은 생략될 수 있다. Hereinafter, with reference to FIG. 6 , operations of electronic devices when a security function inactivation and a request input are received while the security function of the second electronic device 220 is activated according to an embodiment of the present disclosure will be described. . A description of the same configuration as the above-described embodiment may be omitted.

도 6은 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.6 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.

도 6을 참조하면, 동작 601에서 제2 전자 장치(220) (예: 도 2의 제2 전자 장치(220)의 제2 프로세서 (225))는 사용자로부터 제2 전자 장치(220)의 보안 기능을 비활성화할 것을 요청하는 입력을 수신할 수 있다. 도 6에서는 제2 전자 장치(220)가 제2 전자 장치(220)의 보안 기능을 비활성화하는 요청을 수신하는 것으로 도시하였으나, 앞서 설명한 도 5에서와 같이 제1 전자 장치(220)가 제2 전자 장치(220)의 보안 기능을 비활성화하는 요청을 수신하여 제2 전자 장치(220)에게 전달할 수도 있다. Referring to FIG. 6 , in operation 601, the second electronic device 220 (eg, the second processor 225 of the second electronic device 220 of FIG. 2 ) blocks the security function of the second electronic device 220 from the user. may receive an input requesting to disable Although FIG. 6 shows that the second electronic device 220 receives a request for deactivating the security function of the second electronic device 220, the first electronic device 220, as in FIG. A request for deactivating the security function of the device 220 may be received and transmitted to the second electronic device 220 .

동작 602에서 제2 전자 장치(220)는 연결되어 있는 제1 전자 장치(210)에게 인증서 체인을 요청할 수 있다. 제2 전자 장치(220)는 제1 전자 장치(210)에게 인증서 체인 요청과 챌린지 값을 함께 전달할 수 있다.In operation 602, the second electronic device 220 may request a certificate chain from the connected first electronic device 210. The second electronic device 220 may transmit the certificate chain request and challenge value together to the first electronic device 210 .

동작 603에서 제1 전자 장치(210) (예: 도 2의 제1 전자 장치(210)의 제1 프로세서 (215))은, 제2 전자 장치(220)로부터 인증서 체인 요청을 수신함에 따라 인증서 체인을 생성할 수 있다. 일 실시예에 따라 제1 전자 장치(210)가 인증서 체인을 형성하는 동작은 앞서 도 3 및 도 4를 참조하여 설명한 내용과 동일 할 수 있다. 일 실시예에 따라 제1 전자 장치(210)는 어플리케이션 인증서(제3 인증서) 및 어플리케이션 키(제3 인증 키)를 생성하고, 보안 메모리에 저장된 고유 인증 키(제2 인증 키)로 어플리케이션 인증서를 서명함으로써 루트 인증서(제1 인증서), 고유 인증 키 인증서(제2 인증서) 및 어플리케이션 인증서(제3 인증서)를 포함하는 인증서 체인을 형성할 수 있다. 일 실시예에 따라 어플리케이션 인증서(제3 인증서)는 제2 전자 장치(220)로부터 수신한 챌린지 값 및 제1 전자 장치(210)의 고유의 실별자가 포함될 수 있다.In operation 603, the first electronic device 210 (eg, the first processor 215 of the first electronic device 210 of FIG. 2 ) receives the certificate chain request from the second electronic device 220, and thus the certificate chain. can create According to an embodiment, an operation of forming a certificate chain by the first electronic device 210 may be the same as that described above with reference to FIGS. 3 and 4 . According to an embodiment, the first electronic device 210 generates an application certificate (third certificate) and an application key (third authentication key), and converts the application certificate to a unique authentication key (second authentication key) stored in a secure memory. By signing, a certificate chain including a root certificate (first certificate), a unique authentication key certificate (second certificate), and an application certificate (third certificate) can be formed. According to an embodiment, the application certificate (third certificate) may include a challenge value received from the second electronic device 220 and a unique identifier of the first electronic device 210 .

동작 604에서 제1 전자 장치(210)는 생성된 인증서 체인을 제2 전자 장치(220)에게 전달할 수 있다.In operation 604, the first electronic device 210 may deliver the generated certificate chain to the second electronic device 220.

동작 605에서 제2 전자 장치(220)는 수신된 인증서 체인의 유효성을 검증할 수 있다. 일 실시예에 따라 제2 전자 장치(220)가 인증서 체인의 유효성을 검증하는 앞서 도 3 및 도 4를 참조하여 설명한 내용과 동일 할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 제1 인증서에 포함된 공개 키로 제2 인증서의 유효성을 검증하고 제2 인증서에 포함된 공개 키로 제3 인즐서의 유효성을 검증할 수 있다. In operation 605, the second electronic device 220 may verify the validity of the received certificate chain. According to an embodiment, the verification of the validity of the certificate chain by the second electronic device 220 may be the same as that described with reference to FIGS. 3 and 4 . According to an embodiment, the second electronic device 220 may verify the validity of the second certificate with the public key included in the first certificate, and verify the validity of the third certificate with the public key included in the second certificate.

일 실시예에 따라 제2 전자 장치(220)는 인증서의 유효성 검증을 완료한 후 제3 인증서에 포함된 챌린지 값이, 제2 전자 장치(220)가 제1 전자 장치(210)에게 전달한 챌린지 값과 동일한지 판단할 수 있다.According to an embodiment, after the second electronic device 220 completes validation of the certificate, the challenge value included in the third certificate is the challenge value transmitted from the second electronic device 220 to the first electronic device 210 can be judged to be the same as

또한 일 실시예에 따라 제2 전자 장치(220)는 제3 인증서에 포함된 제1 전자 장치(210)의 고유의 식별자가 제2 전자 장치(220)의 보안 메모리(예: 도 2의 제2 보안 메모리(224))에 저장된 식별자와 동일한지 판단할 수 있다. 일 실시예에 따라 제2 전자 장치(220)의 보안 메모리에는 신뢰할 수 있는 기기로써 적어도 하나의 전자 장치의 식별자가 저장되어 있을 수 있다. Also, according to an embodiment, the second electronic device 220 may use a unique identifier of the first electronic device 210 included in the third certificate in a secure memory of the second electronic device 220 (eg, the second electronic device 220 in FIG. 2 ). It may be determined whether the identifier is the same as the identifier stored in the secure memory 224 . According to an embodiment, an identifier of at least one electronic device as a trusted device may be stored in the secure memory of the second electronic device 220 .

일 실시예에 따라 제2 전자 장치(220)의 보안 메모리에 저장된 식별자는 제2 전자 장치(220)의 보안 기능을 활성화하는 동작에서 저장된 것일 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 제2 전자 장치(220)의 보안 기능을 활성화하는 동작에서, 제1 전자 장치(210)로부터 수신하고 유효성을 검증한 인증서 체인에 포함된 식별자를 보안 메모리에 저장했을 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 보안 기능을 비활성화하는 과정에서 수신한 인증서 체인에 포함된 전자 장치의 식별자와 보안 기능을 활성화하는 과정에서 수신한 인증서 체인에 포함된 전자 장치의 식별자가 동일한지 판단함으로써, 현재 보안 기능의 비활성화를 수행하고자하는 제2 전자 장치(220)가, 보안 기능 활성화 당시 연결되었던 제1 전자 장치(210)와 동일한 전자 장치에 연결되어 있음을 확인할 수 있다.According to an embodiment, the identifier stored in the secure memory of the second electronic device 220 may be stored in an operation of activating a security function of the second electronic device 220 . According to an embodiment, in an operation of activating the security function of the second electronic device 220, the second electronic device 220 uses an identifier included in a certificate chain received from the first electronic device 210 and verified for validity. may have been stored in secure memory. According to an embodiment, the second electronic device 220 includes an electronic device identifier included in the certificate chain received in the process of disabling the security function and an electronic device identifier included in the certificate chain received in the process of activating the security function. By determining whether is the same, it can be confirmed that the second electronic device 220 for which the current security function is to be deactivated is connected to the same electronic device as the first electronic device 210 that was connected when the security function was activated.

일 실시예에 따라 제2 전자 장치(220)는 인증서 체인의 유효성, 챌린지 값의 동일성, 전자 장치 식별자의 동일성을 확인함에 따라, 현재 보안 기능의 비활성화를 수행하고자하는 제2 전자 장치(220)의 사용자가 보안 기능 활성화 당시 제2 전자 장치(220)의 사용자와 동일한 사용자(실질적으로 동일한 사용자 뿐만 아니라 실질적으로 동일하지 않아도 정당한 권한이 있는 사용자)임을 확인할 수 있다. According to an embodiment, the second electronic device 220 checks the validity of the certificate chain, the identity of the challenge value, and the identity of the electronic device identifier, so that the second electronic device 220 currently intends to deactivate the security function. It can be confirmed that the user is the same user as the user of the second electronic device 220 at the time of activating the security function (substantially the same user as well as a user having legitimate authority even if not substantially the same).

반대로, 예를 들어, 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태로 제2 전자 장치(220)가 도난, 분실 등으로 정당한 권한이 없는 사용자에게 귀속된 경우, 정당한 권한이 없는 사용자가 제2 전자 장치(220)의 보안 기능의 비활성화를 시도 시, (제1 전자 장치(210)가 아닌)타 전자 장치로부터 인증서 체인을 수신하게되고, 제2 전자 장치(220)는 인증서 체인에 포함된 전자 장치 식별자가 제2 전자 장치(220)에 저장된 전자 장치 식별자와 상이하다고 판단할 수 있다. 이에 따라 제2 전자 장치(220)는 수신된 인증서 체인의 유효하지 않다고 판단하고 제2 전자 장치(220)의 사용자가 정당한 권한이 없는 사용자라고 판단할 수 있다.Conversely, for example, when the second electronic device 220 belongs to a user without legitimate authority due to theft or loss while the security function of the second electronic device 220 is activated, the user without proper authority When attempting to deactivate the security function of the second electronic device 220, a certificate chain is received from another electronic device (not the first electronic device 210), and the second electronic device 220 enters the certificate chain. It may be determined that the included electronic device identifier is different from the electronic device identifier stored in the second electronic device 220 . Accordingly, the second electronic device 220 may determine that the received certificate chain is not valid and may determine that the user of the second electronic device 220 is a user without legitimate authority.

동작 605에서 제1 전자 장치(210)로부터 수신한 인증서 체인이 유효하다고 검증된 경우 동작 606에서 제2 전자 장치(220)는, 보안 기능을 비활성화하고 제2 전자 장치(220)의 보안 메모리에 저장되어 있는 인증서 체인을 삭제할 수 있다. 일 실시예에 따라 제2 전자 장치(220)의 소유자는 자의로 제2 전자 장치(220)의 소유권을 이전하기 전에 제2 전자 장치(220)의 보안 기능을 비활성화함으로써, 제2 전자 장치(220)의 기기 초기화를 가능하게 하고, 새로운 정당한 소유자가 자신의 전자 장치와의 관계에서 제2 전자 장치(220)의 보안 기능 설정이 가능하도록 할 수 있다.When the certificate chain received from the first electronic device 210 is verified to be valid in operation 605, the second electronic device 220 deactivates the security function and stores it in the secure memory of the second electronic device 220 in operation 606. You can delete an existing certificate chain. According to an embodiment, the owner of the second electronic device 220 voluntarily deactivates a security function of the second electronic device 220 before transferring the ownership of the second electronic device 220, so that the second electronic device 220 ) can be initialized, and a new rightful owner can set the security function of the second electronic device 220 in relation to his or her own electronic device.

일 실시예에 따라 도 6에서는, 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태에서 보안 기능 비활성와 요청 입력이 수신되는 경우에 대하여 설명하였으나, 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태에서 제2 전자 장치(220)의 제1 전자 장치(210)와의 연결을 해제하는 요청 입력이 수신되는 경우에도 도 6과 동일한 프로세스로 동작될 수 있다. 예를 들어, 제2 전자 장치(220)의 제1 전자 장치(210)와의 연결을 해제하는 요청 입력이 수신되면, 제2 전자 장치(220)는 제1 전자 장치(210)에게 인증서 체인을 요청하고, 제1 전자 장치(210)는 인증서 체인을 생성하여 제2 전자 장치(220)에게 전달하며, 제2 전자 장치(220)는 인증서 체인의 유효성을 검증한 후, 유효성이 검증된 경우에만 제1 전자 장치(210)와의 연결을 해제할 수 있다.In FIG. 6 according to an embodiment, the case where the security function inactivation and the request input are received while the security function of the second electronic device 220 is activated has been described, but the security function of the second electronic device 220 Even when a request input for disconnecting the second electronic device 220 from the first electronic device 210 is received in an activated state, the same process as in FIG. 6 may be operated. For example, when a request input for disconnecting the second electronic device 220 from the first electronic device 210 is received, the second electronic device 220 requests the first electronic device 210 for a certificate chain. The first electronic device 210 generates a certificate chain and transmits it to the second electronic device 220, and the second electronic device 220 verifies the validity of the certificate chain and only when the validity is verified 1 A connection with the electronic device 210 may be released.

또한 일 실시예에 따라 도 6에서는, 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태에서 보안 기능 비활성와 요청 입력이 수신되는 경우에 대하여 설명하였으나, 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태에서 제2 전자 장치(220)를 호스트 장치에게 연결하도록하는 요청 입력이 수신되는 경우에도 도 6과 동일한 프로세스로 동작될 수 있다. 예를 들어, 제2 전자 장치(220)를 호스트 장치에게 연결하도록 하는 요청 입력이 수신되면, 제2 전자 장치(220)는 호스트 장치에게 인증서 체인을 요청하고, 호스트 장치는 인증서 체인을 생성하여 제2 전자 장치(220)에게 전달하며, 제2 전자 장치(220)는 인증서 체인의 유효성을 검증한 후, 제2 전자 장치(220)에 저장된 장치 식별자와 인증서 체인의 장치 식별자를 비교하여 저장된 장치 식별자와 상이한 경우 호스트 장치와의 연결을 불허할 수 있다. 또는 호스트 장치가 인증서 체인 기능을 제공하지 않는 장치인 경우 제2 전자 장치(220)는 인증서 체인 요청에 대한 응답을 수신하지 못하므로 역시 호스트 장치와의 연결을 불허할 수 있다. In addition, according to an embodiment, in FIG. 6 , the case where the security function inactivation and the request input are received while the security function of the second electronic device 220 is activated has been described, but the security function of the second electronic device 220 has been described. Even when a request input for connecting the second electronic device 220 to the host device is received in the activated state, the same process as in FIG. 6 may be operated. For example, when a request input for connecting the second electronic device 220 to the host device is received, the second electronic device 220 requests a certificate chain from the host device, and the host device generates the certificate chain and 2 The second electronic device 220 verifies the validity of the certificate chain, and then compares the device identifier stored in the second electronic device 220 with the device identifier of the certificate chain to obtain the stored device identifier. If it is different from , connection with the host device may be disallowed. Alternatively, if the host device is a device that does not provide a certificate chain function, the second electronic device 220 does not receive a response to the certificate chain request, and thus may also disallow connection with the host device.

이하, 도 7을 참조하여, 본 개시의 일 실시예에 따른 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태에서 기기 초기화 요청 입력이 수신되는 경우의 전자 장치들의 동작에 대하여 설명한다. 앞서 설명한 실시예와 동일한 구성에 대한 설명은 생략될 수 있다. Hereinafter, with reference to FIG. 7 , operations of electronic devices when a device initialization request input is received in a state in which the security function of the second electronic device 220 is activated according to an embodiment of the present disclosure will be described. A description of the same configuration as the above-described embodiment may be omitted.

도 7은 일 실시예에 따른 전자 장치들의 동작을 나타낸 흐름도다.7 is a flowchart illustrating operations of electronic devices according to an exemplary embodiment.

도 7을 참조하면, 동작 701에서 제2 전자 장치(220) (예: 도 2의 제2 전자 장치(220)의 제2 프로세서 (225))는 사용자로부터 제2 전자 장치(220)의 기기 초기화를 요청하는 입력을 수신할 수 있다. 일 실시예에 따라 기기 초기화란, 공장 출하 이후에 기기에 저장된 정보를 모두 삭제하여 공장 출하 상태로 소프트웨어를 초기화하는 것을 의미할 수 있으며, 공장 초기화, 하드 리셋 또는 마스터 리셋으로도 칭해질 수 있다. Referring to FIG. 7 , in operation 701, the second electronic device 220 (eg, the second processor 225 of the second electronic device 220 of FIG. 2 ) initializes the device of the second electronic device 220 from the user. can receive input requesting According to an embodiment, device initialization may mean deleting all information stored in the device after shipment from the factory to initialize the software to the factory shipment state, and may also be referred to as factory reset, hard reset, or master reset.

동작 702에서 제2 전자 장치(220)는 연결되어 있는 제1 전자 장치(210)에게 인증서 체인을 요청할 수 있다. 제2 전자 장치(220)는 제1 전자 장치(210)에게 인증서 체인 요청과 챌린지 값을 함께 전달할 수 있다.In operation 702, the second electronic device 220 may request a certificate chain from the connected first electronic device 210. The second electronic device 220 may transmit the certificate chain request and challenge value together to the first electronic device 210 .

동작 703에서 제1 전자 장치(210)( 예: 도 2의 제1 전자 장치(210)의 제1 프로세서 (215))은, 제2 전자 장치(220)로부터 인증서 체인 요청을 수신함에 따라, 제2 전자 장치(220)의 기기 초기화 동의 입력 수신을 위한 사용자 인터페이스(UI, User Interface)를 제1 전자 장치(210)의 디스플레이 장치에 표시할 수 있다.In operation 703, the first electronic device 210 (eg, the first processor 215 of the first electronic device 210 of FIG. 2 ) receives the certificate chain request from the second electronic device 220, and 2 A user interface (UI) for receiving a device initialization consent input of the electronic device 220 may be displayed on the display device of the first electronic device 210 .

동작 704에서 제1 전자 장치(210)는 UI를 통하여 제2 전자 장치(220)의 기기 초기화에 동의하는 입력을 수신함에 따라 인증서 체인을 생성할 수 있다. 일 실시예에 따라 제1 전자 장치(210)가 인증서 체인을 형성하는 동작은 앞서 도 3 및 도 4를 참조하여 설명한 내용과 동일 할 수 있다. 일 실시예에 따라 제1 전자 장치(210)는 어플리케이션 인증서(제3 인증서) 및 어플리케이션 키(제3 인증 키)를 생성하고, 보안 메모리에 저장된 고유 인증 키(제2 인증 키)로 어플리케이션 인증서를 서명함으로써 루트 인증서(제1 인증서), 고유 인증 키 인증서(제2 인증서) 및 어플리케이션 인증서(제3 인증서)를 포함하는 인증서 체인을 형성할 수 있다. 일 실시예에 따라 어플리케이션 인증서(제3 인증서)는 제2 전자 장치(220)로부터 수신한 챌린지 값 및 제1 전자 장치(210)의 고유의 실별자가 포함될 수 있다.In operation 704, the first electronic device 210 may generate a certificate chain upon receiving an input agreeing to device initialization of the second electronic device 220 through the UI. According to an embodiment, an operation of forming a certificate chain by the first electronic device 210 may be the same as that described above with reference to FIGS. 3 and 4 . According to an embodiment, the first electronic device 210 generates an application certificate (third certificate) and an application key (third authentication key), and converts the application certificate to a unique authentication key (second authentication key) stored in a secure memory. By signing, a certificate chain including a root certificate (first certificate), a unique authentication key certificate (second certificate), and an application certificate (third certificate) can be formed. According to an embodiment, the application certificate (third certificate) may include a challenge value received from the second electronic device 220 and a unique identifier of the first electronic device 210 .

동작 705에서 제1 전자 장치(210)는 생성된 인증서 체인을 제2 전자 장치(220)에게 전달할 수 있다.In operation 705 , the first electronic device 210 may deliver the generated certificate chain to the second electronic device 220 .

동작 706에서 제2 전자 장치(220)는 수신된 인증서 체인의 유효성을 검증할 수 있다. 일 실시예에 따라 제2 전자 장치(220)가 인증서 체인의 유효성을 검증하는 앞서 도 3 및 도 4를 참조하여 설명한 내용과 동일 할 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 제1 인증서에 포함된 공개 키로 제2 인증서의 유효성을 검증하고 제2 인증서에 포함된 공개 키로 제3 인즐서의 유효성을 검증할 수 있다. In operation 706, the second electronic device 220 may verify the validity of the received certificate chain. According to an embodiment, the verification of the validity of the certificate chain by the second electronic device 220 may be the same as that described with reference to FIGS. 3 and 4 . According to an embodiment, the second electronic device 220 may verify the validity of the second certificate with the public key included in the first certificate, and verify the validity of the third certificate with the public key included in the second certificate.

일 실시예에 따라 제2 전자 장치(220)는 인증서의 유효성 검증을 완료한 후 제3 인증서에 포함된 챌린지 값이, 제2 전자 장치(220)가 제1 전자 장치(210)에게 전달한 챌린지 값과 동일한지 판단할 수 있다.According to an embodiment, after the second electronic device 220 completes validation of the certificate, the challenge value included in the third certificate is the challenge value transmitted from the second electronic device 220 to the first electronic device 210 can be judged to be the same as

또한 일 실시예에 따라 제2 전자 장치(220)는 제3 인증서에 포함된 제1 전자 장치(210)의 고유의 식별자가 제2 전자 장치(220)의 보안 메모리(예: 도 2의 제2 보안 메모리(224))에 저장된 식별자와 동일한지 판단할 수 있다. 일 실시예에 따라 제2 전자 장치(220)의 보안 메모리에는 신뢰할 수 있는 기기로써 적어도 하나의 전자 장치의 식별자가 저장되어 있을 수 있다. Also, according to an embodiment, the second electronic device 220 may use a unique identifier of the first electronic device 210 included in the third certificate in a secure memory of the second electronic device 220 (eg, the second electronic device 220 in FIG. 2 ). It may be determined whether the identifier is the same as the identifier stored in the secure memory 224 . According to an embodiment, an identifier of at least one electronic device as a trusted device may be stored in the secure memory of the second electronic device 220 .

일 실시예에 따라 제2 전자 장치(220)의 보안 메모리에 저장된 식별자는 제2 전자 장치(220)의 보안 기능을 활성화하는 동작에서 저장된 것일 수 있다. 일 실시예에 따라 제2 전자 장치(220)는 제2 전자 장치(220)의 보안 기능을 활성화하는 동작에서, 제1 전자 장치(210)로부터 수신하고 유효성을 검증한 인증서 체인에 포함된 식별자를 보안 메모리에 저장했을 수 있다. 일 실시예에 따라 제2 전자 장치(220)의 기기 초기화를 수행하는 과정에서 수신한 인증서 체인에 포함된 전자 장치의 식별자와 보안 기능을 활성화하는 과정에서 수신한 인증서 체인에 포함된 전자 장치의 식별자가 동일한지 판단함으로써, 현재 기기 초기화를 수행하고자하는 제2 전자 장치(220)가, 보안 기능 활성화 당시 연결되었던 제1 전자 장치(210)와 동일한 전자 장치에 연결되어 있음을 확인할 수 있다.According to an embodiment, the identifier stored in the secure memory of the second electronic device 220 may be stored in an operation of activating a security function of the second electronic device 220 . According to an embodiment, in an operation of activating the security function of the second electronic device 220, the second electronic device 220 uses an identifier included in a certificate chain received from the first electronic device 210 and verified for validity. may have been stored in secure memory. According to an embodiment, the identifier of the electronic device included in the certificate chain received in the process of device initialization of the second electronic device 220 and the identifier of the electronic device included in the certificate chain received in the process of activating the security function. By determining whether is the same, it can be confirmed that the second electronic device 220 for which device initialization is currently being performed is connected to the same electronic device as the first electronic device 210 that was connected when the security function was activated.

일 실시예에 따라 제2 전자 장치(220)는 인증서 체인의 유효성, 챌린지 값의 동일성, 전자 장치 식별자의 동일성을 확인함에 따라, 현재 제2 전자 장치(220)의 기기 초기화를 수행하고자하는 제2 전자 장치(220)의 사용자가 보안 기능 활성화 당시 제2 전자 장치(220)의 사용자와 동일한 사용자(실질적으로 동일한 사용자 뿐만 아니라 실질적으로 동일하지 않아도 정당한 권한이 있는 사용자)임을 확인할 수 있다. According to an embodiment, the second electronic device 220 checks the validity of the certificate chain, the identity of the challenge value, and the identity of the electronic device identifier, and thus the second electronic device 220 currently wants to perform device initialization of the second electronic device 220. It can be confirmed that the user of the electronic device 220 is the same user as the user of the second electronic device 220 at the time of activating the security function (substantially the same user as well as a user having legitimate authority even if not substantially the same).

반대로, 예를 들어, 제2 전자 장치(220)의 보안 기능이 활성화되어 있는 상태로 제2 전자 장치(220)가 도난, 분실과 같이 정당한 권한이 없는 사용자에게 귀속된 경우, 정당한 권한이 없는 사용자가 제2 전자 장치(220)의 기기 초기화를 시도 시, (제1 전자 장치(210)가 아닌)타 전자 장치로부터 인증서 체인을 수신하게되고, 제2 전자 장치(220)는 인증서 체인에 포함된 전자 장치 식별자가 제2 전자 장치(220)에 저장된 전자 장치 식별자와 상이하다고 판단할 수 있다. 이에 따라 제2 전자 장치(220)는 수신된 인증서 체인의 유효하지 않다고 판단하고 제2 전자 장치(220)의 현재 사용자가 정당한 권한이 없는 사용자라고 판단하여 기기 초기화를 수행하지 않을 수 있다.Conversely, for example, when the security function of the second electronic device 220 is activated and the second electronic device 220 belongs to a user without legitimate authority, such as theft or loss, the user without proper authority When the device initialization of the second electronic device 220 is attempted, a certificate chain is received from another electronic device (not the first electronic device 210), and the second electronic device 220 receives a certificate chain included in the certificate chain. It may be determined that the electronic device identifier is different from the electronic device identifier stored in the second electronic device 220 . Accordingly, the second electronic device 220 may determine that the received certificate chain is not valid, determine that the current user of the second electronic device 220 is a user without proper authority, and may not perform device initialization.

동작 706에서 제1 전자 장치(210)로부터 수신한 인증서 체인이 유효하다고 검증된 경우 동작 707에서 제2 전자 장치(220)는, 제2 전자 장치(220)의 기기 초기화를 진행할 수 있다.When the certificate chain received from the first electronic device 210 is verified to be valid in operation 706 , the second electronic device 220 may proceed with device initialization of the second electronic device 220 in operation 707 .

일 실시예에 따라 제2 전자 장치(220)의 소유자는 자의로 제2 전자 장치(220)의 소유권을 이전하기 전에 도 7의 프로세스에 따라 제2 전자 장치(220)의 기기 초기화를 진행할 수 있다.According to an embodiment, the owner of the second electronic device 220 may perform device initialization of the second electronic device 220 according to the process of FIG. 7 before transferring ownership of the second electronic device 220 voluntarily. .

반대로 제2 전자 장치(220)의 정당하지 않은 소유자가 기기 초기화를 진행하는 경우, 제2 전자 장치(220)에 등록된 제1 전자 장치(210)와의 연결이 끊어진 상태라면 인증서 체인을 받아올 수 없기 때문에 인증서 확인 절차가 수행되지 않아 초기화 기능이 정상적으로 실행되지 않도록 할 수 있으며, 등록된 제1 전자 장치(210)가 아닌 다른 기기로부터 인증서가 전달되는 비정상적인 경우이더라도 제2 전자 장치(220)는 인증서 검증 과정을 통해 유효한 인증서가 아님을 판별할 수 있으므로 유효한 인증서가 아니라고 판단됨에 따라 기기 초기화 명령을 수행하지 않도록 할 수 있다.Conversely, when an unauthorized owner of the second electronic device 220 initializes the device, and the connection with the first electronic device 210 registered in the second electronic device 220 is disconnected, the certificate chain may be obtained. Since there is no certificate verification procedure, it is possible to prevent the initialization function from being normally executed, and even in an abnormal case in which a certificate is transmitted from a device other than the registered first electronic device 210, the second electronic device 220 receives the certificate. Since it is possible to determine that the certificate is not valid through a verification process, the device initialization command may not be performed when it is determined that the certificate is not valid.

이하, 도 8을 참조하여, 본 개시의 일 실시예에 따른 제1 전자 장치(예: 도 2의 제1 전자 장치(210))의 동작에 대하여 설명한다. 앞서 설명한 실시예와 동일한 구성에 대한 설명은 생략될 수 있다.Hereinafter, an operation of the first electronic device (eg, the first electronic device 210 of FIG. 2 ) according to an embodiment of the present disclosure will be described with reference to FIG. 8 . A description of the same configuration as the above-described embodiment may be omitted.

도 8은 일 실시예에 따른 제1 전자 장치의 동작을 나타낸 흐름도이다. 도 8의 동작은 제1 전자 장치의 제1 프로세서(예: 도 2의 제1 프로세서(215))에 의하여 수행될 수 있다.8 is a flowchart illustrating an operation of a first electronic device according to an embodiment. The operation of FIG. 8 may be performed by a first processor (eg, the first processor 215 of FIG. 2 ) of the first electronic device.

도 8을 참조하면, 제1 전자 장치 또는 제2 전자 장치(예: 도 2의 제2 전자 장치(220))는 사용자로부터 보안 기능의 활성화를 요청하는 입력을 수신할 수 있고, 보안 기능의 활성화를 요청하는 입력을 식별함에 따라, 제2 전자 장치의 제2 프로세서(예: 도 2의 제2 프로세서(225))는 제1 전자 장치의 제1 프로세서에게 인증서 체인 요청을 전송할 수 있다. Referring to FIG. 8 , the first electronic device or the second electronic device (eg, the second electronic device 220 of FIG. 2 ) may receive an input requesting activation of the security function from the user, and may activate the security function. Upon identifying the input requesting, the second processor of the second electronic device (eg, the second processor 225 of FIG. 2 ) may transmit a certificate chain request to the first processor of the first electronic device.

일 실시예에 따라 동작 801에서 제1 전자 장치의 제1 프로세서는 제2 전자 장치로부터 인증서 체인 요청을 수신할 수 있다. 제1 전자 장치의 제1 프로세서는 인증서 체인 요청(예: 요청 메시지)과 챌린지 값을 함께 수신할 수 있다. According to an embodiment, in operation 801, the first processor of the first electronic device may receive a certificate chain request from the second electronic device. The first processor of the first electronic device may receive a certificate chain request (eg, a request message) and a challenge value together.

일 실시예에 따라 동작 803에서 제1 전자 장치의 제1 프로세서는, 제2 전자 장치로부터 인증서 체인 요청을 수신함에 따라 인증서 체인을 생성할 수 있다. 제1 전자 장치가 인즈서 체인을 형성하는 방법은 앞서 도 4를 참조하여 설명한 내용과 동일할 수 있으며, 이에 대한 설명은 생략한다.According to an embodiment, in operation 803, the first processor of the first electronic device may generate a certificate chain upon receiving a certificate chain request from the second electronic device. A method of forming the indexer chain by the first electronic device may be the same as that previously described with reference to FIG. 4 , and a description thereof will be omitted.

동작 805에서 제1 전자 장치의 제1 프로세서는 생성된 인증서 체인을 제2 전자 장치에게 전송할 수 있다.In operation 805, the first processor of the first electronic device may transmit the generated certificate chain to the second electronic device.

이하, 도 9를 참조하여, 본 개시의 일 실시예에 따른 제2 전자 장치(예: 도 2의 제2 전자 장치(220))의 동작에 대하여 설명한다. 앞서 설명한 실시예와 동일한 구성에 대한 설명은 생략될 수 있다.Hereinafter, an operation of the second electronic device (eg, the second electronic device 220 of FIG. 2 ) according to an embodiment of the present disclosure will be described with reference to FIG. 9 . A description of the same configuration as the above-described embodiment may be omitted.

도 9는 일 실시예에 따른 제2 전자 장치의 동작을 나타낸 흐름도이다. 도 9의 동작은 제2 전자 장치의 제2 프로세서(예: 도 2의 제2 프로세서(225))에 의하여 수행될 수 있다.9 is a flowchart illustrating an operation of a second electronic device according to an embodiment. The operation of FIG. 9 may be performed by a second processor (eg, the second processor 225 of FIG. 2 ) of the second electronic device.

도 9를 참조하면, 동작 901에서 제2 전자 장치의 제2 프로세서는 보안 기능의 활성화를 요청하는 사용자 입력을 수신할 수 있다. 제2 전자 장치의 제2 프로세서는 보안 기능의 활성화를 요청하는 사용자 입력을 제2 전자 장치를 통하여 직접 수신할 수도 있고 제1 전자 장치를 통하여 전달받을 수도 있다. Referring to FIG. 9 , in operation 901, the second processor of the second electronic device may receive a user input requesting activation of a security function. The second processor of the second electronic device may directly receive a user input requesting activation of the security function through the second electronic device or may receive it through the first electronic device.

일 실시예에 따라 동작 903에서, 제2 전자 장치의 제2 프로세서는 보안 기능의 활성화를 요청하는 입력을 식별함에 따라 제1 전자 장치의 제1 프로세서에게 인증서 체인 요청을 전송할 수 있다. 제2 전자 장치의 제2 프로세서는 인증서 체인 요청(예: 요청 메시지)과 챌린지 값을 함께 전송할 수 있다. According to an embodiment, in operation 903, the second processor of the second electronic device may transmit a certificate chain request to the first processor of the first electronic device according to identifying an input requesting activation of a security function. The second processor of the second electronic device may transmit a certificate chain request (eg, a request message) and a challenge value together.

일 실시예에 따라 동작 905에서, 제2 전자 장치의 제2 프로세서는 인증서 체인이 수신되었는지 판단할 수 있다. 제2 전자 장치의 제2 프로세서는 인증서 체인이 수신되지 않았다고 판단함에 따라 프로세스를 종료할 수 있다. 제2 전자 장치의 제2 프로세서는 인증서 체인이 수신되었다고 판단함에 따라 동작 907로 이동할 수 있다.According to an embodiment, in operation 905, the second processor of the second electronic device may determine whether a certificate chain has been received. The second processor of the second electronic device may terminate the process upon determining that the certificate chain is not received. Upon determining that the certificate chain has been received, the second processor of the second electronic device may move to operation 907 .

일 실시예에 따라 동작 907에서, 제2 전자 장치의 제2 프로세서는 수신된 인증서 체인의 유효성을 검증할 수 있다. 일 실시예에 따라 제2 전자 장치의 제2 프로세서가 인증서 체인의 유효성을 검증하는 방법은 앞서 도 3을 참조하여 설명한 내용과 동일할 수 있으며, 이에 대한 설명은 생략한다.According to an embodiment, in operation 907, the second processor of the second electronic device may verify validity of the received certificate chain. According to an embodiment, a method for the second processor of the second electronic device to verify the validity of the certificate chain may be the same as that described above with reference to FIG. 3 , and a description thereof will be omitted.

일 실시예에 따라 제2 전자 장치의 제2 프로세서가 인증서 체인이 유효하다고 판단함에 따라, 동작 909에서 제2 전자 장치의 제2 프로세서는 인증서 체인 및 제1 전자 장치의 고유의 식별자를 신뢰할 수 있는 기기로 보안 메모리(예: 도 2의 제2 보안 메모리(224))에 저장하고 제2 전자 장치의 보안 기능을 활성화할 수 있다. According to an embodiment, when the second processor of the second electronic device determines that the certificate chain is valid, in operation 909, the second processor of the second electronic device trusts the certificate chain and the unique identifier of the first electronic device. The device may store the information in a secure memory (eg, the second secure memory 224 of FIG. 2 ) and activate the security function of the second electronic device.

일 실시예에 따라 제2 전자 장치의 제2 프로세서가 인증서 체인이 유효하지 않다고 판단함에 따라, 동작 911에서 제2 전자 장치의 제2 프로세서는 인증서 체인을 폐기하고 제2 전자 장치의 보안 기능의 비활성화 상태를 유지할 수 있다.According to an embodiment, when the second processor of the second electronic device determines that the certificate chain is invalid, in operation 911, the second processor of the second electronic device discards the certificate chain and deactivates the security function of the second electronic device. state can be maintained.

본 개시의 일 실시예에 따른 웨어러블 장치는, 보안 기능을 활성화하면서 호스트 장치의 인증서 체인 및 고유 식별자를 저장하고, 웨어러블 장치의 기기 초기화, 호스트 장치와의 연결 해제, 및/또는 웨어러블 장치의 보안 기능 비활성화의 요청이 있는 경우에, 해당 요청을 요청한 사용자가 제2 전자 장치(220)의 정당한 소유자가 맞는지, 보안 기능 활성화 당시 검증 과정을 거쳤던 호스트 장치와 동일한 호스트 장치에 연결되어있는지의 관점에서 검증 단계를 거치도록하여, 웨어러블 장치의 무단 사용을 방지하고 도난 등의 상황에서 웨어러블 장치의 보안을 유지할 수 있다. A wearable device according to an embodiment of the present disclosure stores a certificate chain and a unique identifier of a host device while activating a security function, device initialization of the wearable device, disconnection from the host device, and/or security function of the wearable device. When there is a request for deactivation, a verification step in terms of whether the user requesting the request is the rightful owner of the second electronic device 220 and whether the security function is connected to the same host device as the host device that went through the verification process at the time of activation. , it is possible to prevent unauthorized use of the wearable device and maintain security of the wearable device in situations such as theft.

본 개시의 일 실시예에 따른 호스트 장치는, 보안 기능의 활성화/비활성화, 기기 연결/기기 연결 해제, 기기 초기화에 대한 사용자의 요청에 따라 웨어러블 장치로부터 인증서 체인 요청이 수신되는 경우, 호스트 장치의 제조시부터 호스트 장치에 저장된 고유 인증 키 및 고유 인증 키 인증서를 사용하여 인증서 체인을 생성하여 웨어러블 장치에 제공하므로써 웨어러블 장치에게 보안 기능을 제공할 수 있다. When a certificate chain request is received from a wearable device according to a user's request for activation/deactivation of a security function, device connection/device disconnection, and device initialization, the host device according to an embodiment of the present disclosure performs manufacturing of the host device. A security function may be provided to the wearable device by generating a certificate chain using a unique authentication key and a unique authentication key certificate stored in the host device from time to time and providing the certificate chain to the wearable device.

본 개시의 일 실시예에 따른 웨어러블 장치 및 호스트 장치는, 웨어러블 장치가 네트워크 통신 기능 및 UICC가 지원되지 않는 장치이거나 계정 인증 방식이 지원되지 않는 장치이더라도, 웨어러블 장치와 호스트 장치 간의 통신만으로 인증서 체인을 검증하는 과정을 거치도록하여 높은 보안 수준이 요구되는 동작이 요청된 경우 요청된 동작이 유효한지 여부를 판단하도록하는 보안 기능을 제공할 수 있다. 이로 인하여 웨어러블 장치가 분실 되더라도 타인의 의도적인 기기 초기화를 방지할 수 있으며, 연결 상태 해제 및 다른 호스트 장치와의 무단 연결 사용을 방지하는 효과가 있다.A wearable device and a host device according to an embodiment of the present disclosure, even if the wearable device is a device that does not support a network communication function and a UICC or a device that does not support an account authentication method, establishes a certificate chain only through communication between the wearable device and the host device. When an operation requiring a high security level is requested by going through a verification process, a security function for determining whether the requested operation is valid may be provided. As a result, even if the wearable device is lost, it is possible to prevent others from intentionally initializing the device, and there is an effect of preventing disconnection of the connection state and unauthorized use of connection with other host devices.

본 문서에 개시되는 일 실시 예에 따른 제1 전자 장치는, 제2 전자 장치와 통신을 위한 무선 통신 회로, 상기 무선 통신 회로와 작동적으로 연결된 프로세서, 및 상기 프로세서와 작동적으로 연결된 메모리를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 무선 통신 회로를 통해 상기 제2 전자 장치로부터 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 수신하고, 상기 보안 기능은 상기 제2 전자 장치에 대하여 보안을 요구하는 동작에 대한 사용자 요청이 있는 경우 상기 제2 전자 장치가 상기 인증서 체인의 검증 과정을 수행하도록 하는 기능이며, 상기 챌린지 값 및 상기 제1 전자 장치의 고유의 식별자(unique ID)를 포함하는 상기 인증서 체인을 형성하여 상기 무선 통신 회로를 통해 상기 제2 전자 장치로 전송하도록 하는 인스트럭션들을 저장할 수 있다. A first electronic device according to an embodiment disclosed herein includes a wireless communication circuit for communication with a second electronic device, a processor operatively connected to the wireless communication circuit, and a memory operatively connected to the processor. and the memory, when executed, when the processor receives a user input requesting activation of a security function through the first electronic device or the second electronic device, the second electronic device via the wireless communication circuit. When a certificate chain request including a challenge value is received from an electronic device, and there is a user request for an operation requesting security for the second electronic device, the security function determines the second electronic device. It is a function that causes a device to perform a verification process of the certificate chain, and forms the certificate chain including the challenge value and a unique identifier (unique ID) of the first electronic device to obtain the second electronic device through the wireless communication circuit. It may store instructions to be transmitted to the electronic device.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는 제1 보안 메모리를 포함하며, 상기 제1 보안 메모리에는 상기 제1 전자 장치의 고유의 인증 키(attestation key)인 제2 인증 키 및 상기 제2 인증 키의 페어(pair) 인증서인 제2 인증서가 저장될 수 있다.According to an embodiment disclosed in this document, the memory includes a first secure memory, and the first secure memory includes a second authentication key that is a unique authentication key of the first electronic device and the first secure memory. A second certificate that is a pair certificate of two authentication keys may be stored.

본 문서에 개시되는 일 실시 예에 따르면, 상기 제2 인증서는 상기 제1 전자 장치의 제조 과정에서 루트 키(root key)인 제1 인증 키로 서명되어 상기 제1 보안 메모리에 저장될 수 있다.According to an embodiment disclosed in this document, the second certificate may be signed with a first authentication key that is a root key during the manufacturing process of the first electronic device and stored in the first secure memory.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 인증서 체인 요청을 수신함에 따라, 제3 인증 키 및 상기 제3 인증 키의 페어 인증서인 제3 인증서를 형성하고, 상기 제3 인증서에 상기 챌린지 값 및 상기 제1 전자 장치의 상기 고유의 식별자를 포함시키며, 상기 제2 인증 키로 상기 제3 인증서를 서명(signature)함으로써 상기 인증서 체인을 형성하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory, upon execution, upon receiving the certificate chain request, forms a third authentication key and a third certificate that is a pair certificate of the third authentication key, It may store instructions for including the challenge value and the unique identifier of the first electronic device in a third certificate and signing the third certificate with the second authentication key to form the certificate chain.

본 문서에 개시되는 일 실시 예에 따르면, 상기 보안을 요구하는 동작은, 상기 보안 기능의 활성화, 상기 보안 기능의 비활성화, 호스트 장치와의 연결, 호스트 장치와의 연결 해제, 및 소프트웨어 초기화 중 적어도 하나를 포함할 수 있다.According to an embodiment disclosed in this document, the operation of requesting security may include at least one of activating the security function, deactivating the security function, connecting to a host device, disconnecting from a host device, and initializing software. can include

본 문서에 개시되는 일 실시 예에 따르면, 상기 인증서 체인은, 상기 제1 인증 키의 페어 인증서인 제1 인증서, 상기 제1 인증서의 제1 공개 키(public key), 상기 제2 인증서, 상기 제2 인증서의 제2 공개 키, 및 상기 제3 인증서를 포함할 수 있다.According to an embodiment disclosed in this document, the certificate chain includes a first certificate that is a pair certificate of the first authentication key, a first public key of the first certificate, the second certificate, and the first certificate. It may include a second public key of 2 certificates, and the third certificate.

본 문서에 개시되는 일 실시 예에 따르면, 상기 인증서 체인의 상기 검증 과정은, 상기 제1 공개 키로 상기 제2 인증서의 유효성을 검증(verification)하고, 상기 제2 공개 키로 상기 제3 인증서의 유효성을 검증하는 과정을 포함할 수 있다.According to an embodiment disclosed in this document, in the verification process of the certificate chain, the validity of the second certificate is verified with the first public key, and the validity of the third certificate is verified with the second public key. A verification process may be included.

본 문서에 개시되는 일 실시 예에 따른 제2 전자 장치는, 제1 전자 장치와 통신을 위한 무선 통신 회로, 상기 무선 통신 회로와 작동적으로 연결된 프로세서, 및 상기 프로세서와 작동적으로 연결된 메모리;를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 제1 전자 장치에게 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 전송하고, 상기 제1 전자 장치로부터 수신된 상기 인증서 체인의 유효성을 검증하며, 상기 인증서 체인의 유효성이 검증됨에 따라, 상기 인증서 체인 및 상기 인증서 체인에 포함된 상기 제1 전자 장치의 고유의 식별자를 상기 메모리의 제2 보안 메모리에 저장하고, 상기 보안 기능을 활성화하도록 하는 인스트럭션들을 저장할 수 있다.A second electronic device according to an embodiment disclosed in this document includes a wireless communication circuit for communication with a first electronic device, a processor operatively connected to the wireless communication circuit, and a memory operatively connected to the processor. and, when the memory is executed, when the processor receives a user input requesting activation of a security function through the first electronic device or the second electronic device, the memory provides a challenge value to the first electronic device. (challenge value) is transmitted, the validity of the certificate chain received from the first electronic device is verified, and as the validity of the certificate chain is verified, the certificate chain and the A unique identifier of the first electronic device included in the certificate chain may be stored in a second secure memory of the memory, and instructions for activating the security function may be stored.

본 문서에 개시되는 일 실시 예에 따르면, 상기 인증서 체인은, 상기 제1 전자 장치의 제조 과정에서 루트 키(root key)인 제1 인증 키로 서명된 제2 인증서, 상기 제1 인증 키의 페어 인증서인 제1 인증서, 및 상기 제2 인증서의 페어 인증 키이자 상기 제1 전자 장치의 고유의 인증 키(attestation key)인 제2 인증 키로 서명된 제3 인증서를 포함할 수 있다.According to an embodiment disclosed in this document, the certificate chain includes a second certificate signed with a first authentication key that is a root key in the manufacturing process of the first electronic device, and a pair certificate of the first authentication key. and a third certificate signed with a second authentication key that is a pair authentication key of the second certificate and a unique authentication key of the first electronic device.

본 문서에 개시되는 일 실시 예에 따르면, 상기 인증서 체인은, 상기 제1 인증서의 제1 공개 키(public key), 및 상기 제2 인증서의 제2 공개 키를 포함할 수 있다.According to an embodiment disclosed in this document, the certificate chain may include a first public key of the first certificate and a second public key of the second certificate.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 인증서 체인의 유효성을 검증하기 위해, 상기 제1 공개 키로 상기 제2 인증서의 유효성을 검증하고, 상기 제2 공개 키로 상기 제3 인증서의 유효성을 검증하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory, upon execution, verifies the validity of the second certificate with the first public key, and verifies the validity of the certificate chain with the second public key, in order to verify the validity of the certificate chain. Instructions for verifying the validity of the third certificate may be stored.

본 문서에 개시되는 일 실시 예에 따르면, 상기 제3 인증서는 상기 챌린지 값 및 상기 제1 전자 장치의 상기 고유의 식별자를 포함할 수 있다.According to an embodiment disclosed in this document, the third certificate may include the challenge value and the unique identifier of the first electronic device.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 인증서 체인의 유효성을 검증하기 위해, 상기 제3 인증서에 포함된 상기 챌린지 값 및 상기 인증서 체인 요청에 포함된 상기 챌린지 값이 동일한지 판단하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory stores the challenge value included in the third certificate and the challenge value included in the certificate chain request in order to verify the validity of the certificate chain upon execution. It is possible to store instructions for determining whether these are the same.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 보안 기능이 활성화된 상태에서 보안을 요구하는 동작에 대한 사용자 요청이 있는 경우, 호스트 장치에게 인증서 체인 요청을 전송하도록하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory, upon execution, transmits a certificate chain request to a host device when there is a user request for an operation requiring security while the security function is activated. Instructions can be stored.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 호스트 장치로부터 수신한 인증서 체인의 유효성을 검증하기 위해, 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 공개 키로 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 인증서의 유효성을 검증하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, in order to verify the validity of the certificate chain received from the host device during execution, the memory uses a public key included in a certificate chain received from the host device. It can store instructions to verify the validity of the certificate included in the certificate chain received from .

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 호스트 장치로부터 수신한 인증서 체인의 유효성을 검증하기 위해, 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 챌린지 값 및 상기 호스트 장치에 대한 상기 인증서 체인 요청에 포함된 챌린지 값이 동일한지 판단하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory stores a challenge value included in a certificate chain received from the host device and the host device in order to verify the validity of the certificate chain received from the host device when executed. It may store instructions for determining whether the challenge values included in the certificate chain request to the device are the same.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 호스트 장치로부터 수신한 인증서 체인의 유효성을 검증하기 위해, 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 전자 장치 식별자와 상기 제2 보안 메모리에 저장된 상기 제1 전자 장치의 상기 고유의 식별자가 동일한지 판단하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory stores an electronic device identifier included in a certificate chain received from the host device and the electronic device identifier included in the certificate chain received from the host device in order to verify the validity of the certificate chain received from the host device during execution. Instructions for determining whether the unique identifiers of the first electronic device stored in the second secure memory are the same may be stored.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 전자 장치의 식별자와 상기 제1 전자 장치의 상기 고유의 식별자가 동일하다고 판단됨에 따라 상기 호스트 장치로부터 수신한 인증서 체인이 유효하다고 판단하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, when the memory determines that the identifier of the electronic device and the unique identifier of the first electronic device are identical, the certificate chain received from the host device is It is possible to store instructions that are determined to be valid.

본 문서에 개시되는 일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 호스트 장치로부터 수신한 인증서 체인이 유효하다고 판단됨에 따라 상기 보안을 요구하는 동작을 수행하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment disclosed in this document, the memory may store instructions that, when executed, perform an operation requiring the security when it is determined that the certificate chain received from the host device is valid.

본 문서에 개시되는 일 실시 예에 따르면, 상기 보안을 요구하는 동작은, 상기 보안 기능의 활성화, 상기 보안 기능의 비활성화, 상기 호스트 장치와의 연결, 상기 호스트 장치와의 연결 해제, 및 상기 제2 전자 장치의 소프트웨어 초기화 중 적어도 하나를 포함할 수 있다. According to an embodiment disclosed in this document, the operation of requesting security may include activation of the security function, deactivation of the security function, connection to the host device, disconnection from the host device, and the second It may include at least one of software initialization of the electronic device.

Claims (20)

제1 전자 장치에 있어서,
제2 전자 장치와 통신을 위한 무선 통신 회로;
상기 무선 통신 회로와 작동적으로 연결된 프로세서; 및
상기 프로세서와 작동적으로 연결된 메모리;를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가:
상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 무선 통신 회로를 통해 상기 제2 전자 장치로부터 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 수신하고, 상기 보안 기능은 상기 제2 전자 장치에 대하여 보안을 요구하는 동작에 대한 사용자 요청이 있는 경우 상기 제2 전자 장치가 상기 인증서 체인의 검증 과정을 수행하도록 하는 기능이며,
상기 챌린지 값 및 상기 제1 전자 장치의 고유의 식별자(unique ID)를 포함하는 상기 인증서 체인을 형성하여 상기 무선 통신 회로를 통해 상기 제2 전자 장치로 전송하도록 하는 인스트럭션들을 저장하는, 제1 전자 장치.
In the first electronic device,
a wireless communication circuit for communicating with the second electronic device;
a processor operatively connected with the wireless communications circuitry; and
a memory operatively coupled with the processor;
The memory, when executed, causes the processor to:
A certificate chain including a challenge value from the second electronic device through the wireless communication circuit when a user input requesting activation of a security function is received through the first electronic device or the second electronic device (certificate chain) request, and the security function is a function of allowing the second electronic device to perform a verification process of the certificate chain when there is a user request for an operation requesting security for the second electronic device. ,
A first electronic device that stores instructions for forming the certificate chain including the challenge value and a unique identifier (unique ID) of the first electronic device and transmitting the certificate chain to the second electronic device through the wireless communication circuit. .
청구항 1에 있어서,
상기 메모리는 제1 보안 메모리를 포함하며, 상기 제1 보안 메모리에는 상기 제1 전자 장치의 고유의 인증 키(attestation key)인 제2 인증 키 및 상기 제2 인증 키의 페어(pair) 인증서인 제2 인증서가 저장된, 제1 전자 장치.
The method of claim 1,
The memory includes a first secure memory, and the first secure memory includes a second authentication key that is a unique authentication key of the first electronic device and a pair certificate of the second authentication key. 2 A first electronic device in which a certificate is stored.
청구항 2에 있어서,
상기 제2 인증서는 상기 제1 전자 장치의 제조 과정에서 루트 키(root key)인 제1 인증 키로 서명되어 상기 제1 보안 메모리에 저장된, 제1 전자 장치.
The method of claim 2,
The second certificate is signed with a first authentication key that is a root key during the manufacturing process of the first electronic device and stored in the first secure memory.
청구항 3에 있어서, 상기 메모리는, 실행 시에,
상기 인증서 체인 요청을 수신함에 따라, 제3 인증 키 및 상기 제3 인증 키의 페어 인증서인 제3 인증서를 형성하고,
상기 제3 인증서에 상기 챌린지 값 및 상기 제1 전자 장치의 상기 고유의 식별자를 포함시키며,
상기 제2 인증 키로 상기 제3 인증서를 서명(signature)함으로써 상기 인증서 체인을 형성하도록 하는 인스트럭션들을 저장하는, 제1 전자 장치.
The method according to claim 3, wherein the memory, at the time of execution,
Upon receiving the certificate chain request, forming a third authentication key and a third certificate that is a pair certificate of the third authentication key;
Include the challenge value and the unique identifier of the first electronic device in the third certificate;
and storing instructions for forming the certificate chain by signing the third certificate with the second authentication key.
청구항 4에 있어서,
상기 보안을 요구하는 동작은, 상기 보안 기능의 활성화, 상기 보안 기능의 비활성화, 호스트 장치와의 연결, 호스트 장치와의 연결 해제, 및 소프트웨어 초기화 중 적어도 하나를 포함하는, 제1 전자 장치.
The method of claim 4,
The operation for requesting security includes at least one of activating the security function, deactivating the security function, connecting to a host device, disconnecting from a host device, and initializing software.
청구항 4에 있어서,
상기 인증서 체인은, 상기 제1 인증 키의 페어 인증서인 제1 인증서, 상기 제1 인증서의 제1 공개 키(public key), 상기 제2 인증서, 상기 제2 인증서의 제2 공개 키, 및 상기 제3 인증서를 포함하는, 제1 전자 장치.
The method of claim 4,
The certificate chain includes a first certificate that is a pair certificate of the first authentication key, a first public key of the first certificate, the second certificate, a second public key of the second certificate, and the second certificate. 3 A first electronic device including certificates.
청구항 6에 있어서,
상기 인증서 체인의 상기 검증 과정은, 상기 제1 공개 키로 상기 제2 인증서의 유효성을 검증(verification)하고, 상기 제2 공개 키로 상기 제3 인증서의 유효성을 검증하는 과정을 포함하는, 제1 전자 장치.
The method of claim 6,
The verification process of the certificate chain includes verifying validity of the second certificate with the first public key and verifying validity of the third certificate with the second public key. .
제2 전자 장치에 있어서,
제1 전자 장치와 통신을 위한 무선 통신 회로;
상기 무선 통신 회로와 작동적으로 연결된 프로세서; 및
상기 프로세서와 작동적으로 연결된 메모리;를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가:
상기 제1 전자 장치 또는 상기 제2 전자 장치를 통하여 보안 기능의 활성화를 요청하는 사용자 입력을 수신함에 따라, 상기 제1 전자 장치에게 챌린지 값(challenge value)을 포함하는 인증서 체인(certificate chain) 요청을 전송하고,
상기 제1 전자 장치로부터 수신된 상기 인증서 체인의 유효성을 검증하며,
상기 인증서 체인의 유효성이 검증됨에 따라, 상기 인증서 체인 및 상기 인증서 체인에 포함된 상기 제1 전자 장치의 고유의 식별자를 상기 메모리의 제2 보안 메모리에 저장하고, 상기 보안 기능을 활성화하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
In the second electronic device,
a wireless communication circuit for communicating with the first electronic device;
a processor operatively connected with the wireless communications circuitry; and
a memory operatively coupled with the processor;
The memory, when executed, causes the processor to:
Upon receiving a user input requesting activation of a security function through the first electronic device or the second electronic device, requesting a certificate chain including a challenge value from the first electronic device transmit,
verifying the validity of the certificate chain received from the first electronic device;
As the validity of the certificate chain is verified, instructions for storing the certificate chain and the unique identifier of the first electronic device included in the certificate chain in a second secure memory of the memory and activating the security function To store, the second electronic device.
청구항 8에 있어서,
상기 인증서 체인은,
상기 제1 전자 장치의 제조 과정에서 루트 키(root key)인 제1 인증 키로 서명된 제2 인증서, 상기 제1 인증 키의 페어 인증서인 제1 인증서, 및 상기 제2 인증서의 페어 인증 키이자 상기 제1 전자 장치의 고유의 인증 키(attestation key)인 제2 인증 키로 서명된 제3 인증서를 포함하는, 제2 전자 장치.
The method of claim 8,
The certificate chain is
A second certificate signed with a first authentication key that is a root key in the manufacturing process of the first electronic device, a first certificate that is a pair certificate of the first authentication key, and a pair authentication key of the second certificate A second electronic device comprising a third certificate signed with a second authentication key that is a unique authentication key of the first electronic device.
청구항 9에 있어서,
상기 인증서 체인은, 상기 제1 인증서의 제1 공개 키(public key), 및 상기 제2 인증서의 제2 공개 키를 포함하는, 제2 전자 장치.
The method of claim 9,
The certificate chain includes a first public key of the first certificate and a second public key of the second certificate.
청구항 10에 있어서, 상기 메모리는, 실행 시에,
상기 인증서 체인의 유효성을 검증하기 위해, 상기 제1 공개 키로 상기 제2 인증서의 유효성을 검증하고, 상기 제2 공개 키로 상기 제3 인증서의 유효성을 검증하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method according to claim 10, wherein the memory, at the time of execution,
The second electronic device stores instructions for verifying validity of the second certificate with the first public key and verifying validity of the third certificate with the second public key, in order to verify validity of the certificate chain.
청구항 9에 있어서,
상기 제3 인증서는 상기 챌린지 값 및 상기 제1 전자 장치의 상기 고유의 식별자를 포함하는, 제2 전자 장치.
The method of claim 9,
The third certificate includes the challenge value and the unique identifier of the first electronic device.
청구항 12에 있어서, 상기 메모리는, 실행 시에,
상기 인증서 체인의 유효성을 검증하기 위해, 상기 제3 인증서에 포함된 상기 챌린지 값 및 상기 인증서 체인 요청에 포함된 상기 챌린지 값이 동일한지 판단하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method according to claim 12, wherein the memory, at the time of execution,
and storing instructions for determining whether the challenge value included in the third certificate and the challenge value included in the certificate chain request are the same in order to verify validity of the certificate chain.
청구항 1에 있어서, 상기 메모리는, 실행 시에,
상기 보안 기능이 활성화된 상태에서 보안을 요구하는 동작에 대한 사용자 요청이 있는 경우, 호스트 장치에게 인증서 체인 요청을 전송하도록하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method according to claim 1, wherein the memory, at the time of execution,
A second electronic device configured to store instructions for transmitting a certificate chain request to a host device when there is a user request for an operation requiring security while the security function is activated.
청구항 14에 있어서, 상기 메모리는, 실행 시에,
상기 호스트 장치로부터 수신한 인증서 체인의 유효성을 검증하기 위해, 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 공개 키로 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 인증서의 유효성을 검증하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method according to claim 14, wherein the memory, at the time of execution,
In order to verify the validity of the certificate chain received from the host device, storing instructions for verifying the validity of the certificate included in the certificate chain received from the host device with a public key included in the certificate chain received from the host device , the second electronic device.
청구항 15에 있어서, 상기 메모리는, 실행 시에,
상기 호스트 장치로부터 수신한 인증서 체인의 유효성을 검증하기 위해, 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 챌린지 값 및 상기 호스트 장치에 대한 상기 인증서 체인 요청에 포함된 챌린지 값이 동일한지 판단하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method of claim 15, wherein the memory, at the time of execution,
Instructions for determining whether a challenge value included in the certificate chain received from the host device and a challenge value included in the certificate chain request to the host device are the same in order to verify the validity of the certificate chain received from the host device A second electronic device that stores them.
청구항 16에 있어서, 상기 메모리는, 실행 시에,
상기 호스트 장치로부터 수신한 인증서 체인의 유효성을 검증하기 위해, 상기 호스트 장치로부터 수신한 인증서 체인에 포함된 전자 장치 식별자와 상기 제2 보안 메모리에 저장된 상기 제1 전자 장치의 상기 고유의 식별자가 동일한지 판단하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method according to claim 16, wherein the memory, at the time of execution,
To verify the validity of the certificate chain received from the host device, whether the electronic device identifier included in the certificate chain received from the host device is the same as the unique identifier of the first electronic device stored in the second secure memory. A second electronic device that stores instructions for making a decision.
청구항 17에 있어서, 상기 메모리는, 실행 시에,
상기 전자 장치의 식별자와 상기 제1 전자 장치의 상기 고유의 식별자가 동일하다고 판단됨에 따라 상기 호스트 장치로부터 수신한 인증서 체인이 유효하다고 판단하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method of claim 17, wherein the memory, at the time of execution,
and storing instructions for determining that the certificate chain received from the host device is valid when it is determined that the identifier of the electronic device and the unique identifier of the first electronic device are identical.
청구항 18에 있어서, 상기 메모리는, 실행 시에,
상기 호스트 장치로부터 수신한 인증서 체인이 유효하다고 판단됨에 따라 상기 보안을 요구하는 동작을 수행하도록 하는 인스트럭션들을 저장하는, 제2 전자 장치.
The method of claim 18, wherein the memory, at the time of execution,
A second electronic device that stores instructions for performing an operation requiring the security when it is determined that the certificate chain received from the host device is valid.
청구항 14에 있어서,
상기 보안을 요구하는 동작은, 상기 보안 기능의 활성화, 상기 보안 기능의 비활성화, 상기 호스트 장치와의 연결, 상기 호스트 장치와의 연결 해제, 및 상기 제2 전자 장치의 소프트웨어 초기화 중 적어도 하나를 포함하는, 제2 전자 장치.
The method of claim 14,
The operation of requesting security includes at least one of activating the security function, deactivating the security function, connecting to the host device, disconnecting from the host device, and initializing software of the second electronic device. , the second electronic device.
KR1020220030661A 2022-02-07 2022-03-11 Electronic device providing security function and method of operation therof KR20230119569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2022/020128 WO2023149648A1 (en) 2022-02-07 2022-12-12 Electronic device for providing security function, and operating method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20220015610 2022-02-07
KR1020220015610 2022-02-07

Publications (1)

Publication Number Publication Date
KR20230119569A true KR20230119569A (en) 2023-08-16

Family

ID=87848344

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220030661A KR20230119569A (en) 2022-02-07 2022-03-11 Electronic device providing security function and method of operation therof

Country Status (1)

Country Link
KR (1) KR20230119569A (en)

Similar Documents

Publication Publication Date Title
US11496900B2 (en) Electronic device and method for storing user identification information
US11461475B2 (en) Electronic device including secure integrated circuit
US20230396604A1 (en) Method for performing user authentication and device for performing same
US20230004660A1 (en) Method of processing secure data and electronic device supporting the same
US20230041033A1 (en) ELECTRONIC DEVICE AND METHOD FOR INSTALLING eSIM PROFILE IN ELECTRONIC DEVICE
KR20230119569A (en) Electronic device providing security function and method of operation therof
EP4328768A1 (en) Electronic device for performing different login processes according to authentication type and control method thereof
US20240179013A1 (en) Method for mutually attesting security levels of electronic devices in multi device environment
US11550963B2 (en) Method of processing secure data and electronic device supporting the same
US20240112193A1 (en) Method and device for transmitting data based on blockchain
US20230093667A1 (en) Method of providing login information and electronic device performing thereof
EP4325914A1 (en) Method for setting network lock function of electronic device and electronic device for same
US20230267190A1 (en) Electronic device, method, and non-transitory computer-readable storage media for executing setup via communication with another device
US20230289786A1 (en) Electronic device for transmitting transaction by using external device and operation method thereof
US20230185935A1 (en) Method and device for updating personal information
KR20230022729A (en) An electronic device for performing different login process according to authentication type and control method thereof
KR20230013583A (en) Method of setting up network lock of electronic device and electronic device thereof
US20230147516A1 (en) Electronic device and method for controlling vehicle based on driver authentication
US20230106384A1 (en) Electronic device, method, and non-transitory computer readable storage medium for adaptively providing authentication scheme of service based on context
WO2023149648A1 (en) Electronic device for providing security function, and operating method thereof
US20240112501A1 (en) Electronic device and biometric authentication method using same
KR20240028895A (en) Methods and devices for controlling contactless communication of applet
KR20240045032A (en) Apparatus and method for transmitting data by block-chain
KR20230021786A (en) Electronic device, and method for installing profile of embedded subscriber identification module in electronic device
KR20220009220A (en) Method for performing authentication and electronic device supporting the same