KR20240026069A - Electronic device and method for performing user authentication in electronic device - Google Patents

Electronic device and method for performing user authentication in electronic device Download PDF

Info

Publication number
KR20240026069A
KR20240026069A KR1020230002384A KR20230002384A KR20240026069A KR 20240026069 A KR20240026069 A KR 20240026069A KR 1020230002384 A KR1020230002384 A KR 1020230002384A KR 20230002384 A KR20230002384 A KR 20230002384A KR 20240026069 A KR20240026069 A KR 20240026069A
Authority
KR
South Korea
Prior art keywords
electronic device
user
authentication
security area
authentication application
Prior art date
Application number
KR1020230002384A
Other languages
Korean (ko)
Inventor
김태수
김범현
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2023/012302 priority Critical patent/WO2024039235A1/en
Publication of KR20240026069A publication Critical patent/KR20240026069A/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/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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • 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/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • 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/321Cryptographic 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 a third party or a trusted authority
    • H04L9/3213Cryptographic 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 a third party or a trusted authority using tickets or tokens, e.g. Kerberos

Landscapes

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

Abstract

다양한 실시예들에 따르면, 전자 장치는, 메모리; 및 상기 메모리에 연결된 적어도 하나의 프로세서를 포함한다. 상기 적어도 하나의 프로세서는, 보안 영역에서 실행되는 제1 인증 어플리케이션을 통해 사용자 크리덴셜(user credential)을 입력 받고, 상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행되도록 제어할 수 있다. 상기 적어도 하나의 프로세서는, 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급하도록 제어할 수 있다. 상기 적어도 하나의 프로세서는, 일반 영역에서 실행되는 제2 인증 어플리케이션을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송하도록 제어할 수 있다. According to various embodiments, an electronic device includes: memory; and at least one processor connected to the memory. The at least one processor receives user credentials through a first authentication application running in the security area, and performs a user authentication procedure in the first authentication application in the security area based on the user credentials. You can control it to run. The at least one processor may control the first authentication application within the security area to issue an access token when the user authentication procedure is successfully completed in the first authentication application within the security area. The at least one processor may control transmission of the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application running in the general area.

Figure P1020230002384
Figure P1020230002384

Description

전자 장치 및 전자 장치에서 사용자 인증을 수행하는 방법 {ELECTRONIC DEVICE AND METHOD FOR PERFORMING USER AUTHENTICATION IN ELECTRONIC DEVICE}{ELECTRONIC DEVICE AND METHOD FOR PERFORMING USER AUTHENTICATION IN ELECTRONIC DEVICE}

본 개시는 전자 장치에서 사용자 인증을 수행하는 방법에 관한 것이다. This disclosure relates to a method of performing user authentication in an electronic device.

디지털 기술의 발달과 함께 이동통신 단말기, 스마트폰(smart phone), 태블릿(tablet) PC(personal computer), 웨어러블 장치(wearable device) 등과 같은 다양한 유형의 전자 장치가 널리 사용되고 있다. With the development of digital technology, various types of electronic devices such as mobile communication terminals, smart phones, tablet personal computers (PCs), wearable devices, etc. are widely used.

전자 장치는 다양한 사용자 경험을 제공하기 위해, 다양한 데이터를 저장할 수 있다. 전자 장치는 데이터베이스에 기반하여, 하나 이상의 어플리케이션, 서비스 및/또는 운영 체제의 데이터를 관리할 수 있다. 예를 들어, 전자 장치는 실행 중인 어플리케이션, 서비스 및/또는 운영 체제에 기반하여, 데이터베이스의 데이터를 처리할 수 있다.Electronic devices can store various data to provide various user experiences. The electronic device may manage data of one or more applications, services and/or operating systems based on a database. For example, an electronic device may process data in a database based on the applications, services and/or operating system it is executing.

한편, 스마트폰과 같은 전자 장치는 사용자 인증 기능을 처리할 수 있다. 예를 들어, 전자 장치는 사용자 인증 후 서비스를 제공 받을 수 있는 어플리케이션을 실행하는 경우, 키보드 입력, 홍채 인식, 지문 인식 등의 사용자 인증 기능을 처리할 수 있다. Meanwhile, electronic devices such as smartphones can handle user authentication functions. For example, when an electronic device runs an application that can provide services after user authentication, it can process user authentication functions such as keyboard input, iris recognition, and fingerprint recognition.

다양한 실시예들에 따르면, 과제의 해결 수단이 상술한 해결 수단들로 제한되는 것은 아니며, 언급되지 아니한 해결 수단들은 본 명세서 및 첨부된 도면으로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.According to various embodiments, the means for solving the problem are not limited to the above-mentioned solution means, and solution methods not mentioned may be disclosed to those skilled in the art from this specification and the attached drawings. You will be able to understand it clearly.

다양한 실시예들에 따르면, 전자 장치는, 메모리; 및 상기 메모리에 연결된 적어도 하나의 프로세서를 포함한다. 상기 적어도 하나의 프로세서는, 보안 영역에서 실행되는 제1 인증 어플리케이션을 통해 사용자 크리덴셜(user credential)을 입력 받고, 상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행되도록 제어할 수 있다. 상기 적어도 하나의 프로세서는, 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급하도록 제어할 수 있다. 상기 적어도 하나의 프로세서는, 일반 영역에서 실행되는 제2 인증 어플리케이션을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송하도록 제어할 수 있다. According to various embodiments, an electronic device includes: memory; and at least one processor connected to the memory. The at least one processor receives user credentials through a first authentication application running in the security area, and performs a user authentication procedure in the first authentication application in the security area based on the user credentials. You can control it to run. The at least one processor may control the first authentication application within the security area to issue an access token when the user authentication procedure is successfully completed in the first authentication application within the security area. The at least one processor may control transmission of the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application running in the general area.

다양한 실시예들에 따르면, 전자 장치의 동작 방법은, 보안 영역에서 실행되는 제1 인증 어플리케이션을 통해 사용자 입력에 대응하는 사용자 크리덴셜(user credential)을 획득하는 동작을 포함할 수 있다. 상기 전자 장치의 동작 방법은, 상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행하는 동작을 포함할 수 있다. 상기 전자 장치의 동작 방법은, 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급하는 동작을 포함할 수 있다. 상기 전자 장치의 동작 방법은, 일반 영역에서 실행되는 제2 인증 어플리케이션을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송하는 동작을 포함할 수 있다. According to various embodiments, a method of operating an electronic device may include obtaining a user credential corresponding to a user input through a first authentication application running in a security area. The method of operating the electronic device may include performing a user authentication procedure in the first authentication application within the security area based on the user credentials. The method of operating the electronic device may include issuing an access token from the first authentication application within the security area when the user authentication procedure is successfully completed in the first authentication application within the security area. You can. The method of operating the electronic device may include transmitting the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application running in the general area.

일 실시예에 따라서, 컴퓨터로 독출 가능한 적어도 하나의 인스트럭션을 저장한 저장 매체가 제공될 수 있다. 상기 적어도 하나의 인스트럭션은, 적어도 하나의 프로세서에 의하여 실행 시에, 전자 장치로 하여금, 복수 개의 동작들을 수행하도록 야기할 수 있다. 상기 복수 개의 동작들은, 보안 영역에서 실행되는 제1 인증 어플리케이션을 통해 사용자 입력에 대응하는 사용자 크리덴셜(user credential)을 획득하는 동작을 포함할 수 있다. 상기 복수 개의 동작들은, 상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행하는 동작을 포함할 수 있다. 상기 복수 개의 동작들은, 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급하는 동작을 포함할 수 있다. 상기 복수 개의 동작들은, 일반 영역에서 실행되는 제2 인증 어플리케이션을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송하는 동작을 포함할 수 있다.According to one embodiment, a storage medium storing at least one computer-readable instruction may be provided. When executed by at least one processor, the at least one instruction may cause the electronic device to perform a plurality of operations. The plurality of operations may include obtaining user credentials corresponding to user input through a first authentication application running in the security area. The plurality of operations may include operations performed by a user authentication procedure in the first authentication application within the security area based on the user credentials. The plurality of operations may include issuing an access token from the first authentication application within the security area when the user authentication procedure is successfully completed in the first authentication application within the security area. . The plurality of operations may include transmitting the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application running in the general area.

도 1은 본 개시의 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 본 개시의 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3a는 본 개시의 실시예에 따른 전자 장치에서 사인 인(sign in) 기능을 제공하는 일 예시를 나타낸다.
도 3b는 본 개시의 실시예에 따른 전자 장치에서 패스워드 없는 인증을 통한 사인 인(sign in) 기능을 제공하는 일 예시를 나타낸다.
도 4는 본 개시의 실시예에 따른 사용자 인증 방법을 설명하기 위한 도면이다.
도 5는 본 개시의 실시예에 따른 시스템을 설명하기 위한 도면이다.
도 6은 본 개시의 실시예에 따른 인증 어플리케이션의 패키지 구조를 나타내는 도면이다.
도 7은 본 개시의 실시예에 따른 패키지된 인증 어플리케이션이 실행되는 전자 장치 내 구성을 나타내는 도면이다.
도 8은 본 개시의 실시예에 따른 크리덴셜 사용자 등록을 위해 전자 장치내에 저장된 데이터 구조를 나타내는 도면이다.
도 9는 본 개시의 실시예에 따른 온-디바이스 사용자 인증 방법을 설명하기 위한 일 예시를 나타내는 도면이다.
도 10은 본 개시의 실시예에 따른 온-디바이스 사용자 인증 방법을 설명하기 위한 다른 예시를 나타내는 도면이다.
도 11은 본 개시의 실시예에 따른 전자 장치의 동작을 설명하기 위한 순서도이다.
1 is a block diagram of an electronic device in a network environment according to embodiments of the present disclosure.
Figure 2 is a block diagram illustrating a program according to an embodiment of the present disclosure.
FIG. 3A shows an example of providing a sign in function in an electronic device according to an embodiment of the present disclosure.
Figure 3b shows an example of providing a sign in function through password-less authentication in an electronic device according to an embodiment of the present disclosure.
Figure 4 is a diagram for explaining a user authentication method according to an embodiment of the present disclosure.
Figure 5 is a diagram for explaining a system according to an embodiment of the present disclosure.
Figure 6 is a diagram showing the package structure of an authentication application according to an embodiment of the present disclosure.
FIG. 7 is a diagram illustrating a configuration within an electronic device in which a packaged authentication application is executed according to an embodiment of the present disclosure.
FIG. 8 is a diagram illustrating a data structure stored in an electronic device for credential user registration according to an embodiment of the present disclosure.
FIG. 9 is a diagram illustrating an example to explain an on-device user authentication method according to an embodiment of the present disclosure.
FIG. 10 is a diagram illustrating another example to explain an on-device user authentication method according to an embodiment of the present disclosure.
11 is a flowchart for explaining the operation of an electronic device according to an embodiment of the present disclosure.

도 1은 본 개시의 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다. 1 is a block diagram of an electronic device in a network environment according to embodiments of the present disclosure.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

도 2는 본 개시의 실시예에 따른 프로그램을 예시하는 블록도이다. Figure 2 is a block diagram illustrating a program according to an embodiment of the present disclosure.

일 실시예에 따르면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.According to one embodiment, the program 140 includes an operating system 142, middleware 144, or an application 146 executable on the operating system 142 for controlling one or more resources of the electronic device 101. It can be included. Operating system 142 may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM . At least some of the programs 140 are preloaded into the electronic device 101, for example, at the time of manufacture, or are stored in an external electronic device (e.g., the electronic device 102 or 104, or a server) when used by a user. It can be downloaded or updated from 108)).

운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.The operating system 142 may control management (eg, allocation or retrieval) of one or more system resources (eg, process, memory, or power) of the electronic device 101 . Operating system 142 may additionally or alternatively operate on other hardware devices of electronic device 101, such as input module 150, audio output module 155, display module 160, and audio module 170. , sensor module 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or It may include one or more driver programs for driving the antenna module 197.

미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다. The middleware 144 may provide various functions to the application 146 so that functions or information provided from one or more resources of the electronic device 101 can be used by the application 146. The middleware 144 includes, for example, an application manager 201, a window manager 203, a multimedia manager 205, a resource manager 207, a power manager 209, a database manager 211, and a package manager 213. ), connectivity manager (215), notification manager (217), location manager (219), graphics manager (221), security manager (223), call manager (225), or voice recognition manager (227). You can.

어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.The application manager 201 may, for example, manage the life cycle of the application 146. The window manager 203 may, for example, manage one or more GUI resources used on the screen. For example, the multimedia manager 205 identifies one or more formats required for playing media files, and encodes or decodes the corresponding media file using a codec suitable for the selected format. It can be done. The resource manager 207 may, for example, manage the source code of the application 146 or the memory space of the memory 130. The power manager 209 manages, for example, the capacity, temperature, or power of the battery 189, and may use this information to determine or provide related information necessary for the operation of the electronic device 101. . According to one embodiment, the power manager 209 may interface with a basic input/output system (BIOS) (not shown) of the electronic device 101.

데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. Database manager 211 may create, search, or change a database to be used by application 146, for example. The package manager 213 may, for example, manage the installation or update of applications distributed in the form of package files. The connectivity manager 215 may manage, for example, a wireless connection or direct connection between the electronic device 101 and an external electronic device. For example, the notification manager 217 may provide a function for notifying the user of the occurrence of a designated event (eg, an incoming call, message, or alarm). The location manager 219 may, for example, manage location information of the electronic device 101. The graphics manager 221 may, for example, manage one or more graphic effects to be provided to the user or a user interface related thereto.

시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(244)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.Security manager 223 may provide, for example, system security or user authentication. The telephony manager 225 may manage, for example, a voice call function or a video call function provided by the electronic device 101. For example, the voice recognition manager 227 transmits the user's voice data to the server 108 and provides a command corresponding to a function to be performed in the electronic device 101 based at least in part on the voice data, Alternatively, text data converted based at least in part on the voice data may be received from the server 108. According to one embodiment, the middleware 244 may dynamically delete some existing components or add new components. According to one embodiment, at least a portion of the middleware 144 may be included as part of the operating system 142 or may be implemented as separate software different from the operating system 142.

어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다. The application 146 includes, for example, home 251, dialer 253, SMS/MMS (255), instant message (IM) 257, browser 259, camera 261, and alarm 263. , Contacts (265), Voice Recognition (267), Email (269), Calendar (271), Media Player (273), Album (275), Watch (277), Health (279) (such as exercise amount or blood sugar) It may include applications that measure biometric information) or environmental information 281 (e.g., measure atmospheric pressure, humidity, or temperature information). According to one embodiment, the application 146 may further include an information exchange application (not shown) that can support information exchange between the electronic device 101 and an external electronic device. The information exchange application may include, for example, a notification relay application configured to deliver designated information (e.g., calls, messages, or alarms) to an external electronic device, or a device management application configured to manage the external electronic device. there is. The notification relay application, for example, transmits notification information corresponding to a specified event (e.g., mail reception) generated in another application (e.g., email application 269) of the electronic device 101 to an external electronic device. You can. Additionally or alternatively, the notification relay application may receive notification information from an external electronic device and provide it to the user of the electronic device 101.

장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 외부 전자 장치의 디스플레이 모듈 또는 카메라 모듈)의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.The device management application, for example, controls the power (e.g., turn-on or turn-off) of an external electronic device or some component thereof (e.g., a display module or camera module of the external electronic device) that communicates with the electronic device 101. ) or functions (such as brightness, resolution, or focus). A device management application may additionally or alternatively support installation, deletion, or update of applications running on external electronic devices.

서버(예를 들어, 에지 서버)에서 인증 서비스를 제공하는 경우, 서버에서 사용자의 크리덴셜(credential) 및/또는 사용자의 개인 정보를 관리하고 사용자 인증을 수행하므로 서버 공격 시 사용자의 크리덴셜(credential) 및/또는 사용자의 개인 정보가 노출될 위험이 있다. 패스워드(password)가 없는 인증 기술의 경우, 소프트웨어 공격으로부터 인증 서버가 공격 당할 우려가 있기 때문에 사용자 장치에서 인증 서비스에 대한 활용도가 제한된다. If an authentication service is provided by a server (e.g., an edge server), the server manages the user's credentials and/or the user's personal information and performs user authentication, so in the event of a server attack, the user's credentials ) and/or there is a risk that the user's personal information may be exposed. In the case of authentication technology without a password, the utility of the authentication service on the user device is limited because there is a risk of the authentication server being attacked by a software attack.

본 개시에서는 외부 서버(예를 들어 에지 서버)가 아닌 전자 장치(예를 들어, 도 1의 전자 장치(101)) 내부에서 사용자의 크리덴셜(credential) 정보를 보호하고, 전자 장치 내부에서 크리덴셜 정보를 사용하여 사용자를 직접 인증하는 방법을 제안한다. In the present disclosure, the user's credential information is protected inside the electronic device (e.g., the electronic device 101 of FIG. 1) rather than an external server (e.g., an edge server), and the credential is stored inside the electronic device. We propose a method to directly authenticate users using information.

본 개시에서는 사용자 로그인(user login)(또는 사용자 인증(authentication))에 필요한 사용자 크리덴셜(user credential)을 하드웨어(hardware) 기반의 TEE(trusted execution environment) 기술을 이용하여 안전하게 보관 및/또는 관리할 수 있다. 본 개시에서는 사용자 크리덴셜을 사용한 인증 방식을 하드웨어 기술로 보호하고, 상기 인증 방식을 사용자가 직접 제어함으로써 데이터 주권(Self-sovereign identity)을 강화할 수 있다. 본 개시에 따른 인증 방식은 소프트웨어 공격이나 피싱(phishing) 공격으로부터 보호할 수 있는 온-디바이스 인증(on-device authentication) 기능을 제공할 수 있다. In this disclosure, user credentials required for user login (or user authentication) can be safely stored and/or managed using hardware-based trusted execution environment (TEE) technology. You can. In this disclosure, the authentication method using user credentials is protected with hardware technology, and data sovereignty (self-sovereign identity) can be strengthened by directly controlling the authentication method by the user. The authentication method according to the present disclosure can provide an on-device authentication function that can protect against software attacks or phishing attacks.

도 3a는 본 개시의 실시예에 따른 전자 장치에서 사인 인(sign in) 기능을 제공하는 일 예시를 나타낸다. FIG. 3A shows an example of providing a sign in function in an electronic device according to an embodiment of the present disclosure.

도 3a를 참조하면, 전자 장치(예를 들어, 도 1의 전자 장치(101))에서 전자 장치(예를 들어, 도 1의 전자 장치(101)) 또는 외부 전자 장치(예를 들어, 도 1의 전자 장치(102) 또는 전자 장치(104))에 대한 사인 인(sign in) 기능을 수행할 수 있도록 UI(user interface)를 제공할 수 있다. Referring to FIG. 3A, an electronic device (e.g., the electronic device 101 in FIG. 1) is connected to an electronic device (e.g., the electronic device 101 in FIG. 1) or an external electronic device (e.g., the electronic device 101 in FIG. 1). A user interface (UI) may be provided to perform a sign in function for the electronic device 102 or the electronic device 104.

도 3b는 본 개시의 실시예에 따른 전자 장치에서 패스워드 없는 인증을 통한 사인 인(sign in) 기능을 제공하는 일 예시를 나타낸다. Figure 3b shows an example of providing a sign in function through password-less authentication in an electronic device according to an embodiment of the present disclosure.

도 3b를 참조하면, 전자 장치(예를 들어, 도 1의 전자 장치(101))에서 패스워드 없이 하드웨어(hardware) 기반의 TEE(trusted execution environment) 기술을 이용하여 사용자 크리덴셜을 보호할 수 있다. 일 실시예에 따라, 상기 사용자 크리덴셜은 소유자를 식별할 수 있는 암호, 지문, 얼굴, 음성, 홍채, 손바닥 또는 손가락 정맥 패턴이 될 수 있다. Referring to FIG. 3B, user credentials can be protected in an electronic device (e.g., the electronic device 101 of FIG. 1) using hardware-based trusted execution environment (TEE) technology without a password. According to one embodiment, the user credential may be a password, fingerprint, face, voice, iris, palm, or finger vein pattern that can identify the owner.

도 4는 본 개시의 실시예에 따른 사용자 인증 방법을 설명하기 위한 도면이다. Figure 4 is a diagram for explaining a user authentication method according to an embodiment of the present disclosure.

도 4를 참조하면, 시스템은 전자 장치(400)(예를 들어, 도 1의 전자 장치(101)), 어카운트 서비스 서버(account service server)(410), 및 어플리케이션 서버(application server)(420)을 포함한다. 어카운트 서비스 서버(410)는 전자 장치(400)에 대한 사용자 어카운트(user account)를 관리하고, 사용자 크리덴셜을 이용하여 사용자를 검증할 수 있다. 어플리케이션 서버(420)는 전자 장치(400)로 서비스 및/또는 컨텐트를 제공할 수 있는 서버이며, 전자 장치(400)로부터 인가 코드(authorization code)를 수신하면, 어카운트 서비스 서버(410)로부터 사용자 어카운트 정보를 획득할 수 있다. Referring to FIG. 4, the system includes an electronic device 400 (e.g., electronic device 101 in FIG. 1), an account service server 410, and an application server 420. Includes. The account service server 410 manages user accounts for the electronic device 400 and can verify users using user credentials. The application server 420 is a server that can provide services and/or content to the electronic device 400, and upon receiving an authorization code from the electronic device 400, it receives a user account from the account service server 410. Information can be obtained.

전자 장치(400) 내에 어플리케이션(401) 및 어카운트 서비스 어플리케이션(403)이 설치 및/또는 실행될 수 있다. 어플리케이션(401)은 어플리케이션 서버(420)와 통신하며 데이터 및/또는 정보를 송수신하고, 어카운트 서비스 어플리케이션(403)은 어카운트 서비스 서버(410)와 통신하며 데이터 및/또는 정보를 송수신할 수 있다. The application 401 and the account service application 403 may be installed and/or executed in the electronic device 400. The application 401 may communicate with the application server 420 and transmit and receive data and/or information, and the account service application 403 may communicate with the account service server 410 and transmit and receive data and/or information.

어카운트 서비스 서버(410)는 사용자 인증을 위한 인증 모듈(authentication)(411), 외부 서버(예를 들어, 어플리케이션 서버(420))가 사용자 어카운트 정보를 획득할 수 있도록 인가 코드를 발급하는 인가(authorization) 모듈(413), 및 외부 서버(예를 들어, 어플리케이션 서버(420))로 액세스 토큰 및/또는 사용자 어카운트 정보를 제공하는 리소스 서버(resource server)(415)를 포함할 수 있다. The account service server 410 includes an authentication module (authentication) 411 for user authentication and an authorization code that issues an authorization code so that an external server (e.g., application server 420) can obtain user account information. ) module 413, and a resource server 415 that provides access tokens and/or user account information to an external server (e.g., application server 420).

전자 장치(400)는 크리덴셜 소유자로부터 사용자 크리덴셜(user credential)을 입력 받고, 입력 받은 사용자 크리덴셜을 어카운트 서비스 서버(410)로 전달할 수 있다. 사용자 크리덴셜을 전달 받은 어카운트 서비스 서버(410)는 사용자 크리덴셜을 이용한 사용자 검증을 수행하고, 사용자 검증이 완료된 경우 사용자에 대한 허가 코드(authorization code)를 전자 장치(400)로 전송할 수 있다. The electronic device 400 may receive a user credential as input from the credential owner and transmit the input user credential to the account service server 410. The account service server 410, which has received the user credential, may perform user verification using the user credential and, when user verification is completed, transmit an authorization code for the user to the electronic device 400.

S401 동작에서, 전자 장치(400) 내 어플리케이션(401)은 request authorization을 어카운트 서비스 어플리케이션(403)으로 전송하여 인가를 요청할 수 있다. 일 실시예에 따라, 상기 request authorization은 <response_type=code, client_id=CLIENT_ID, redirect_uri=CALLBACK_URL, scope=read>의 형태로 구현될 수 있다. In operation S401, the application 401 in the electronic device 400 may request authorization by transmitting request authorization to the account service application 403. According to one embodiment, the request authorization may be implemented in the form of <response_type=code, client_id=CLIENT_ID, redirect_uri=CALLBACK_URL, scope=read>.

S402 동작에서, 어카운트 서비스 어플리케이션(403)은 사용자 입력에 기반하여 사용자 크리덴셜(user credential)을 입력 받을 수 있다. In operation S402, the account service application 403 may receive user credentials based on user input.

S403 동작에서, 어카운트 서비스 어플리케이션(403)은 인가를 요청하는 authorization request를 어카운트 서비스 서버(410) 내 인가 모듈(413)로 전달할 수 있다. 일 실시예에 따라, 상기 authorization request는 사용자 크리덴셜(user credential)을 포함할 수 있다. 일 실시예에 따라, 상기 authorization request는 <response_type=code, client_id=CLIENT_ID, redirect_uri=CALLBACK_URL, scope=read, User credential>의 형태로 구현될 수 있다. In operation S403, the account service application 403 may transmit an authorization request requesting authorization to the authorization module 413 in the account service server 410. According to one embodiment, the authorization request may include user credentials. According to one embodiment, the authorization request may be implemented in the form of <response_type=code, client_id=CLIENT_ID, redirect_uri=CALLBACK_URL, scope=read, User credential>.

S404 동작에서, 어카운트 서비스 서버(410) 내 인증 모듈(411)과 인가 모듈(413)은 사용자 검증 관련 메시지(user verification)를 주고 받을 수 있다. 일 실시예에 따라, 사용자 검증 관련 메시지(user verification)는 사용자 크리덴셜(user credential)을 포함할 수 있다. In operation S404, the authentication module 411 and the authorization module 413 in the account service server 410 may exchange user verification-related messages (user verification). According to one embodiment, a user verification-related message (user verification) may include user credentials.

S405 동작에서, 어카운트 서비스 서버(410) 내 인가 모듈(413)은 검증된 사용자 인증 정보(user authentication verified)를 어카운트 서비스 어플리케이션(403)으로 전송할 수 있다. S406 동작에서, 어카운트 서비스 어플리케이션(403)은 사용자 입력에 기반하여 사용자 인가 부여(user authorization grant)를 입력 받을 수 있다.In operation S405, the authorization module 413 in the account service server 410 may transmit verified user authentication information to the account service application 403. In operation S406, the account service application 403 may receive a user authorization grant based on user input.

S407 동작에서, 어카운트 서비스 어플리케이션(403)은 사용자 인가 부여(user authorization grant)를 어카운트 서비스 서버(410) 내 인가 모듈(413)로 전달할 수 있다. S408 동작에서, 어카운트 서비스 서버(410) 내 인가 모듈(413)은 어카운트 서비스 어플리케이션(403)으로 인가 코드(authorization code)를 포함하는 응답 메시지(reply with authorization code <authorization code>)를 전송할 수 있다. In operation S407, the account service application 403 may transmit a user authorization grant to the authorization module 413 in the account service server 410. In operation S408, the authorization module 413 in the account service server 410 may transmit a response message (reply with authorization code <authorization code>) including an authorization code to the account service application 403.

S409 동작에서, 어카운트 서비스 어플리케이션(403)은 인가 코드(authorization code)를 어플리케이션(401)으로 전송할 수 있다. S410 동작에서, 어플리케이션(401)은 인가 코드(authorization code)를 어플리케이션 서버(420)로 전송할 수 있다. S411 동작에서, 어플리케이션 서버(420)는 어카운트 서비스 서버(410) 내 인가 모듈(413)로 인가 코드(authorization code)를 포함하는 액세스 토큰 요청(access token request <authorization code>)을 전송할 수 있다. In operation S409, the account service application 403 may transmit an authorization code to the application 401. In operation S410, the application 401 may transmit an authorization code to the application server 420. In operation S411, the application server 420 may transmit an access token request <authorization code> including an authorization code to the authorization module 413 in the account service server 410.

S412 동작에서, 어카운트 서비스 서버(410) 내 인가 모듈(413)은 액세스 토큰(access token)을 포함하는 액세스 토큰 그랜트(access token grant <access token>)를 어플리케이션 서버(420)로 전송할 수 있다. S413 동작에서, 어플리케이션 서버(420)는 액세스 토큰(access token)이 있는 Call API를 포함하는 사용자 정보 요청(Request user info <Call API w/ access token>)을 리소스 서버(415)로 전송할 수 있다. S414 동작에서, 리소스 서버(415)는 사용자 어카운트 정보(user account info)를 어플리케이션 서버(420)로 전송할 수 있다. In operation S412, the authorization module 413 in the account service server 410 may transmit an access token grant <access token> including an access token to the application server 420. In operation S413, the application server 420 may transmit a user information request (Request user info <Call API w/ access token>) including a Call API with an access token to the resource server 415. In operation S414, the resource server 415 may transmit user account information to the application server 420.

도 5는 본 개시의 실시예에 따른 시스템을 설명하기 위한 도면이다. Figure 5 is a diagram for explaining a system according to an embodiment of the present disclosure.

도 5를 참조하면, 시스템은 전자 장치(500)(예를 들어, 도 1의 전자 장치(101)), 서버(560)(예를 들어, 도 1의 서버(108)), 제1 외부 전자 장치(570)(예를 들어, 도 1의 전자 장치(102)), 및 제2 외부 전자 장치(580)(예를 들어, 도 1의 전자 장치(104))를 포함할 수 있다. 도 4의 전자 장치(400)가 외부 서버(예를 들어, 어카운트 서비스 서버(410))를 통해 사용자 인증을 수행하는 것과 달리, 도 5의 전자 장치(500)는 내부에 복수의 모듈을 구비하여 자체적으로 사용자 인증을 수행할 수 있다. Referring to FIG. 5, the system includes an electronic device 500 (e.g., electronic device 101 in FIG. 1), a server 560 (e.g., server 108 in FIG. 1), and a first external electronic device. It may include a device 570 (e.g., electronic device 102 of FIG. 1), and a second external electronic device 580 (e.g., electronic device 104 of FIG. 1). Unlike the electronic device 400 of FIG. 4 that performs user authentication through an external server (e.g., account service server 410), the electronic device 500 of FIG. 5 is provided with a plurality of modules inside. User authentication can be performed on its own.

전자 장치(500)는 각각이 독립적으로 어플리케이션 및/또는 서비스(또는 어플리케이션 코드)를 실행할 수 있는 보안 영역(또는 Realm world; 또는 Secure world) 및 일반 영역(또는 Non-secure world; 또는 normal world)을 포함할 수 있다. 일 실시예에 따라, 보안 영역 및 일반 영역은 전자 장치(500) 내에서 물리적으로(또는 하드웨어적으로) 구분되는 별도의 영역일 수 있다. 일 실시예에 따라, 보안 영역 내에서 사용자의 프라이버시(또는 개인 정보) 보호가 필요한 어플리케이션 및/또는 서비스(또는 어플리케이션 코드)가 실행될 수 있다. 예를 들어, 일반 영역은 안드로이드 환경(또는 REE; rich execution environment)에서 구현되고, 보안 영역은 안드로이드와 물리적으로 격리된 TEE(trusted execution environment)에서 구현될 수 있다.The electronic device 500 has a security area (or Realm world; or Secure world) and a normal area (or Non-secure world; or normal world), each of which can independently execute applications and/or services (or application code). It can be included. According to one embodiment, the security area and the general area may be separate areas that are physically (or hardware-wise) separated within the electronic device 500. According to one embodiment, an application and/or service (or application code) that requires protection of user privacy (or personal information) may be executed within a security area. For example, the general area may be implemented in an Android environment (or rich execution environment (REE)), and the security area may be implemented in a trusted execution environment (TEE) that is physically isolated from Android.

전자 장치(500)는 일반 영역에서 사용자 인증을 위해 실행되는 인증 어플리케이션(authenticator App(Host Process))(510), 보안 영역에서 사용자 인증을 위해 실행되는 인증 어플리케이션(authenticator App(Realm VM))(520), 상기 보안 영역에서 구현되는 RMM(remote monitoring and management)(530), 상기 일반 영역에서 구현되는 커널(kernel)(540), 및 상기 일반 영역에서 구현되는 루트(root)(550)를 포함할 수 있다. 본 개시에서는 전자 장치(500) 내 일반 영역 및 보안 영역 각각에서 사용자 인증을 위한 인증 어플리케이션(510, 520)을 실행하고, 외부 장치가 접근할 수 없는 보안 영역에서 실행되는 인증 어플리케이션(520)을 통해 사용자 크리덴셜을 보호 및/또는 사용함으로써 프라이버시 정보에 대한 보호를 강화할 수 있다. The electronic device 500 includes an authentication application (authenticator App (Host Process)) 510 running for user authentication in the general area, and an authentication application (authenticator App (Realm VM)) running for user authentication in the security area (520). ), a remote monitoring and management (RMM) 530 implemented in the security area, a kernel 540 implemented in the general area, and a root 550 implemented in the general area. You can. In the present disclosure, authentication applications 510 and 520 for user authentication are executed in each of the general area and the security area within the electronic device 500, and the authentication application 520 is executed in a security area that is inaccessible to external devices. Protecting and/or using user credentials can enhance protection of privacy information.

일반 영역에서 실행되는 인증 어플리케이션(510)은 인증 에이전트(authenticator agent)(511)를 포함할 수 있다. 인증 에이전트(511)는 보안 영역에서 실행되는 인증 어플리케이션(520)과 외부 장치(예를 들어, 서버(560), 제1 외부 전자 장치(570), 및/또는 제2 외부 전자 장치(580)) 간 통신을 중개할 수 있다. The authentication application 510 running in the general area may include an authenticator agent 511. The authentication agent 511 includes an authentication application 520 and an external device (e.g., a server 560, a first external electronic device 570, and/or a second external electronic device 580) running in a secure area. It can mediate communication between people.

보안 영역에서 실행되는 인증 어플리케이션(520)은 UI를 제공하는 App UI 모듈(521), 사용자 검증을 수행하기 위한 인증 모듈(authentication; 522), 액세스 토큰(access token)을 발급하는 토큰 생성 모듈(token generation; 523), 인가 모듈(authorization; 524), 및 외부 서버로 사용자 정보 및/또는 액세스 토큰을 제공할 수 있는 리소스 서버 모듈(resource server; 525)을 포함할 수 있다. 보안 영역에서 실행되는 인증 어플리케이션(520)은 무결성 측정 값(integrity measurement value; 526), 서비스 제공자(561)의 공개 키(service provider's public key; 527), 및 CA(certified authority)의 공개 키에 대한 인증서 체인(certificate chain for CA's public key; 528)을 포함할 수 있다. The authentication application 520 running in the security area includes an App UI module 521 that provides a UI, an authentication module 522 to perform user verification, and a token generation module that issues an access token. generation; 523), an authorization module (524), and a resource server module (resource server; 525) that can provide user information and/or access tokens to an external server. The authentication application 520 running in the security area provides information about the integrity measurement value 526, the service provider's public key 527 of the service provider 561, and the public key of a certified authority (CA). May include a certificate chain for CA's public key (528).

RMM(530)은 보안 영역에서 동작하는 펌웨어(firmware)이고, 보안 영역을 위한 스테이지 페이지 테이블(stage page table)을 관리하고, realm의 cpu context를 관리할 수 있다. 일 실시예에 따라, realm이란 RMM(530) 상의 exception level 0 또는 1에서 동작하는 소프트웨어(SW) 프로그램을 지칭할 수 있다. 일 실시예에 따라, realm은 ART, shim, application을 모두 포함할 수 있다.The RMM 530 is firmware that operates in the security area, and can manage the stage page table for the security area and manage the CPU context of the realm. According to one embodiment, realm may refer to a software (SW) program that operates at exception level 0 or 1 on the RMM 530. According to one embodiment, the realm may include all ART, shim, and application.

서버(560)는 원격 서버(remote server)로도 지칭될 수 있고, 전자 장치(500)로 서비스 및/또는 컨텐트를 제공하는 클라우드(cloud) 서버 또는 에지(edge) 서버로 구현될 수 있다. 서버(560)는 전자 장치(500)로 서비스 및/또는 컨텐트를 제공하는 서비스 제공자(service provider; 561)를 포함할 수 있다. The server 560 may also be referred to as a remote server and may be implemented as a cloud server or edge server that provides services and/or content to the electronic device 500. The server 560 may include a service provider 561 that provides services and/or content to the electronic device 500 .

제1 외부 전자 장치(570)는 릴라잉 어플리케이션(relying application)(571)이 설치되는 전자 장치(예를 들어, TV)일 수 있다. 릴라잉 어플리케이션(571)은 전자 장치(500)로 사용자 인증을 요청하고, 전자 장치(500)로부터 액세스 토큰을 수신하고, 서버(560)로 액세스 토큰을 전달할 수 있다. 일 실시예에 따라, 릴라잉 어플리케이션(571)은 제1 외부 전자 장치(570)가 아닌 전자 장치(500)에서 설치 및/또는 실행될 수 있다. 제2 외부 전자 장치(580)는 서비스 레지스트리(service registry)(581)를 포함하는 전자 장치(예를 들어, Wi-Fi 라우터)일 수 있다. The first external electronic device 570 may be an electronic device (eg, TV) on which a relating application 571 is installed. The relaying application 571 may request user authentication from the electronic device 500, receive an access token from the electronic device 500, and transmit the access token to the server 560. According to one embodiment, the relaying application 571 may be installed and/or executed on the electronic device 500 rather than the first external electronic device 570. The second external electronic device 580 may be an electronic device (eg, a Wi-Fi router) that includes a service registry 581.

도 6은 본 개시의 실시예에 따른 인증 어플리케이션의 패키지 구조를 나타내는 도면이다. Figure 6 is a diagram showing the package structure of an authentication application according to an embodiment of the present disclosure.

인증 어플리케이션의 패키지(600)는 서비스 제공자(service provider)(예를 들어, 도 5의 서비스 제공자(561))에 의해 패키지되고, 패키지된 어플리케이션은 앱 마켓(app market)에 업로드되어 사용자에게 배포(deployment)될 수 있다. 크리덴셜 소유자(credential owner)는 전자 장치(예를 들어, 스마트폰) 상에서 인증 어플리케이션 패키지를 다운로드 받을 수 있다.The package 600 of the authentication application is packaged by a service provider (e.g., the service provider 561 in FIG. 5), and the packaged application is uploaded to the app market and distributed to users ( deployment). A credential owner may download an authentication application package on an electronic device (eg, a smartphone).

도 6을 참조하면, 인증 어플리케이션의 패키지(600)는 App UI 모듈(601), 인증 모듈(authentication; 602), 토큰 생성 모듈(token generation; 603), 인가 모듈(authorization; 604), 리소스 서버 모듈(resource server; 605), 및 인증 에이전트(authenticator agent; 605)를 포함할 수 있다. 일 실시예에 따라, 인증 어플리케이션의 패키지(600)는 런타임 이미지 모듈(runtime image; 607)을 더 포함할 수 있다. 일 실시예에 따라, 인증 어플리케이션의 패키지(600)는 OS/커널 이미지 모듈(OS/Kernel image; 608)을 더 포함할 수 있다.Referring to FIG. 6, the authentication application package 600 includes an App UI module 601, an authentication module 602, a token generation module 603, an authorization module 604, and a resource server module. (resource server; 605), and an authentication agent (authenticator agent; 605). According to one embodiment, the package 600 of the authentication application may further include a runtime image module (runtime image) 607. According to one embodiment, the authentication application package 600 may further include an OS/kernel image module (OS/Kernel image) 608.

인증 어플리케이션의 패키지(600)는 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))의 공개키로 서명된 인증서(certificate signed by the service provider's public key; 608)를 포함하고, 인증서(608)는 무결성 측정 값(integrity measurement value; 609)을 포함할 수 있다. 인증 어플리케이션의 패키지(600)는 CA(certified authority)에서 서명한 인증서(certificate signed by CA; 610)를 포함하고, 인증서(610)는 서비스 제공자의 공개 키(service provider's public key; 611)를 포함할 수 있다. 일 실시예에 따라, 인증 어플리케이션의 패키지(600)는 CA의 공개 키에 대한 인증서 체인(certificate chain for CA's public key; 612)을 더 포함할 수 있다.The package 600 of the authentication application includes a certificate signed by the service provider's public key (608) (e.g., service provider 561 in FIG. 5), and the certificate 608 may include an integrity measurement value (609). The package 600 of the authentication application includes a certificate signed by a certified authority (CA) 610, and the certificate 610 includes a service provider's public key 611. You can. According to one embodiment, the package 600 of the authentication application may further include a certificate chain for CA's public key (612).

서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))는 인증자 어플리케이션을 가상 머신 이미지(virtual machine image)로 패키징할 수 있다. 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))는 메타데이터 및 패키지 이미지를 구비할 수 있다. 일 실시예에 따라, 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))는 App UI 모듈(601), 인증 모듈(602), 토큰 생성 모듈(603), 인가 모듈(604)을 포함하는 보안 영역 내 실행을 위한 가상 머신 이미지의 무결성 측정 값(609)이 포함된 인증서(608)를 구비(또는 패키지)할 수 있다. 일 실시예에 따라, 서비스 제공자는 런타임 이미지(607)와 OS/커널 이미지(608)를 구비(또는 패키지)할 수 있다. 일 실시예에 따라, 서비스 제공자는 CA(certified authority)의 개인 키(private key)로 서명한 공급자의 공개 키가 포함된 인증서를 구비(또는 패키지)할 수 있다. 일 실시예에 따라, 서비스 제공자는 CA의 공개 키를 획득하고 이의 유효성을 검사하는 데 사용할 수 있는 인증서 체인(612)을 구비(또는 패키지)할 수 있다.A service provider (eg, service provider 561 in FIG. 5) may package the authenticator application into a virtual machine image. A service provider (eg, service provider 561 in FIG. 5) may have metadata and package images. According to one embodiment, the service provider (e.g., service provider 561 in Figure 5) includes an App UI module 601, an authentication module 602, a token creation module 603, and an authorization module 604. A certificate 608 containing an integrity measurement value 609 of a virtual machine image for execution in a security zone may be provided (or packaged). According to one embodiment, the service provider may provide (or package) a runtime image 607 and an OS/kernel image 608. According to one embodiment, the service provider may provide (or package) a certificate containing the provider's public key signed with the private key of a certified authority (CA). According to one embodiment, a service provider may have (or package) a certificate chain 612 that can be used to obtain and validate the CA's public key.

일 실시예에 따라, 가상 머신 이미지는 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))의 개인 키(private key)로 서명될 수 있다. 일 실시예에 따라, 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))에 의해 패키지된 어플리케이션은 앱 마켓(app market)에 업로드될 수 있다. 크리덴셜 소유자(credential owner)는 전자 장치(예를 들어, 스마트폰) 상에서 인증 어플리케이션 패키지를 다운로드 받을 수 있다. 무결성 측정 값(609)이 포함된 인증서(908)를 이용하여 보안 영역에서 실행을 위한 이미지의 무결성이 확인될 수 있다. 일 실시예에 따라, 릴라잉 어플리케이션(relying application)은 인증서 및 인증서 체인 뿐만 아니라 원격 증명(remote attestation)을 위한 인증 어플리케이션을 요청할 수 있다. 인증서 체인을 사용하여 무결성 측정 값(609)이 포함된 인증서(608)의 유효성이 검증될 수 있다. 이후, 무결성 측정 값(609)이 원격 증명과 비교되고, 인증자의 무결성이 릴라잉 어플리케이션(relying application)에서 검증될 수 있다. According to one embodiment, the virtual machine image may be signed with the private key of the service provider (eg, service provider 561 in FIG. 5). According to one embodiment, an application packaged by a service provider (eg, service provider 561 in FIG. 5) may be uploaded to an app market. A credential owner may download an authentication application package on an electronic device (eg, a smartphone). The integrity of the image for execution in the secure area can be verified using a certificate 908 containing an integrity measurement value 609. According to one embodiment, a relating application may request a certificate and certificate chain as well as an authentication application for remote attestation. The validity of the certificate 608 containing the integrity measure 609 may be verified using the certificate chain. The integrity measurement value 609 is then compared to the remote certification, and the authenticator's integrity can be verified in the relating application.

도 7은 본 개시의 실시예에 따른 패키지된 인증 어플리케이션이 실행되는 전자 장치 내 구성을 나타내는 도면이다. FIG. 7 is a diagram illustrating a configuration within an electronic device in which a packaged authentication application is executed according to an embodiment of the present disclosure.

서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))에 의해 생성된 인증 어플리케이션 패키지가 전자 장치(예를 들어, 도 5의 전자 장치(500))) 상에서 다운로드되면, 인증 어플리케이션은 전자 장치 내에서 소프트웨어 스택(software stack; 또는 SW stack)의 형태로 구현될 수 있다. When an authentication application package created by a service provider (e.g., service provider 561 in FIG. 5) is downloaded on an electronic device (e.g., electronic device 500 in FIG. 5), the authentication application is It can be implemented in the form of a software stack (or SW stack).

도 7을 참조하면, 인증 어플리케이션의 SW 스택(700)은 일반 영역에서 실행될 수 있는 인증 어플리케이션(710)을 포함하고, 인증 어플리케이션(710)은 인증 에이전트(authenticator agent)(711)를 포함할 수 있다. 인증 에이전트(711)는 보안 영역에서 실행되는 인증 어플리케이션(720)과 외부 장치(예를 들어, 서버(560), 제1 외부 전자 장치(570), 및/또는 제2 외부 전자 장치(580)) 간 통신을 중개할 수 있다. Referring to FIG. 7, the SW stack 700 of the authentication application includes an authentication application 710 that can be executed in the general area, and the authentication application 710 may include an authentication agent (authenticator agent) 711. . The authentication agent 711 includes an authentication application 720 and an external device (e.g., a server 560, a first external electronic device 570, and/or a second external electronic device 580) running in a secure area. It can mediate communication between people.

인증 어플리케이션의 SW 스택(700)은 보안 영역에서 실행될 수 있는 인증 어플리케이션(720)을 포함하고, 인증 어플리케이션(720)은 App UI 모듈(721), 인증 모듈(authentication; 722), 토큰 생성 모듈(token generation; 723), 인가 모듈(authorization; 724), 리소스 서버 모듈(resource server; 725), 런타임 이미지 모듈(runtime image; 726)을 포함할 수 있다. 일 실시예에 따라, 보안 영역에서 실행될 수 있는 인증 어플리케이션(720)은 OS/커널 이미지 모듈(OS/Kernel image; 727)을 더 포함할 수 있다.The SW stack 700 of the authentication application includes an authentication application 720 that can be executed in the security area, and the authentication application 720 includes an App UI module 721, an authentication module 722, and a token generation module. generation; 723), authorization module (authorization; 724), resource server module (resource server; 725), and runtime image module (runtime image; 726). According to one embodiment, the authentication application 720 that can be executed in the security area may further include an OS/kernel image module (OS/Kernel image) 727.

전자 장치 내 데이터베이스(또는 스토리지)(730)는 SW binaries를 포함하는 SW 스택(700), 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))의 공개키로 서명된 인증서(certificate signed by the service provider's public key; 731), 및 CA(certified authority)에서 서명한 인증서(certificate signed by CA; 733)를 포함할 수 있다. 일 실시예에 따라, 데이터베이스(또는 스토리지)(730)는 CA의 공개 키에 대한 인증서 체인(certificate chain for CA's public key; 733)을 더 포함할 수 있다. 일 실시예에 따라, 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))의 공개키로 서명된 인증서(731)는 무결성 측정 값(integrity measurement value; 732)을 포함할 수 있다. 일 실시예에 따라, CA에서 서명한 인증서(733)는 서비스 제공자의 공개 키(service provider's public key; 734)를 포함할 수 있다.The database (or storage) 730 in the electronic device is a SW stack 700 including SW binaries, a certificate signed by the public key of the service provider (e.g., the service provider 561 in FIG. 5). It may include the service provider's public key; 731), and a certificate signed by a CA (certified authority) (certificate signed by CA; 733). According to one embodiment, the database (or storage) 730 may further include a certificate chain for CA's public key (733). According to one embodiment, the certificate 731 signed with the public key of the service provider (e.g., service provider 561 in FIG. 5) may include an integrity measurement value 732. According to one embodiment, the CA-signed certificate 733 may include the service provider's public key 734.

크리덴셜 소유자(credential-owner) 등록 시, 크리덴셜 소유자는 사전에 사인 업(sign up)하고 서비스에 가입할 수 있다. 초기 사인 업 절차는 서비스의 원래 온라인 등록 절차와 동일할 수 있다. 일 실시예에 따라, 최초 가입 이후에는 크리덴셜 소유자가 먼저 전자 장치(예를 들어, 스마트폰)에 필요한 사용자 데이터를 다운로드 해야 할 수 있다.When registering as a credential-owner, the credential owner can sign up in advance and subscribe to the service. The initial sign-up process may be identical to the original online registration process for the Service. According to one embodiment, after initial registration, the credential owner may first need to download necessary user data to an electronic device (e.g., smartphone).

크리덴셜 소유자는 인증 어플리케이션(authenticator app)을 시작할 수 있다. UI 및 신뢰할 수 있는 I/O를 통해 크리덴셜 소유자는 인증자 어플리케이션이 초기 프로비저닝(initial provisioning)을 시작하도록 할 수 있다. The credential owner can launch the authenticator app. The UI and trusted I/O allow the credential owner to have the authenticator application initiate initial provisioning.

일반 영역(또는 Non-secure world; 또는 normal world)에서 인증 에이전트(711)는 서비스 제공자의 원격 서버에 연결될 수 있다. 원격 증명(remote attestation) 및 검증(verification)이 진행되고, 보안 영역(또는 Realm world; 또는 Secure world) 내 인증 어플리케이션(720) 및 원격 서버가 (일반 영역의 인증 에이전트(711)를 통해) 보안 연결될 수 있다. In the general area (or Non-secure world; or normal world), the authentication agent 711 may connect to a remote server of a service provider. Remote attestation and verification are carried out, and the authentication application 720 and the remote server in the security area (or Realm world; or Secure world) are securely connected (via the authentication agent 711 in the general area). You can.

도 8은 본 개시의 실시예에 따른 크리덴셜 사용자 등록을 위해 전자 장치내에 저장된 데이터 구조를 나타내는 도면이다. FIG. 8 is a diagram illustrating a data structure stored in an electronic device for credential user registration according to an embodiment of the present disclosure.

도 8을 참조하면, 전자 장치는 스토리지(800) 및 보안 강화 HW(security enforced HW)(830)를 포함할 수 있다. 스토리지(800)는 영구 스토리지(persistent storage)로 구현되고, 보안 강화 HW(830)는 보안 스토리지(secure storage) 또는 보안 엘레먼트(secure element)로 구현될 수 있다.Referring to FIG. 8, the electronic device may include a storage 800 and a security enforced HW (security enforced HW) 830. The storage 800 may be implemented as persistent storage, and the security-enhanced HW 830 may be implemented as secure storage or a secure element.

전자 장치 내 스토리지(800)는 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))의 공개키로 서명된 인증서(certificate signed by the service provider's public key; 810), 및 CA(certified authority)에서 서명한 인증서(certificate signed by CA; 812)를 포함할 수 있다. 일 실시예에 따라, 스토리지(800)는 CA의 공개 키에 대한 인증서 체인(certificate chain for CA's public key; 814)을 더 포함할 수 있다. 일 실시예에 따라, 서비스 제공자(예를 들어, 도 5의 서비스 제공자(561))의 공개키로 서명된 인증서(810)는 무결성 측정 값(integrity measurement value; 811)을 포함할 수 있다. 일 실시예에 따라, CA에서 서명한 인증서(812)는 서비스 제공자의 공개 키(service provider's public key; 813)를 포함할 수 있다.The storage 800 within the electronic device is a certificate signed by the service provider's public key (810), and a certificate signed by a certified authority (CA). May include a signed certificate (certificate signed by CA; 812). According to one embodiment, storage 800 may further include a certificate chain for CA's public key (814). According to one embodiment, the certificate 810 signed with the public key of the service provider (e.g., service provider 561 in FIG. 5) may include an integrity measurement value 811. According to one embodiment, the CA-signed certificate 812 may include the service provider's public key 813.

전자 장치 내 스토리지(800)는 보안 강화 HW(830)에 저장되는 실링 키(831)에 의해 암호화된 데이터(820~823)를 포함할 수 있다. 실링 키(831)에 의해 암호화된 데이터(820~823)는 사용자 크리덴셜(user credential; 820), 구독 상태(subscription status; 821), 사용자 프로필(user profile; 822), 및 암호화 키(encryption key; 823)를 포함할 수 있다. 일 실시예에 따라, 보안 영역 내 인증 어플리케이션은 보안 채널을 통해 사용자 크리덴셜(user credential), 구독 상태(subscription status), 사용자 프로필(user profile), 및 암호화 키(encryption key)를 포함하는 사용자 데이터를 다운로드할 수 있다.The storage 800 within the electronic device may include data 820 to 823 encrypted by a sealing key 831 stored in the security-enhanced HW 830. Data (820-823) encrypted by the ceiling key (831) includes user credential (820), subscription status (821), user profile (822), and encryption key. ; 823). According to one embodiment, the authentication application within the secure area collects user data including user credentials, subscription status, user profile, and encryption key through a secure channel. You can download .

본 개시에서 사용자 크리덴셜(user credential), 구독 상태(subscription status), 사용자 프로필(user profile), 및 암호화 키(encryption key)는 아래와 같이 정의될 수 있다. In this disclosure, user credential, subscription status, user profile, and encryption key may be defined as follows.

1) 사용자 크리덴셜(user credential)1) User credential

이는 크리덴셜 소유자를 식별할 수 있는 암호, 지문, 얼굴, 음성, 홍채, 손바닥 또는 손가락 정맥 패턴이 될 수 있으며, 초기 등록 프로세스 중에 계정 서비스 제공자에게 제공될 수 있다.This could be a password, fingerprint, face, voice, iris, palm, or finger vein pattern that identifies the holder of the credential and may be provided to the account service provider during the initial registration process.

2) 구독 상태(subscription status)2) Subscription status

크리덴셜 소유자가 등록하고 지불한 구독에 대한 정보Information about subscriptions registered and paid for by the credential owner

3) 사용자 프로필(user profile)3) User profile

사용자 이름, 이메일 주소, 전화번호 등의 개인 정보Personal information such as user name, email address, and phone number

4) 암호화 키(encryption key)4) Encryption key

액세스 토큰(access token) 생성 및 유효성 검사에 사용하기 위해 서비스 제공자가 생성한 인증 어플리케이션과 서비스 제공자의 원격 서버 간의 공유된 비밀 정보. 생성된 각 인증 토큰(authentication token)은 공유 암호에 의해 서명되고 검증될 수 있다.Secret information shared between the service provider's remote server and an authentication application created by the service provider for use in generating and validating access tokens. Each authentication token generated can be signed and verified by a shared secret.

일 실시예에 따라, 인증 어플리케이션은 프로비저닝된 데이터를 봉인(sealing)할 수 있다. 일 실시예에 따라, 인증 어플리케이션은 신뢰할 수 있는 컴퓨팅 분야의 표준 기술을 사용하여 영구 스토리지(persistent storage)에 기밀 데이터(confidential data)를 안전하게 저장할 수 있다. 일 실시예에 따라, 사용자 데이터(user data)는 인증자(authenticator)가 직접 생성하는 암호화 키(encryption key)로 암호화 한 뒤, 하드웨어에 키가 저장될 수 있다. 저장된 키는 인증자(authenticator)만 획득할 수 있기 때문에, 인증자만이 사용자 데이터를 복호화 할 수 있다.According to one embodiment, the authentication application may seal provisioned data. According to one embodiment, the authentication application may securely store confidential data in persistent storage using standard techniques in the trusted computing field. According to one embodiment, user data may be encrypted with an encryption key directly generated by an authenticator, and then the key may be stored in hardware. Because the stored key can only be obtained by the authenticator, only the authenticator can decrypt user data.

인증자 어플리케이션은 프로비저닝된 데이터를 암호화하기 위해 실링 키(sealing key)를 생성할 수 있다. 일 실시예에 따라, 실링 키는 서비스 제공자가 프로비저닝한 것과 다른 암호화 키일 수 있다. 인증자 어플리케이션은 사용자 데이터에 대해 생성된 실링 키를 사용하여 프로비저닝된 사용자 데이터를 암호화할 수 있다.The authenticator application can generate a sealing key to encrypt provisioned data. According to one embodiment, the sealing key may be a different encryption key than the one provisioned by the service provider. The authenticator application can encrypt provisioned user data using a sealing key generated for the user data.

인증자 어플리케이션은 암호화된 사용자 데이터를 온-디바이스 영구 스토리지에 저장하고 실링 키를 하드웨어 강제 보안(hardware enforced security)에 저장할 수 있다. 실링 키는 인증자만 검색할 수 있으므로 인증자 어플리케이션만 사용자 데이터를 복호화할 수 있다. 인증자 어플리케이션만 사용자 데이터의 봉인을 해제할 수 있다.The authenticator application can store encrypted user data in on-device persistent storage and store the sealing key in hardware enforced security. The sealing key can only be retrieved by the authenticator, so only the authenticator application can decrypt user data. Only the authenticator application can unseal user data.

일 실시예에 따라, 릴라잉 어플리케이션(relying app)의 클라이언트 비밀 등록 절차는 아래의 1) 내지 3)으로 진행될 수 있다. According to one embodiment, the client secret registration procedure of the relating application may proceed as 1) to 3) below.

1) 크리덴셜 소유자는 서비스를 사용하려는 다른 전자 장치(또는 사용자 기기) 상에서 릴라잉 애플리케이션을 다운로드할 수 있다 (인증 어플리케이션(authenticator app)을 통해 인증한 후).1) The credential owner can download the Relying application on another electronic device (or user device) that wants to use the service (after authenticating through the authenticator app).

2) 릴라잉 어플리케이션은 원격 증명(remote attestation) 및 검증(verification) 후 보안 채널(secure channel)을 통해 서버(또는 원격 버서)에 연결할 수 있다.2) The relaying application can connect to the server (or remote server) through a secure channel after remote attestation and verification.

3) 릴라잉 어플리케이션은 서비스 제공자의 서버(또는 원격 서버)에서 클라이언트 비밀 정보(client secret)를 다운로드할 수 있다. 일 실시예에 따라, 상기 클라이언트 비밀 정보는 인증 측면에서 이미 서버에 등록된 것으로 간주될 수 있다. 일 실시예에 따라, 3)번 동작은 OAuth 2.0의 클라이언트 비밀 등록(client secret registration) 절차에 기반하여 수행될 수 있다. 3) The relaying application can download client secret information from the service provider's server (or remote server). According to one embodiment, the client secret information may be considered to have already been registered with the server for authentication purposes. According to one embodiment, operation 3) may be performed based on the client secret registration procedure of OAuth 2.0.

도 9는 본 개시의 실시예에 따른 온-디바이스 사용자 인증 방법을 설명하기 위한 일 예시를 나타내는 도면이다. FIG. 9 is a diagram illustrating an example to explain an on-device user authentication method according to an embodiment of the present disclosure.

도 9를 참조하면, 시스템은 전자 장치(900), 서버(930), 외부 전자 장치(940)를 포함할 수 있다. Referring to FIG. 9 , the system may include an electronic device 900, a server 930, and an external electronic device 940.

전자 장치(900)는 각각이 독립적으로 어플리케이션 및/또는 서비스(또는 어플리케이션 코드)를 실행할 수 있는 보안 영역(또는 Realm world; 또는 Secure world) 및 일반 영역(또는 Non-secure world; 또는 normal world)을 포함할 수 있다. 일 실시예에 따라, 보안 영역 및 일반 영역은 전자 장치(900) 내에서 물리적으로(또는 하드웨어적으로) 구분되는 별도의 영역일 수 있다. 일 실시예에 따라, 보안 영역 내에서 사용자의 프라이버시(또는 개인 정보) 보호가 필요한 어플리케이션 및/또는 서비스(또는 어플리케이션 코드)가 실행될 수 있다. 예를 들어, 일반 영역은 안드로이드 환경(또는 REE; rich execution environment)에서 구현되고, 보안 영역은 안드로이드와 물리적으로 격리된 TEE(trusted execution environment)에서 구현될 수 있다.The electronic device 900 has a security area (or Realm world; or Secure world) and a normal area (or Non-secure world; or normal world), each of which can independently execute applications and/or services (or application code). It can be included. According to one embodiment, the security area and the general area may be separate areas that are physically (or hardware-wise) separated within the electronic device 900. According to one embodiment, an application and/or service (or application code) that requires protection of user privacy (or personal information) may be executed within a security area. For example, the general area may be implemented in an Android environment (or rich execution environment (REE)), and the security area may be implemented in a trusted execution environment (TEE) that is physically isolated from Android.

전자 장치(900)는 일반 영역에서 실행되는 인증 어플리케이션(authenticator App(Host Process))(910), 및 보안 영역에서 실행되는 인증 어플리케이션(authenticator App)(920)를 포함할 수 있다. 일반 영역에서 실행되는 인증 어플리케이션(910)은 인증 에이전트(authenticator agent)(911)를 포함할 수 있다. 보안 영역에서 실행되는 인증 어플리케이션(920)은 App UI 모듈(921), 인증 모듈(authentication; 922), 및 토큰 생성 모듈(token generation; 923)을 포함할 수 있다. The electronic device 900 may include an authentication application (authenticator App (Host Process)) 910 running in a general area, and an authentication application (authenticator App) 920 running in a security area. The authentication application 910 running in the general area may include an authenticator agent 911. The authentication application 920 running in the security area may include an App UI module 921, an authentication module 922, and a token generation module 923.

서버(930)는 원격 서버(remote server) 또는 앱 서버(app server)로도 지칭될 수 있고, 전자 장치(900)로 서비스 및/또는 컨텐트를 제공하는 클라우드(cloud) 서버 또는 에지(edge) 서버로 구현될 수 있다. The server 930 may also be referred to as a remote server or an app server, and is a cloud server or edge server that provides services and/or content to the electronic device 900. It can be implemented.

외부 전자 장치(940)는 릴라잉 어플리케이션(relying application)(941)이 설치되는 전자 장치(예를 들어, TV)일 수 있다. 일 실시예에 따라, 릴라잉 어플리케이션(941)은 외부 전자 장치(940)가 아닌 전자 장치(900) 내에 설치 및/또는 실행될 수 있다. The external electronic device 940 may be an electronic device (eg, TV) on which a relating application 941 is installed. According to one embodiment, the relaying application 941 may be installed and/or executed within the electronic device 900 rather than the external electronic device 940.

도 9를 참조하면, S901 동작에서, 릴라잉 어플리케이션(941)은 인증 에이전트(911)로 인증 요청 메시지(authentication request)를 전송할 수 있다. 902 동작에서, App UI 모듈(921)은 UI(user interface)를 통해 사용자 크리덴셜에 대한 요청(user credentials request via UI)을 수신할 수 있다. 903 동작에서, App UI 모듈(921)은 크리덴셜 소유자(credential owner)가 입력하는 사용자 크리덴셜을 입력 받을 수 있다. Referring to FIG. 9, in operation S901, the relaying application 941 may transmit an authentication request message to the authentication agent 911. In operation 902, the App UI module 921 may receive a request for user credentials via a user interface (UI). In operation 903, the App UI module 921 may receive a user credential input by a credential owner.

904 동작에서, App UI 모듈(921)은 UI를 통한 사용자 크리덴셜(user credentials via UI)을 인증 모듈(922)로 전송할 수 있다. 905 동작에서, 인증 모듈(922)은 토큰 생성 요청(token generation request)을 토큰 생성 모듈(923)로 전송할 수 있다. 906 동작에서, 토큰 생성 모듈(923)은 상기 토큰 생성 요청에 응답하여 액세스 토큰(access token)을 인증 모듈(922)로 전송할 수 있다. 일 실시예에 따라, 인증 모듈(922)은 일반 영역 내 인증 에이전트(911)로 액세스 토큰(access token)을 전달할 수 있다. In operation 904, the App UI module 921 may transmit user credentials via UI to the authentication module 922. In operation 905, the authentication module 922 may transmit a token generation request to the token generation module 923. In operation 906, the token creation module 923 may transmit an access token to the authentication module 922 in response to the token creation request. According to one embodiment, the authentication module 922 may deliver an access token to the authentication agent 911 in the general area.

907 동작에서, 일반 영역 내 인증 에이전트(911)는 외부 전자 장치(940) 내 릴라잉 어플리케이션(941)으로 액세스 토큰(access token)을 전송할 수 있다. 908 동작에서, 릴라잉 어플리케이션(941)은 서버(930)로 액세스 토큰(access token)을 전달할 수 있다.In operation 907, the authentication agent 911 in the general area may transmit an access token to the relaying application 941 in the external electronic device 940. In operation 908, the relating application 941 may transmit an access token to the server 930.

도 10은 본 개시의 실시예에 따른 온-디바이스 사용자 인증 방법을 설명하기 위한 다른 예시를 나타내는 도면이다. FIG. 10 is a diagram illustrating another example to explain an on-device user authentication method according to an embodiment of the present disclosure.

도 10을 참조하면, 시스템은 전자 장치(1000) 및 릴라잉 어플리케이션(1030)을 포함할 수 있다. 전자 장치(1000)는 각각이 독립적으로 어플리케이션 및/또는 서비스(또는 어플리케이션 코드)를 실행할 수 있는 보안 영역(또는 Realm world; 또는 Secure world) 및 일반 영역(또는 Non-secure world; 또는 normal world)을 포함할 수 있다. 일 실시예에 따라, 보안 영역 및 일반 영역은 전자 장치(1000) 내에서 물리적으로(또는 하드웨어적으로) 구분되는 별도의 영역일 수 있다. 일 실시예에 따라, 보안 영역 내에서 사용자의 프라이버시(또는 개인 정보) 보호가 필요한 어플리케이션 및/또는 서비스(또는 어플리케이션 코드)가 실행될 수 있다. 예를 들어, 일반 영역은 안드로이드 환경(또는 REE; rich execution environment)에서 구현되고, 보안 영역은 안드로이드와 물리적으로 격리된 TEE(trusted execution environment)에서 구현될 수 있다.Referring to FIG. 10 , the system may include an electronic device 1000 and a relaying application 1030. The electronic device 1000 has a security area (or Realm world; or Secure world) and a normal area (or Non-secure world; or normal world), each of which can independently execute applications and/or services (or application code). It can be included. According to one embodiment, the security area and the general area may be separate areas that are physically (or hardware-wise) separated within the electronic device 1000. According to one embodiment, an application and/or service (or application code) that requires protection of user privacy (or personal information) may be executed within a security area. For example, the general area may be implemented in an Android environment (or rich execution environment (REE)), and the security area may be implemented in a trusted execution environment (TEE) that is physically isolated from Android.

전자 장치(1000)는 일반 영역에서 실행되는 인증 어플리케이션(authenticator App(Host Process))(1010), 및 보안 영역에서 실행되는 인증 어플리케이션(authenticator App)(1020)를 포함할 수 있다. 일반 영역에서 실행되는 인증 어플리케이션(1010)은 인증 에이전트(authenticator agent)(1011)를 포함할 수 있다. 보안 영역에서 실행되는 인증 어플리케이션(1020)은 App UI 모듈(1021), 인증 모듈(authentication; 1022), 토큰 생성 모듈(token generation; 1023), 및 리소스 서버(resource server; 1024)를 포함할 수 있다. The electronic device 1000 may include an authentication application (authenticator App (Host Process)) 1010 running in a general area, and an authentication application (authenticator App) 1020 running in a security area. The authentication application 1010 running in the general area may include an authenticator agent 1011. The authentication application 1020 running in the security area may include an App UI module 1021, an authentication module 1022, a token generation module 1023, and a resource server 1024. .

릴라잉 어플리케이션(1030)은 외부 전자 장치 내에서 설치 및/또는 실행될 수 있다. 일 실시예에 따라, 릴라잉 어플리케이션(1030)은 전자 장치(1000) 내에서 설치 및/또는 실행될 수도 있다.The relaying application 1030 may be installed and/or executed within an external electronic device. According to one embodiment, the relaying application 1030 may be installed and/or executed within the electronic device 1000.

도 10을 참조하면, S1001 동작에서, 릴라잉 어플리케이션(1030)은 일반 영역 내 인증 에이전트(1011)를 통해 보안 영역 내 인증 모듈(1022)로 액세스 토큰 요청(access token request)을 전송할 수 있다. Referring to FIG. 10, in operation S1001, the relaying application 1030 may transmit an access token request to the authentication module 1022 in the security area through the authentication agent 1011 in the general area.

S1002 동작에서, 보안 영역 내 App UI 모듈(1021)은 UI를 통해 사용자 크리덴셜 및 허가를 요청(user credentials & permission request via UI)할 수 있다. S1003 동작에서, App UI 모듈(1021)은 크리덴셜 소유자(credential owner)의 사용자 크리덴셜 입력 및 허가 입력을 입력 받을 수 있다. In operation S1002, the App UI module 1021 in the security area may request user credentials and permission via UI (user credentials & permission request via UI). In operation S1003, the App UI module 1021 may receive user credential input and permission input from the credential owner.

S1004 동작에서, App UI 모듈(1021)은 UI를 통한 사용자 크리덴셜 및 허가(user credentials & permission via UI)를 인증 모듈(1022)로 전송할 수 있다. S1005 동작에서, 인증 모듈(1022)은 토큰 생성 요청(token generation request)을 토큰 생성 모듈(1023)로 전송할 수 있다. S1006 동작에서, 토큰 생성 모듈(1023)은 상기 토큰 생성 요청에 응답하여 액세스 토큰(access token)을 인증 모듈(1022)로 전송할 수 있다. S1008 동작에서, 리소스 서버(1024)는 인증 에이젼트(1011)를 통해 액세스 토큰(access token)을 릴라잉 어플리케이션(1030)으로 전송할 수 있다. In operation S1004, the App UI module 1021 may transmit user credentials & permission via UI to the authentication module 1022. In operation S1005, the authentication module 1022 may transmit a token generation request to the token generation module 1023. In operation S1006, the token creation module 1023 may transmit an access token to the authentication module 1022 in response to the token creation request. In operation S1008, the resource server 1024 may transmit an access token to the relaying application 1030 through the authentication agent 1011.

도 11은 본 개시의 실시예에 따른 전자 장치의 동작을 설명하기 위한 순서도이다. 11 is a flowchart for explaining the operation of an electronic device according to an embodiment of the present disclosure.

도 11을 참조하면, 1110 동작에서, 전자 장치(도 1의 전자 장치(101); 도 5의 전자 장치(500))는 보안 영역에서 실행되는 제1 인증 어플리케이션(도 5의 인증 어플리케이션(520))을 통해 사용자 입력에 대응하는 사용자 크리덴셜(user credential)을 획득할 수 있다. 1120 동작에서, 상기 전자 장치는 상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행할 수 있다. 1130 동작에서, 상기 전자 장치는, 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급할 수 있다. 1140 동작에서, 상기 전자 장치는, 일반 영역에서 실행되는 제2 인증 어플리케이션(도 5의 인증 어플리케이션(510))을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송할 수 있다. Referring to FIG. 11, in operation 1110, an electronic device (electronic device 101 in FIG. 1; electronic device 500 in FIG. 5) executes a first authentication application (authentication application 520 in FIG. 5) running in the security area. ), you can obtain user credentials corresponding to user input. In operation 1120, the electronic device may perform a user authentication procedure in the first authentication application within the security area based on the user credentials. In operation 1130, when the user authentication process is successfully completed in the first authentication application in the security area, the electronic device may issue an access token in the first authentication application in the security area. In operation 1140, the electronic device transmits the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application (authentication application 510 in FIG. 5) running in the general area. Can be transmitted.

일 실시예에 따라, 상기 일반 영역은 REE(rich execution environment)에서 구현되고, 상기 보안 영역은 TEE(trusted execution environment)에서 구현될 수 있다. 일 실시예에 따라, 상기 전자 장치는 상기 일반 영역 내 상기 제2 인증 어플리케이션을 통해 상기 외부 전자 장치로부터 인증 요청 메시지를 수신할 수 있다. According to one embodiment, the general area may be implemented in a rich execution environment (REE), and the security area may be implemented in a trusted execution environment (TEE). According to one embodiment, the electronic device may receive an authentication request message from the external electronic device through the second authentication application in the general area.

일 실시예에 따라, 상기 보안 영역 내 상기 제1 인증 어플리케이션은, 무결성 측정 값(integrity measurement value), 서비스 제공자(service provider)의 공개 키(public key), 및 CA(certified authority)의 공개 키에 대한 인증서 체인(certificate chain) 중에서 적어도 하나를 포함할 수 있다. 일 실시예에 따라, 상기 전자 장치는, 상기 보안 영역에서 구현되며, 상기 보안 영역을 위한 스테이지 페이지 테이블(stage page table)을 관리하고, realm의 CPU 컨텍스트(context)를 관리하는 RMM (remote monitoring and management)을 더 포함할 수 있다. According to one embodiment, the first authentication application in the security area includes an integrity measurement value, a public key of a service provider, and a public key of a certified authority (CA). It may include at least one from the certificate chain. According to one embodiment, the electronic device is implemented in the security area, manages a stage page table for the security area, and manages a CPU context of the realm. management) may be further included.

일 실시예에 따라, 상기 메모리는 제1 스토리지 및 제2 스토리지를 포함할 수 있다. 상기 제1 스토리지는 실링 키(sealing key)를 포함할 수 있다. 상기 제2 스토리지는 상기 실링 키에 기반하여 암호화되는 사용자 크리덴셜(user credential), 구독 상태(subscription status), 사용자 프로필(user profile), 및 암호화 키(encryption key)를 포함할 수 있다. According to one embodiment, the memory may include first storage and second storage. The first storage may include a sealing key. The second storage may include user credentials, subscription status, user profile, and encryption key that are encrypted based on the sealing key.

일 실시예에 따라, 상기 보안 영역 내 상기 제1 인증 어플리케이션은, UI(user interface)를 제공하는 App UI 모듈; 상기 사용자 인증 절차를 수행하는 인증 모듈; 상기 액세스 토큰을 발급하는 토큰 생성 모듈; 및 외부 서버로 사용자 정보 및 상기 액세스 토큰을 전송하는 리소스 서버 모듈을 포함할 수 있다. 일 실시예에 따라, 상기 사용자 크리덴셜은, 상기 사용자 크리덴셜의 소유자를 식별할 수 있는 암호, 지문, 얼굴, 음성, 홍채, 손바닥, 또는 손가락 정맥 패턴 중에서 적어도 하나를 포함할 수 있다. According to one embodiment, the first authentication application within the security area includes an App UI module that provides a user interface (UI); An authentication module that performs the user authentication process; a token generation module that issues the access token; and a resource server module that transmits user information and the access token to an external server. According to one embodiment, the user credential may include at least one of a password, fingerprint, face, voice, iris, palm, or finger vein pattern that can identify the owner of the user credential.

Claims (16)

전자 장치(도 1의 전자 장치(101); 도 5의 전자 장치(500))에 있어서,
메모리(도 1의 메모리(130)); 및
상기 메모리에 연결된 적어도 하나의 프로세서(도 1의 프로세서(120))를 포함하고,
상기 적어도 하나의 프로세서는,
보안 영역에서 실행되는 제1 인증 어플리케이션(도 5의 인증 어플리케이션(520))을 통해 사용자 크리덴셜(user credential)을 입력 받고, 상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행되도록 제어하고,
상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급하도록 제어하고,
일반 영역에서 실행되는 제2 인증 어플리케이션(도 5의 인증 어플리케이션(510))을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송하도록 제어하는, 전자 장치.
In an electronic device (electronic device 101 in FIG. 1; electronic device 500 in FIG. 5),
Memory (memory 130 in Figure 1); and
Includes at least one processor (processor 120 in FIG. 1) connected to the memory,
The at least one processor,
A user credential is input through a first authentication application (authentication application 520 in FIG. 5) running in the security area, and the user is authenticated in the first authentication application within the security area based on the user credential. Controlling that the authentication process is carried out,
When the user authentication process is successfully completed in the first authentication application in the security area, control the first authentication application in the security area to issue an access token,
An electronic device that controls to transmit the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application (authentication application 510 in FIG. 5) running in the general area.
제1항에 있어서, 상기 일반 영역은 REE(rich execution environment)에서 구현되고, 상기 보안 영역은 TEE(trusted execution environment)에서 구현되는, 전자 장치. The electronic device of claim 1, wherein the general area is implemented in a rich execution environment (REE) and the security area is implemented in a trusted execution environment (TEE). 제1항 내지 제2항 중 어느 하나에 있어서, 상기 적어도 하나의 프로세서는,
상기 일반 영역 내 상기 제2 인증 어플리케이션을 통해 상기 외부 전자 장치로부터 인증 요청 메시지를 수신하는, 전자 장치.
The method of any one of claims 1 to 2, wherein the at least one processor:
An electronic device that receives an authentication request message from the external electronic device through the second authentication application in the general area.
제1항 내지 제3항 중 어느 하나에 있어서, 상기 보안 영역 내 상기 제1 인증 어플리케이션은,
무결성 측정 값(integrity measurement value), 서비스 제공자(service provider)의 공개 키(public key), 및 CA(certified authority)의 공개 키에 대한 인증서 체인(certificate chain) 중에서 적어도 하나를 포함하는, 전자 장치.
The method of any one of claims 1 to 3, wherein the first authentication application in the security area is,
An electronic device, comprising at least one of an integrity measurement value, a public key of a service provider, and a certificate chain for the public key of a certified authority (CA).
제1항 내지 제4항 중 어느 하나에 있어서, 상기 전자 장치는,
상기 보안 영역에서 구현되며, 상기 보안 영역을 위한 스테이지 페이지 테이블(stage page table)을 관리하고, realm의 CPU 컨텍스트(context)를 관리하는 RMM (remote monitoring and management)을 더 포함하는, 전자 장치.
The method of any one of claims 1 to 4, wherein the electronic device:
The electronic device further includes a remote monitoring and management (RMM) implemented in the security area, managing a stage page table for the security area, and managing CPU context of the realm.
제1항 내지 제5항 중 어느 하나에 있어서, 상기 메모리는 제1 스토리지 및 제2 스토리지를 포함하고,
상기 제1 스토리지는 실링 키(sealing key)를 포함하고,
상기 제2 스토리지는 상기 실링 키에 기반하여 암호화되는 사용자 크리덴셜(user credential), 구독 상태(subscription status), 사용자 프로필(user profile), 및 암호화 키(encryption key)를 포함하는, 전자 장치.
The method of any one of claims 1 to 5, wherein the memory includes first storage and second storage,
The first storage includes a sealing key,
The second storage includes user credentials, subscription status, user profile, and encryption key that are encrypted based on the sealing key.
제1항 내지 제6항 중 어느 하나에 있어서, 상기 보안 영역 내 상기 제1 인증 어플리케이션은,
UI(user interface)를 제공하는 App UI 모듈;
상기 사용자 인증 절차를 수행하는 인증 모듈;
상기 액세스 토큰을 발급하는 토큰 생성 모듈; 및
외부 서버로 사용자 정보 및 상기 액세스 토큰을 전송하는 리소스 서버 모듈을 포함하는, 전자 장치.
The method of any one of claims 1 to 6, wherein the first authentication application in the security area is,
App UI module that provides a user interface (UI);
An authentication module that performs the user authentication process;
a token generation module that issues the access token; and
An electronic device comprising a resource server module that transmits user information and the access token to an external server.
제1항 내지 제7항 중 어느 하나에 있어서, 상기 사용자 크리덴셜은,
상기 사용자 크리덴셜의 소유자를 식별할 수 있는 암호, 지문, 얼굴, 음성, 홍채, 손바닥, 또는 손가락 정맥 패턴 중에서 적어도 하나를 포함하는, 전자 장치.
The method of any one of claims 1 to 7, wherein the user credential is:
An electronic device comprising at least one of a password, fingerprint, face, voice, iris, palm, or finger vein pattern capable of identifying the owner of the user credential.
전자 장치(도 1의 전자 장치(101); 도 5의 전자 장치(500))의 동작 방법에 있어서,
보안 영역에서 실행되는 제1 인증 어플리케이션(도 5의 인증 어플리케이션(520))을 통해 사용자 입력에 대응하는 사용자 크리덴셜(user credential)을 획득하는 동작;
상기 사용자 크리덴셜을 기반으로 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 사용자 인증 절차가 수행하는 동작;
상기 보안 영역 내 상기 제1 인증 어플리케이션에서 상기 사용자 인증 절차가 성공적으로 완료되면 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 액세스 토큰(access token)을 발급하는 동작; 및
일반 영역에서 실행되는 제2 인증 어플리케이션(도 5의 인증 어플리케이션(510))을 통해 상기 보안 영역 내 상기 제1 인증 어플리케이션에서 발급된 상기 액세스 토큰을 외부 전자 장치로 전송하는 동작을 포함하는 방법.
In a method of operating an electronic device (electronic device 101 in FIG. 1; electronic device 500 in FIG. 5),
Obtaining user credentials corresponding to user input through a first authentication application (authentication application 520 in FIG. 5) running in the security area;
Operations performed by a user authentication procedure in the first authentication application within the security area based on the user credentials;
issuing an access token from the first authentication application within the security area when the user authentication process is successfully completed in the first authentication application within the security area; and
A method comprising transmitting the access token issued by the first authentication application in the security area to an external electronic device through a second authentication application (authentication application 510 in FIG. 5) running in the general area.
제9항에 있어서, 상기 일반 영역은 REE(rich execution environment)에서 구현되고, 상기 보안 영역은 TEE(trusted execution environment)에서 구현되는, 방법. The method of claim 9, wherein the general area is implemented in a rich execution environment (REE) and the security area is implemented in a trusted execution environment (TEE). 제9항 내지 제10항 중 어느 하나에 있어서,
상기 일반 영역 내 상기 제2 인증 어플리케이션을 통해 상기 외부 전자 장치로부터 인증 요청 메시지를 수신하는 동작을 더 포함하는, 방법.
According to any one of claims 9 to 10,
The method further includes receiving an authentication request message from the external electronic device through the second authentication application in the general area.
제9항 내지 제11항 중 어느 하나에 있어서, 상기 보안 영역 내 상기 제1 인증 어플리케이션은,
무결성 측정 값(integrity measurement value), 서비스 제공자(service provider)의 공개 키(public key), 및 CA(certified authority)의 공개 키에 대한 인증서 체인(certificate chain) 중에서 적어도 하나를 포함하는, 방법.
The method of any one of claims 9 to 11, wherein the first authentication application in the security area is,
A method comprising at least one of an integrity measurement value, a public key of a service provider, and a certificate chain for the public key of a certified authority (CA).
제9항 내지 제12항 중 어느 하나에 있어서, 상기 전자 장치는,
상기 보안 영역에서 구현되며, 상기 보안 영역을 위한 스테이지 페이지 테이블(stage page table)을 관리하고, realm의 CPU 컨텍스트(context)를 관리하는 RMM (remote monitoring and management)을 더 포함하는, 방법.
The method of any one of claims 9 to 12, wherein the electronic device:
The method further includes a remote monitoring and management (RMM) implemented in the security area, managing a stage page table for the security area, and managing CPU context of the realm.
제9항 내지 제13항 중 어느 하나에 있어서, 메모리는 제1 스토리지 및 제2 스토리지를 포함하고,
상기 제1 스토리지는 실링 키(sealing key)를 포함하고,
상기 제2 스토리지는 상기 실링 키에 기반하여 암호화되는 사용자 크리덴셜(user credential), 구독 상태(subscription status), 사용자 프로필(user profile), 및 암호화 키(encryption key)를 포함하는, 방법.
14. The method of any one of claims 9 to 13, wherein the memory includes first storage and second storage,
The first storage includes a sealing key,
The second storage includes user credentials, subscription status, user profile, and encryption key that are encrypted based on the sealing key.
제9항 내지 제14항 중 어느 하나에 있어서, 상기 보안 영역 내 상기 제1 인증 어플리케이션은,
UI(user interface)를 제공하는 App UI 모듈;
상기 사용자 인증 절차를 수행하는 인증 모듈;
상기 액세스 토큰을 발급하는 토큰 생성 모듈; 및
외부 서버로 사용자 정보 및 상기 액세스 토큰을 전송하는 리소스 서버 모듈을 포함하는, 방법.
The method of any one of claims 9 to 14, wherein the first authentication application in the security area is,
App UI module that provides a user interface (UI);
An authentication module that performs the user authentication process;
a token generation module that issues the access token; and
A method comprising a resource server module transmitting user information and the access token to an external server.
제9항 내지 제15항 중 어느 하나에 있어서, 상기 사용자 크리덴셜은,
상기 사용자 크리덴셜의 소유자를 식별할 수 있는 암호, 지문, 얼굴, 음성, 홍채, 손바닥, 또는 손가락 정맥 패턴 중에서 적어도 하나를 포함하는, 방법.
The method of any one of claims 9 to 15, wherein the user credential is:
A method comprising at least one of a password, fingerprint, face, voice, iris, palm, or finger vein pattern capable of identifying the owner of the user credential.
KR1020230002384A 2022-08-19 2023-01-06 Electronic device and method for performing user authentication in electronic device KR20240026069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/012302 WO2024039235A1 (en) 2022-08-19 2023-08-18 Electronic device and method for performing user authentication on electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20220104364 2022-08-19
KR1020220104364 2022-08-19

Publications (1)

Publication Number Publication Date
KR20240026069A true KR20240026069A (en) 2024-02-27

Family

ID=90058616

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020230002384A KR20240026069A (en) 2022-08-19 2023-01-06 Electronic device and method for performing user authentication in electronic device

Country Status (1)

Country Link
KR (1) KR20240026069A (en)

Similar Documents

Publication Publication Date Title
US11496900B2 (en) Electronic device and method for storing user identification information
KR102456020B1 (en) Electronic device for including autograph in e-paper and control method thereof
EP3764258B1 (en) Constructing common trusted application for a plurality of applications
EP4142236A1 (en) Electronic device for performing edge computing service, and operating method of electronic device
KR102657388B1 (en) Electronic device for selecting key used for encryption based on an information quantity of data to be encrypted and method for the same
US20230161872A1 (en) Method for application security and electronic device for performing the same
US20230004660A1 (en) Method of processing secure data and electronic device supporting the same
US20220292204A1 (en) Method of controlling clipboard and electronic device for performing the same
US20220166769A1 (en) Electronic device for verifying a user&#39;s identity
US20220209954A1 (en) Electronic device for sharing id and password, method for operating thereof, and server
KR20240026069A (en) Electronic device and method for performing user authentication in electronic device
WO2024039235A1 (en) Electronic device and method for performing user authentication on electronic device
KR20220132161A (en) Electronic device for performing hash authentication on neural network and operation method thereof
US20230093667A1 (en) Method of providing login information and electronic device performing thereof
US20230070759A1 (en) Electronic device for protecting user&#39;s biometric information
US20240178990A1 (en) Electronic device for storing secure data and method for operating the same
WO2023038222A1 (en) Electronic device for protecting bio-information of user
WO2024075929A1 (en) Electronic device for providing trusted execution environment
KR20230143897A (en) Operating method of electronic devices fot basic input output system(bios) password initialization and electronic devices thereof
KR20240047263A (en) Electronic device for providing trusted execution environment
KR20240077842A (en) Electronic device for storing secure data and method for operating thereof
US20230052759A1 (en) Electronic device using division permission and operation method thereof
WO2024112057A1 (en) Electronic device for storing secure data and operation method therefor
US20230267190A1 (en) Electronic device, method, and non-transitory computer-readable storage media for executing setup via communication with another device
KR20230150696A (en) Authentication method of electronic device and method of the same