WO2024005419A1 - Electronic device for providing encryption service and operation method thereof - Google Patents

Electronic device for providing encryption service and operation method thereof Download PDF

Info

Publication number
WO2024005419A1
WO2024005419A1 PCT/KR2023/008366 KR2023008366W WO2024005419A1 WO 2024005419 A1 WO2024005419 A1 WO 2024005419A1 KR 2023008366 W KR2023008366 W KR 2023008366W WO 2024005419 A1 WO2024005419 A1 WO 2024005419A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
external electronic
session key
key
data
Prior art date
Application number
PCT/KR2023/008366
Other languages
French (fr)
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
Priority claimed from KR1020220105026A external-priority patent/KR20240003681A/en
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2024005419A1 publication Critical patent/WO2024005419A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • G16Y30/10Security thereof
    • 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
    • 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
    • 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/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • This disclosure relates to an electronic device that provides encryption services and a method of operating the same.
  • IoT Internet of Things
  • various IoT-based services can be provided using various IoT devices.
  • Electronic devices such as smartphones can run applications for managing IoT devices.
  • IoT devices such as mobile devices or IoT devices can perform various functions using security data such as private information or cryptographic keys. If an electronic device is attacked by a malicious user while storing secure data, the secure data may be stolen.
  • IoT devices used in smart home environments can store or manage very private personal data (e.g. door lock access records or captured images), and these personal data Being hijacked can cause great anxiety and discomfort to the user.
  • many IoT devices may not have high-level security features (for example, a high assurance level storage area for storing encryption keys) to satisfy the user's needs, and thus There may be a high risk of personal data being stolen.
  • An electronic device may include a communication circuit and at least one processor operatively connected to the communication circuit.
  • the at least one processor may be configured to receive an authentication request including unique information from an external electronic device that does not support a security function through the communication circuit.
  • the at least one processor may be configured to allocate a secure storage area for the external electronic device based on the unique information.
  • the at least one processor may be configured to generate a data encryption key for the external electronic device and store it in the secure storage area.
  • the at least one processor may be configured to generate a session key for session communication with the external electronic device.
  • the at least one processor may be configured to provide an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
  • An electronic device may include a communication interface and at least one processor operatively connected to the communication interface.
  • the at least one processor may be configured to transmit an authentication request including unique information to an external electronic device supporting a security function through the communication interface.
  • the at least one processor may be configured to receive first session key creation information from the external electronic device.
  • the at least one processor may be configured to generate a session key for session communication with the external electronic device based on the first session key generation information.
  • the at least one processor may be configured to transmit second session key generation information for verification of the session key to the external electronic device.
  • the at least one processor may be configured to use an encryption and/or decryption service provided by the external electronic device based on the session key.
  • a method of operating an electronic device may include receiving an authentication request including unique information from an external electronic device that does not support a security function.
  • the method may include allocating a secure storage area for the external electronic device based on the unique information.
  • the method may include generating a data encryption key for the external electronic device and storing it in the secure storage area.
  • the method may include generating a session key for session communication with the external electronic device.
  • the method may include providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
  • a method of operating an electronic device may include transmitting an authentication request including unique information to an external electronic device that supports a security function.
  • the method may include receiving first session key creation information from the external electronic device.
  • the method may include generating a session key for session communication with the external electronic device based on the first session key generation information.
  • the method may include transmitting second session key generation information for verification of the session key to the external electronic device.
  • the method may include using an encryption and/or decryption service provided by the external electronic device based on the session key.
  • a non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by at least one processor of an electronic device, causes the electronic device to: Receive an authentication request containing unique information from, allocate a secure storage area for the external electronic device based on the unique information, generate a data encryption key for the external electronic device and store it in the secure storage area, and , Generating a session key for session communication with the external electronic device, and providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key. It may contain commands that configure it to do so.
  • a non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by at least one processor of an electronic device, cause the electronic device to: Transmit an authentication request containing unique information, receive first session key generation information from the external electronic device, and generate a session key for session communication with the external electronic device based on the first session key generation information. and transmitting second session key creation information for verification of the session key to the external electronic device, and configuring to use an encryption and/or decryption service provided by the external electronic device based on the session key.
  • the one or more programs when executed by at least one processor of an electronic device, cause the electronic device to: Transmit an authentication request containing unique information, receive first session key generation information from the external electronic device, and generate a session key for session communication with the external electronic device based on the first session key generation information. and transmitting second session key creation information for verification of the session key to the external electronic device, and configuring to use an encryption and/or decryption service provided by the external electronic device based on
  • IoT internet of things
  • FIG. 2 is a block diagram of an electronic device in a network environment, according to various embodiments.
  • Figure 3 is a diagram for explaining an IoT network according to an embodiment.
  • Figure 4 is a block diagram for explaining the configuration of an electronic device according to an embodiment.
  • Figure 5 is a block diagram for explaining the configuration of an external electronic device according to an embodiment.
  • FIG. 6 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment.
  • FIG. 7 is a flowchart illustrating a procedure in which an external electronic device provides an encryption service according to an embodiment.
  • Figure 8 shows a signal flow diagram for explaining a procedure for performing device authentication and session key generation according to one embodiment.
  • Figure 9 shows an example of a user interface screen that confirms the use of a security element in an electronic device, according to an embodiment.
  • FIG. 10 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment.
  • FIG. 11 is a flowchart illustrating a procedure in which an external electronic device uses an encryption service according to an embodiment.
  • Figure 12 shows a signal flow diagram to explain a procedure for providing encryption services according to an embodiment.
  • Figure 13 shows a signal flow diagram to explain a procedure for providing a decryption service according to an embodiment.
  • FIG. 14 is a diagram illustrating safe storage of a password according to an embodiment.
  • FIG. 15 is a diagram illustrating safe storage of image data according to an embodiment.
  • Figure 16 shows a signal flow diagram for explaining a procedure for updating a session key according to one embodiment.
  • FIG. 17 is a signal flow diagram illustrating a procedure for generating an asymmetric key for server authentication according to an embodiment.
  • FIG. 1 illustrates an internet of things (IoT) system 100 according to various embodiments. Meanwhile, at least some of the components in FIG. 1 may be omitted, and may be implemented to include additional components not shown.
  • IoT internet of things
  • the IoT system 100 includes a plurality of electronic devices connectable to the data network 116 or 146.
  • the IoT system 100 includes a first IoT server 110, a first node 120, a voice assistance server 130, a second IoT server 140, and a second node. 150, or may include at least one of the devices 121, 122, 123, 124, 125, 136, 137, 151, 152, and 153.
  • the first IoT server 110 may include at least one of a communication interface 111, a processor 112, or a storage unit 113.
  • the second IoT server 140 may include at least one of a communication interface 141, a processor 142, or a storage unit 143.
  • “IoT server” in this document refers to a relay device (e.g., first node 120 or second node (120), for example, based on a data network (e.g., data network 116 or data network 146).
  • a data network e.g., data network 116 or data network 146.
  • One or more devices e.g., devices 121, 122, 123, 124, 125, 151, 152, 153) can be remotely controlled and/or monitored via 150) or directly without a relay device.
  • Device herein refers to a sensor, appliance, office electronic device, or It is a device for performing processes, and there are no restrictions on its type.
  • a device that receives a control command and performs an operation corresponding to the control command may be named a “target device.”
  • the IoT server may be called a central server in that it selects a target device among a plurality of devices and provides control commands.
  • the first IoT server 110 may communicate with the devices 121, 122, and 123 through the data network 116.
  • Data network 116 may refer to a network for long-distance communication, such as the Internet or a computer network (e.g., LAN or WAN), or may include a cellular network.
  • the first IoT server 110 may be connected to the data network 116 through the communication interface 111.
  • the communication interface 111 may include a communication device (or communication module) to support communication of the data network 116, and may be integrated into one component (e.g., a single chip), or may be integrated into a plurality of separate components. It can be implemented with components (e.g., multiple chips).
  • the first IoT server 110 may communicate with the devices 121, 122, and 123 through the first node 120.
  • the first node 120 may receive data from the first IoT server 110 through the data network 116 and transmit the received data to at least some of the devices 121, 122, and 123.
  • the first node 120 may receive data from at least some of the devices 121, 122, and 123, and transmit the received data to the first IoT server 110 through the data network 116.
  • the first node 120 may function as a bridge between the data network 116 and the devices 121, 122, and 123. Meanwhile, in FIG. 1, it is shown as if there is only one first node 120, but this is simply an example and there is no limit to the number.
  • a “node” in this document may be an edge computing system, or may be a hub device.
  • the first node 120 supports wired and/or wireless communication of the data network 116, and may also support wired and/or wireless communication with the devices 121, 122, and 123.
  • the first node 120 may be configured to communicate via a short-range communication network such as at least one of Bluetooth, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, INSETEON, X10, or IrDA (infrared data association). It can be connected to devices 121, 122, and 123, but there is no limitation on the type of communication.
  • the first node 120 is placed in an environment such as a home, office, factory, building, external location, or other types of premises. (or, location). Accordingly, the devices 121, 122, and 123 may be monitored and/or controlled by the service provided by the first IoT server 110, and the devices 121, 122, and 123 may be connected to the first IoT server 110. It may not be required to have the capability of complete network communication (e.g., Internet communication) for direct connection to the IoT server 110.
  • Devices 121, 122, and 123 may include, for example, a light switch, a proximity sensor, Although it is shown as being implemented as an electronic device in a home environment, such as a temperature sensor, this is illustrative and is not limiting.
  • the first IoT server 110 may support direct communication with the devices 124 and 125.
  • direct communication may mean communication that does not go through a relay device such as the first node 120, for example, communication through a cellular communication network and/or a data network.
  • the first IoT server 110 may transmit a control command to at least some of the devices 121, 122, 123, 124, and 125.
  • control command may mean data that causes a controllable device to perform a specific operation, and the specific operation is an operation performed by the device, such as outputting information, sensing information, reporting information, It may include management of information (e.g. deletion or creation), and there is no limit to the type.
  • the processor 112 generates a control command from an external source (e.g., the voice assistant server 130, the second IoT server 140, the external system 160, or at least some of the devices 121, 122, 123, 124, and 125).
  • control command may be generated based on the obtained information.
  • the processor 112 may generate a control command based on the monitoring results of at least some of the devices 121, 122, 123, 124, and 125 satisfying specified conditions.
  • the processor 112 may control the communication interface 111 to transmit control commands to the target device.
  • the processor 112, or the processor 132, or the processor 142 is a central processing unit (CPU), a digital signal processor (DSP), an application processor (AP), a communication processor (CP), etc. It may be implemented as a combination of one or more of a general-purpose processor, a graphics-specific processor such as a graphical processing unit (GPU), a vision processing unit (VPU), or an artificial intelligence-specific processor such as a neural processing unit (NPU).
  • a general-purpose processor such as a graphical processing unit (GPU), a vision processing unit (VPU), or an artificial intelligence-specific processor such as a neural processing unit (NPU).
  • GPU graphical processing unit
  • VPU vision processing unit
  • NPU neural processing unit
  • the processor 112 may configure a web-based interface based on the API 114 or expose resources managed by the first IoT server 110 to the outside. .
  • the web-based interface may support communication between the first IoT server 110 and an external web service, for example.
  • the processor 112 may, for example, allow the external system 160 to control and/or access the devices 121, 122, and 123.
  • External system 160 may be, for example, an independent system that is not related to or part of system 100.
  • External system 160 may be, for example, an external server or a website. However, security is required for access to the devices 121, 122, and 123 from the external system 160 or the resources of the first IoT server 110.
  • the processor 112 and the automation application may expose an API endpoint (eg, a universal resource locator (URL)) based on the API 114 to the outside.
  • the first IoT server 110 may transmit a control command to the target device among the devices 121, 122, and 123.
  • the description of the communication interface 141, the processor 142, the API 144 of the storage unit 143, and the database 145 of the second IoT server 140 are described in detail in the communication of the first IoT server 110. It may be substantially the same as the description of the interface 111, the processor 112, the API 114 of the storage unit 113, and the database 115.
  • the description of the second node 150 may be substantially the same as the description of the first node 120.
  • the second IoT server 140 may transmit a control command to a target device among the devices 151, 152, and 153.
  • the first IoT server 110 and the second IoT server 140 may be operated by the same service provider in one embodiment, but may be operated by different service providers in another embodiment.
  • the voice assistant server 130 may transmit and receive data with the first IoT server 110 through the data network 116.
  • the voice assistant server 130 may include at least one of a communication interface 131, a processor 132, and a storage unit 133.
  • the communication interface 131 may communicate with the smart phone 136 or the AI speaker 137 through a data network (not shown) and/or a cellular network (not shown).
  • the smart phone 136 or the AI speaker 137 may include a microphone, acquire a user voice, convert it into a voice signal, and transmit the voice signal to the voice assistant server 130.
  • the processor 132 may receive a voice signal from the smart phone 136 or the AI speaker 137 through the communication interface 131.
  • the processor 132 may process the received voice signal based on the stored model 134.
  • the processor 132 may generate (or confirm) a control command using the processing result based on information stored in the database 135.
  • the storage units 113, 133, and 143 include flash memory type, hard disk type, multimedia card micro type, and card type memory (e.g. SD or It may include at least one type of non-transitory storage medium among memory, magnetic memory, magnetic disk, and optical disk, and there is no limit to its type.
  • At least one device communicating with the first IoT server 110 may be a smartphone (e.g., electronic device 201 of FIG. 2) in a network environment. .
  • FIG. 2 is a block diagram of an electronic device 201 in a network environment 200, according to various embodiments.
  • the electronic device 201 communicates with the electronic device 202 through the first network 298 (e.g., a short-range wireless communication network) or through the second network 299. It is possible to communicate with at least one of the electronic device 204 or the server 208 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 201 may communicate with the electronic device 204 through the server 208.
  • the first network 298 e.g., a short-range wireless communication network
  • the server 208 e.g., a long-distance wireless communication network
  • the electronic device 201 includes a processor 220, a memory 230, an input module 250, an audio output module 255, a display module 260, an audio module 270, and a sensor module ( 276), interface 277, connection terminal 278, haptic module 279, camera module 280, power management module 288, battery 289, communication module 290, subscriber identification module 296 , or may include an antenna module 297.
  • at least one of these components eg, the connection terminal 278) may be omitted, or one or more other components may be added to the electronic device 201.
  • some of these components e.g., sensor module 276, camera module 280, or antenna module 297) are integrated into one component (e.g., display module 260). It can be.
  • Processor 220 executes software (e.g., program 240) to operate at least one other component (e.g., hardware or software component) of electronic device 201 connected to processor 220. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of the data processing or computation, the processor 220 stores instructions or data received from another component (e.g., the sensor module 276 or the communication module 290) in the volatile memory 232. The commands or data stored in the volatile memory 232 can be processed, and the resulting data can be stored in the non-volatile memory 234.
  • software e.g., program 240
  • the processor 220 stores instructions or data received from another component (e.g., the sensor module 276 or the communication module 290) in the volatile memory 232.
  • the commands or data stored in the volatile memory 232 can be processed, and the resulting data can be stored in the non-volatile memory 234.
  • the processor 220 includes a main processor 221 (e.g., a central processing unit or an application processor) or an auxiliary processor 223 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).
  • a main processor 221 e.g., a central processing unit or an application processor
  • auxiliary processor 223 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.
  • the electronic device 201 includes a main processor 221 and a auxiliary processor 223, the auxiliary processor 223 may be set to use lower power than the main processor 221 or be specialized for a designated function. You can.
  • the auxiliary processor 223 may be implemented separately from the main processor 221 or as part of it.
  • the auxiliary processor 223 may, for example, act on behalf of the main processor 221 while the main processor 221 is in an inactive (e.g., sleep) state, or while the main processor 221 is in an active (e.g., application execution) state. ), together with the main processor 221, at least one of the components of the electronic device 201 (e.g., the display module 260, the sensor module 276, or the communication module 290) At least some of the functions or states related to can be controlled.
  • coprocessor 223 e.g., image signal processor or communication processor
  • may be implemented as part of another functionally related component e.g., camera module 280 or communication module 290. there is.
  • the auxiliary processor 223 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 201 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 208).
  • 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.
  • artificial intelligence models may additionally or alternatively include software structures.
  • the memory 230 may store various data used by at least one component (eg, the processor 220 or the sensor module 276) of the electronic device 201. Data may include, for example, input data or output data for software (e.g., program 240) and instructions related thereto.
  • Memory 230 may include volatile memory 232 or non-volatile memory 234.
  • the program 240 may be stored as software in the memory 230 and may include, for example, an operating system 242, middleware 244, or application 246.
  • the input module 250 may receive commands or data to be used in a component of the electronic device 201 (e.g., the processor 220) from outside the electronic device 201 (e.g., a user).
  • the input module 250 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).
  • the sound output module 255 may output sound signals to the outside of the electronic device 201.
  • the sound output module 255 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.
  • the display module 260 can visually provide information to the outside of the electronic device 201 (eg, a user).
  • the display module 260 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device.
  • the display module 260 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.
  • the audio module 270 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 270 acquires sound through the input module 250, the sound output module 255, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 201). Sound may be output through an electronic device 202 (e.g., speaker or headphone).
  • an electronic device 202 e.g., speaker or headphone
  • the sensor module 276 detects the operating state (e.g., power or temperature) of the electronic device 201 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 276 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.
  • the interface 277 may support one or more designated protocols that can be used to connect the electronic device 201 directly or wirelessly with an external electronic device (eg, the electronic device 202).
  • the interface 277 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • the connection terminal 278 may include a connector through which the electronic device 201 can be physically connected to an external electronic device (eg, the electronic device 202).
  • the connection terminal 278 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 279 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.
  • the haptic module 279 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 280 can capture still images and moving images.
  • the camera module 280 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 288 can manage power supplied to the electronic device 201.
  • the power management module 288 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • Battery 289 may supply power to at least one component of electronic device 201.
  • the battery 289 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
  • Communication module 290 provides a direct (e.g., wired) communication channel or wireless communication channel between electronic device 201 and an external electronic device (e.g., electronic device 202, electronic device 204, or server 208). It can support establishment and communication through established communication channels. Communication module 290 operates independently of processor 220 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication.
  • processor 220 e.g., an application processor
  • the communication module 290 is a wireless communication module 292 (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 294 (e.g., : LAN (local area network) communication module, or power line communication module) may be included.
  • a wireless communication module 292 e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • a wired communication module 294 e.g., : LAN (local area network) communication module, or power line communication module
  • the corresponding communication module is a first network 298 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 299 (e.g., legacy It may communicate with an external electronic device 204 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).
  • 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).
  • 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).
  • a telecommunication network such as a cellular network, a 5G network, a next-generation communication network
  • the wireless communication module 292 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 296 within a communication network such as the first network 298 or the second network 299.
  • subscriber information e.g., International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the wireless communication module 292 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 292 may support high frequency bands (e.g., mmWave bands), for example, to achieve high data rates.
  • the wireless communication module 292 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 292 may support various requirements specified in the electronic device 201, an external electronic device (e.g., electronic device 204), or a network system (e.g., second network 299).
  • the wireless communication module 292 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.
  • Peak data rate e.g., 20 Gbps or more
  • loss coverage e.g., 164 dB or less
  • U-plane latency e.g., 164 dB or less
  • the antenna module 297 may transmit or receive signals or power to or from the outside (e.g., an external electronic device).
  • the antenna module 297 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB).
  • the antenna module 297 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 298 or the second network 299 is, for example, connected to the plurality of antennas by the communication module 290. can be selected. Signals or power may be transmitted or received between the communication module 290 and an external electronic device through the at least one selected antenna.
  • other components eg, radio frequency integrated circuit (RFIC) may be additionally formed as part of the antenna module 297.
  • RFIC radio frequency integrated circuit
  • the antenna module 297 may form a mmWave antenna module.
  • 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.
  • 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)
  • peripheral devices e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • signal e.g. commands or data
  • commands or data may be transmitted or received between the electronic device 201 and the external electronic device 204 through the server 208 connected to the second network 299.
  • Each of the external electronic devices 202 or 204 may be of the same or different type as the electronic device 201.
  • all or part of the operations performed in the electronic device 201 may be executed in one or more of the external electronic devices 202, 204, or 208.
  • the electronic device 201 may perform the function or service instead of executing the function or service on its own.
  • 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 201.
  • the electronic device 201 may process the result as is or additionally and provide it as at least part of a response to the request.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology can be used.
  • the electronic device 201 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 204 may include an Internet of Things (IoT) device.
  • Server 208 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 204 or server 208 may be included in the second network 299.
  • the electronic device 201 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.
  • Figure 3 is a diagram for explaining an IoT network according to an embodiment.
  • the IoT network 300 supports an electronic device 201 capable of communicating with the server 310 through network communication (e.g., the Internet), and IoT technology and supports network communication (e.g., the Internet). ) at least one external electronic device 320 capable of communicating with the server 310 or the electronic device 201 (e.g., a television 320a, a refrigerator 320b, a washing machine 320d, a light 320e) , or a controlled device such as CCTV 320b.
  • the external electronic device 320 may communicate with the electronic device 201 and/or the server 310 through a hub device (not shown).
  • the electronic device 201 is configured via the server 310, via a hub device (not shown), via long-range wireless communication (e.g., second network 299), or short-range wireless communication (e.g., For example, it is possible to communicate with the external electronic device 320 through the first network 298).
  • long-range wireless communication e.g., second network 299
  • short-range wireless communication e.g., For example, it is possible to communicate with the external electronic device 320 through the first network 298).
  • the external electronic device 320 may be controlled (e.g., report status and/or execute a specific function) by a remote command (e.g., a control command of the electronic device 201 or the server 310). and, for example, may include at least one of a television, an air conditioner, a refrigerator, a washing machine, a lighting device, a security camera, a sensor, or a window treatment.
  • the external electronic device 320 may communicate directly with the electronic device 201 (for example, without going through the server 310 or a hub device).
  • the external electronic device 320 is connected to the electronic device 201 via long-range wireless communication (e.g., second network 299) or short-range wireless communication (e.g., first network 298).
  • the external electronic device 320 connects to the server 310 via long-range wireless communication (e.g., the second network 299) or using short-range wireless communication (e.g., the first network 298). It may be configured to communicate with.
  • long-range wireless communication e.g., the second network 299
  • short-range wireless communication e.g., the first network 298
  • the electronic device 201 checks the status of the external electronic device 320 that the user will use for the IoT control service, or controls the external electronic device 320 (for example, reads personal information or specifies A control command instructing to execute a function can be transmitted.
  • the electronic device 201 can discover the external electronic device 320 and authenticate the discovered external electronic device 320.
  • the external electronic device 320 may be registered with the server 310 to be associated with a user account.
  • the electronic device 201 can monitor and control the external electronic device 320 registered in the server 310 using the user account.
  • the electronic device 201 may be a personal electronic device, such as a smart phone, tablet, or wearable device, or an electronic device that includes a display and a user interface, such as a television or control console.
  • the electronic device 201 supports a security function (eg, security element 420) of a designated high security level and may perform encryption and/or decryption of data.
  • the external electronic device 320 may be configured not to support a required level of security function (e.g., a security element), and may provide encryption and/or decryption services through the security function of the electronic device 201. Available.
  • Figure 4 is a block diagram for explaining the configuration of an electronic device according to an embodiment.
  • an electronic device may include an application processor (AP) 410 and a security element (SE) 420.
  • the application processor 410 and the security element 420 may be included in at least one processor 220 of the electronic device 201.
  • the application processor 410 may execute an application (eg, a client application) capable of controlling at least one external electronic device 320.
  • the application processor 410 may communicate with the external electronic device 320 through execution of the client application.
  • the secure element 420 may be implemented as a system on chip that includes a secure storage area 422 (e.g., internal memory).
  • the secure storage area 422 may be a unique storage space included in the secure element 420.
  • the security element 420 may perform attack security, secure key generation, and/or secure storage functions, such that even if the application processor 410 is hacked, the data therein (e.g., within the secure storage area 422) may be protected. It can provide a strong security mechanism to safely protect data.
  • the security element 420 is at least EAL 6 or higher (EAL 6) among the seven evaluation assurance levels (EALs) defined to standardize the assurance level of information security products in the common criteria (CC).
  • EAL 6 evaluation assurance levels
  • a security level of EAL 6 augmented (EAL6+) may be provided.
  • the security element 420 of EAL 6 or higher may provide a higher level of security functionality compared to a hardware security module (HSM) of EAL 4, a virtual private network (VPN) of EAL 3, or a trusted execution environment (TEE) of EAL 2. You can.
  • HSM hardware security module
  • VPN virtual private network
  • TEE trusted execution environment
  • the security element 420 generates a data encryption key (D_key) 424 to be used for encryption or decryption for the external electronic device 320, and sets the data encryption key 424 to a specified security level ( For example, it can be safely stored in the secure storage area 422 with EAL 6 or higher).
  • the application processor 410 may transmit data requiring encryption or decryption of the external electronic device 320 and a request for encryption or decryption to the security element 420.
  • the security element 420 encrypts or decrypts the data using the data encryption key 424 in response to the request, and then sends the resulting data (e.g., encrypted data or decrypted data) to the application processor 410. It can be provided to the external electronic device 320 through .
  • the data encryption key 424 is used for encryption or decryption inside the security element 420, and is safely stored in the secure storage area 422 of the security element 420 without being leaked to the outside of the security element 420. It can be.
  • the secure storage area 422 may further store key-related information (key_info) 426 to be used for secure communication with the external electronic device 320.
  • the key-related information 426 may include at least a secret key among the asymmetric key pair for the external electronic device 320 to use for server authentication.
  • the security element 420 may generate the asymmetric key pair and provide one of the asymmetric key pair, for example, a public key, to the external electronic device 320.
  • the external electronic device 320 can obtain authentication to use the cloud service with the server 310 using the public key.
  • the key-related information 426 may further include the other one of the asymmetric key pair, for example, the public key.
  • the public key may be included in the session key-related information 426 and safely stored in the secure storage area 422, or may be stored in another storage area of the electronic device 201.
  • the external electronic device 320 may be registered with the electronic device 201 to initiate communication with the electronic device 201. In one embodiment, when the external electronic device 320 is first installed or booted (or powered on), or when the external electronic device 320 communicates with the electronic device 201 for the first time, the external electronic device 320 may be registered in the electronic device 201. In one embodiment, the registration procedure for the external electronic device 320 includes an operation by the electronic device 201 to authenticate (or identify) the external electronic device 320, and unique information (e.g., a serial number) of the external electronic device 320.
  • unique information e.g., a serial number
  • An operation of storing a serial number (SN) or MAC (media access control) address) in a memory e.g., memory 230
  • security data e.g., a session key
  • It may include at least one of the operations of generating a data encryption key 428) and/or a data encryption key 424).
  • the electronic device 201 when the external electronic device 320 is registered with the electronic device 201, the electronic device 201 generates a session key 428 for communication with the external electronic device 320 through the security element 420. can be created.
  • the session key 428 may be generated at the request of the external electronic device 320 every time the external electronic device 320 boots.
  • session key 428 may be used to ensure secure end-to-end communication between external electronic device 320 and secure element 420.
  • session key 428 may be stored within secure storage area 422 of secure element 420.
  • the session key 428 may have a designated lifetime, and may be deleted (or deactivated) by the security element 420 when the lifetime has elapsed.
  • the session key 428 stored in the secure storage area 422 of the secure element 420 may be deleted (or deactivated). .
  • the application processor 410 may execute a client application to control the external electronic device 320.
  • the application processor 410 may support communication between the external electronic device 320 and the security element 420.
  • the application processor 410 may receive data and a request for encryption or decryption (hereinafter referred to as encryption/decryption) from the external electronic device 320, and transmit the data and request to the security element 420. there is.
  • the application processor 410 sends a message (for example, a request message) received from the external electronic device 320 to an application protocol data unit (APDU) for communication between the external electronic device 320 and the security element 420. ) format and transmit it to the security element 420, or the APDU received from the security element 420 can be converted into a message in a format that the external electronic device 320 can understand and transmit it to the external electronic device 320. .
  • APDU application protocol data unit
  • Figure 5 is a block diagram for explaining the configuration of an external electronic device according to an embodiment.
  • an external electronic device (e.g., external electronic device 320) includes a processor 510, a communication interface 520, a memory 530, and a native function unit 540.
  • the unique function unit 540 is hardware and/or software that performs the unique function of the external electronic device 320 (for example, a television reception circuit, a motor control module of a washing machine, or a CCTV filming module) under the control of the processor 510.
  • processor 510 may include processing circuitry that communicates with electronic device 201 (e.g., application processor 410) and/or server 310 through communication interface 520.
  • the communication interface 520 uses a communication method (e.g., the first network 298) such as at least one of Bluetooth, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, or IrDA. You can communicate with the electronic device 201 using.
  • the communication interface 520 may communicate with the server 310 using a communication method such as at least one of Wi-Fi or a cellular network (eg, the second network 299).
  • the processor 510 may register with the electronic device 201 by sending the authentication request through the communication interface 520 when it first communicates with the electronic device 201 after power-on or booting. In one embodiment, the processor 510 may request generation of a data encryption key (e.g., data encryption key 424) by transmitting an authentication request to the electronic device 201 through the communication interface 520.
  • a data encryption key e.g., data encryption key 424
  • the processor 510 may transmit data requiring encryption and an encryption request to the electronic device 201, and in response, receive data encrypted by a data encryption key from the electronic device 201. You can receive it. In one embodiment, the processor 510 may transmit data requiring decryption and a decryption request to the electronic device 201, and may receive data decrypted using a data encryption key from the electronic device 201 in response. .
  • processor 510 may share the same session key (e.g., session key 428) with electronic device 201 when registered with electronic device 201.
  • the processor 510 may encrypt a message containing data and an encryption/decryption request using a session key and transmit it to the electronic device 201.
  • the processor 510 may decrypt a message received from the electronic device 201 using a session key to obtain encrypted/decrypted data.
  • the session key may be stored in memory 530 (e.g., volatile memory) for a specified validity time, when the specified validity time elapses or when the external electronic device 320 is powered off or booted. It may be erased (or deactivated) from memory 530 (e.g., volatile memory).
  • FIG. 6 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the electronic device 201. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
  • processor eg, processor 220
  • the electronic device 201 may receive an authentication request from the external electronic device 320.
  • the authentication request may include unique information (eg, serial number or MAC address) of the external electronic device 320.
  • the authentication request may include an indicator indicating that the external electronic device 320 requests encryption/decryption service by the security element 420.
  • the electronic device 201 eg, the processor 220
  • the electronic device 201 may allocate a secure storage area (eg, the secure storage area 422) for the external electronic device 320.
  • the electronic device 201 e.g., the processor 220
  • secure storage area 422 may be some storage space within the non-volatile memory of secure element 420.
  • secure element 420 may provide a security level of EAL 6 or higher for secure storage area 422.
  • the electronic device 201 e.g., the processor 220
  • the electronic device 201 receives a user input (e.g., user input 910 of FIG. 9) that allows the external electronic device 320 to utilize the secure element 420.
  • a user input e.g., user input 910 of FIG. 9
  • operations 610, 615, 620, and 645 may be executed.
  • the electronic device 201 (e.g., processor 220) generates a data encryption key (e.g., data encryption key 424) for the external electronic device 320 and uses the data encryption key as the security key. It can be stored in the storage area 422.
  • the electronic device 201 e.g., the processor 220
  • may generate a session key (e.g., the session key 428) to be used for session communication with the external electronic device 320.
  • the session key may be an encryption key used to encrypt messages on a communication session with the external electronic device 320.
  • operation 620 may include at least one of operation 625, operation 630, operation 635, or operation 640.
  • the electronic device 201 (e.g., the processor 220) generates first session key generation information (e.g., at least one random number) for device authentication of the external electronic device 320.
  • a public key (including at least one of a public key (PK) or a certificate) may be transmitted to the external electronic device 320.
  • the electronic device 201 (e.g., the processor 220) receives second session key generation information (e.g., at least one random number value, or at least one public key) from the external electronic device 320 that has successfully authenticated the device. includes at least one of the keys).
  • the electronic device 201 may generate a session key for session communication with the external electronic device 320 based on the second session key generation information.
  • the session key may be generated using a public key included in the second session key generation information, and may be verified by a random number value included in the second session key generation information.
  • the external electronic device 320 may generate and store the same session key based on the first session key generation information.
  • the electronic device 201 eg, the processor 220
  • the session key verification information may include at least one random number encrypted by the session key.
  • the external electronic device 320 may confirm that the external electronic device 320 shares the same session key as the electronic device 201 based on the session key verification information.
  • the electronic device 201 performs encryption and encryption based on the data encryption key in response to a request (e.g., encryption request or decryption request) from the external electronic device encrypted with the session key.
  • a decryption service may be provided to the external electronic device 320.
  • the encryption service may include receiving data and encryption requests and transmitting encrypted data according to the procedure of FIG. 12.
  • the decryption service may include receiving data and a decryption request and transmitting the decrypted data according to the procedure of FIG. 13.
  • FIG. 7 is a flowchart illustrating a procedure in which an external electronic device provides an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the external electronic device 320. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
  • processor eg, processor 220
  • the external electronic device 320 may transmit an authentication request to the electronic device 201.
  • the authentication request may be transmitted when the external electronic device 320 is powered on or booted, or when the external electronic device 320 determines that encrypted communication is necessary, and unique information (e.g., For example, a serial number) may be included.
  • the authentication request may include an indicator indicating that the external electronic device 320 requests encryption/decryption service by the security element 420.
  • the external electronic device 320 eg, processor 510) may generate a session key to be used for session communication with the electronic device 201.
  • operation 710 may include at least one of operation 715, operation 720, operation 725, operation 730, operation 735, or operation 740.
  • operation 710 may include at least operations 715, 730, and 735.
  • the external electronic device 320 receives first session key generation information (e.g., at least one random number) for device authentication of the external electronic device 320 from the electronic device 201. value, at least one public key, or a certificate).
  • the external electronic device 320 may transmit a verification request for device authentication of the external electronic device 320 to the server 310.
  • the verification request may include unique information (eg, serial number) for identifying the external electronic device 320.
  • the external electronic device 320 receives a verification key from the server 310 and verifies the certificate in the first session key generation information using the verification key to successfully verify the device. You can.
  • the external electronic device 320 may generate a session key using the public key in the first session key generation information.
  • the external electronic device 320 e.g., processor 510) generates second session key generation information (e.g., including at least one of at least one random number value or at least one public key). It can be transmitted to the device 201.
  • the external electronic device 320 e.g., processor 510) receives session key verification information (e.g., including at least one random number value) from the electronic device 201 and Based on this, it can be confirmed that the electronic device 201 shares the same session key as the external electronic device 320.
  • the external electronic device 320 may use the encryption service and/or decryption service of the electronic device 201 based on the session key.
  • the encryption service may include sending data and encryption requests and receiving encrypted data according to the procedure of FIG. 12.
  • the decryption service may include transmitting data and a decryption request and receiving decrypted data according to the procedure of FIG. 13.
  • Figure 8 shows a signal flow diagram (sequence diagram) to explain a procedure for performing device authentication and session key generation according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
  • the external electronic device 320 provides unique information (e.g., serial number (SN)) of the external electronic device 320 to the electronic device 201 (e.g., the application processor 410). ) can be transmitted.
  • the authentication request is made when the external electronic device 320 first initiates communication with the electronic device 201 (for example, when the external electronic device 320 is powered on or booted). It may be transmitted through a communication session established between the device 320 and the application processor 410. In one embodiment, the external electronic device 320 may transmit the authentication request to use the encryption/decryption service provided by the session element 420 of the electronic device 201.
  • the application processor 410 of the electronic device 201 may identify the external electronic device 320 using the serial number included in the authentication request and store the serial number.
  • the application processor 410 sends a message (e.g., an image and text of the external electronic device 320) indicating that the external electronic device 320 is registered based on the serial number to a display module (e.g., a display module). It can be output through module 260).
  • the user can directly authenticate the external electronic device 320 by checking the message.
  • the application processor 410 may store the serial number in response to receiving a user input accepting registration of the external electronic device 320.
  • the application processor 410 may transmit unique information for the external electronic device 320, including the serial number, to the server 310.
  • Server 310 may store the serial number.
  • the application processor 410 may transmit an allocation request for the external electronic device 320 to the secure element 420.
  • the allocation request may include information (eg, serial number) identifying the external electronic device 320.
  • the application processor 410 may transmit the allocation request in response to a user input (e.g., user input 910 in FIG. 9) allowing the external electronic device 3200 to utilize the secure element 420. there is.
  • the security element 420 of the electronic device 201 allocates a unique secure storage area (e.g., secure storage area 422) for the external electronic device 320 within the internal memory in response to the allocation request. can do.
  • the security element 420 generates a data encryption key (e.g., data encryption key 424) for the external electronic device 320 and stores the generated data encryption key in the secure storage area 422.
  • the data encryption key may include an advanced encryption standard (AES) key used for data encryption/decryption.
  • AES is a symmetric key algorithm that can be used equally for encryption and decryption, and the AES key can be used for both encryption and decryption.
  • the security element 420 may transmit first session key generation information for device authentication of the external electronic device 320 to the application processor 410.
  • the first session key creation information may be delivered in the format of an APDU.
  • the security element 420 includes a certificate ('CERT'), a key pair according to the elliptic curve key agreement algorithm (ECKA) (e.g., an ephemeral secret key (eSK) and an ephemeral public key (ePK)), and RSA ( Generating at least one of a key pair (e.g.
  • ePK)') including the first random number value and the ePK and the CERT may be encrypted by the SK to generate the first session key generation information.
  • the first session key creation information may include an encrypted digital signature and an encrypted CERT ('Sign (rand
  • the application processor 410 may transmit the first session key creation information ('Sign (rand
  • the external electronic device 320 may transmit a verification request including unique information (eg, serial number) of the external electronic device 320 to the server 310.
  • the server 310 may verify the external electronic device 320 by confirming that the serial number obtained in operation 804-1 matches the serial number included in the unique information.
  • the server 310 may transmit a verification key for the certificate to the external electronic device 320.
  • the external electronic device 320 verifies that the certificate and the digital signature are normal using the verification key and generates a session key for session communication with the secure element 420.
  • the external electronic device 320 generates a key pair (e.g., eSK' and ePK') according to ECKA, and creates a session key based on eSK' and ePK obtained through the first session key generation information.
  • eSK' eSK' + ePK
  • SSK can be created by appending or adding ePK to eSK'.
  • the SSK may be generated through a designated key derivation function with eSK' and ePK as input.
  • the external electronic device 320 may transmit second session key creation information to the application processor 410 of the electronic device 201.
  • the external electronic device 320 generates a second random number value ('rand2'), and combines the first random number value ('rand') obtained from the first session key generation information with the second random number value.
  • Encrypted random number information ('Enc (SSK, rand
  • the external electronic device 320 may generate the second session key generation information including the encrypted random number information and the ePK'.
  • the application processor 410 may convert the second session key creation information ('Enc (SSK, rand
  • the security element 420 may generate a session key (eg, session key 428) based on the second session key generation information.
  • the security element 420 decrypts the encrypted random number information ('Enc (SSK, rand
  • the security element 420 encrypts the second random number value with the session key to generate session key verification information ('Enc (SSK, rand2)') including the encrypted second random number value,
  • the session key verification information may be transmitted to the application processor 410 in the format of an APDU.
  • the application processor 410 may transmit the session key verification information ('Enc (SSK, rand2)') to the external electronic device 320.
  • the external electronic device 320 may confirm that the session key generated in operation 820 is the same as the session key generated in the security element 420 based on the session key verification information. In one embodiment, the external electronic device 320 decrypts the session key verification information using the session key to obtain the second random number value, and the second random number value is equal to the second random number value transmitted in operation 822. The session key can be verified by confirming that it is identical.
  • the security element 420 can store a data encryption key (for example, an AES key) for the external electronic device 320 in the secure storage area 422, and the security element 420 and the external electronic device 320 may share the same session key ('SSK').
  • Figure 9 shows an example of a user interface screen that confirms the use of a security element in an electronic device, according to an embodiment.
  • the electronic device 201 receives, for example, an authentication request in operation 802 from the external electronic device 320, and the external electronic device 320 uses the security element.
  • a message may be displayed asking permission to use (e.g., 'Do you want to allow IoT devices to utilize your SE?'). If a user input 910 allowing use of the security element 420 is received, the electronic device 201 (eg, the application processor 410) may proceed with operations following operation 806.
  • FIG. 10 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the electronic device 201. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
  • processor 220 e.g., processor 220
  • the electronic device 201 may receive a first encrypted message from the external electronic device 320 and proceed to operation 1010.
  • the first encryption message may be received together with at least one of unique information about the external electronic device 320 or information indicating that encryption has been applied.
  • the electronic device 201 e.g., processor 220
  • performs the first encryption using a session key e.g., session key 428, (e.g., the session key SSK generated in operation 826).
  • ⁇ data and encryption request ⁇ included in the first encrypted message can be obtained.
  • the data may include personal information (e.g., password) and/or personal data (e.g., video captured within a home network or door lock access record) for which the external electronic device 320 requests encryption. You can.
  • the electronic device 201 retrieves a data encryption key (e.g., data encryption key 424) stored in the secure storage area 422 within the secure element 420 (e.g. The data may be encrypted using the AES key generated in operation 810 to generate encrypted data.
  • a data encryption key e.g., data encryption key 424
  • the data may be encrypted using the AES key generated in operation 810 to generate encrypted data.
  • the electronic device 201 e.g., processor 220
  • the electronic device 201 eg, processor 220
  • FIG. 11 is a flowchart illustrating a procedure in which an external electronic device uses an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 510) of the external electronic device 320. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
  • a processor eg, processor 510 of the external electronic device 320. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
  • the external electronic device 320 may identify that data requiring encryption exists and proceed to operation 1110.
  • the data may include personal information or personal data such as passwords.
  • the external electronic device 320 receives a newly set password for controlling the external electronic device 320 from the user, it proceeds to operation 1110 to encrypt and store the password. You can proceed.
  • the external electronic device 320 e.g., processor 510) proceeds to operation 1110 to encrypt and store personal data such as captured image data or door lock access records according to a user request or a specified cycle. You can.
  • the external electronic device 320 sends data requiring encryption (e.g., the password or the image data) and an encryption request with a session key (e.g., session key 428).
  • the first encrypted message may be generated by encryption using (for example, the session key SSK generated in operation 820).
  • the first encrypted message may include ⁇ data and encryption request ⁇ encrypted with the session key.
  • the external electronic device 320 eg, processor 510) may transmit the first encrypted message to the electronic device 201.
  • the first encrypted message may be transmitted along with at least one of unique information about the external electronic device 320 or information indicating that encryption has been applied.
  • the external electronic device 320 may receive a second encrypted message from the electronic device 201.
  • the external electronic device 320 e.g., processor 510) decrypts the second encrypted message using the session key to obtain ⁇ encrypted data ⁇ included in the second encrypted message.
  • the second encrypted message may include data encrypted by a data encryption key (e.g., data encryption key 424) (e.g., the AES key generated in operation 810), corresponding to the data transmitted in operation 1115. You can.
  • the second encrypted message may be received in response to the first encrypted message.
  • the external electronic device 320 may recognize that the second encrypted message includes encrypted data corresponding to the original data transmitted through the first encrypted message. .
  • the obtained encrypted data may be safely stored in the memory (eg, memory 530) of the external electronic device 320.
  • the external electronic device 320 eg, processor 510) may store the encrypted data and delete the original data.
  • Figure 12 shows a signal flow diagram to explain a procedure for providing encryption services according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
  • the external electronic device 320 may detect that data requiring encryption (eg, password or personal data) is generated. In one embodiment, the external electronic device 320 may determine that encryption of data is necessary periodically, when a specified condition is satisfied, or in response to a user input, and proceed to operation 1204. In operation 1204, the external electronic device 320 sends the data requiring encryption and an encryption request related to the data using a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 820).
  • the first encrypted message ('Enc (SSK, Data
  • the external electronic device 320 may transmit the first encryption message ('Enc (SSK, Data
  • the first encrypted message may be transmitted along with unique information of the external electronic device 320.
  • the application processor 410 may convert the first encrypted message (and unique information) into an APDU format and transmit it to the security element 420.
  • the security element 420 uses a pre-stored session key for the external electronic device 320 (e.g., the session key SSK generated in operation 826) (e.g., the session key 428) to By decoding the encrypted message, ⁇ data and encryption request ⁇ included in the first encrypted message can be obtained.
  • the secure element 420 generates a data encryption key (e.g., data encryption key 424) stored in the secure storage area 422 (e.g., the AES key generated in operation 810) in response to the encryption request.
  • encrypted data By encrypting the data, encrypted data ('Enc (AES, Data)') can be created.
  • the security element 420 may encrypt the encrypted data using a session key to generate a second encrypted message ('Enc (SSK, Enc (AES, Data))'.
  • the security element 420 may transmit the second encrypted message to the application processor 410 in the format of an APDU.
  • the application processor 410 may transmit the second encrypted message to the external electronic device 320.
  • the external electronic device 320 can obtain encrypted data ('Enc (AES, Data)') included in the second encrypted message by decrypting the second encrypted message using the session key. there is.
  • the external electronic device 320 may store the obtained encrypted data in the memory 530.
  • the external electronic device 320 eg, processor 510) may store the encrypted data and delete the original data transmitted in operation 1206.
  • the procedure for providing a decryption service by the electronic device 201 to the external electronic device 320 may be similar to FIG. 10, and the external electronic device 320 uses the decryption service through the electronic device 201.
  • the procedure may be similar to Figure 11.
  • FIG. 13 For a detailed description of the operations performed by the electronic device 201 and the external electronic device 320, refer to FIG. 13 below.
  • Figure 13 shows a signal flow diagram to explain a procedure for providing a decryption service according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
  • the external electronic device 320 may detect that decryption of the encrypted data ('E(D)') is necessary. In one embodiment, the external electronic device 320 may proceed to operation 1304 to use the encrypted data (for example, to confirm a password or play video data). In operation 1304, the external electronic device 320 encrypts the encrypted data and the decryption request related to the encrypted data using a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 820). Thus, the first encrypted message ('Enc (SSK, E(D)
  • a session key e.g., session key 428, (e.g., the session key SSK generated in operation 820.
  • the first encrypted message ('Enc (SSK, E(D)
  • the external electronic device 320 may transmit the first encryption message ('Enc (SSK, E(D)
  • the first encrypted message may be transmitted along with unique information of the external electronic device 320.
  • the application processor 410 may transmit the first encrypted message (and unique information) to the security element 420 in the format of an APDU.
  • the security element 420 uses a pre-stored session key for the external electronic device 320 (e.g., the session key SSK generated in operation 826) (e.g., the session key 428) to By decoding the encrypted message, ⁇ encrypted data and decryption request ⁇ included in the first encrypted message can be obtained.
  • the secure element 420 generates a data encryption key (e.g., data encryption key 424) stored in the secure storage area 422 (e.g., the AES key generated in operation 810) in response to the decryption request.
  • Original data ('Data') can be generated by decrypting the encrypted data using .
  • the security element 420 may encrypt the original data using a session key to generate a second encrypted message ('Enc (SSK, Data)').
  • the security element 420 may transmit the second encrypted message to the application processor 410 in the format of an APDU.
  • the application processor 410 may transmit the second encrypted message to the external electronic device 320.
  • the external electronic device 320 can obtain original data ('Data') included in the second encrypted message by decrypting the second encrypted message using the session key.
  • the external electronic device 320 may at least temporarily store the acquired original data in the memory 530 or use it, for example, to confirm a password or play an image.
  • the external electronic device 320 eg, processor 510) may delete the original data for security purposes after using the original data.
  • FIG. 14 is a diagram illustrating safe storage of a password according to an embodiment.
  • the external electronic device 320 may receive a password 1410 set for controlling the external electronic device 320 from the user.
  • the password 1410 may include a string entered by the user (for example, "FDF778523 --) along with the string "PASSWORD", and therefore there is a risk of it being stolen by an attacker.
  • the external electronic device 320 may transmit the password 1410 along with an encryption request to the electronic device 201 and receive the encrypted password 1420 as a corresponding response.
  • the encrypted password 1420 is an encrypted string generated using a data encryption key (e.g., data encryption key 424) (e.g., an AES key) by the security element 420 of the electronic device 201 ( For example, it may include "0008E0A"), and the data encryption key is not leaked outside of the security element 420. Even if an attacker steals the encrypted password (1420), the original string (for example, the password (1410)) cannot be known.
  • the external electronic device 320 may store the encrypted password 1420 and delete the original password 1410.
  • the external electronic device 320 when decryption of the encrypted password 1420 is required to authenticate a user who wishes to control the external electronic device 320, the external electronic device 320 sends the encrypted password 1420 electronically along with a decryption request. It can be transmitted to the device 201, and the original password 1410 decrypted using the data encryption key by the security element 420 can be received in response. After authenticating the user using the original password 1410, the external electronic device 320 may delete the original password 1410 and continue to store only the encrypted password 1420.
  • FIG. 15 is a diagram illustrating safe storage of image data according to an embodiment.
  • the external electronic device 320 can capture images within the home network through a security camera and generate image data 1510. According to a designated period or user request, the external electronic device 320 may transmit the video data 1510 to the electronic device 201 along with an encryption request, and receive encrypted video data 1520 in response. there is. Encrypted image data 1520 may be generated by the security element 420 of the electronic device 201 using a data encryption key (eg, data encryption key 424) (eg, AES key). The external electronic device 320 may store the encrypted image data 1520 and delete the original image data 1510.
  • a data encryption key eg, data encryption key 424) (eg, AES key).
  • the external electronic device 320 may store the encrypted image data 1520 and delete the original image data 1510.
  • encrypted video data 1520 cannot be played normally without decryption.
  • the external electronic device 320 transmits the encrypted video data 1520 to the electronic device 201 along with a decryption request, and sends a security element in response.
  • Original image data 1510 decrypted using a data encryption key can be received at 420.
  • the external electronic device 320 can play the original video data 1510, delete the original video data 1510 after playback is completed or a specified time after playback is completed, and continue to only encrypt the video data 1520. You can save it.
  • Figure 16 shows a signal flow diagram for explaining a procedure for updating a session key according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
  • the external electronic device 320 in operation 1602, the external electronic device 320 generates a session key (e.g., session key 428) for the electronic device 201 (e.g., the session key generated in operation 820). It may be determined that a need exists and proceed to operation 1604. In one embodiment, the external electronic device 320 starts counting the specified validity time when generating each session key, deletes the previous session key when the validity time elapses, and then operates 1604 to generate a new session key. You can proceed with . In one embodiment, each session key may be stored in a volatile memory (not shown) of the external electronic device 320, and the external electronic device 320 performs operation 1604 to generate a new session key when the external electronic device 320 is powered on or booted. You can proceed with .
  • a session key e.g., session key 428, for the electronic device 201 (e.g., the session key generated in operation 820). It may be determined that a need exists and proceed to operation 1604. In one embodiment, the external electronic device 320
  • the external electronic device 320 transmits to the electronic device 201 (e.g., the application processor 410) a session key request containing unique information (e.g., a serial number) of the external electronic device 320. You can.
  • the application processor 410 determines that the external electronic device 320 has already been registered based on the unique information (for example, the data encryption key of the external electronic device 320 is stored in the security element 420). ), the external electronic device 320 can be authenticated.
  • the application processor 410 may transmit a session key request for the external electronic device 320 to the secure element 420.
  • the allocation request may include information (eg, serial number) identifying the external electronic device 320.
  • the security element 420 may generate first session key generation information for device authentication of the external electronic device 320.
  • the secure element 420 is configured to include a certificate ('CERT'), a key pair according to ECKA (e.g. eSK and ePK), a key pair according to RSA (e.g. SK and PK), or a first random number value.
  • the first session key creation information may include an encrypted digital signature and an encrypted CERT ('Sign (rand
  • the security element 420 may transmit the first session key creation information ('Sign (rand
  • the application processor 410 may transmit the first session key creation information ('Sign (rand
  • the external electronic device 320 may transmit a verification request including unique information (eg, serial number) of the external electronic device 320 to the server 310.
  • the server 310 identifies and verifies the external electronic device 320 using the unique information and transmits a verification key for the certificate to the external electronic device 320.
  • the external electronic device 320 may use the verification key to verify that the certificate and the digital signature are normal and generate a session key for session communication with the secure element 420.
  • the session key may be stored in the memory 530 (eg, volatile memory) of the external electronic device 320 for a designated validity period.
  • the external electronic device 320 may transmit second session key creation information to the application processor 410 of the electronic device 201.
  • the external electronic device 320 generates a second random number value ('rand2'), and combines the first random number value ('rand') obtained from the first session key generation information with the second random number value.
  • Encrypted random number information ('Enc (SSK, rand
  • the external electronic device 320 may generate the second session key generation information including the encrypted random number information and the ePK'.
  • the application processor 410 may convert the second session key creation information ('Enc (SSK, rand
  • the security element 420 may generate a session key (eg, session key 428) based on the second session key generation information.
  • the session key may be stored in a storage area (eg, secure storage area 422) of the electronic device 201 for a designated validity period.
  • the security element 420 may provide an encryption and/or decryption service to the external electronic device 320 using the session key, for example, as in the procedures of FIGS. 12 and/or 13 .
  • FIG. 17 is a signal flow diagram illustrating a procedure for generating an asymmetric key for server authentication according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
  • the external electronic device 320 may determine to generate an asymmetric key to be used to obtain server authentication and proceed to operation 1704.
  • a server e.g., server 310
  • the external electronic device 320 may use an asymmetric key to obtain authentication of the server 310. can be used.
  • the external electronic device 320 encrypts the asymmetric key request ('Asym key Request') by a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 820)
  • the first encrypted message ('Enc (SSK, Asym key Request)') can be generated.
  • the external electronic device 320 may transmit the first encrypted message ('Enc (SSK, Asym key Request)') to the application processor 410 of the electronic device 201.
  • the first encrypted message may be transmitted along with unique information of the external electronic device 320.
  • the application processor 410 may convert the first encrypted message (and unique information) into an APDU format and transmit it to the security element 420.
  • the security element 420 uses a pre-stored session key for the external electronic device 320 (e.g., the session key SSK generated in operation 826) (e.g., the session key 428) to By decoding the encrypted message, ⁇ asymmetric key request ⁇ included in the first encrypted message can be obtained.
  • the secure element 420 may generate an asymmetric key pair (e.g., SK and PK) in response to the asymmetric key request.
  • the security element 420 may generate the asymmetric key pair in a manner according to open secure socket layer (SSL).
  • SSL open secure socket layer
  • the security element 420 may store the SK in the secure storage area 422 and encrypt the PK with the session key to generate a second encrypted message ('Enc (SSK, PK)').
  • the security element 420 may transmit the second encrypted message to the application processor 410 in the format of an APDU.
  • the application processor 410 may transmit the second encrypted message to the external electronic device 320.
  • the external electronic device 320 can obtain the PK included in the second encrypted message by decrypting the second encrypted message using the session key.
  • the external electronic device 320 may perform an authentication procedure with the server 310 based on the PK.
  • the server 310 may generate the same asymmetric key pair using the same key generation algorithm used in the external electronic device 320 and authenticate the external electronic device 320 using the SK of the asymmetric key pair. there is.
  • the authentication procedure involves the external electronic device 320 transmitting the PK to the server 310 to create a cloud registry in the server 310 and storing the device information of the external electronic device 320 and the PK in the cloud.
  • JWT JSON Web token
  • an asymmetric key (eg, SK and PK) required for authentication of the external electronic device 320 can be generated in the security element 420 and the SK can be safely stored.
  • the disclosed embodiments utilize the security element 420 mounted on the electronic device 201 for an external electronic device not equipped with a security element (e.g., the external electronic device 320) to achieve high security level encryption/ Decryption service can be provided.
  • a security element e.g., the external electronic device 320
  • the data encryption key used to safely protect data and prevent leakage of personal information in an external electronic device 320 that can be implemented as an IoT device in a home network is stored in the security element 420 of the electronic device 201. It can be used and stored safely.
  • the electronic device 201 may include a communication circuit 290 and at least one processor 220 operatively connected to the communication circuit.
  • the at least one processor may be configured to receive an authentication request including unique information from an external electronic device 320 that does not support a security function through the communication circuit.
  • the at least one processor may be configured to allocate a secure storage area for the external electronic device based on the unique information.
  • the at least one processor may be configured to generate a data encryption key for the external electronic device and store it in the secure storage area.
  • the at least one processor may be configured to generate a session key for session communication with the external electronic device.
  • the at least one processor may be configured to provide an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
  • the session key has a designated validity time and may be stored in volatile memory within the electronic device.
  • the at least one processor includes an application processor (AP) 410 that communicates with the external electronic device, and the secure storage that communicates with the external electronic device through the application processor and provides a specified security level. area, and may include a security element (SE) 420 configured to generate the data encryption key for the external electronic device and store the data encryption key within the secure storage area.
  • AP application processor
  • SE security element
  • the at least one processor may be configured to receive a first encryption message including data and an encryption request from the external electronic device through the communication circuit.
  • the at least one processor may be configured to obtain the data and the encryption request by decrypting the first encrypted message using the session key by the security element.
  • the at least one processor may be configured to generate encrypted data by encrypting the data using the data encryption key by the security element.
  • the at least one processor may be configured to encrypt the encrypted data using the session key by the security element to generate a second encrypted message including the encrypted data.
  • the at least one processor may be configured to transmit the second encrypted message to the external electronic device through the communication circuit.
  • the at least one processor may be configured to generate at least one of a certificate, a first key pair, a second key pair, or a first random number value for device authentication of the external electronic device.
  • the at least one processor may be configured to encrypt the digital signature including the random value and the first public key of the first key pair and the certificate with a private key of the second key pair.
  • the at least one processor may be configured to transmit first session key generation information including the encrypted digital signature and the encrypted certificate to the external electronic device.
  • the at least one processor may be configured to receive second session key generation information including encrypted random number information and a second public key from the external electronic device.
  • the at least one processor may be configured to generate the session key based on the private key of the first key pair and the second public key.
  • the at least one processor may be configured to obtain the first random number value and the second random number value by decrypting the encrypted random number information using the session key.
  • the at least one processor may be configured to encrypt the second random number value using the session key.
  • the at least one processor may be configured to transmit session key verification information including the encrypted second random number value to the external electronic device.
  • the at least one processor may be configured to receive a session key request from the external electronic device.
  • the at least one processor may be configured to generate a new session key in response to the session key request.
  • the at least one processor may be configured to receive a first encryption message including an asymmetric key request from the external electronic device.
  • the at least one processor may be configured to obtain the asymmetric key request by decrypting the first encrypted message using the session key.
  • the at least one processor may be configured to generate an asymmetric key pair including a private key and a public key for server authentication in response to the asymmetric key request.
  • the at least one processor may be configured to generate a second encrypted message by encrypting the public key with the session key.
  • the at least one processor may be configured to transmit the second encrypted message to the external electronic device.
  • the electronic device 320 may include a communication interface 520 and at least one processor 510 operatively connected to the communication interface.
  • the at least one processor may be configured to transmit an authentication request including unique information to an external electronic device 201 supporting a security function through the communication interface.
  • the at least one processor may be configured to receive first session key creation information from the external electronic device.
  • the at least one processor may be configured to generate a session key for session communication with the external electronic device based on the first session key generation information.
  • the at least one processor may be configured to transmit second session key generation information for verification of the session key to the external electronic device.
  • the at least one processor may be configured to use an encryption and/or decryption service provided by the external electronic device based on the session key.
  • the session key has a designated validity time and may be stored in volatile memory within the electronic device.
  • the at least one processor may be configured to detect the occurrence of data requiring encryption.
  • the at least one processor may be configured to generate a first encrypted message by encrypting the data and the encryption request using the session key.
  • the at least one processor may be configured to transmit the first encrypted message to the external electronic device through the communication interface.
  • the at least one processor may be configured to receive a second encrypted message from the external electronic device.
  • the at least one processor may be configured to decrypt the second encrypted message using the session key to obtain encrypted data corresponding to the data.
  • a method of operating the electronic device 201 may include an operation 605 of receiving an authentication request including unique information from an external electronic device 320 that does not support the security function.
  • the method may include an operation 615 of allocating a secure storage area for the external electronic device based on the unique information.
  • the method may include an operation 615 of generating a data encryption key for the external electronic device and storing it in the secure storage area.
  • the method may include an operation 620 of generating a session key for session communication with the external electronic device.
  • the method may include an operation 645 of providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
  • the session key has a designated validity time and may be stored in volatile memory within the electronic device.
  • the electronic device includes an application processor (AP) that communicates with the external electronic device, and the secure storage area that communicates with the external electronic device through the application processor and provides a specified security level, and a security element (SE) configured to generate the data encryption key for the external electronic device and store the data encryption key in the secure storage area.
  • AP application processor
  • SE security element
  • the operation of providing the encryption service includes receiving a first encryption message including data and an encryption request from the external electronic device (1005), and using the session key by the security element to An operation (1010) of decrypting a first encryption message to obtain the data and the encryption request, and an operation (1015) of encrypting the data using the data encryption key by the security element to generate encrypted data, An operation of encrypting the encrypted data using the session key by the security element to generate a second encrypted message including encrypted data (1020), and transmitting the second encrypted message to the external electronic device ( 1025).
  • the operation 620 of generating the session key includes generating at least one of a certificate for device authentication of the external electronic device, a first key pair, a second key pair, or a first random number value; , encrypting the digital signature including the random value and the first public key of the first key pair and the certificate with the private key of the second key pair, and encrypting the encrypted digital signature and the encrypted certificate. Transmitting first session key generation information including encrypted random number information and a second public key from the external electronic device; Generating the session key based on the secret key of one key pair and the second public key, and obtaining the first random number value and the second random number value by decrypting the encrypted random number information using the session key. It may include an operation of encrypting the second random number value using the session key, and an operation of transmitting session key verification information including the encrypted second random number value to the external electronic device.
  • the method may include operations 1604 and 1608 of receiving a session key request from the external electronic device.
  • the method may include an operation 1610 of generating a new session key in response to the session key request.
  • the method may include operations 1706 and 1708 of receiving a first encryption message including an asymmetric key request from the external electronic device.
  • the method may include an operation 1710 of obtaining the asymmetric key request by decrypting the first encrypted message using the session key.
  • the method may include an operation 1712 of generating an asymmetric key pair including a private key and a public key for server authentication in response to the asymmetric key request.
  • the method may include an operation 1714 of encrypting the public key with the session key to generate a second encrypted message.
  • the method may include operations 1716 and 1718 of transmitting the second encrypted message to the external electronic device.
  • a method of operating the electronic device 320 may include an operation 705 of transmitting an authentication request including unique information to an external electronic device 201 that supports a security function.
  • the method may include an operation 715 of receiving first session key creation information from the external electronic device.
  • the method may include an operation 730 of generating a session key for session communication with the external electronic device based on the first session key generation information.
  • the method may include an operation 735 of transmitting second session key generation information for verification of the session key to the external electronic device.
  • the method may include an operation 745 of using an encryption and/or decryption service provided by the external electronic device based on the session key.
  • the session key has a designated validity time and may be stored in volatile memory within the electronic device.
  • the operation of using the encryption service includes an operation of detecting the occurrence of data requiring encryption (1105), and an operation of generating a first encryption message by encrypting the data and the encryption request using the session key (1110). ), an operation 1115 of transmitting the first encrypted message to the external electronic device, an operation 1120 of receiving a second encrypted message from the external electronic device, and the second encryption using the session key. It may include an operation 1125 of decrypting the message and obtaining encrypted data corresponding to the data.
  • Electronic devices 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.
  • 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.”
  • any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.
  • 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).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 236 or external memory 238) that can be read by a machine (e.g., electronic device 201). It may be implemented as software (e.g., program 240) including these.
  • a processor e.g., processor 220 of a device (e.g., electronic device 201) 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.
  • '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 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.
  • a machine-readable storage medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play Store TM
  • two user devices e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online.
  • 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.
  • 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.
  • one or more of the components or operations described above may be omitted, or one or more other components or operations may be added.
  • multiple components eg, modules or programs
  • 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. .
  • 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Storage Device Security (AREA)

Abstract

Disclosed is an electronic device comprising a communication circuit and at least one processor operatively connected to the communication circuit. The at least one processor may be configured to: receive, from an external electronic device that does not support a security function, an authentication request including unique information through the communication circuit; allocate, on the basis of the unique information, a security storage area for the external electronic device; generate a data encryption key for the external electronic device, and store the data encryption key in the security storage area; generate a session key for session communication with the external electronic device; and in response to a request from the external electronic device encrypted with the session key, provide an encryption and/or decryption service based on the data encryption key to the external electronic device.

Description

암호화 서비스를 제공하는 전자 장치 및 그 동작 방법Electronic device providing encryption service and method of operation thereof
본 개시는 암호화 서비스를 제공하는 전자 장치 및 그 동작 방법에 관한 것이다.This disclosure relates to an electronic device that provides encryption services and a method of operating the same.
무선 통신 기술의 발전으로 인하여 다양한 사물에 통신 기능이 포함되어 네트워크를 형성함으로써 편리하게 사물을 제어할 수 있게 되었다. 이와 같이 사물에 통신 기능을 포함하여 네트워크로 연결하는 것을 사물 인터넷(internet of things: IoT)이라 하며 실생활에 폭넓게 사용되고 있다. 이러한 IoT는 기존의 IT 기술과 다양한 산업 간의 융합 및 복합을 통하여 스마트 홈, 스마트 빌딩, 스마트 시티, 스마트 카 혹은 커넥티드 카, 스마트 그리드, 헬스 케어, 스마트 가전, 또는 첨단의료 서비스와 같은 다양한 분야에 응용될 수 있다. Due to the development of wireless communication technology, it has become possible to conveniently control objects by including communication functions in various objects and forming a network. In this way, connecting objects to a network including communication functions is called the Internet of Things (IoT) and is widely used in real life. This IoT is used in various fields such as smart home, smart building, smart city, smart car or connected car, smart grid, healthcare, smart home appliances, or advanced medical service through the convergence and combination of existing IT technology and various industries. It can be applied.
스마트 홈 환경의 경우 각종 IoT 장치들을 활용하여 사물 인터넷 기반의 다양한 서비스를 제공할 수 있다. 스마트폰과 같은 전자 장치는 IoT 장치들의 관리를 위한 어플리케이션을 실행할 수 있다.In the case of a smart home environment, various IoT-based services can be provided using various IoT devices. Electronic devices such as smartphones can run applications for managing IoT devices.
IoT 장치들이 점차 늘어나고 시장이 급속도로 확장됨에 따라 IoT 장치들을 위한 보안이 큰 이슈가 되고 있다. 통상적으로 이동 단말(mobile device) 또는 IoT 장치와 같은 전자 장치는 개인 정보(private information) 또는 암호화 키들(cryptographic keys)과 같은 보안 데이터(security data)를 사용하여 다양한 기능들을 수행할 수 있다. 전자 장치가 보안 데이터를 저장하고 있는 도중에 악의적인 사용자에 의해 공격받는 경우 보안 데이터는 탈취될 수 있다. As the number of IoT devices increases and the market expands rapidly, security for IoT devices is becoming a big issue. Typically, electronic devices such as mobile devices or IoT devices can perform various functions using security data such as private information or cryptographic keys. If an electronic device is attacked by a malicious user while storing secure data, the secure data may be stolen.
특히 스마트 홈 환경에서 사용되는 IoT 장치(예를 들어 도어락, 홈 CCTV 또는 월패드)는 매우 사적인 개인 데이터(예를 들어 도어락 출입 기록 또는 촬영된 영상)를 저장하거나 관리할 수 있고, 이러한 개인 데이터를 탈취당하는 것은 사용자에게 매우 큰 불안감과 불편함을 야기하게 될 수 있다. 그러나 많은 IoT 장치들은 사용자의 요구를 만족시킬 정도로 높은 수준의 보안 기능(예를 들어 암호화 키를 저장하기 위한 높은 보안 등급(assurance level)의 저장 영역)을 구비하고 있지 못할 수 있으며, 이에 따라 사용자의 개인 데이터가 탈취될 위험성이 높을 수 있다.In particular, IoT devices used in smart home environments (e.g. door locks, home CCTV, or wall pads) can store or manage very private personal data (e.g. door lock access records or captured images), and these personal data Being hijacked can cause great anxiety and discomfort to the user. However, many IoT devices may not have high-level security features (for example, a high assurance level storage area for storing encryption keys) to satisfy the user's needs, and thus There may be a high risk of personal data being stolen.
일 실시예에 따른 전자 장치는, 통신 회로 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서를 포함할 수 있다. 상기 적어도 하나의 프로세서는, 보안 기능을 지원하지 않는 외부 전자 장치로부터 상기 통신 회로를 통해 고유 정보를 포함하는 인증 요청을 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하도록 구성될 수 있다.An electronic device according to an embodiment may include a communication circuit and at least one processor operatively connected to the communication circuit. The at least one processor may be configured to receive an authentication request including unique information from an external electronic device that does not support a security function through the communication circuit. The at least one processor may be configured to allocate a secure storage area for the external electronic device based on the unique information. The at least one processor may be configured to generate a data encryption key for the external electronic device and store it in the secure storage area. The at least one processor may be configured to generate a session key for session communication with the external electronic device. The at least one processor may be configured to provide an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
일 실시예에 따른 전자 장치는, 통신 인터페이스 및 상기 통신 인터페이스와 작동적으로 연결되는 적어도 하나의 프로세서를 포함할 수 있다. 상기 적어도 하나의 프로세서는, 상기 통신 인터페이스를 통해 보안 기능을 지원하는 외부 전자 장치에게 고유 정보를 포함하는 인증 요청을 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하도록 구성될 수 있다.An electronic device according to an embodiment may include a communication interface and at least one processor operatively connected to the communication interface. The at least one processor may be configured to transmit an authentication request including unique information to an external electronic device supporting a security function through the communication interface. The at least one processor may be configured to receive first session key creation information from the external electronic device. The at least one processor may be configured to generate a session key for session communication with the external electronic device based on the first session key generation information. The at least one processor may be configured to transmit second session key generation information for verification of the session key to the external electronic device. The at least one processor may be configured to use an encryption and/or decryption service provided by the external electronic device based on the session key.
일 실시예에 따른 전자 장치의 동작 방법은, 보안 기능을 지원하지 않는 외부 전자 장치로부터 고유 정보를 포함하는 인증 요청을 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하는 동작을 포함할 수 있다. 상기 방법은, 상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하는 동작을 포함할 수 있다. 상기 방법은, 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하는 동작을 포함할 수 있다. 상기 방법은, 상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하는 동작을 포함할 수 있다.A method of operating an electronic device according to an embodiment may include receiving an authentication request including unique information from an external electronic device that does not support a security function. The method may include allocating a secure storage area for the external electronic device based on the unique information. The method may include generating a data encryption key for the external electronic device and storing it in the secure storage area. The method may include generating a session key for session communication with the external electronic device. The method may include providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
일 실시예에 따른 전자 장치의 동작 방법은, 보안 기능을 지원하는 외부 전자 장치에게 고유 정보를 포함하는 인증 요청을 전송하는 동작을 포함할 수 있다. 상기 방법은, 상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하는 동작을 포함할 수 있다. 상기 방법은, 상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하는 동작을 포함할 수 있다. 상기 방법은, 상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하는 동작을 포함할 수 있다. 상기 방법은, 상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하는 동작을 포함할 수 있다.A method of operating an electronic device according to an embodiment may include transmitting an authentication request including unique information to an external electronic device that supports a security function. The method may include receiving first session key creation information from the external electronic device. The method may include generating a session key for session communication with the external electronic device based on the first session key generation information. The method may include transmitting second session key generation information for verification of the session key to the external electronic device. The method may include using an encryption and/or decryption service provided by the external electronic device based on the session key.
일 실시예에 따라 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체로서, 상기 하나 이상의 프로그램은 전자 장치의 적어도 하나의 프로세서에 의해 실행될 때 상기 전자 장치가: 보안 기능을 지원하지 않는 외부 전자 장치로부터 고유 정보를 포함하는 인증 요청을 수신하고, 상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하고, 상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하고, 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하고, 상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하도록 구성하는 명령어들을 포함할 수 있다.According to one embodiment, a non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by at least one processor of an electronic device, causes the electronic device to: Receive an authentication request containing unique information from, allocate a secure storage area for the external electronic device based on the unique information, generate a data encryption key for the external electronic device and store it in the secure storage area, and , Generating a session key for session communication with the external electronic device, and providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key. It may contain commands that configure it to do so.
일 실시예에 따라 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체로서, 상기 하나 이상의 프로그램은 전자 장치의 적어도 하나의 프로세서에 의해 실행될 때 상기 전자 장치가: 보안 기능을 지원하는 외부 전자 장치에게 고유 정보를 포함하는 인증 요청을 전송하고, 상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하고, 상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하고, 상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하고, 상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하도록 구성하는 명령어들을 포함할 수 있다.According to one embodiment, a non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by at least one processor of an electronic device, cause the electronic device to: Transmit an authentication request containing unique information, receive first session key generation information from the external electronic device, and generate a session key for session communication with the external electronic device based on the first session key generation information. and transmitting second session key creation information for verification of the session key to the external electronic device, and configuring to use an encryption and/or decryption service provided by the external electronic device based on the session key. may include.
도 1은 다양한 실시예에 따른 IoT(internet of things) 시스템을 도시한다.1 illustrates an internet of things (IoT) system according to various embodiments.
도 2는, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.2 is a block diagram of an electronic device in a network environment, according to various embodiments.
도 3은 일 실시예에 따른 IoT 네트워크를 설명하기 위한 도면이다.Figure 3 is a diagram for explaining an IoT network according to an embodiment.
도 4는 일 실시예에 따른 전자 장치의 구성을 설명하기 위한 블록도이다.Figure 4 is a block diagram for explaining the configuration of an electronic device according to an embodiment.
도 5는 일 실시예에 따른 외부 전자 장치의 구성을 설명하기 위한 블록도이다.Figure 5 is a block diagram for explaining the configuration of an external electronic device according to an embodiment.
도 6은 일 실시예에 따라 전자 장치가 암호화 서비스를 제공하는 절차를 설명하기 위한 흐름도이다.FIG. 6 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment.
도 7은 일 실시예에 따라 외부 전자 장치가 암호화 서비스를 제공하는 절차를 설명하기 위한 흐름도이다.FIG. 7 is a flowchart illustrating a procedure in which an external electronic device provides an encryption service according to an embodiment.
도 8은 일 실시예에 따라 장치 인증 및 세션 키 생성을 수행하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다.Figure 8 shows a signal flow diagram for explaining a procedure for performing device authentication and session key generation according to one embodiment.
도 9는 일 실시예에 따라 전자 장치에서 보안 엘리먼트의 사용을 확인하는 사용자 인터페이스 화면의 일 예를 나타낸 것이다.Figure 9 shows an example of a user interface screen that confirms the use of a security element in an electronic device, according to an embodiment.
도 10은 일 실시예에 따라 전자 장치가 암호화 서비스를 제공하는 절차를 설명하기 위한 흐름도이다.FIG. 10 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment.
도 11은 일 실시예에 따라 외부 전자 장치가 암호화 서비스를 이용하는 절차를 설명하기 위한 흐름도이다.FIG. 11 is a flowchart illustrating a procedure in which an external electronic device uses an encryption service according to an embodiment.
도 12는 일 실시예에 따라 암호화 서비스를 제공하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다.Figure 12 shows a signal flow diagram to explain a procedure for providing encryption services according to an embodiment.
도 13은 일 실시예에 따라 복호화 서비스를 제공하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다.Figure 13 shows a signal flow diagram to explain a procedure for providing a decryption service according to an embodiment.
도 14는 일 실시예에 따라 패스워드의 안전한 저장을 설명하기 위한 도면이다.FIG. 14 is a diagram illustrating safe storage of a password according to an embodiment.
도 15는 일 실시예에 따라 영상 데이터의 안전한 저장을 설명하기 위한 도면이다.FIG. 15 is a diagram illustrating safe storage of image data according to an embodiment.
도 16은 일 실시예에 따라 세션 키를 갱신하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다.Figure 16 shows a signal flow diagram for explaining a procedure for updating a session key according to one embodiment.
도 17은 일 실시예에 따라 서버 인증을 위한 비대칭 키를 생성하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다. FIG. 17 is a signal flow diagram illustrating a procedure for generating an asymmetric key for server authentication according to an embodiment.
도 1은 다양한 실시예에 따른 IoT(internet of things) 시스템(100)을 도시한다. 한편, 도 1의 구성 요소 중 적어도 일부는 생략될 수도 있으며, 도시되지 않은 구성 요소가 더 포함되도록 구현될 수도 있다.1 illustrates an internet of things (IoT) system 100 according to various embodiments. Meanwhile, at least some of the components in FIG. 1 may be omitted, and may be implemented to include additional components not shown.
도 1을 참조하면, 일 실시예에 따른 IoT 시스템(100)은, 데이터 네트워크(116 또는 146)에 연결 가능한 복수의 전자 장치들을 포함한다. 예를 들어, IoT 시스템(100)은 제 1 IoT 서버(110), 제 1 노드(node)(120), 보이스 어시스턴트(voice assistance) 서버(130), 제 2 IoT 서버(140), 제 2 노드(150), 또는 디바이스들(121,122,123,124,125,136,137,151,152,153) 중 적어도 하나를 포함할 수 있다. Referring to FIG. 1, the IoT system 100 according to one embodiment includes a plurality of electronic devices connectable to the data network 116 or 146. For example, the IoT system 100 includes a first IoT server 110, a first node 120, a voice assistance server 130, a second IoT server 140, and a second node. 150, or may include at least one of the devices 121, 122, 123, 124, 125, 136, 137, 151, 152, and 153.
일 실시예에 따라서, 제 1 IoT 서버(110)는, 통신 인터페이스(111), 프로세서(112), 또는 저장부(113) 중 적어도 하나를 포함할 수 있다. 제 2 IoT 서버(140)는, 통신 인터페이스(141), 프로세서(142), 또는 저장부(143) 중 적어도 하나를 포함할 수 있다. 본 문서에서의 "IoT 서버"는, 예를 들어 데이터 네트워크(예: 데이터 네트워크(116) 또는 데이터 네트워크(146))에 기반하여, 중계 디바이스(예: 제 1 노드(120) 또는 제 2 노드(150))를 통하거나, 또는 중계 디바이스 없이 직접적으로(directly), 하나 또는 그 이상의 디바이스들(예: 디바이스들(121,122,123,124,125,151,152,153))을 원격으로 제어 및/또는 모니터링할 수 있다. 여기에서의 "디바이스"는, 예를 들어 가택, 사무실, 공장, 빌딩, 외부 지점, 또는 다른 타입의 부지들과 같은 로컬 환경 내에 배치되는(또는, 위치하는) 센서, 가전, 사무용 전자 디바이스, 또는 공정 수행을 위한 디바이스로, 그 종류에는 제한이 없다. 제어 명령을 수신하여 제어 명령에 대응하는 동작을 수행하는 디바이스를 "타겟 디바이스"로 명명할 수 있다. IoT 서버는, 복수의 디바이스들 중 타겟 디바이스를 선택하고 제어 명령을 제공하는 점에서, 중앙 서버(central server)로 명명될 수도 있다.According to one embodiment, the first IoT server 110 may include at least one of a communication interface 111, a processor 112, or a storage unit 113. The second IoT server 140 may include at least one of a communication interface 141, a processor 142, or a storage unit 143. “IoT server” in this document refers to a relay device (e.g., first node 120 or second node (120), for example, based on a data network (e.g., data network 116 or data network 146). One or more devices (e.g., devices 121, 122, 123, 124, 125, 151, 152, 153) can be remotely controlled and/or monitored via 150)) or directly without a relay device. “Device” herein refers to a sensor, appliance, office electronic device, or It is a device for performing processes, and there are no restrictions on its type. A device that receives a control command and performs an operation corresponding to the control command may be named a “target device.” The IoT server may be called a central server in that it selects a target device among a plurality of devices and provides control commands.
일 실시예에 따라서, 제 1 IoT 서버(110)는, 데이터 네트워크(116)를 통하여 디바이스들(121,122,123)과 통신을 수행할 수 있다. 데이터 네트워크(116)는, 예를 들어 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신을 위한 네트워크를 의미할 수 있으며, 또는 셀룰러 네트워크를 포함할 수도 있다. According to one embodiment, the first IoT server 110 may communicate with the devices 121, 122, and 123 through the data network 116. Data network 116 may refer to a network for long-distance communication, such as the Internet or a computer network (e.g., LAN or WAN), or may include a cellular network.
일 실시예에 따라서, 제 1 IoT 서버(110)는, 통신 인터페이스(111)를 통하여 데이터 네트워크(116)에 연결될 수 있다. 통신 인터페이스(111)는, 데이터 네트워크(116)의 통신을 지원하기 위한 통신 디바이스(또는, 통신 모듈)를 포함할 수 있으며, 하나의 구성 요소(예: 단일 칩)로 통합되거나, 또는 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 제 1 IoT 서버(110)는, 제 1 노드(120)를 통하여 디바이스들(121,122,123)와 통신을 수행할 수 있다. 제 1 노드(120)는, 제 1 IoT 서버(110)로부터의 데이터를 데이터 네트워크(116)를 통하여 수신하고, 수신한 데이터를 디바이스들(121,122,123) 중 적어도 일부로 송신할 수 있다. 또는, 제 1 노드(120)는, 디바이스들(121,122,123) 중 적어도 일부로부터 데이터를 수신하고, 수신한 데이터를 데이터 네트워크(116)를 통하여 제 1 IoT 서버(110)로 송신할 수 있다. 제 1 노드(120)는, 데이터 네트워크(116) 및 디바이스들(121,122,123) 사이의 브릿지(bridge)로서 기능할 수 있다. 한편, 도 1에서는 제 1 노드(120)가 하나인 것과 같이 도시되어 있지만 이는 단순히 예시적인 것으로, 그 숫자에는 제한이 없다. According to one embodiment, the first IoT server 110 may be connected to the data network 116 through the communication interface 111. The communication interface 111 may include a communication device (or communication module) to support communication of the data network 116, and may be integrated into one component (e.g., a single chip), or may be integrated into a plurality of separate components. It can be implemented with components (e.g., multiple chips). The first IoT server 110 may communicate with the devices 121, 122, and 123 through the first node 120. The first node 120 may receive data from the first IoT server 110 through the data network 116 and transmit the received data to at least some of the devices 121, 122, and 123. Alternatively, the first node 120 may receive data from at least some of the devices 121, 122, and 123, and transmit the received data to the first IoT server 110 through the data network 116. The first node 120 may function as a bridge between the data network 116 and the devices 121, 122, and 123. Meanwhile, in FIG. 1, it is shown as if there is only one first node 120, but this is simply an example and there is no limit to the number.
본 문서에서의 "노드"는, 엣지 컴퓨팅 시스템(edge computing system)일 수 있거나, 또는 허브(hub) 디바이스일 수 있다. 일 실시예에 따라서, 제 1 노드(120)는, 데이터 네트워크(116)의 유선 및/또는 무선의 통신을 지원하며, 아울러 디바이스들(121,122,123)과의 유선 및/또는 무선의 통신을 지원할 수 있다. 예를 들어, 제 1 노드(120)는, 블루투스, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, INSETEON, X10 또는 IrDA(infrared data association 중 적어도 하나와 같은 근거리 통신 네트워크를 통하여 디바이스들(121,122,123)과 연결될 수 있으나, 통신 종류에는 제한이 없다. 제 1 노드(120)는, 예를 들어 가택, 사무실, 공장, 빌딩, 외부 지점, 또는 다른 타입의 부지들과 같은 환경 내에 배치(또는, 위치)될 수 있다. 이에 따라, 디바이스들(121,122,123)은, 제 1 IoT 서버(110)에 의하여 제공되는 서비스에 의하여 모니터링 및/또는 제어될 수 있으며, 디바이스들(121,122,123)은 제 1 IoT 서버(110)로의 직접 연결을 위한 완전한 네트워크 통신(예: 인터넷 통신)의 캐퍼빌리티(capability)를 갖출 것이 요구되지 않을 수 있다. 디바이스들(121,122,123)은, 예를 들어 전등 스위치, 근접 센서, 온도 센서 등으로 가택 환경 내의 전자 장치로 구현된 것과 같이 도시되었지만, 이는 예시적인 것으로 제한은 없다.A “node” in this document may be an edge computing system, or may be a hub device. According to one embodiment, the first node 120 supports wired and/or wireless communication of the data network 116, and may also support wired and/or wireless communication with the devices 121, 122, and 123. . For example, the first node 120 may be configured to communicate via a short-range communication network such as at least one of Bluetooth, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, INSETEON, X10, or IrDA (infrared data association). It can be connected to devices 121, 122, and 123, but there is no limitation on the type of communication. The first node 120 is placed in an environment such as a home, office, factory, building, external location, or other types of premises. (or, location). Accordingly, the devices 121, 122, and 123 may be monitored and/or controlled by the service provided by the first IoT server 110, and the devices 121, 122, and 123 may be connected to the first IoT server 110. It may not be required to have the capability of complete network communication (e.g., Internet communication) for direct connection to the IoT server 110. Devices 121, 122, and 123 may include, for example, a light switch, a proximity sensor, Although it is shown as being implemented as an electronic device in a home environment, such as a temperature sensor, this is illustrative and is not limiting.
일 실시예에 따라서, 제 1 IoT 서버(110)는, 디바이스들(124,125)과의 직접 통신(direct communication)을 지원할 수도 있다. 여기에서, "직접 통신"은, 예를 들어 제 1 노드(120)와 같은 중계 디바이스를 통하지 않은 통신으로, 예를 들어 셀룰러 통신 네트워크 및/또는 데이터 네트워크를 통한 통신을 의미할 수 있다. According to one embodiment, the first IoT server 110 may support direct communication with the devices 124 and 125. Here, “direct communication” may mean communication that does not go through a relay device such as the first node 120, for example, communication through a cellular communication network and/or a data network.
일 실시예에 따라서, 제 1 IoT 서버(110)는, 디바이스들(121,122,123,124,125) 중 적어도 일부로 제어 명령을 송신할 수 있다. 여기에서, "제어 명령"은, 제어 가능한 디바이스가 특정 동작을 수행하도록 야기하는 데이터를 의미할 수 있으며, 특정 동작은 디바이스에 의하여 수행되는 동작으로, 정보의 출력, 정보의 센싱, 정보의 보고, 정보의 관리(예: 삭제, 또는 생성)를 포함할 수 있으며, 그 종류에는 제한이 없다. 예를 들어, 프로세서(112)는, 외부(예: 보이스 어시스턴트 서버(130), 제 2 IoT 서버(140), 외부 시스템(160), 또는 디바이스들(121,122,123,124,125) 중 적어도 일부)로부터 제어 명령을 생성하기 위한 정보(또는, 요청)를 획득하고, 획득한 정보에 기반하여 제어 명령을 생성할 수 있다. 또는, 프로세서(112)는, 디바이스들(121,122,123,124,125) 중 적어도 일부의 모니터링 결과가 지정된 조건을 만족함에 기반하여 제어 명령을 생성할 수 있다. 프로세서(112)는, 제어 명령을, 타겟 디바이스로 송신하도록 통신 인터페이스(111)를 제어할 수 있다.According to one embodiment, the first IoT server 110 may transmit a control command to at least some of the devices 121, 122, 123, 124, and 125. Here, “control command” may mean data that causes a controllable device to perform a specific operation, and the specific operation is an operation performed by the device, such as outputting information, sensing information, reporting information, It may include management of information (e.g. deletion or creation), and there is no limit to the type. For example, the processor 112 generates a control command from an external source (e.g., the voice assistant server 130, the second IoT server 140, the external system 160, or at least some of the devices 121, 122, 123, 124, and 125). Information (or request) to do so may be obtained, and a control command may be generated based on the obtained information. Alternatively, the processor 112 may generate a control command based on the monitoring results of at least some of the devices 121, 122, 123, 124, and 125 satisfying specified conditions. The processor 112 may control the communication interface 111 to transmit control commands to the target device.
일 실시예에 따라서, 프로세서(112), 또는 프로세서(132), 프로세서(142)는, CPU(central processing unit), DSP(digital signal processor), AP(application processor), CP(communication processor) 등과 같은 범용 프로세서, GPU(graphical processing unit), VPU(vision processing Unit)와 같은 그래픽 전용 프로세서 또는 NPU(neural processing unit)와 같은 인공 지능 전용 프로세서 중 하나 이상의 조합으로 구현될 수 있다. 상술한 처리 유닛은 단순히 예시적인 것으로, 프로세서(112)는, 예를 들어 메모리(113)에 저장된 인스트럭션을 실행하여, 실행된 결과를 출력할 수 있는 연산 수단이라면 제한이 없음을 당업자는 이해할 것이다. According to one embodiment, the processor 112, or the processor 132, or the processor 142 is a central processing unit (CPU), a digital signal processor (DSP), an application processor (AP), a communication processor (CP), etc. It may be implemented as a combination of one or more of a general-purpose processor, a graphics-specific processor such as a graphical processing unit (GPU), a vision processing unit (VPU), or an artificial intelligence-specific processor such as a neural processing unit (NPU). Those skilled in the art will understand that the above-described processing unit is merely an example, and that the processor 112 is not limited to any computational means that can, for example, execute instructions stored in the memory 113 and output the executed result.
일 실시예에 따라서, 프로세서(112)는, API(114)에 기반하여 웹-기반 인터페이스를 구성하거나, 또는 제 1 IoT 서버(110)에 의하여 관리되는 리소스(resource)를 외부에 노출시킬 수 있다. 웹-기반 인터페이스는, 예를 들어 제 1 IoT 서버(110) 및 외부 웹 서비스 사이의 통신을 지원할 수 있다. 프로세서(112)는, 예를 들어 외부 시스템(160)으로 하여금 디바이스들(121,122,123)의 제어 및/또는 억세스를 허용할 수도 있다. 외부 시스템(160)은, 예를 들어 시스템(100)과 연관이 없거나, 또는 일부가 아닌 독립적인 시스템일 수 있다. 외부 시스템(160)은, 예를 들어 외부 서버이거나, 또는 웹 사이트일 수 있다. 하지만, 외부 시스템(160)으로부터의 디바이스들(121,122,123), 또는 제 1 IoT 서버(110)의 리소스로의 억세스에 대한 보안이 요구된다. 일 실시예에 따라서, 프로세서(112)는, 자동화 어플리케이션은 API(114)에 기반한 API 엔드 포인트(예: URL(universal resource locator))을 외부에 노출할 수 있다. 상술한 바에 따라서, 제 1 IoT 서버(110)는, 제어 명령을 디바이스들(121,122,123) 중 타겟 디바이스에게 전달할 수 있다. 한편, 제 2 IoT 서버(140)의 통신 인터페이스(141), 프로세서(142), 저장부(143)의 API(144), 데이터베이스(145)에 대한 설명은, 제 1 IoT 서버(110)의 통신 인터페이스(111), 프로세서(112), 저장부(113)의 API(114), 데이터베이스(115)에 대한 설명과 실질적으로 동일할 수 있다. 아울러, 제 2 노드(150)에 대한 설명은, 제 1 노드(120)에 대한 설명과 실질적으로 동일할 수 있다. 제 2 IoT 서버(140)는, 제어 명령을 디바이스들(151,152,153) 중 타겟 디바이스에게 전달할 수 있다. 제 1 IoT 서버(110) 및 제 2 IoT 서버(140)는, 하나의 실시예에서는 동일한 서비스 제공자에 의하여 운영될 수 있으나, 다른 실시예에서는 상이한 서비스 제공자들에 의하여 각각 운영될 수도 있다. According to one embodiment, the processor 112 may configure a web-based interface based on the API 114 or expose resources managed by the first IoT server 110 to the outside. . The web-based interface may support communication between the first IoT server 110 and an external web service, for example. The processor 112 may, for example, allow the external system 160 to control and/or access the devices 121, 122, and 123. External system 160 may be, for example, an independent system that is not related to or part of system 100. External system 160 may be, for example, an external server or a website. However, security is required for access to the devices 121, 122, and 123 from the external system 160 or the resources of the first IoT server 110. According to one embodiment, the processor 112 and the automation application may expose an API endpoint (eg, a universal resource locator (URL)) based on the API 114 to the outside. According to the above description, the first IoT server 110 may transmit a control command to the target device among the devices 121, 122, and 123. Meanwhile, the description of the communication interface 141, the processor 142, the API 144 of the storage unit 143, and the database 145 of the second IoT server 140 are described in detail in the communication of the first IoT server 110. It may be substantially the same as the description of the interface 111, the processor 112, the API 114 of the storage unit 113, and the database 115. In addition, the description of the second node 150 may be substantially the same as the description of the first node 120. The second IoT server 140 may transmit a control command to a target device among the devices 151, 152, and 153. The first IoT server 110 and the second IoT server 140 may be operated by the same service provider in one embodiment, but may be operated by different service providers in another embodiment.
일 실시예에 따라서, 보이스 어시스턴트 서버(130)는, 데이터 네트워크(116)를 통하여 제 1 IoT 서버(110)와 데이터를 송수신할 수 있다. 일 실시예에 따른 보이스 어시스턴트 서버(130)는, 통신 인터페이스(131), 프로세서(132), 또는 저장부(133) 중 적어도 하나를 포함할 수 있다. 통신 인터페이스(131)는, 데이터 네트워크(미도시) 및/또는 셀룰러 네트워크(미도시)를 통하여 스마트 폰(136) 또는 AI 스피커(137)와 통신을 수행할 수 있다. 스마트 폰(136) 또는 AI 스피커(137)는 마이크를 포함할 수 있으며, 사용자 음성(user voice)을 획득하여 음성 신호로 변환하여, 음성 신호를 보이스 어시스턴트 서버(130)로 송신할 수 있다. 프로세서(132)는, 통신 인터페이스(131)를 통하여 스마트 폰(136) 또는 AI 스피커(137)로부터 음성 신호를 수신할 수 있다. 프로세서(132)는, 수신한 음성 신호를 저장된 모델(134)에 기반하여 처리할 수 있다. 프로세서(132)는, 데이터베이스(135)에 저장된 정보에 기반하여, 처리 결과를 이용하여 제어 명령을 생성(또는, 확인)할 수 있다. 일 실시예에 따라서, 저장부(113,133,143)는, 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM, Random Access Memory) SRAM(Static Random Access Memory), 롬(ROM, Read-Only Memory), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 비 일시적(non-transitory) 저장매체를 포함할 수 있으며, 그 종류에는 제한이 없다.According to one embodiment, the voice assistant server 130 may transmit and receive data with the first IoT server 110 through the data network 116. The voice assistant server 130 according to one embodiment may include at least one of a communication interface 131, a processor 132, and a storage unit 133. The communication interface 131 may communicate with the smart phone 136 or the AI speaker 137 through a data network (not shown) and/or a cellular network (not shown). The smart phone 136 or the AI speaker 137 may include a microphone, acquire a user voice, convert it into a voice signal, and transmit the voice signal to the voice assistant server 130. The processor 132 may receive a voice signal from the smart phone 136 or the AI speaker 137 through the communication interface 131. The processor 132 may process the received voice signal based on the stored model 134. The processor 132 may generate (or confirm) a control command using the processing result based on information stored in the database 135. According to one embodiment, the storage units 113, 133, and 143 include flash memory type, hard disk type, multimedia card micro type, and card type memory (e.g. SD or It may include at least one type of non-transitory storage medium among memory, magnetic memory, magnetic disk, and optical disk, and there is no limit to its type.
다양한 실시예들에서 제1 IoT 서버(110)와 통신하는 적어도 하나의 디바이스(예를 들어 디바이스(124))는 네트워크 환경 내의 스마트폰(일 예로서 도 2의 전자 장치(201))일 수 있다. In various embodiments, at least one device (e.g., device 124) communicating with the first IoT server 110 may be a smartphone (e.g., electronic device 201 of FIG. 2) in a network environment. .
도 2은, 다양한 실시예들에 따른, 네트워크 환경(200) 내의 전자 장치(201)의 블록도이다. FIG. 2 is a block diagram of an electronic device 201 in a network environment 200, according to various embodiments.
도 2을 참조하면, 네트워크 환경(200)에서 전자 장치(201)는 제 1 네트워크(298)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(202)와 통신하거나, 또는 제 2 네트워크(299)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(204) 또는 서버(208) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(201)는 서버(208)를 통하여 전자 장치(204)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(201)는 프로세서(220), 메모리(230), 입력 모듈(250), 음향 출력 모듈(255), 디스플레이 모듈(260), 오디오 모듈(270), 센서 모듈(276), 인터페이스(277), 연결 단자(278), 햅틱 모듈(279), 카메라 모듈(280), 전력 관리 모듈(288), 배터리(289), 통신 모듈(290), 가입자 식별 모듈(296), 또는 안테나 모듈(297)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(201)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(278))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(276), 카메라 모듈(280), 또는 안테나 모듈(297))은 하나의 구성요소(예: 디스플레이 모듈(260))로 통합될 수 있다.Referring to FIG. 2, in the network environment 200, the electronic device 201 communicates with the electronic device 202 through the first network 298 (e.g., a short-range wireless communication network) or through the second network 299. It is possible to communicate with at least one of the electronic device 204 or the server 208 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 201 may communicate with the electronic device 204 through the server 208. According to one embodiment, the electronic device 201 includes a processor 220, a memory 230, an input module 250, an audio output module 255, a display module 260, an audio module 270, and a sensor module ( 276), interface 277, connection terminal 278, haptic module 279, camera module 280, power management module 288, battery 289, communication module 290, subscriber identification module 296 , or may include an antenna module 297. In some embodiments, at least one of these components (eg, the connection terminal 278) may be omitted, or one or more other components may be added to the electronic device 201. In some embodiments, some of these components (e.g., sensor module 276, camera module 280, or antenna module 297) are integrated into one component (e.g., display module 260). It can be.
프로세서(220)는, 예를 들면, 소프트웨어(예: 프로그램(240))를 실행하여 프로세서(220)에 연결된 전자 장치(201)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(220)는 다른 구성요소(예: 센서 모듈(276) 또는 통신 모듈(290))로부터 수신된 명령 또는 데이터를 휘발성 메모리(232)에 저장하고, 휘발성 메모리(232)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(234)에 저장할 수 있다. 일실시예에 따르면, 프로세서(220)는 메인 프로세서(221)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(223)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(201)가 메인 프로세서(221) 및 보조 프로세서(223)를 포함하는 경우, 보조 프로세서(223)는 메인 프로세서(221)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(223)는 메인 프로세서(221)와 별개로, 또는 그 일부로서 구현될 수 있다. Processor 220, for example, executes software (e.g., program 240) to operate at least one other component (e.g., hardware or software component) of electronic device 201 connected to processor 220. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of the data processing or computation, the processor 220 stores instructions or data received from another component (e.g., the sensor module 276 or the communication module 290) in the volatile memory 232. The commands or data stored in the volatile memory 232 can be processed, and the resulting data can be stored in the non-volatile memory 234. According to one embodiment, the processor 220 includes a main processor 221 (e.g., a central processing unit or an application processor) or an auxiliary processor 223 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 201 includes a main processor 221 and a auxiliary processor 223, the auxiliary processor 223 may be set to use lower power than the main processor 221 or be specialized for a designated function. You can. The auxiliary processor 223 may be implemented separately from the main processor 221 or as part of it.
보조 프로세서(223)는, 예를 들면, 메인 프로세서(221)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(221)를 대신하여, 또는 메인 프로세서(221)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(221)와 함께, 전자 장치(201)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(260), 센서 모듈(276), 또는 통신 모듈(290))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(223)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(280) 또는 통신 모듈(290))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(223)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(201) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(208))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(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 223 may, for example, act on behalf of the main processor 221 while the main processor 221 is in an inactive (e.g., sleep) state, or while the main processor 221 is in an active (e.g., application execution) state. ), together with the main processor 221, at least one of the components of the electronic device 201 (e.g., the display module 260, the sensor module 276, or the communication module 290) At least some of the functions or states related to can be controlled. According to one embodiment, coprocessor 223 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 280 or communication module 290). there is. According to one embodiment, the auxiliary processor 223 (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 201 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 208). 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.
메모리(230)는, 전자 장치(201)의 적어도 하나의 구성요소(예: 프로세서(220) 또는 센서 모듈(276))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(240)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(230)는, 휘발성 메모리(232) 또는 비휘발성 메모리(234)를 포함할 수 있다. The memory 230 may store various data used by at least one component (eg, the processor 220 or the sensor module 276) of the electronic device 201. Data may include, for example, input data or output data for software (e.g., program 240) and instructions related thereto. Memory 230 may include volatile memory 232 or non-volatile memory 234.
프로그램(240)은 메모리(230)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(242), 미들 웨어(244) 또는 어플리케이션(246)을 포함할 수 있다. The program 240 may be stored as software in the memory 230 and may include, for example, an operating system 242, middleware 244, or application 246.
입력 모듈(250)은, 전자 장치(201)의 구성요소(예: 프로세서(220))에 사용될 명령 또는 데이터를 전자 장치(201)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(250)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 250 may receive commands or data to be used in a component of the electronic device 201 (e.g., the processor 220) from outside the electronic device 201 (e.g., a user). The input module 250 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).
음향 출력 모듈(255)은 음향 신호를 전자 장치(201)의 외부로 출력할 수 있다. 음향 출력 모듈(255)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 255 may output sound signals to the outside of the electronic device 201. The sound output module 255 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.
디스플레이 모듈(260)은 전자 장치(201)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(260)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(260)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 260 can visually provide information to the outside of the electronic device 201 (eg, a user). The display module 260 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 260 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.
오디오 모듈(270)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(270)은, 입력 모듈(250)을 통해 소리를 획득하거나, 음향 출력 모듈(255), 또는 전자 장치(201)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(202))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 270 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 270 acquires sound through the input module 250, the sound output module 255, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 201). Sound may be output through an electronic device 202 (e.g., speaker or headphone).
센서 모듈(276)은 전자 장치(201)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(276)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 276 detects the operating state (e.g., power or temperature) of the electronic device 201 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 276 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.
인터페이스(277)는 전자 장치(201)가 외부 전자 장치(예: 전자 장치(202))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(277)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 277 may support one or more designated protocols that can be used to connect the electronic device 201 directly or wirelessly with an external electronic device (eg, the electronic device 202). According to one embodiment, the interface 277 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
연결 단자(278)는, 그를 통해서 전자 장치(201)가 외부 전자 장치(예: 전자 장치(202))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(278)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 278 may include a connector through which the electronic device 201 can be physically connected to an external electronic device (eg, the electronic device 202). According to one embodiment, the connection terminal 278 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
햅틱 모듈(279)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(279)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 279 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 279 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
카메라 모듈(280)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(280)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 280 can capture still images and moving images. According to one embodiment, the camera module 280 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(288)은 전자 장치(201)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(288)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 288 can manage power supplied to the electronic device 201. According to one embodiment, the power management module 288 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).
배터리(289)는 전자 장치(201)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(289)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다. Battery 289 may supply power to at least one component of electronic device 201. According to one embodiment, the battery 289 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
통신 모듈(290)은 전자 장치(201)와 외부 전자 장치(예: 전자 장치(202), 전자 장치(204), 또는 서버(208)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(290)은 프로세서(220)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(290)은 무선 통신 모듈(292)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(294)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(298)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(299)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(204)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(292)은 가입자 식별 모듈(296)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(298) 또는 제 2 네트워크(299)와 같은 통신 네트워크 내에서 전자 장치(201)를 확인 또는 인증할 수 있다. Communication module 290 provides a direct (e.g., wired) communication channel or wireless communication channel between electronic device 201 and an external electronic device (e.g., electronic device 202, electronic device 204, or server 208). It can support establishment and communication through established communication channels. Communication module 290 operates independently of processor 220 (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 290 is a wireless communication module 292 (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 294 (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 298 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 299 (e.g., legacy It may communicate with an external electronic device 204 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 292 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 296 within a communication network such as the first network 298 or the second network 299. The electronic device 201 can be confirmed or authenticated.
무선 통신 모듈(292)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(292)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(292)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(292)은 전자 장치(201), 외부 전자 장치(예: 전자 장치(204)) 또는 네트워크 시스템(예: 제 2 네트워크(299))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(292)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 292 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 292 may support high frequency bands (e.g., mmWave bands), for example, to achieve high data rates. The wireless communication module 292 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 292 may support various requirements specified in the electronic device 201, an external electronic device (e.g., electronic device 204), or a network system (e.g., second network 299). According to one embodiment, the wireless communication module 292 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.
안테나 모듈(297)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(297)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(297)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(298) 또는 제 2 네트워크(299)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(290)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(290)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(297)의 일부로 형성될 수 있다. The antenna module 297 may transmit or receive signals or power to or from the outside (e.g., an external electronic device). According to one embodiment, the antenna module 297 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 297 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 298 or the second network 299 is, for example, connected to the plurality of antennas by the communication module 290. can be selected. Signals or power may be transmitted or received between the communication module 290 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 297.
다양한 실시예에 따르면, 안테나 모듈(297)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 297 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 네트워크(299)에 연결된 서버(208)를 통해서 전자 장치(201)와 외부의 전자 장치(204)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(202, 또는 204) 각각은 전자 장치(201)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(201)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(202, 204, 또는 208) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(201)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(201)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(201)로 전달할 수 있다. 전자 장치(201)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(201)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(204)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(208)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(204) 또는 서버(208)는 제 2 네트워크(299) 내에 포함될 수 있다. 전자 장치(201)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one embodiment, commands or data may be transmitted or received between the electronic device 201 and the external electronic device 204 through the server 208 connected to the second network 299. Each of the external electronic devices 202 or 204 may be of the same or different type as the electronic device 201. According to one embodiment, all or part of the operations performed in the electronic device 201 may be executed in one or more of the external electronic devices 202, 204, or 208. For example, when the electronic device 201 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 201 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 201. The electronic device 201 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 201 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 204 may include an Internet of Things (IoT) device. Server 208 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 204 or server 208 may be included in the second network 299. The electronic device 201 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.
도 3은 일 실시예에 따른 IoT 네트워크를 설명하기 위한 도면이다. Figure 3 is a diagram for explaining an IoT network according to an embodiment.
도 3을 참조하면, IoT 네트워크(300)는 네트워크 통신(예를 들어 인터넷)을 통해 서버(310)와 통신할 수 있는 전자 장치(201), 및 IoT 기술을 지원하며 네트워크 통신(예를 들어 인터넷)을 통해 서버(310) 또는 전자 장치(201)와 통신할 수 있는 적어도 하나의 외부 전자 장치(320)(예를 들어 텔레비전(320a), 냉장고(320b), 세탁기(320d), 조명(320e), 또는 CCTV(320b)와 같은 피제어 장치(controlled device))을 포함할 수 있다. 일 실시예에서 외부 전자 장치(320)는 허브 장치(미도시)를 통해 전자 장치(201) 및/또는 서버(310)와 통신할 수 있다. 일 실시예에서 전자 장치(201)는 서버(310)를 통해, 허브 장치(미도시)를 통해, 원거리 무선 통신(예를 들어 제2 네트워크(299))을 통해, 또는 근거리 무선 통신(예를 들어 제1 네트워크(298))을 통해, 외부 전자 장치(320)와 통신할 수 있다.Referring to FIG. 3, the IoT network 300 supports an electronic device 201 capable of communicating with the server 310 through network communication (e.g., the Internet), and IoT technology and supports network communication (e.g., the Internet). ) at least one external electronic device 320 capable of communicating with the server 310 or the electronic device 201 (e.g., a television 320a, a refrigerator 320b, a washing machine 320d, a light 320e) , or a controlled device such as CCTV 320b. In one embodiment, the external electronic device 320 may communicate with the electronic device 201 and/or the server 310 through a hub device (not shown). In one embodiment, the electronic device 201 is configured via the server 310, via a hub device (not shown), via long-range wireless communication (e.g., second network 299), or short-range wireless communication (e.g., For example, it is possible to communicate with the external electronic device 320 through the first network 298).
일 실시예에서 외부 전자 장치(320)는 원격 명령(예를 들어 전자 장치(201) 또는 서버(310)의 제어 명령)에 의해 제어(예를 들어 상태 보고 및/또는 특정 기능을 실행)될 수 있으며, 예를 들어 텔레비전, 에어컨, 냉장고, 세탁기, 조명 기기, 보안 카메라, 센서, 또는 윈도우 트리트먼트(window treatment) 중 적어도 하나를 포함할 수 있다. 외부 전자 장치(320)는 전자 장치(201)와 직접(예를 들어 서버(310) 또는 허브 장치를 통하지 않고) 통신할 수 있다. 일 실시예에서 외부 전자 장치(320)는 원거리 무선 통신(예를 들어 제2 네트워크(299))을 통해, 또는 근거리 무선 통신(예를 들어 제1 네트워크(298))을 통해 전자 장치(201)와 통신하도록 구성될 수 있다. 일 실시예에서 외부 전자 장치(320)는 원거리 무선 통신(예를 들어 제2 네트워크(299))을 통해, 또는 근거리 무선 통신(예를 들어 제1 네트워크(298))을 사용하여 서버(310)와 통신하도록 구성될 수 있다.In one embodiment, the external electronic device 320 may be controlled (e.g., report status and/or execute a specific function) by a remote command (e.g., a control command of the electronic device 201 or the server 310). and, for example, may include at least one of a television, an air conditioner, a refrigerator, a washing machine, a lighting device, a security camera, a sensor, or a window treatment. The external electronic device 320 may communicate directly with the electronic device 201 (for example, without going through the server 310 or a hub device). In one embodiment, the external electronic device 320 is connected to the electronic device 201 via long-range wireless communication (e.g., second network 299) or short-range wireless communication (e.g., first network 298). It may be configured to communicate with. In one embodiment, the external electronic device 320 connects to the server 310 via long-range wireless communication (e.g., the second network 299) or using short-range wireless communication (e.g., the first network 298). It may be configured to communicate with.
일 실시예에서 전자 장치(201)는 사용자가 IoT 제어 서비스에 이용할 외부 전자 장치(320)의 상태를 확인하거나, 외부 전자 장치(320)를 제어(예를 들어 개인 정보를 독출(read)하거나 특정 기능을 실행할 것을 지시하는 제어 명령을 전송)할 수 있다. 전자 장치(201)는 외부 전자 장치(320)를 발견할 수 있고, 발견된 외부 전자 장치(320)를 인증할 수 있다. 일 실시예에서 외부 전자 장치(320)는 사용자 계정과 연관되도록 서버(310)에 등록될 수 있다. 전자 장치(201)는 사용자 계정을 이용하여, 서버(310)에 등록된 외부 전자 장치(320)를 모니터링하고 제어할 수 있다. In one embodiment, the electronic device 201 checks the status of the external electronic device 320 that the user will use for the IoT control service, or controls the external electronic device 320 (for example, reads personal information or specifies A control command instructing to execute a function can be transmitted. The electronic device 201 can discover the external electronic device 320 and authenticate the discovered external electronic device 320. In one embodiment, the external electronic device 320 may be registered with the server 310 to be associated with a user account. The electronic device 201 can monitor and control the external electronic device 320 registered in the server 310 using the user account.
일 실시예에서 전자 장치(201)는 예를 들어 스마트 폰, 태블릿, 또는 웨어러블 장치와 같은 개인용 전자 장치가 되거나 텔레비전이나 제어 콘솔과 같이 디스플레이와 사용자 인터페이스를 구비하는 전자 장치가 될 수 있다. 일 실시예에서 전자 장치(201)는 지정된 높은 보안 등급의 보안 기능(예를 들어 보안 엘리먼트(420))을 지원하고, 데이터의 암호화 및/또는 복호화를 수행할 수 있다. 일 실시예에서 외부 전자 장치(320)는 요구되는 수준의 보안 기능(예를 들어 보안 엘리먼트)을 지원하지 않도록 구성될 수 있고, 전자 장치(201)의 보안 기능을 통해 암호화 및/또는 복호화 서비스를 이용할 수 있다.In one embodiment, the electronic device 201 may be a personal electronic device, such as a smart phone, tablet, or wearable device, or an electronic device that includes a display and a user interface, such as a television or control console. In one embodiment, the electronic device 201 supports a security function (eg, security element 420) of a designated high security level and may perform encryption and/or decryption of data. In one embodiment, the external electronic device 320 may be configured not to support a required level of security function (e.g., a security element), and may provide encryption and/or decryption services through the security function of the electronic device 201. Available.
도 4는 일 실시예에 따른 전자 장치의 구성을 설명하기 위한 블록도이다.Figure 4 is a block diagram for explaining the configuration of an electronic device according to an embodiment.
도 4를 참조하면, 전자 장치(예를 들어 전자 장치(201))는 어플리케이션 프로세서(application processor: AP)(410) 및 보안 엘리먼트(security element: SE)(420)를 포함할 수 있다. 일 실시예에서 어플리케이션 프로세서(410) 및 보안 엘리먼트(420)는 전자 장치(201)의 적어도 하나의 프로세서(220)에 포함될 수 있다. 일 실시예에서 어플리케이션 프로세서(410)는 적어도 하나의 외부 전자 장치(320)를 제어할 수 있는 어플리케이션(예를 들어 클라이언트 어플리케이션)을 실행할 수 있다. 어플리케이션 프로세서(410)는 상기 클라이언트 어플리케이션의 실행을 통해 외부 전자 장치(320)와 통신할 수 있다.Referring to FIG. 4 , an electronic device (eg, electronic device 201) may include an application processor (AP) 410 and a security element (SE) 420. In one embodiment, the application processor 410 and the security element 420 may be included in at least one processor 220 of the electronic device 201. In one embodiment, the application processor 410 may execute an application (eg, a client application) capable of controlling at least one external electronic device 320. The application processor 410 may communicate with the external electronic device 320 through execution of the client application.
일 실시예에서 보안 엘리먼트(420)는 보안 저장 영역(422)(예를 들어 내부 메모리)을 포함하는 시스템온칩(system on chip)으로 구현될 수 있다. 일 실시예에서 보안 저장 영역(422)은 보안 엘리먼트(420)에 포함되는 고유의 저장 공간일 수 있다. 보안 엘리먼트(420)는 공격 보안, 안전한 키 생성 및/또는 보안 저장 기능을 수행할 수 있으며, 예를 들어 어플리케이션 프로세서(410)가 해킹되더라도 내부의 데이터(예를 들어 보안 저장 영역(422) 내의 보안 데이터)를 안전하게 보호할 수 있는 강력한 보안 매커니즘을 제공할 수 있다.In one embodiment, the secure element 420 may be implemented as a system on chip that includes a secure storage area 422 (e.g., internal memory). In one embodiment, the secure storage area 422 may be a unique storage space included in the secure element 420. The security element 420 may perform attack security, secure key generation, and/or secure storage functions, such that even if the application processor 410 is hacked, the data therein (e.g., within the secure storage area 422) may be protected. It can provide a strong security mechanism to safely protect data.
일 실시예에서 보안 엘리먼트(420)는 공통 평가 기준(common criteria: CC)에서 정보 보호 제품들의 보증 수준을 표준화하기 위해 정의한 7개의 평가 보증 등급들(evaluation assurance levels: EALs) 중 적어도 EAL 6 이상(예를 들어 EAL 6 augmented (EAL6+))의 보안 수준을 제공할 수 있다. EAL 6 이상의 보안 엘리먼트(420)는 EAL 4의 HSM(hardware security module), EAL 3의 VPN(virtual private network), 또는 EAL 2의 TEE(trusted execution environment)에 비해 더 높은 수준의 보안 기능을 제공할 수 있다.In one embodiment, the security element 420 is at least EAL 6 or higher (EAL 6) among the seven evaluation assurance levels (EALs) defined to standardize the assurance level of information security products in the common criteria (CC). For example, a security level of EAL 6 augmented (EAL6+) may be provided. The security element 420 of EAL 6 or higher may provide a higher level of security functionality compared to a hardware security module (HSM) of EAL 4, a virtual private network (VPN) of EAL 3, or a trusted execution environment (TEE) of EAL 2. You can.
일 실시예에서 보안 엘리먼트(420)는 외부 전자 장치(320)를 위한 암호화 또는 복호화에 사용되기 위한 데이터 암호화 키(D_key)(424)를 생성하고, 상기 데이터 암호화 키(424)를 지정된 보안 수준(예를 들어 EAL 6 이상)을 가지는 보안 저장 영역(422)에 안전하게 저장할 수 있다. 어플리케이션 프로세서(410)는 외부 전자 장치(320)의 암호화 또는 복호화가 필요한 데이터와, 암호화 또는 복호화를 위한 요청을 보안 엘리먼트(420)로 전달할 수 있다. 보안 엘리먼트(420)는 상기 요청에 응답하여 상기 데이터 암호화 키(424)를 이용하여 상기 데이터를 암호화 또는 복호화한 후, 결과 데이터(예를 들어 암호화된 데이터 또는 복호화된 데이터)를 어플리케이션 프로세서(410)를 통해 외부 전자 장치(320)에게 제공할 수 있다. 상기 데이터 암호화 키(424)는 보안 엘리먼트(420)의 내부에서 암호화 또는 복호화를 위해 사용되며, 보안 엘리먼트(420)의 외부로 유출되지 않고 보안 엘리먼트(420)의 보안 저장 영역(422)에 안전하게 보관될 수 있다.In one embodiment, the security element 420 generates a data encryption key (D_key) 424 to be used for encryption or decryption for the external electronic device 320, and sets the data encryption key 424 to a specified security level ( For example, it can be safely stored in the secure storage area 422 with EAL 6 or higher). The application processor 410 may transmit data requiring encryption or decryption of the external electronic device 320 and a request for encryption or decryption to the security element 420. The security element 420 encrypts or decrypts the data using the data encryption key 424 in response to the request, and then sends the resulting data (e.g., encrypted data or decrypted data) to the application processor 410. It can be provided to the external electronic device 320 through . The data encryption key 424 is used for encryption or decryption inside the security element 420, and is safely stored in the secure storage area 422 of the security element 420 without being leaked to the outside of the security element 420. It can be.
일 실시예에서 보안 저장 영역(422)은 외부 전자 장치(320)와의 보안 통신을 위해 사용되기 위한 키 관련 정보(key_info)(426)를 더 저장할 수 있다. 일 실시예에서 키 관련 정보(426)는 외부 전자 장치(320)가 서버 인증을 위해 사용되기 위한 비대칭 키 쌍 중 적어도 비밀 키(secret key)를 포함할 수 있다. 보안 엘리먼트(420)는 상기 비대칭 키 쌍을 생성하고, 상기 비대칭 키 쌍 중 하나, 예를 들어 공개 키(public key)를 외부 전자 장치(320)에게 제공할 수 있다. 외부 전자 장치(320)는 상기 공개 키를 사용하여 서버(310)로 클라우드 서비스를 사용하기 위한 인증을 획득할 수 있다. 상기 키 관련 정보(426)는 상기 비대칭 키 쌍 중 다른 하나, 예를 들어 상기 공개 키를 더 포함할 수 있다. 상기 공개 키는 상기 세션 키 관련 정보(426)에 포함되어 보안 저장 영역(422)에 안전하게 저장되거나, 또는 전자 장치(201)의 다른 저장 영역에 저장될 수 있다.In one embodiment, the secure storage area 422 may further store key-related information (key_info) 426 to be used for secure communication with the external electronic device 320. In one embodiment, the key-related information 426 may include at least a secret key among the asymmetric key pair for the external electronic device 320 to use for server authentication. The security element 420 may generate the asymmetric key pair and provide one of the asymmetric key pair, for example, a public key, to the external electronic device 320. The external electronic device 320 can obtain authentication to use the cloud service with the server 310 using the public key. The key-related information 426 may further include the other one of the asymmetric key pair, for example, the public key. The public key may be included in the session key-related information 426 and safely stored in the secure storage area 422, or may be stored in another storage area of the electronic device 201.
일 실시예에서 외부 전자 장치(320)는 전자 장치(201)와 통신을 시작하기 위해 전자 장치(201)에 등록될 수 있다. 일 실시예에서 외부 전자 장치(320)가 처음으로 설치되거나 부팅(또는 전원-온)될 때 또는 외부 전자 장치(320)가 전자 장치(201)가 처음으로 통신할 때, 외부 전자 장치(320)는 전자 장치(201)에 등록될 수 있다. 일 실시예에서 외부 전자 장치(320)를 위한 등록 절차는 전자 장치(201)가 외부 전자 장치(320)를 인증(또는 식별)하는 동작, 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호(serial number: SN) 또는 MAC(media access control) 주소)를 메모리(예를 들어 메모리(230))에 저장하는 동작, 또는 외부 전자 장치(320)를 위한 보안 데이터(예를 들어 세션 키(428) 및/또는 데이터 암호화 키(424))를 생성하는 동작 중 적어도 하나를 포함할 수 있다. In one embodiment, the external electronic device 320 may be registered with the electronic device 201 to initiate communication with the electronic device 201. In one embodiment, when the external electronic device 320 is first installed or booted (or powered on), or when the external electronic device 320 communicates with the electronic device 201 for the first time, the external electronic device 320 may be registered in the electronic device 201. In one embodiment, the registration procedure for the external electronic device 320 includes an operation by the electronic device 201 to authenticate (or identify) the external electronic device 320, and unique information (e.g., a serial number) of the external electronic device 320. An operation of storing a serial number (SN) or MAC (media access control) address) in a memory (e.g., memory 230), or security data (e.g., a session key ( It may include at least one of the operations of generating a data encryption key 428) and/or a data encryption key 424).
일 실시예에서 외부 전자 장치(320)가 전자 장치(201)에 등록될 때, 전자 장치(201)는 보안 엘리먼트(420)를 통해 외부 전자 장치(320)와의 통신을 위한 세션 키(428)를 생성할 수 있다. 일 실시예에서 세션 키(428)는 외부 전자 장치(320)가 부팅될 때마다 외부 전자 장치(320)의 요청에 따라 생성될 수 있다. 일 실시예에서 세션 키(428)는 외부 전자 장치(320)와 보안 엘리먼트(420) 간의 안전한 종단간(end-to-end) 통신을 보장하기 위해 사용될 수 있다. 일 실시예에서 세션 키(428)는 보안 엘리먼트(420)의 보안 저장 영역(422) 내에 저장될 수 있다. 세션 키(428)는 지정된 유효시간(lifetime)을 가질 수 있으며, 유효시간이 경과되면 보안 엘리먼트(420)에 의해서 삭제(또는 비활성화)될 수 있다. 일 실시예에서 외부 전자 장치(320) 및/또는 보안 엘리먼트(420)가 부팅될 때 보안 엘리먼트(420)의 보안 저장 영역(422)에 저장된 세션 키(428)는 삭제(또는 비활성화)될 수 있다.In one embodiment, when the external electronic device 320 is registered with the electronic device 201, the electronic device 201 generates a session key 428 for communication with the external electronic device 320 through the security element 420. can be created. In one embodiment, the session key 428 may be generated at the request of the external electronic device 320 every time the external electronic device 320 boots. In one embodiment, session key 428 may be used to ensure secure end-to-end communication between external electronic device 320 and secure element 420. In one embodiment, session key 428 may be stored within secure storage area 422 of secure element 420. The session key 428 may have a designated lifetime, and may be deleted (or deactivated) by the security element 420 when the lifetime has elapsed. In one embodiment, when the external electronic device 320 and/or the secure element 420 boots, the session key 428 stored in the secure storage area 422 of the secure element 420 may be deleted (or deactivated). .
일 실시예에서 어플리케이션 프로세서(410)는 외부 전자 장치(320)를 제어하기 위한 클라이언트 어플리케이션을 실행할 수 있다. 어플리케이션 프로세서(410)는 외부 전자 장치(320)와 보안 엘리먼트(420) 간의 통신을 지원할 수 있다. 일 실시예에서 어플리케이션 프로세서(410)는 외부 전자 장치(320)로부터 데이터 및 암호화 또는 복호화(이하 암호화/복호화라 칭함)를 위한 요청을 수신하고, 상기 데이터 및 요청을 보안 엘리먼트(420)로 전달할 수 있다. 일 실시예에서 어플리케이션 프로세서(410)는 외부 전자 장치(320)와 보안 엘리먼트(420) 간의 통신을 위해 외부 전자 장치(320)로부터 수신된 메시지(예를 들어 요청 메시지)를 APDU(application protocol data unit) 포맷으로 변환하여 보안 엘리먼트(420)로 전달하거나, 보안 엘리먼트(420)로부터 수신된 APDU를 외부 전자 장치(320)가 이해할 수 있는 포맷의 메시지로 변환하여 외부 전자 장치(320)로 전달할 수 있다.In one embodiment, the application processor 410 may execute a client application to control the external electronic device 320. The application processor 410 may support communication between the external electronic device 320 and the security element 420. In one embodiment, the application processor 410 may receive data and a request for encryption or decryption (hereinafter referred to as encryption/decryption) from the external electronic device 320, and transmit the data and request to the security element 420. there is. In one embodiment, the application processor 410 sends a message (for example, a request message) received from the external electronic device 320 to an application protocol data unit (APDU) for communication between the external electronic device 320 and the security element 420. ) format and transmit it to the security element 420, or the APDU received from the security element 420 can be converted into a message in a format that the external electronic device 320 can understand and transmit it to the external electronic device 320. .
도 5는 일 실시예에 따른 외부 전자 장치의 구성을 설명하기 위한 블록도이다.Figure 5 is a block diagram for explaining the configuration of an external electronic device according to an embodiment.
도 5를 참조하면, 외부 전자 장치(예를 들어 외부 전자 장치(320))는 프로세서(510), 통신 인터페이스(520), 메모리(530) 및 고유 기능부(native function unit)(540)를 포함할 수 있다. 고유 기능부(540)는 프로세서(510)의 제어 하에 외부 전자 장치(320)의 고유 기능(예를 들어 텔레비전 수신 회로, 세탁기의 모터 제어 모듈, 또는 CCTV 촬영 모듈)을 수행하는 하드웨어 및/또는 소프트웨어 모듈들을 포함할 수 있다. 일 실시예에서 프로세서(510)는 통신 인터페이스(520)를 통해 전자 장치(201)(예를 들어 어플리케이션 프로세서(410)) 및/또는 서버(310)와 통신하는 프로세싱 회로를 포함할 수 있다. 일 실시예에서 통신 인터페이스(520)는 블루투스, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, 또는 IrDA 중 적어도 하나와 같은 통신 방식(예를 들어 제1 네트워크(298))을 사용하여 전자 장치(201)와 통신할 수 있다. 일 실시예에서 통신 인터페이스(520)는 Wi-Fi, 또는 셀룰러 네트워크 중 적어도 하나와 같은 통신 방식(예를 들어 제2 네트워크(299))을 사용하여 서버(310)와 통신할 수 있다.Referring to FIG. 5, an external electronic device (e.g., external electronic device 320) includes a processor 510, a communication interface 520, a memory 530, and a native function unit 540. can do. The unique function unit 540 is hardware and/or software that performs the unique function of the external electronic device 320 (for example, a television reception circuit, a motor control module of a washing machine, or a CCTV filming module) under the control of the processor 510. Can contain modules. In one embodiment, processor 510 may include processing circuitry that communicates with electronic device 201 (e.g., application processor 410) and/or server 310 through communication interface 520. In one embodiment, the communication interface 520 uses a communication method (e.g., the first network 298) such as at least one of Bluetooth, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, or IrDA. You can communicate with the electronic device 201 using. In one embodiment, the communication interface 520 may communicate with the server 310 using a communication method such as at least one of Wi-Fi or a cellular network (eg, the second network 299).
일 실시예에서 프로세서(510)는 전원-온 또는 부팅 이후 전자 장치(201)와 처음으로 통신할 때 통신 인터페이스(520)를 통해 상기 인증 요청을 전송함으로써 전자 장치(201)에 등록될 수 있다. 일 실시예에서 프로세서(510)는 통신 인터페이스(520)를 통해 전자 장치(201)로 인증 요청을 전송함으로써 데이터 암호화 키(예를 들어 데이터 암호화 키(424))의 생성을 요청할 수 있다.In one embodiment, the processor 510 may register with the electronic device 201 by sending the authentication request through the communication interface 520 when it first communicates with the electronic device 201 after power-on or booting. In one embodiment, the processor 510 may request generation of a data encryption key (e.g., data encryption key 424) by transmitting an authentication request to the electronic device 201 through the communication interface 520.
일 실시예에서 프로세서(510)는 전자 장치(201)로 암호화가 필요한 데이터와 암호화 요청(encrypt request)을 전송할 수 있고, 그에 대한 응답으로 전자 장치(201)로부터 데이터 암호화 키에 의해 암호화된 데이터를 수신할 수 있다. 일 실시예에서 프로세서(510)는 전자 장치(201)로 복호화가 필요한 데이터와 복호화 요청을 전송할 수 있고, 그에 대한 응답으로 전자 장치(201)로부터 데이터 암호화 키에 의해 복호화된 데이터를 수신할 수 있다. In one embodiment, the processor 510 may transmit data requiring encryption and an encryption request to the electronic device 201, and in response, receive data encrypted by a data encryption key from the electronic device 201. You can receive it. In one embodiment, the processor 510 may transmit data requiring decryption and a decryption request to the electronic device 201, and may receive data decrypted using a data encryption key from the electronic device 201 in response. .
일 실시예에서 프로세서(510)는 전자 장치(201)에 등록될 때 전자 장치(201)와 동일한 세션 키(예를 들어 세션 키(428))를 공유할 수 있다. 일 실시예에서 프로세서(510)는 데이터 및 암호화/복호화 요청을 포함하는 메시지를 세션 키에 의해 암호화하여 전자 장치(201)로 전송할 수 있다. 일 실시예에서 프로세서(510)는 전자 장치(201)로부터 수신되는 메시지를 세션 키에 의해 복호화하여 암호화/복호화된 데이터를 획득할 수 있다. 일 실시예에서 세션 키는 지정된 유효시간 동안 메모리(530)(예를 들어 휘발성 메모리)에 저장될 수 있고, 지정된 유효시간이 경과될 때 또는 외부 전자 장치(320)가 전원-오프되거나 부팅될 때 메모리(530)(예를 들어 휘발성 메모리)에서 삭제(또는 비활성화)될 수 있다.In one embodiment, processor 510 may share the same session key (e.g., session key 428) with electronic device 201 when registered with electronic device 201. In one embodiment, the processor 510 may encrypt a message containing data and an encryption/decryption request using a session key and transmit it to the electronic device 201. In one embodiment, the processor 510 may decrypt a message received from the electronic device 201 using a session key to obtain encrypted/decrypted data. In one embodiment, the session key may be stored in memory 530 (e.g., volatile memory) for a specified validity time, when the specified validity time elapses or when the external electronic device 320 is powered off or booted. It may be erased (or deactivated) from memory 530 (e.g., volatile memory).
도 6은 일 실시예에 따라 전자 장치가 암호화 서비스를 제공하는 절차를 설명하기 위한 흐름도이다. 후술되는 동작들 중 적어도 하나는 전자 장치(201)의 프로세서(예를 들어 프로세서(220))에 의해 실행될 수 있다. 실시예들에 따르면 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 6 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the electronic device 201. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
도 6을 참조하면, 동작 605에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)로부터 인증 요청을 수신할 수 있다. 일 실시예에서 상기 인증 요청은 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호 또는 MAC 주소)를 포함할 수 있다. 일 실시예에서 상기 인증 요청은 외부 전자 장치(320)가 보안 엘리먼트(420)에 의한 암호화/복호화 서비스를 요청함을 알리는 지시자를 포함할 수 있다. 전자 장치(201)(예를 들어 프로세서(220))는 상기 일련 번호를 저장함으로써 외부 전자 장치(320)를 전자 장치(201)에 등록할 수 있다. Referring to FIG. 6 , in operation 605, the electronic device 201 (eg, processor 220) may receive an authentication request from the external electronic device 320. In one embodiment, the authentication request may include unique information (eg, serial number or MAC address) of the external electronic device 320. In one embodiment, the authentication request may include an indicator indicating that the external electronic device 320 requests encryption/decryption service by the security element 420. The electronic device 201 (eg, the processor 220) can register the external electronic device 320 with the electronic device 201 by storing the serial number.
동작 610에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)를 위한 보안 저장 영역(예를 들어 보안 저장 영역(422))을 할당할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 보안 엘리먼트(420) 내에 외부 전자 장치(320)를 위해 전용으로 사용될 수 있는 보안 저장 영역(422)을 할당할 수 있다. 일 실시예에서 보안 저장 영역(422)은 보안 엘리먼트(420)의 비휘발성 메모리 내의 일부 저장 공간일 수 있다. 일 실시예에서 보안 엘리먼트(420)는 보안 저장 영역(422)을 위해 EAL 6 이상의 보안 수준을 제공할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 인증 요청 내의 상기 지시자에 응답하여 동작 610, 동작 615, 동작 620 및 동작 645를 실행할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)가 보안 엘리먼트(420)를 활용할 것을 허락하는 사용자 입력(예를 들어 도 9의 사용자 입력(910))을 수신함에 응답하여 동작 610, 동작 615, 동작 620 및 동작 645를 실행할 수 있다.In operation 610, the electronic device 201 (eg, the processor 220) may allocate a secure storage area (eg, the secure storage area 422) for the external electronic device 320. In one embodiment, the electronic device 201 (e.g., the processor 220) may allocate a secure storage area 422 within the secure element 420 that can be used exclusively for the external electronic device 320. In one embodiment, secure storage area 422 may be some storage space within the non-volatile memory of secure element 420. In one embodiment, secure element 420 may provide a security level of EAL 6 or higher for secure storage area 422. In one embodiment, the electronic device 201 (e.g., the processor 220) may execute operations 610, 615, 620, and 645 in response to the indicator in the authentication request. In one embodiment, the electronic device 201 (e.g., processor 220) receives a user input (e.g., user input 910 of FIG. 9) that allows the external electronic device 320 to utilize the secure element 420. In response to receiving ), operations 610, 615, 620, and 645 may be executed.
동작 615에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)를 위한 데이터 암호화 키(예를 들어 데이터 암호화 키(424))를 생성하고 상기 데이터 암호화 키를 상기 보안 저장 영역(422)에 저장할 수 있다. 동작 620에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)와의 세션 통신을 위해 사용되기 위한 세션 키(예를 들어 세션 키(428))를 생성할 수 있다. 세션 키는 외부 전자 장치(320)와의 통신 세션 상의 메시지들을 암호화하기 위해 사용되는 암호화 키일 수 있다. 일 실시예에서 동작 620은 동작 625, 동작 630, 동작 635, 또는 동작 640 중 적어도 하나를 포함할 수 있다.In operation 615, the electronic device 201 (e.g., processor 220) generates a data encryption key (e.g., data encryption key 424) for the external electronic device 320 and uses the data encryption key as the security key. It can be stored in the storage area 422. In operation 620, the electronic device 201 (e.g., the processor 220) may generate a session key (e.g., the session key 428) to be used for session communication with the external electronic device 320. The session key may be an encryption key used to encrypt messages on a communication session with the external electronic device 320. In one embodiment, operation 620 may include at least one of operation 625, operation 630, operation 635, or operation 640.
동작 625에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)의 장치 인증을 위한 제1 세션 키 생성 정보(예를 들어 적어도 하나의 난수 값(random number), 적어도 하나의 공개 키(public key: PK), 또는 인증서(certificate) 중 적어도 하나를 포함함)를 외부 전자 장치(320)로 전송할 수 있다. 동작 630에서 전자 장치(201)(예를 들어 프로세서(220))는 장치 인증에 성공한 외부 전자 장치(320)로부터 제2 세션 키 생성 정보(예를 들어 적어도 하나의 난수 값, 또는 적어도 하나의 공개 키 중 적어도 하나를 포함함)를 수신할 수 있다. In operation 625, the electronic device 201 (e.g., the processor 220) generates first session key generation information (e.g., at least one random number) for device authentication of the external electronic device 320. A public key (including at least one of a public key (PK) or a certificate) may be transmitted to the external electronic device 320. In operation 630, the electronic device 201 (e.g., the processor 220) receives second session key generation information (e.g., at least one random number value, or at least one public key) from the external electronic device 320 that has successfully authenticated the device. includes at least one of the keys).
동작 635에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 제2 세션 키 생성 정보를 기반으로 외부 전자 장치(320)와의 세션 통신을 위한 세션 키를 생성할 수 있다. 일 실시예에서 상기 세션 키는 상기 제2 세션 키 생성 정보에 포함되는 공개 키를 이용하여 생성되고, 상기 제2 세션 키 생성 정보에 포함되는 난수 값에 의해 검증(verify)될 수 있다. 일 실시예에서 외부 전자 장치(320)는 상기 제1 세션 키 생성 정보에 의해 상기 동일한 세션 키를 생성하고 저장할 수 있다. 동작 640에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 세션 키와 관련된 세션 키 검증 정보를 외부 전자 장치(320)로 전송할 수 있다. 일 실시예에서 상기 세션 키 검증 정보는 상기 세션 키에 의해 암호화된 적어도 하나의 난수 값을 포함할 수 있다. 외부 전자 장치(320)는 상기 세션 키 검증 정보에 근거하여 외부 전자 장치(320)가 전자 장치(201)와 동일한 세션 키를 공유하고 있음을 확인할 수 있다.In operation 635, the electronic device 201 (eg, the processor 220) may generate a session key for session communication with the external electronic device 320 based on the second session key generation information. In one embodiment, the session key may be generated using a public key included in the second session key generation information, and may be verified by a random number value included in the second session key generation information. In one embodiment, the external electronic device 320 may generate and store the same session key based on the first session key generation information. In operation 640, the electronic device 201 (eg, the processor 220) may transmit session key verification information related to the session key to the external electronic device 320. In one embodiment, the session key verification information may include at least one random number encrypted by the session key. The external electronic device 320 may confirm that the external electronic device 320 shares the same session key as the electronic device 201 based on the session key verification information.
동작 645에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 세션 키로 암호화된 상기 외부 전자 장치의 요청(예를 들어 암호화 요청 또는 복호화 요청)에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 외부 전자 장치(320)에게 제공할 수 있다. 일 실시예에서 암호화 서비스는 도 12의 절차에 따라 데이터 및 암호화 요청을 수신하고 암호화된 데이터를 전송하는 것을 포함할 수 있다. 일 실시예에서 복호화 서비스는 도 13의 절차에 따라 데이터 및 복호화 요청을 수신하고 복호화된 데이터를 전송하는 것을 포함할 수 있다.In operation 645, the electronic device 201 (e.g., processor 220) performs encryption and encryption based on the data encryption key in response to a request (e.g., encryption request or decryption request) from the external electronic device encrypted with the session key. /Or, a decryption service may be provided to the external electronic device 320. In one embodiment, the encryption service may include receiving data and encryption requests and transmitting encrypted data according to the procedure of FIG. 12. In one embodiment, the decryption service may include receiving data and a decryption request and transmitting the decrypted data according to the procedure of FIG. 13.
도 7은 일 실시예에 따라 외부 전자 장치가 암호화 서비스를 제공하는 절차를 설명하기 위한 흐름도이다. 후술되는 동작들 중 적어도 하나는 외부 전자 장치(320)의 프로세서(예를 들어 프로세서(220))에 의해 실행될 수 있다. 실시예들에 따르면 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 7 is a flowchart illustrating a procedure in which an external electronic device provides an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the external electronic device 320. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
도 7을 참조하면, 동작 705에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 전자 장치(201)에게 인증 요청을 전송할 수 있다. 상기 인증 요청은 외부 전자 장치(320)의 전원-온 또는 부팅시, 또는 외부 전자 장치(320)에서 암호화 통신이 필요하다고 판단하였을 때 전송될 수 있으며, 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호)를 포함할 수 있다. 일 실시예에서 상기 인증 요청은 외부 전자 장치(320)가 보안 엘리먼트(420)에 의한 암호화/복호화 서비스를 요청함을 알리는 지시자를 포함할 수 있다. 동작 710에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 전자 장치(201)와의 세션 통신을 위해 사용되기 위한 세션 키를 생성할 수 있다. 일 실시예에서 동작 710은 동작 715, 동작 720, 동작 725, 동작 730, 동작 735, 또는 동작 740 중 적어도 하나를 포함할 수 있다. 일 실시예에서 동작 710은 동작 715, 동작 730, 및 동작 735를 적어도 포함할 수 있다.Referring to FIG. 7 , in operation 705, the external electronic device 320 (eg, processor 510) may transmit an authentication request to the electronic device 201. The authentication request may be transmitted when the external electronic device 320 is powered on or booted, or when the external electronic device 320 determines that encrypted communication is necessary, and unique information (e.g., For example, a serial number) may be included. In one embodiment, the authentication request may include an indicator indicating that the external electronic device 320 requests encryption/decryption service by the security element 420. In operation 710, the external electronic device 320 (eg, processor 510) may generate a session key to be used for session communication with the electronic device 201. In one embodiment, operation 710 may include at least one of operation 715, operation 720, operation 725, operation 730, operation 735, or operation 740. In one embodiment, operation 710 may include at least operations 715, 730, and 735.
동작 715에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 전자 장치(201)로부터 외부 전자 장치(320)의 장치 인증을 위한 제1 세션 키 생성 정보(예를 들어 적어도 하나의 난수 값, 적어도 하나의 공개 키, 또는 인증서 중 적어도 하나를 포함함)를 수신할 수 있다. 동작 720에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 서버(310)에게 외부 전자 장치(320)의 장치 인증을 위한 검증 요청을 전송할 수 있다. 일 실시예에서 상기 검증 요청은 외부 전자 장치(320)를 식별하기 위한 고유 정보(예를 들어 일련 번호)를 포함할 수 있다. 동작 725에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 서버(310)로부터 검증 키를 수신하고 상기 검증 키를 이용하여 제1 세션 키 생성 정보 내의 인증서를 검증함으로써 장치 검증에 성공할 수 있다. In operation 715, the external electronic device 320 (e.g., processor 510) receives first session key generation information (e.g., at least one random number) for device authentication of the external electronic device 320 from the electronic device 201. value, at least one public key, or a certificate). In operation 720, the external electronic device 320 (eg, processor 510) may transmit a verification request for device authentication of the external electronic device 320 to the server 310. In one embodiment, the verification request may include unique information (eg, serial number) for identifying the external electronic device 320. In operation 725, the external electronic device 320 (e.g., processor 510) receives a verification key from the server 310 and verifies the certificate in the first session key generation information using the verification key to successfully verify the device. You can.
동작 730에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 제1 세션 키 생성 정보 내의 공개 키를 이용하여 세션 키를 생성할 수 있다. 동작 735에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 제2 세션 키 생성 정보(예를 들어 적어도 하나의 난수 값, 또는 적어도 하나의 공개 키 중 적어도 하나를 포함함)를 전자 장치(201)에게 전송할 수 있다. 동작 740에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 전자 장치(201)로부터 세션 키 검증 정보(예를 들어 적어도 하나의 난수 값을 포함함)를 수신하고 상기 세션 키 검증 정보에 근거하여 전자 장치(201)가 외부 전자 장치(320)와 동일한 세션 키를 공유하고 있음을 확인할 수 있다.In operation 730, the external electronic device 320 (eg, processor 510) may generate a session key using the public key in the first session key generation information. In operation 735, the external electronic device 320 (e.g., processor 510) generates second session key generation information (e.g., including at least one of at least one random number value or at least one public key). It can be transmitted to the device 201. In operation 740, the external electronic device 320 (e.g., processor 510) receives session key verification information (e.g., including at least one random number value) from the electronic device 201 and Based on this, it can be confirmed that the electronic device 201 shares the same session key as the external electronic device 320.
동작 745에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 세션 키에 근거하여 전자 장치(201)의 암호화 서비스 및/또는 복호화 서비스를 이용할 수 있다. 일 실시예에서 암호화 서비스는 도 12의 절차에 따라 데이터 및 암호화 요청을 전송하고 암호화된 데이터를 수신하는 것을 포함할 수 있다. 일 실시예에서 복호화 서비스는 도 13의 절차에 따라 데이터 및 복호화 요청을 전송하고 복호화된 데이터를 수신하는 것을 포함할 수 있다.In operation 745, the external electronic device 320 (eg, processor 510) may use the encryption service and/or decryption service of the electronic device 201 based on the session key. In one embodiment, the encryption service may include sending data and encryption requests and receiving encrypted data according to the procedure of FIG. 12. In one embodiment, the decryption service may include transmitting data and a decryption request and receiving decrypted data according to the procedure of FIG. 13.
도 8은 일 실시예에 따라 장치 인증 및 세션 키 생성을 수행하는 절차를 설명하기 위한 신호 흐름도(sequence diagram)를 도시한 것이다. 후술되는 동작들 중 적어도 일부는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 8 shows a signal flow diagram (sequence diagram) to explain a procedure for performing device authentication and session key generation according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
도 8을 참조하면, 동작 802에서 외부 전자 장치(320)는 전자 장치(201)(예를 들어 어플리케이션 프로세서(410))에게 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호(SN))를 포함하는 인증 요청을 전송할 수 있다. 일 실시예에서 상기 인증 요청은 외부 전자 장치(320)가 전자 장치(201)와 처음으로 통신을 개시할 때(예를 들어 외부 전자 장치(320)가 전원-온 또는 부팅될 때), 외부 전자 장치(320)와 어플리케이션 프로세서(410) 간에 수립된 통신 세션을 통해 전송될 수 있다. 일 실시예에서 외부 전자 장치(320)는 전자 장치(201)의 세션 엘리먼트(420)에 의한 암호화/복호화 서비스를 이용하기 위해 상기 인증 요청을 전송할 수 있다. Referring to FIG. 8, in operation 802, the external electronic device 320 provides unique information (e.g., serial number (SN)) of the external electronic device 320 to the electronic device 201 (e.g., the application processor 410). ) can be transmitted. In one embodiment, the authentication request is made when the external electronic device 320 first initiates communication with the electronic device 201 (for example, when the external electronic device 320 is powered on or booted). It may be transmitted through a communication session established between the device 320 and the application processor 410. In one embodiment, the external electronic device 320 may transmit the authentication request to use the encryption/decryption service provided by the session element 420 of the electronic device 201.
동작 804에서 전자 장치(201)의 어플리케이션 프로세서(410)는 상기 인증 요청에 포함된 상기 일련 번호에 의해 외부 전자 장치(320)를 식별하고 상기 일련 번호를 저장할 수 있다. 일 실시예에서 어플리케이션 프로세서(410)는 상기 일련 번호를 근거로 외부 전자 장치(320)가 등록됨을 알리는 메시지(예를 들어 외부 전자 장치(320)의 이미지 및 텍스트)를 디스플레이 모듈(예를 들어 디스플레이 모듈(260))을 통해 출력할 수 있다. 사용자는 상기 메시지를 확인함으로써 외부 전자 장치(320)를 직접 인증할 수 있다. 일 실시예에서 어플리케이션 프로세서(410)는 외부 전자 장치(320)를 등록하는 것을 수용하는 사용자 입력을 수신함에 응답하여 상기 일련 번호를 저장할 수 있다. 동작 804-1에서 어플리케이션 프로세서(410)는 상기 일련 번호를 포함하는 외부 전자 장치(320)를 위한 고유 정보를 서버(310)에게 전달할 수 있다. 서버(310)는 상기 일련 번호를 저장할 수 있다.In operation 804, the application processor 410 of the electronic device 201 may identify the external electronic device 320 using the serial number included in the authentication request and store the serial number. In one embodiment, the application processor 410 sends a message (e.g., an image and text of the external electronic device 320) indicating that the external electronic device 320 is registered based on the serial number to a display module (e.g., a display module). It can be output through module 260). The user can directly authenticate the external electronic device 320 by checking the message. In one embodiment, the application processor 410 may store the serial number in response to receiving a user input accepting registration of the external electronic device 320. In operation 804-1, the application processor 410 may transmit unique information for the external electronic device 320, including the serial number, to the server 310. Server 310 may store the serial number.
동작 806에서 어플리케이션 프로세서(410)는 외부 전자 장치(320)를 위한 할당 요청을 보안 엘리먼트(420)로 전송할 수 있다. 일 실시예에서 상기 할당 요청은 외부 전자 장치(320)를 식별하는 정보(예를 들어 일련 번호)를 포함할 수 있다. 일 실시예에서 어플리케이션 프로세서(410)는 외부 전자 장치(3200가 보안 엘리먼트(420)를 활용할 것을 허락하는 사용자 입력(예를 들어 도 9의 사용자 입력(910))에 응답하여 상기 할당 요청을 전송할 수 있다.In operation 806, the application processor 410 may transmit an allocation request for the external electronic device 320 to the secure element 420. In one embodiment, the allocation request may include information (eg, serial number) identifying the external electronic device 320. In one embodiment, the application processor 410 may transmit the allocation request in response to a user input (e.g., user input 910 in FIG. 9) allowing the external electronic device 3200 to utilize the secure element 420. there is.
동작 808에서 전자 장치(201)의 보안 엘리먼트(420)는 상기 할당 요청에 응답하여 내부 메모리 내에 외부 전자 장치(320)를 위한 고유의 보안 저장 영역(예를 들어 보안 저장 영역(422))을 할당할 수 있다. 동작 810에서 보안 엘리먼트(420)는 외부 전자 장치(320)를 위한 데이터 암호화 키(예를 들어 데이터 암호화 키(424))를 생성하고 상기 생성된 데이터 암호화 키를 상기 보안 저장 영역(422)에 저장할 수 있다. 일 실시예에서 상기 데이터 암호화 키는 데이터 암호화/복호화를 위해 사용되는 AES(advanced encryption standard) 키를 포함할 수 있다. AES는 암호화와 복호화를 위해 동일하게 사용될 수 있는 대칭 키 알고리즘이며, 상기 AES 키는 암호화 및 복호화의 둘 다에 사용될 수 있다.In operation 808, the security element 420 of the electronic device 201 allocates a unique secure storage area (e.g., secure storage area 422) for the external electronic device 320 within the internal memory in response to the allocation request. can do. In operation 810, the security element 420 generates a data encryption key (e.g., data encryption key 424) for the external electronic device 320 and stores the generated data encryption key in the secure storage area 422. You can. In one embodiment, the data encryption key may include an advanced encryption standard (AES) key used for data encryption/decryption. AES is a symmetric key algorithm that can be used equally for encryption and decryption, and the AES key can be used for both encryption and decryption.
동작 812에서 보안 엘리먼트(420)는 외부 전자 장치(320)의 장치 인증을 위한 제1 세션 키 생성 정보를 어플리케이션 프로세서(410)로 전달할 수 있다. 일 실시예에서 상기 제1 세션 키 생성 정보는 APDU의 포맷으로 전달될 수 있다. 일 실시예에서 보안 엘리먼트(420)는 인증서('CERT'), ECKA(elliptic curve key agreement algorithm)에 따른 키 쌍(예를 들어 eSK(ephemeral secret key) 및 ePK(ephemeral public key)), RSA(Rivest / Shamir / Adleman asymmetric algorithm)에 따른 키 쌍(예를 들어 비밀 키(secret key: SK) 및 공개 키(public key: PK)), 또는 제1 난수 값('rand') 중 적어도 하나를 생성하고, 상기 제1 난수 값과 상기 ePK를 포함하는 디지털 서명('Sign (rand||ePK)')과 상기 CERT를 상기 SK에 의해 암호화하여 상기 제1 세션 키 생성 정보를 생성할 수 있다. 상기 제1 세션 키 생성 정보는 암호화된 디지털 서명 및 암호화된 CERT('Sign (rand||ePK) || CERT')를 포함할 수 있다. 동작 814에서 어플리케이션 프로세서(410)는 상기 제1 세션 키 생성 정보('Sign (rand||ePK) || CERT')를 외부 전자 장치(320)로 전달할 수 있다. In operation 812, the security element 420 may transmit first session key generation information for device authentication of the external electronic device 320 to the application processor 410. In one embodiment, the first session key creation information may be delivered in the format of an APDU. In one embodiment, the security element 420 includes a certificate ('CERT'), a key pair according to the elliptic curve key agreement algorithm (ECKA) (e.g., an ephemeral secret key (eSK) and an ephemeral public key (ePK)), and RSA ( Generating at least one of a key pair (e.g. a secret key (SK) and a public key (PK)) according to the Rivest / Shamir / Adleman asymmetric algorithm, or a first random number value ('rand') And, the digital signature ('Sign (rand||ePK)') including the first random number value and the ePK and the CERT may be encrypted by the SK to generate the first session key generation information. The first session key creation information may include an encrypted digital signature and an encrypted CERT ('Sign (rand||ePK) || CERT'). In operation 814, the application processor 410 may transmit the first session key creation information ('Sign (rand||ePK) || CERT') to the external electronic device 320.
동작 816에서 외부 전자 장치(320)는 서버(310)에게 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호)를 포함하는 검증 요청을 전송할 수 있다. 일 실시예에서 서버(310)는 동작 804-1에서 획득한 일련 번호와 상기 고유 정보에 포함되는 일련 번호가 일치함을 확인함으로써 외부 전자 장치(320)를 검증할 수 있다. 동작 818에서 서버(310)는 상기 인증서를 위한 검증 키를 외부 전자 장치(320)에게 전송할 수 있다. 동작 820에서 외부 전자 장치(320)는 상기 검증 키를 사용하여 상기 인증서 및 상기 디지털 서명이 정상적임을 검증하고, 보안 엘리먼트(420)와의 세션 통신을 위한 세션 키를 생성할 수 있다. 일 실시예에서 외부 전자 장치(320)는 ECKA에 따른 키 쌍(예를 들어 eSK' 및 ePK')을 생성하고, eSK'과 상기 제1 세션 키 생성 정보를 통해 획득한 ePK를 기반으로 세션 키('SSK')를 생성할 수 있다(예를 들어 SSK = eSK' + ePK). 일 실시예에서 SSK는 eSK'에 ePK를 첨부(append) 또는 합산(add)함으로써 생성될 수 있다. 일 실시예에서 SSK는 eSK'와 ePK를 입력으로 하는, 지정된 키 도출 함수(key derivation function)를 통해 생성될 수 있다.In operation 816, the external electronic device 320 may transmit a verification request including unique information (eg, serial number) of the external electronic device 320 to the server 310. In one embodiment, the server 310 may verify the external electronic device 320 by confirming that the serial number obtained in operation 804-1 matches the serial number included in the unique information. In operation 818, the server 310 may transmit a verification key for the certificate to the external electronic device 320. In operation 820, the external electronic device 320 verifies that the certificate and the digital signature are normal using the verification key and generates a session key for session communication with the secure element 420. In one embodiment, the external electronic device 320 generates a key pair (e.g., eSK' and ePK') according to ECKA, and creates a session key based on eSK' and ePK obtained through the first session key generation information. ('SSK') (e.g. SSK = eSK' + ePK). In one embodiment, SSK can be created by appending or adding ePK to eSK'. In one embodiment, the SSK may be generated through a designated key derivation function with eSK' and ePK as input.
동작 822에서 외부 전자 장치(320)는 제2 세션 키 생성 정보를 전자 장치(201)의 어플리케이션 프로세서(410)로 전송할 수 있다. 일 실시예에서 외부 전자 장치(320)는 제2 난수 값('rand2')을 생성하고, 제1 세션 키 생성 정보에서 획득한 제1 난수 값('rand')과 상기 제2 난수 값을 상기 세션 키에 의해 암호화하여 암호화된 난수 정보('Enc (SSK, rand || rand2)')를 생성할 수 있다. 외부 전자 장치(320)는 상기 암호화된 난수 정보와 상기 ePK'를 포함하는 상기 제2 세션 키 생성 정보를 생성할 수 있다. 동작 824에서 어플리케이션 프로세서(410)는 상기 제2 세션 키 생성 정보('Enc (SSK, rand || rand2) || ePK')를 APDU의 포맷으로 변환하여 보안 엘리먼트(420)로 전달할 수 있다.In operation 822, the external electronic device 320 may transmit second session key creation information to the application processor 410 of the electronic device 201. In one embodiment, the external electronic device 320 generates a second random number value ('rand2'), and combines the first random number value ('rand') obtained from the first session key generation information with the second random number value. Encrypted random number information ('Enc (SSK, rand || rand2)') can be generated by encryption using the session key. The external electronic device 320 may generate the second session key generation information including the encrypted random number information and the ePK'. In operation 824, the application processor 410 may convert the second session key creation information ('Enc (SSK, rand || rand2) || ePK') into an APDU format and transmit it to the security element 420.
동작 826에서 보안 엘리먼트(420)는 상기 제2 세션 키 생성 정보를 기반으로 세션 키(예를 들어 세션 키(428))를 생성할 수 있다. 일 실시예에서 보안 엘리먼트(420)는 상기 제2 세션 키 생성 정보에 포함된 ePK'과 eSK를 기반으로 세션 키('SSK')를 생성할 수 있다(예를 들어 SSK = ePK' + eSK). 보안 엘리먼트(420)는 상기 세션 키를 이용하여 상기 암호화된 난수 정보('Enc (SSK, rand || rand2)')를 복호하여 제1 난수 값(rand) 및 제2 난수 값(rand2)을 획득하고, 상기 제1 난수 값이 동작 812에서 전송한 제1 난수 값과 동일함을 확인할 수 있다. 동작 828에서 보안 엘리먼트(420)는 상기 제2 난수 값을 상기 세션 키에 의해 암호화하여 상기 암호화된 제2 난수 값을 포함하는 세션 키 검증 정보('Enc (SSK, rand2)')를 생성하고, 상기 세션 키 검증 정보를 APDU의 포맷으로 어플리케이션 프로세서(410)에게 전송할 수 있다. 동작 830에서 어플리케이션 프로세서(410)는 상기 세션 키 검증 정보('Enc (SSK, rand2)')를 외부 전자 장치(320)에게 전달할 수 있다.In operation 826, the security element 420 may generate a session key (eg, session key 428) based on the second session key generation information. In one embodiment, the security element 420 may generate a session key ('SSK') based on ePK' and eSK included in the second session key generation information (for example, SSK = ePK' + eSK). . The security element 420 decrypts the encrypted random number information ('Enc (SSK, rand || rand2)') using the session key to obtain a first random number value (rand) and a second random number value (rand2). And, it can be confirmed that the first random number value is the same as the first random number value transmitted in operation 812. In operation 828, the security element 420 encrypts the second random number value with the session key to generate session key verification information ('Enc (SSK, rand2)') including the encrypted second random number value, The session key verification information may be transmitted to the application processor 410 in the format of an APDU. In operation 830, the application processor 410 may transmit the session key verification information ('Enc (SSK, rand2)') to the external electronic device 320.
동작 832에서 외부 전자 장치(320)는 상기 세션 키 검증 정보를 기반으로 동작 820에서 생성한 세션 키가 보안 엘리먼트(420)에서 생성한 세션 키와 동일함을 확인할 수 있다. 일 실시예에서 외부 전자 장치(320)는 상기 세션 키를 사용하여 상기 세션 키 검증 정보를 복호화하여 상기 제2 난수 값을 획득하고, 상기 제2 난수 값이 동작 822에서 전송한 제2 난수 값과 동일함을 확인함으로써 상기 세션 키를 검증할 수 있다. 상기한 동작들을 통해 보안 엘리먼트(420)는 외부 전자 장치(320)를 위한 데이터 암호화 키(예를 들어 AES 키)를 보안 저장 영역(422) 내에 저장할 수 있고, 보안 엘리먼트(420)와 외부 전자 장치(320)는 동일한 세션 키('SSK')를 공유할 수 있다.In operation 832, the external electronic device 320 may confirm that the session key generated in operation 820 is the same as the session key generated in the security element 420 based on the session key verification information. In one embodiment, the external electronic device 320 decrypts the session key verification information using the session key to obtain the second random number value, and the second random number value is equal to the second random number value transmitted in operation 822. The session key can be verified by confirming that it is identical. Through the above operations, the security element 420 can store a data encryption key (for example, an AES key) for the external electronic device 320 in the secure storage area 422, and the security element 420 and the external electronic device 320 may share the same session key ('SSK').
도 9는 일 실시예에 따라 전자 장치에서 보안 엘리먼트의 사용을 확인하는 사용자 인터페이스 화면의 일 예를 나타낸 것이다.Figure 9 shows an example of a user interface screen that confirms the use of a security element in an electronic device, according to an embodiment.
도 9를 참조하면, 전자 장치(201)(예를 들어 어플리케이션 프로세서(410))는 예를 들어 동작 802의 인증 요청을 외부 전자 장치(320)로부터 수신하고, 외부 전자 장치(320)가 보안 엘리먼트(420)를 사용하도록 허락할지 문의하는 메시지(예를 들어 'IoT 장치가 사용자의 SE를 활용할 수 있도록 허용하시겠습니까?')를 표시할 수 있다. 보안 엘리먼트(420)를 사용하도록 허락하는 사용자 입력(910)이 수신되면, 전자 장치(201)(예를 들어 어플리케이션 프로세서(410))는 동작 806 이후의 동작들을 진행할 수 있다.Referring to FIG. 9, the electronic device 201 (e.g., the application processor 410) receives, for example, an authentication request in operation 802 from the external electronic device 320, and the external electronic device 320 uses the security element. (420) A message may be displayed asking permission to use (e.g., 'Do you want to allow IoT devices to utilize your SE?'). If a user input 910 allowing use of the security element 420 is received, the electronic device 201 (eg, the application processor 410) may proceed with operations following operation 806.
도 10은 일 실시예에 따라 전자 장치가 암호화 서비스를 제공하는 절차를 설명하기 위한 흐름도이다. 후술되는 동작들 중 적어도 하나는 전자 장치(201)의 프로세서(예를 들어 프로세서(220))에 의해 실행될 수 있다. 실시예들에 따르면 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 10 is a flowchart illustrating a procedure in which an electronic device provides an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the electronic device 201. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
도 10을 참조하면, 동작 1005에서 전자 장치(201)(예를 들어 프로세서(220))는 외부 전자 장치(320)로부터 제1 암호화 메시지를 수신하고 동작 1010으로 진행할 수 있다. 일 실시예에서 상기 제1 암호화 메시지는 외부 전자 장치(320)의 고유 정보, 또는 암호화가 적용되었음을 알리는 정보 중 적어도 하나와 함께 수신될 수 있다. 동작 1010에서 전자 장치(201)(예를 들어 프로세서(220))는 세션 키(예를 들어 세션 키(428))(예를 들어 동작 826에서 생성된 세션 키 SSK)를 사용하여 상기 제1 암호화 메시지를 복호함으로써 상기 제1 암호화 메시지에 포함되어 있는 {데이터 및 암호화 요청}을 획득할 수 있다. 일 실시예에서 상기 데이터는 외부 전자 장치(320)가 암호화를 요청하는 개인 정보(예를 들어 패스워드) 및/또는 개인 데이터(예를 들어 홈 네트워크 내에서 촬영된 영상 또는 도어락 출입 기록)를 포함할 수 있다. Referring to FIG. 10 , in operation 1005, the electronic device 201 (eg, processor 220) may receive a first encrypted message from the external electronic device 320 and proceed to operation 1010. In one embodiment, the first encryption message may be received together with at least one of unique information about the external electronic device 320 or information indicating that encryption has been applied. In operation 1010, the electronic device 201 (e.g., processor 220) performs the first encryption using a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 826). By decoding the message, {data and encryption request} included in the first encrypted message can be obtained. In one embodiment, the data may include personal information (e.g., password) and/or personal data (e.g., video captured within a home network or door lock access record) for which the external electronic device 320 requests encryption. You can.
동작 1015에서 전자 장치(201)(예를 들어 프로세서(220))는 보안 엘리먼트(420) 내의 보안 저장 영역(422)에 저장된 데이터 암호화 키(예를 들어 데이터 암호화 키(424))(예를 들어 동작 810에서 생성된 AES 키)를 이용하여 상기 데이터를 암호화하여 암호화 데이터(encrypted data)를 생성할 수 있다. 동작 1020에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 암호화 데이터를 세션 키로 암호화하여 제2 암호화 메시지를 생성할 수 있다. 동작 1025에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 제2 암호화 메시지를 외부 전자 장치(320)로 전송할 수 있다.In operation 1015, the electronic device 201 (e.g., processor 220) retrieves a data encryption key (e.g., data encryption key 424) stored in the secure storage area 422 within the secure element 420 (e.g. The data may be encrypted using the AES key generated in operation 810 to generate encrypted data. In operation 1020, the electronic device 201 (eg, processor 220) may encrypt the encrypted data using a session key to generate a second encrypted message. In operation 1025, the electronic device 201 (eg, processor 220) may transmit the second encrypted message to the external electronic device 320.
도 11은 일 실시예에 따라 외부 전자 장치가 암호화 서비스를 이용하는 절차를 설명하기 위한 흐름도이다. 후술되는 동작들 중 적어도 하나는 외부 전자 장치(320)의 프로세서(예를 들어 프로세서(510))에 의해 실행될 수 있다. 실시예들에 따르면 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 11 is a flowchart illustrating a procedure in which an external electronic device uses an encryption service according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 510) of the external electronic device 320. According to embodiments, at least one of the operations described below may be omitted, modified, or changed in order.
도 11을 참조하면, 동작 1105에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 암호화가 필요한 데이터가 존재함을 식별하고 동작 1110으로 진행할 수 있다. 일 실시예에서 상기 데이터는 패스워드와 같은 개인 정보 또는 개인 데이터를 포함할 수 있다. 일 실시예에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 사용자로부터 외부 전자 장치(320)의 제어를 위해 새로 설정된 패스워드를 입력받으면, 상기 패스워드를 암호화하여 저장하기 위해 동작 1110으로 진행할 수 있다. 일 실시예에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 사용자 요청 또는 지정된 주기에 따라, 촬영된 영상 데이터 또는 도어락 출입 기록과 같은 개인 데이터를 암호화하여 저장하기 위해 동작 1110으로 진행할 수 있다.Referring to FIG. 11 , in operation 1105, the external electronic device 320 (eg, processor 510) may identify that data requiring encryption exists and proceed to operation 1110. In one embodiment, the data may include personal information or personal data such as passwords. In one embodiment, when the external electronic device 320 (for example, the processor 510) receives a newly set password for controlling the external electronic device 320 from the user, it proceeds to operation 1110 to encrypt and store the password. You can proceed. In one embodiment, the external electronic device 320 (e.g., processor 510) proceeds to operation 1110 to encrypt and store personal data such as captured image data or door lock access records according to a user request or a specified cycle. You can.
동작 1110에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 암호화가 필요한 데이터(예를 들어 상기 패스워드 또는 상기 영상 데이터)와 암호화 요청을 세션 키(예를 들어 세션 키(428))(예를 들어 동작 820에서 생성된 세션 키 SSK)에 의해 암호화하여 제1 암호화 메시지를 생성할 수 있다. 상기 제1 암호화 메시지는 상기 세션 키로 암호화된 {데이터 및 암호화 요청}을 포함할 수 있다. 동작 1115에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 제1 암호화 메시지를 전자 장치(201)에게 전송할 수 있다. 일 실시예에서 일 실시예에서 상기 제1 암호화 메시지는 외부 전자 장치(320)의 고유 정보, 또는 암호화가 적용되었음을 알리는 정보 중 적어도 하나와 함께 전송될 수 있다.In operation 1110, the external electronic device 320 (e.g., processor 510) sends data requiring encryption (e.g., the password or the image data) and an encryption request with a session key (e.g., session key 428). The first encrypted message may be generated by encryption using (for example, the session key SSK generated in operation 820). The first encrypted message may include {data and encryption request} encrypted with the session key. In operation 1115, the external electronic device 320 (eg, processor 510) may transmit the first encrypted message to the electronic device 201. In one embodiment, the first encrypted message may be transmitted along with at least one of unique information about the external electronic device 320 or information indicating that encryption has been applied.
동작 1120에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 전자 장치(201)로부터 제2 암호화 메시지를 수신할 수 있다. 동작 1125에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 세션 키를 사용하여 상기 제2 암호화 메시지를 복호함으로써, 상기 제2 암호화 메시지에 포함되어 있는 {암호화 데이터}를 획득할 수 있다. 상기 제2 암호화 메시지는 동작 1115에서 전송된 데이터에 대응하는, 데이터 암호화 키(예를 들어 데이터 암호화 키(424))(예를 들어 동작 810에서 생성된 AES 키)에 의해 암호화된 데이터를 포함할 수 있다. 일 실시예에서 상기 제2 암호화 메시지는 상기 제1 암호화 메시지에 대응하여 수신될 수 있다. In operation 1120, the external electronic device 320 (eg, processor 510) may receive a second encrypted message from the electronic device 201. In operation 1125, the external electronic device 320 (e.g., processor 510) decrypts the second encrypted message using the session key to obtain {encrypted data} included in the second encrypted message. You can. The second encrypted message may include data encrypted by a data encryption key (e.g., data encryption key 424) (e.g., the AES key generated in operation 810), corresponding to the data transmitted in operation 1115. You can. In one embodiment, the second encrypted message may be received in response to the first encrypted message.
일 실시예에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 제2 암호화 메시지가, 상기 제1 암호화 메시지를 통해 전달한 원본 데이터에 대응하는 암호화 데이터를 포함함을 인식할 수 있다. 상기 획득된 암호화 데이터는 외부 전자 장치(320)의 메모리(예를 들어 메모리(530))에 안전하게 저장될 수 있다. 일 실시예에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 암호화 데이터를 저장하고, 상기 원본 데이터를 삭제할 수 있다.In one embodiment, the external electronic device 320 (e.g., processor 510) may recognize that the second encrypted message includes encrypted data corresponding to the original data transmitted through the first encrypted message. . The obtained encrypted data may be safely stored in the memory (eg, memory 530) of the external electronic device 320. In one embodiment, the external electronic device 320 (eg, processor 510) may store the encrypted data and delete the original data.
도 12는 일 실시예에 따라 암호화 서비스를 제공하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다. 후술되는 동작들 중 적어도 일부는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 12 shows a signal flow diagram to explain a procedure for providing encryption services according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
도 12를 참조하면, 동작 1202에서 외부 전자 장치(320)는 암호화가 필요한 데이터(예를 들어 패스워드 또는 개인 데이터)가 발생함을 검출할 수 있다. 일 실시예에서 외부 전자 장치(320)는 주기적, 지정된 조건이 만족될 때, 또는 사용자 입력에 응답하여 데이터의 암호화가 필요함을 판단하고 동작 1204로 진행할 수 있다. 동작 1204에서 외부 전자 장치(320)는 암호화가 필요한 상기 데이터 및 상기 데이터와 관련된 암호화 요청을 세션 키(예를 들어 세션 키(428))(예를 들어 동작 820에서 생성된 세션 키 SSK)에 의해 암호화하여 제1 암호화 메시지('Enc (SSK, Data || Encrypt Request)')를 생성할 수 있다. 동작 1206에서 외부 전자 장치(320)는 상기 제1 암호화 메시지('Enc (SSK, Data || Encrypt Request)')를 전자 장치(201)의 어플리케이션 프로세서(410)로 전송할 수 있다. 일 실시예에서 상기 제1 암호화 메시지는 외부 전자 장치(320)의 고유 정보와 함께 전송될 수 있다.Referring to FIG. 12, in operation 1202, the external electronic device 320 may detect that data requiring encryption (eg, password or personal data) is generated. In one embodiment, the external electronic device 320 may determine that encryption of data is necessary periodically, when a specified condition is satisfied, or in response to a user input, and proceed to operation 1204. In operation 1204, the external electronic device 320 sends the data requiring encryption and an encryption request related to the data using a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 820). The first encrypted message ('Enc (SSK, Data || Encrypt Request)') can be generated by encryption. In operation 1206, the external electronic device 320 may transmit the first encryption message ('Enc (SSK, Data || Encrypt Request)') to the application processor 410 of the electronic device 201. In one embodiment, the first encrypted message may be transmitted along with unique information of the external electronic device 320.
동작 1208에서 어플리케이션 프로세서(410)는 상기 제1 암호화 메시지(및 고유 정보)를 APDU의 포맷으로 변환하여 보안 엘리먼트(420)에게 전송할 수 있다. 동작 1210에서 보안 엘리먼트(420)는 외부 전자 장치(320)에 대해 미리 저장된 세션 키(예를 들어 동작 826에서 생성된 세션 키 SSK)(예를 들어 세션 키(428))를 사용하여 상기 제1 암호화 메시지를 복호함으로써 상기 제1 암호화 메시지에 포함되어 있는 {데이터 및 암호화 요청}을 획득할 수 있다. 동작 1212에서 보안 엘리먼트(420)는 상기 암호화 요청에 응답하여 보안 저장 영역(422)에 저장된 데이터 암호화 키(예를 들어 데이터 암호화 키(424))(예를 들어 동작 810에서 생성된 AES 키)를 이용하여 상기 데이터를 암호화함으로써 암호화 데이터('Enc (AES, Data)')를 생성할 수 있다. 동작 1214에서 보안 엘리먼트(420)는 상기 암호화 데이터를 세션 키로 암호화하여 제2 암호화 메시지('Enc (SSK, Enc (AES, Data))')를 생성할 수 있다. 동작 1216에서 보안 엘리먼트(420)는 상기 제2 암호화 메시지를 APDU의 포맷으로 어플리케이션 프로세서(410)에게 전송할 수 있다. 동작 1218에서 어플리케이션 프로세서(410)는 상기 제2 암호화 메시지를 외부 전자 장치(320)에게 전송할 수 있다.In operation 1208, the application processor 410 may convert the first encrypted message (and unique information) into an APDU format and transmit it to the security element 420. In operation 1210, the security element 420 uses a pre-stored session key for the external electronic device 320 (e.g., the session key SSK generated in operation 826) (e.g., the session key 428) to By decoding the encrypted message, {data and encryption request} included in the first encrypted message can be obtained. In operation 1212, the secure element 420 generates a data encryption key (e.g., data encryption key 424) stored in the secure storage area 422 (e.g., the AES key generated in operation 810) in response to the encryption request. By encrypting the data, encrypted data ('Enc (AES, Data)') can be created. In operation 1214, the security element 420 may encrypt the encrypted data using a session key to generate a second encrypted message ('Enc (SSK, Enc (AES, Data))'. In operation 1216, the security element 420 may transmit the second encrypted message to the application processor 410 in the format of an APDU. In operation 1218, the application processor 410 may transmit the second encrypted message to the external electronic device 320.
동작 1220에서 외부 전자 장치(320)는 상기 세션 키를 사용하여 상기 제2 암호화 메시지를 복호함으로써, 상기 제2 암호화 메시지에 포함되어 있는 암호화 데이터('Enc (AES, Data)')를 획득할 수 있다. 외부 전자 장치(320)는 상기 획득된 암호화 데이터를 메모리(530)에 저장할 수 있다. 일 실시예에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 암호화 데이터를 저장하고, 동작 1206에서 전송한 원본 데이터를 삭제할 수 있다. In operation 1220, the external electronic device 320 can obtain encrypted data ('Enc (AES, Data)') included in the second encrypted message by decrypting the second encrypted message using the session key. there is. The external electronic device 320 may store the obtained encrypted data in the memory 530. In one embodiment, the external electronic device 320 (eg, processor 510) may store the encrypted data and delete the original data transmitted in operation 1206.
일 실시예에서 전자 장치(201)가 외부 전자 장치(320)에게 복호화 서비스를 제공하는 절차는 도 10과 유사할 수 있고, 외부 전자 장치(320)가 전자 장치(201)를 통해 복호화 서비스를 이용하는 절차는 도 11과 유사할 수 있다. 전자 장치(201)와 외부 전자 장치(320)가 수행하는 동작들에 대한 구체적인 설명은 하기의 도 13을 참조할 수 있다.In one embodiment, the procedure for providing a decryption service by the electronic device 201 to the external electronic device 320 may be similar to FIG. 10, and the external electronic device 320 uses the decryption service through the electronic device 201. The procedure may be similar to Figure 11. For a detailed description of the operations performed by the electronic device 201 and the external electronic device 320, refer to FIG. 13 below.
도 13은 일 실시예에 따라 복호화 서비스를 제공하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다. 후술되는 동작들 중 적어도 일부는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 13 shows a signal flow diagram to explain a procedure for providing a decryption service according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
도 13을 참조하면, 동작 1302에서 외부 전자 장치(320)는 암호화 데이터('E(D)')의 복호화가 필요함을 검출할 수 있다. 일 실시예에서 외부 전자 장치(320)는 암호화 데이터를 사용(예를 들어 패스워드의 확인 또는 영상 데이터의 재생)하기 위해 동작 1304로 진행할 수 있다. 동작 1304에서 외부 전자 장치(320)는 상기 암호화 데이터 및 상기 암호화 데이터와 관련된 복호화 요청을 세션 키(예를 들어 세션 키(428))(예를 들어 동작 820에서 생성된 세션 키 SSK)에 의해 암호화하여 제1 암호화 메시지('Enc (SSK, E(D) || Decrypt Request)')를 생성할 수 있다. 동작 1306에서 외부 전자 장치(320)는 상기 제1 암호화 메시지('Enc (SSK, E(D) || Decrypt Request)')를 전자 장치(201)의 어플리케이션 프로세서(410)로 전송할 수 있다. 일 실시예에서 상기 제1 암호화 메시지는 외부 전자 장치(320)의 고유 정보와 함께 전송될 수 있다.Referring to FIG. 13, in operation 1302, the external electronic device 320 may detect that decryption of the encrypted data ('E(D)') is necessary. In one embodiment, the external electronic device 320 may proceed to operation 1304 to use the encrypted data (for example, to confirm a password or play video data). In operation 1304, the external electronic device 320 encrypts the encrypted data and the decryption request related to the encrypted data using a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 820). Thus, the first encrypted message ('Enc (SSK, E(D) || Decrypt Request)') can be generated. In operation 1306, the external electronic device 320 may transmit the first encryption message ('Enc (SSK, E(D) || Decrypt Request)') to the application processor 410 of the electronic device 201. In one embodiment, the first encrypted message may be transmitted along with unique information of the external electronic device 320.
동작 1308에서 어플리케이션 프로세서(410)는 상기 제1 암호화 메시지(및 고유 정보)를 APDU의 포맷으로 보안 엘리먼트(420)에게 전송할 수 있다. 동작 1310에서 보안 엘리먼트(420)는 외부 전자 장치(320)에 대해 미리 저장된 세션 키(예를 들어 동작 826에서 생성된 세션 키 SSK)(예를 들어 세션 키(428))를 사용하여 상기 제1 암호화 메시지를 복호함으로써 상기 제1 암호화 메시지에 포함되어 있는 {암호화 데이터 및 복호화 요청}을 획득할 수 있다. 동작 1312에서 보안 엘리먼트(420)는 상기 복호화 요청에 응답하여 보안 저장 영역(422)에 저장된 데이터 암호화 키(예를 들어 데이터 암호화 키(424))(예를 들어 동작 810에서 생성된 AES 키)를 이용하여 상기 암호화 데이터를 복호화함으로써 원본 데이터('Data')를 생성할 수 있다. 동작 1314에서 보안 엘리먼트(420)는 상기 원본 데이터를 세션 키로 암호화하여 제2 암호화 메시지('Enc (SSK, Data)')를 생성할 수 있다. 동작 1316에서 보안 엘리먼트(420)는 상기 제2 암호화 메시지를 APDU의 포맷으로 어플리케이션 프로세서(410)에게 전송할 수 있다. 동작 1318에서 어플리케이션 프로세서(410)는 상기 제2 암호화 메시지를 외부 전자 장치(320)에게 전송할 수 있다.In operation 1308, the application processor 410 may transmit the first encrypted message (and unique information) to the security element 420 in the format of an APDU. In operation 1310, the security element 420 uses a pre-stored session key for the external electronic device 320 (e.g., the session key SSK generated in operation 826) (e.g., the session key 428) to By decoding the encrypted message, {encrypted data and decryption request} included in the first encrypted message can be obtained. In operation 1312, the secure element 420 generates a data encryption key (e.g., data encryption key 424) stored in the secure storage area 422 (e.g., the AES key generated in operation 810) in response to the decryption request. Original data ('Data') can be generated by decrypting the encrypted data using . In operation 1314, the security element 420 may encrypt the original data using a session key to generate a second encrypted message ('Enc (SSK, Data)'). In operation 1316, the security element 420 may transmit the second encrypted message to the application processor 410 in the format of an APDU. In operation 1318, the application processor 410 may transmit the second encrypted message to the external electronic device 320.
동작 1320에서 외부 전자 장치(320)는 상기 세션 키를 사용하여 상기 제2 암호화 메시지를 복호함으로써, 상기 제2 암호화 메시지에 포함되어 있는 원본 데이터('Data')를 획득할 수 있다. 외부 전자 장치(320)는 상기 획득된 원본 데이터를 메모리(530)에 적어도 일시적으로 저장하거나, 예를 들어 패스워드 확인 또는 영상 재생을 위해 사용할 수 있다. 일 실시예에서 외부 전자 장치(320)(예를 들어 프로세서(510))는 상기 원본 데이터를 사용한 이후, 보안을 위해 상기 원본 데이터를 삭제할 수 있다. In operation 1320, the external electronic device 320 can obtain original data ('Data') included in the second encrypted message by decrypting the second encrypted message using the session key. The external electronic device 320 may at least temporarily store the acquired original data in the memory 530 or use it, for example, to confirm a password or play an image. In one embodiment, the external electronic device 320 (eg, processor 510) may delete the original data for security purposes after using the original data.
도 14는 일 실시예에 따라 패스워드의 안전한 저장을 설명하기 위한 도면이다.FIG. 14 is a diagram illustrating safe storage of a password according to an embodiment.
도 14를 참조하면, 외부 전자 장치(320)는 사용자로부터 외부 전자 장치(320)의 제어를 위해 설정된 패스워드(1410)를 입력받을 수 있다. 상기 패스워드(1410)는 문자열 "PASSWORD"와 함께 사용자로부터 입력된 문자열(예를 들어 "FDF778523...")을 그대로 포함할 수 있고 따라서 공격자에 의해 탈취될 위험성이 있다. 외부 전자 장치(320)는 상기 패스워드(1410)를 암호화 요청과 함께 전자 장치(201)로 전송하고, 그에 대응하는 응답으로 암호화된 패스워드(1420)를 수신할 수 있다. 암호화된 패스워드(1420)는 전자 장치(201)의 보안 엘리먼트(420)에 의해 데이터 암호화 키(예를 들어 데이터 암호화 키(424))(예를 들어 AES 키)를 사용하여 생성된 암호화된 문자열(예를 들어 "0008E0A...")을 포함할 수 있으며, 데이터 암호화 키는 보안 엘리먼트(420)의 외부로 유출되지 않는다. 공격자는 암호화된 패스워드(1420)를 탈취하더라도 원래의 문자열(예를 들어 패스워드(1410))을 알 수 없다. 외부 전자 장치(320)는 암호화된 패스워드(1420)를 저장하고, 원본 패스워드(1410)를 삭제할 수 있다. Referring to FIG. 14, the external electronic device 320 may receive a password 1410 set for controlling the external electronic device 320 from the user. The password 1410 may include a string entered by the user (for example, "FDF778523...") along with the string "PASSWORD", and therefore there is a risk of it being stolen by an attacker. The external electronic device 320 may transmit the password 1410 along with an encryption request to the electronic device 201 and receive the encrypted password 1420 as a corresponding response. The encrypted password 1420 is an encrypted string generated using a data encryption key (e.g., data encryption key 424) (e.g., an AES key) by the security element 420 of the electronic device 201 ( For example, it may include "0008E0A..."), and the data encryption key is not leaked outside of the security element 420. Even if an attacker steals the encrypted password (1420), the original string (for example, the password (1410)) cannot be known. The external electronic device 320 may store the encrypted password 1420 and delete the original password 1410.
일 실시예에서 외부 전자 장치(320)를 제어하고자 하는 사용자를 인증하기 위해 암호화된 패스워드(1420)의 복호화가 필요한 경우, 외부 전자 장치(320)는 암호화된 패스워드(1420)를 복호화 요청과 함께 전자 장치(201)로 전송하고, 그에 대응하는 응답으로 보안 엘리먼트(420)에 의해 데이터 암호화 키를 사용하여 복호화된 원본 패스워드(1410)를 수신할 수 있다. 외부 전자 장치(320)는 원본 패스워드(1410)를 사용하여 사용자를 인증한 이후 원본 패스워드(1410)를 삭제하고, 암호화된 패스워드(1420)만을 계속하여 저장할 수 있다.In one embodiment, when decryption of the encrypted password 1420 is required to authenticate a user who wishes to control the external electronic device 320, the external electronic device 320 sends the encrypted password 1420 electronically along with a decryption request. It can be transmitted to the device 201, and the original password 1410 decrypted using the data encryption key by the security element 420 can be received in response. After authenticating the user using the original password 1410, the external electronic device 320 may delete the original password 1410 and continue to store only the encrypted password 1420.
도 15는 일 실시예에 따라 영상 데이터의 안전한 저장을 설명하기 위한 도면이다.FIG. 15 is a diagram illustrating safe storage of image data according to an embodiment.
도 15를 참조하면, 외부 전자 장치(320)는 보안 카메라를 통해 홈 네트워크 내의 영상을 촬영하고 영상 데이터(1510)를 생성할 수 있다. 지정된 주기 또는 사용자 요청에 따라 외부 전자 장치(320)는 상기 영상 데이터(1510)를 암호화 요청과 함께 전자 장치(201)로 전송하고, 그에 대응하는 응답으로 암호화된 영상 데이터(1520)를 수신할 수 있다. 암호화된 영상 데이터(1520)는 전자 장치(201)의 보안 엘리먼트(420)에 의해 데이터 암호화 키(예를 들어 데이터 암호화 키(424))(예를 들어 AES 키)를 사용하여 생성될 수 있다. 외부 전자 장치(320)는 암호화된 영상 데이터(1520)를 저장하고, 원본 영상 데이터(1510)를 삭제할 수 있다. Referring to FIG. 15, the external electronic device 320 can capture images within the home network through a security camera and generate image data 1510. According to a designated period or user request, the external electronic device 320 may transmit the video data 1510 to the electronic device 201 along with an encryption request, and receive encrypted video data 1520 in response. there is. Encrypted image data 1520 may be generated by the security element 420 of the electronic device 201 using a data encryption key (eg, data encryption key 424) (eg, AES key). The external electronic device 320 may store the encrypted image data 1520 and delete the original image data 1510.
일 실시예에서 암호화된 영상 데이터(1520)는 복호화를 거치지 않고는 정상적으로 재생될 수 없다. 사용자가 암호화된 영상 데이터(1520)의 재생을 요청하는 경우 외부 전자 장치(320)는 암호화된 영상 데이터(1520)를 복호화 요청과 함께 전자 장치(201)로 전송하고, 그에 대응하는 응답으로 보안 엘리먼트(420)에 의해 데이터 암호화 키를 사용하여 복호화된 원본 영상 데이터(1510)를 수신할 수 있다. 외부 전자 장치(320)는 원본 영상 데이터(1510)를 재생할 수 있으며, 재생이 완료된 이후 또는 재생이 완료되고 지정된 시간 이후에 원본 영상 데이터(1510)를 삭제하고, 암호화된 영상 데이터(1520)만을 계속하여 저장할 수 있다.In one embodiment, encrypted video data 1520 cannot be played normally without decryption. When a user requests playback of encrypted video data 1520, the external electronic device 320 transmits the encrypted video data 1520 to the electronic device 201 along with a decryption request, and sends a security element in response. Original image data 1510 decrypted using a data encryption key can be received at 420. The external electronic device 320 can play the original video data 1510, delete the original video data 1510 after playback is completed or a specified time after playback is completed, and continue to only encrypt the video data 1520. You can save it.
도 16은 일 실시예에 따라 세션 키를 갱신하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다. 후술되는 동작들 중 적어도 일부는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 16 shows a signal flow diagram for explaining a procedure for updating a session key according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
도 16을 참조하면, 동작 1602에서 외부 전자 장치(320)는 전자 장치(201)를 위한 세션 키(예를 들어 세션 키(428))(예를 들어 동작 820에서 생성한 세션 키)를 생성할 필요가 있음을 결정하고 동작 1604로 진행할 수 있다. 일 실시예에서 외부 전자 장치(320)는 각 세션 키를 생성할 때 지정된 유효시간을 카운트하기 시작하고, 상기 유효시간이 경과될 때 이전 세션 키를 삭제한 후 새로운 세션 키를 생성하기 위해 동작 1604로 진행할 수 있다. 일 실시예에서 각 세션 키는 외부 전자 장치(320)의 휘발성 메모리(미도시)에 저장될 수 있으며, 외부 전자 장치(320)는 전원-온 또는 부팅될 때 새로운 세션 키를 생성하기 위해 동작 1604로 진행할 수 있다.Referring to FIG. 16, in operation 1602, the external electronic device 320 generates a session key (e.g., session key 428) for the electronic device 201 (e.g., the session key generated in operation 820). It may be determined that a need exists and proceed to operation 1604. In one embodiment, the external electronic device 320 starts counting the specified validity time when generating each session key, deletes the previous session key when the validity time elapses, and then operates 1604 to generate a new session key. You can proceed with . In one embodiment, each session key may be stored in a volatile memory (not shown) of the external electronic device 320, and the external electronic device 320 performs operation 1604 to generate a new session key when the external electronic device 320 is powered on or booted. You can proceed with .
동작 1604에서 외부 전자 장치(320)는 전자 장치(201)(예를 들어 어플리케이션 프로세서(410))에게 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호)를 포함하는 세션 키 요청을 전송할 수 있다. 동작 1606에서 어플리케이션 프로세서(410)는 상기 고유 정보에 근거하여 외부 전자 장치(320)가 이미 등록되어 있음(예를 들어 외부 전자 장치(320)의 데이터 암호화 키가 보안 엘리먼트(420)에 저장되어 있음)을 확인함으로써 외부 전자 장치(320)를 인증할 수 있다. In operation 1604, the external electronic device 320 transmits to the electronic device 201 (e.g., the application processor 410) a session key request containing unique information (e.g., a serial number) of the external electronic device 320. You can. In operation 1606, the application processor 410 determines that the external electronic device 320 has already been registered based on the unique information (for example, the data encryption key of the external electronic device 320 is stored in the security element 420). ), the external electronic device 320 can be authenticated.
동작 1608에서 어플리케이션 프로세서(410)는 외부 전자 장치(320)를 위한 세션 키 요청을 보안 엘리먼트(420)로 전송할 수 있다. 일 실시예에서 상기 할당 요청은 외부 전자 장치(320)를 식별하는 정보(예를 들어 일련 번호)를 포함할 수 있다. 동작 1610에서 보안 엘리먼트(420)는 외부 전자 장치(320)의 장치 인증을 위한 제1 세션 키 생성 정보를 생성할 수 있다. 일 실시예에서 보안 엘리먼트(420)는 인증서('CERT'), ECKA에 따른 키 쌍(예를 들어 eSK 및 ePK), RSA에 따른 키 쌍(예를 들어 SK 및 PK), 또는 제1 난수 값('rand') 중 적어도 하나를 생성하고, 상기 제1 난수 값과 상기 ePK를 포함하는 디지털 서명('Sign (rand||ePK)')과 상기 CERT를 상기 SK에 의해 암호화하여 상기 제1 세션 키 생성 정보를 생성할 수 있다. 상기 제1 세션 키 생성 정보는 암호화된 디지털 서명 및 암호화된 CERT('Sign (rand||ePK) || CERT')를 포함할 수 있다. 동작 1612에서 보안 엘리먼트(420)는 상기 제1 세션 키 생성 정보('Sign (rand||ePK) || CERT')를 APDU의 포맷으로 어플리케이션 프로세서(410)에게 전송할 수 있다. 동작 1614에서 어플리케이션 프로세서(410)는 상기 제1 세션 키 생성 정보('Sign (rand||ePK) || CERT')를 외부 전자 장치(320)로 전달할 수 있다. In operation 1608, the application processor 410 may transmit a session key request for the external electronic device 320 to the secure element 420. In one embodiment, the allocation request may include information (eg, serial number) identifying the external electronic device 320. In operation 1610, the security element 420 may generate first session key generation information for device authentication of the external electronic device 320. In one embodiment, the secure element 420 is configured to include a certificate ('CERT'), a key pair according to ECKA (e.g. eSK and ePK), a key pair according to RSA (e.g. SK and PK), or a first random number value. ('rand'), and encrypt the digital signature ('Sign (rand||ePK)') including the first random number value and the ePK and the CERT by the SK to establish the first session. Key creation information can be generated. The first session key creation information may include an encrypted digital signature and an encrypted CERT ('Sign (rand||ePK) || CERT'). In operation 1612, the security element 420 may transmit the first session key creation information ('Sign (rand||ePK) || CERT') to the application processor 410 in the format of an APDU. In operation 1614, the application processor 410 may transmit the first session key creation information ('Sign (rand||ePK) || CERT') to the external electronic device 320.
동작 1616에서 외부 전자 장치(320)는 서버(310)에게 외부 전자 장치(320)의 고유 정보(예를 들어 일련 번호)를 포함하는 검증 요청을 전송할 수 있다. 동작 1618에서 서버(310)는 상기 고유 정보에 의해 외부 전자 장치(320)를 식별 및 확인하고, 상기 인증서를 위한 검증 키를 외부 전자 장치(320)에게 전송할 수 있다. 동작 1620에서 외부 전자 장치(320)는 상기 검증 키를 사용하여 상기 인증서 및 상기 디지털 서명이 정상적임을 검증하고, 보안 엘리먼트(420)와의 세션 통신을 위한 세션 키를 생성할 수 있다. 일 실시예에서 외부 전자 장치(320)는 ECKA에 따른 키 쌍(예를 들어 eSK' 및 ePK')을 생성하고, eSK'과 상기 제1 세션 키 생성 정보를 통해 획득한 ePK를 기반으로 세션 키('SSK')를 생성할 수 있다(예를 들어 SSK = eSK' + ePK). 일 실시예에서 상기 세션 키는 지정된 유효시간 동안 외부 전자 장치(320)의 메모리(530)(예를 들어 휘발성 메모리)에 저장될 수 있다.In operation 1616, the external electronic device 320 may transmit a verification request including unique information (eg, serial number) of the external electronic device 320 to the server 310. In operation 1618, the server 310 identifies and verifies the external electronic device 320 using the unique information and transmits a verification key for the certificate to the external electronic device 320. In operation 1620, the external electronic device 320 may use the verification key to verify that the certificate and the digital signature are normal and generate a session key for session communication with the secure element 420. In one embodiment, the external electronic device 320 generates a key pair (e.g., eSK' and ePK') according to ECKA, and creates a session key based on eSK' and ePK obtained through the first session key generation information. ('SSK') (e.g. SSK = eSK' + ePK). In one embodiment, the session key may be stored in the memory 530 (eg, volatile memory) of the external electronic device 320 for a designated validity period.
동작 1622에서 외부 전자 장치(320)는 제2 세션 키 생성 정보를 전자 장치(201)의 어플리케이션 프로세서(410)로 전송할 수 있다. 일 실시예에서 외부 전자 장치(320)는 제2 난수 값('rand2')을 생성하고, 제1 세션 키 생성 정보에서 획득한 제1 난수 값('rand')과 상기 제2 난수 값을 상기 세션 키에 의해 암호화하여 암호화된 난수 정보('Enc (SSK, rand || rand2)')를 생성할 수 있다. 외부 전자 장치(320)는 상기 암호화된 난수 정보와 상기 ePK'를 포함하는 상기 제2 세션 키 생성 정보를 생성할 수 있다. 동작 1624에서 어플리케이션 프로세서(410)는 상기 제2 세션 키 생성 정보('Enc (SSK, rand || rand2) || ePK')를 APDU의 포맷으로 변환하여 보안 엘리먼트(420)로 전달할 수 있다.In operation 1622, the external electronic device 320 may transmit second session key creation information to the application processor 410 of the electronic device 201. In one embodiment, the external electronic device 320 generates a second random number value ('rand2'), and combines the first random number value ('rand') obtained from the first session key generation information with the second random number value. Encrypted random number information ('Enc (SSK, rand || rand2)') can be generated by encryption using the session key. The external electronic device 320 may generate the second session key generation information including the encrypted random number information and the ePK'. In operation 1624, the application processor 410 may convert the second session key creation information ('Enc (SSK, rand || rand2) || ePK') into an APDU format and transmit it to the security element 420.
동작 1626에서 보안 엘리먼트(420)는 상기 제2 세션 키 생성 정보를 기반으로 세션 키(예를 들어 세션 키(428))를 생성할 수 있다. 일 실시예에서 보안 엘리먼트(420)는 상기 제2 세션 키 생성 정보에 포함된 ePK'과 eSK를 기반으로 세션 키를 생성할 수 있다(예를 들어 SSK=ePK'+eSK). 상기 세션 키는 지정된 유효시간 동안 전자 장치(201)의 저장 영역(예를 들어 보안 저장 영역(422))에 저장될 수 있다. 보안 엘리먼트(420)는 상기 세션 키를 이용하여 예를 들어 도 12 및/또는 도 13의 절차와 같이 외부 전자 장치(320)에게 암호화 및/또는 복호화 서비스를 제공할 수 있다.In operation 1626, the security element 420 may generate a session key (eg, session key 428) based on the second session key generation information. In one embodiment, the security element 420 may generate a session key based on ePK' and eSK included in the second session key generation information (for example, SSK=ePK'+eSK). The session key may be stored in a storage area (eg, secure storage area 422) of the electronic device 201 for a designated validity period. The security element 420 may provide an encryption and/or decryption service to the external electronic device 320 using the session key, for example, as in the procedures of FIGS. 12 and/or 13 .
도 17은 일 실시예에 따라 서버 인증을 위한 비대칭 키를 생성하는 절차를 설명하기 위한 신호 흐름도를 도시한 것이다. 후술되는 동작들 중 적어도 일부는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 17 is a signal flow diagram illustrating a procedure for generating an asymmetric key for server authentication according to an embodiment. At least some of the operations described below may be omitted, modified, or changed in order.
도 17을 참조하면, 동작 1702에서 외부 전자 장치(320)는 서버 인증을 획득하는데 사용되기 위한 비대칭 키(asymmetric key)를 생성할 것을 결정하고 동작 1704로 진행할 수 있다. 일 실시예에서 서버(예를 들어 서버(310))는 외부 전자 장치(320)를 위한 클라우드 서비스를 제공할 수 있으며, 외부 전자 장치(320)는 서버(310)의 인증을 획득하기 위해 비대칭 키를 사용할 수 있다. Referring to FIG. 17, in operation 1702, the external electronic device 320 may determine to generate an asymmetric key to be used to obtain server authentication and proceed to operation 1704. In one embodiment, a server (e.g., server 310) may provide a cloud service for an external electronic device 320, and the external electronic device 320 may use an asymmetric key to obtain authentication of the server 310. can be used.
동작 1704에서 외부 전자 장치(320)는 비대칭 키 요청('Asym key Request')을 세션 키(예를 들어 세션 키(428))(예를 들어 동작 820에서 생성된 세션 키 SSK)에 의해 암호화하여 제1 암호화 메시지('Enc (SSK, Asym key Request)')를 생성할 수 있다. 동작 1706에서 외부 전자 장치(320)는 상기 제1 암호화 메시지('Enc (SSK, Asym key Request)')를 전자 장치(201)의 어플리케이션 프로세서(410)로 전송할 수 있다. 일 실시예에서 상기 제1 암호화 메시지는 외부 전자 장치(320)의 고유 정보와 함께 전송될 수 있다.In operation 1704, the external electronic device 320 encrypts the asymmetric key request ('Asym key Request') by a session key (e.g., session key 428) (e.g., the session key SSK generated in operation 820) The first encrypted message ('Enc (SSK, Asym key Request)') can be generated. In operation 1706, the external electronic device 320 may transmit the first encrypted message ('Enc (SSK, Asym key Request)') to the application processor 410 of the electronic device 201. In one embodiment, the first encrypted message may be transmitted along with unique information of the external electronic device 320.
동작 1708에서 어플리케이션 프로세서(410)는 상기 제1 암호화 메시지(및 고유 정보)를 APDU의 포맷으로 변환하여 보안 엘리먼트(420)에게 전송할 수 있다. 동작 1710에서 보안 엘리먼트(420)는 외부 전자 장치(320)에 대해 미리 저장된 세션 키(예를 들어 동작 826에서 생성된 세션 키 SSK)(예를 들어 세션 키(428))를 사용하여 상기 제1 암호화 메시지를 복호함으로써 상기 제1 암호화 메시지에 포함되어 있는 {비대칭 키 요청}을 획득할 수 있다. 동작 1712에서 보안 엘리먼트(420)는 상기 비대칭 키 요청에 응답하여 비대칭 키 쌍(예를 들어 SK 및 PK)을 생성할 수 있다. 일 실시예에서 보안 엘리먼트(420)는 공개 SSL(open secure socket layer)에 따른 방식으로 상기 비대칭 키 쌍을 생성할 수 있다.In operation 1708, the application processor 410 may convert the first encrypted message (and unique information) into an APDU format and transmit it to the security element 420. In operation 1710, the security element 420 uses a pre-stored session key for the external electronic device 320 (e.g., the session key SSK generated in operation 826) (e.g., the session key 428) to By decoding the encrypted message, {asymmetric key request} included in the first encrypted message can be obtained. In operation 1712, the secure element 420 may generate an asymmetric key pair (e.g., SK and PK) in response to the asymmetric key request. In one embodiment, the security element 420 may generate the asymmetric key pair in a manner according to open secure socket layer (SSL).
동작 1714에서 보안 엘리먼트(420)는 상기 SK를 보안 저장 영역(422)에 저장하고, 상기 PK를 상기 세션 키로 암호화하여 제2 암호화 메시지('Enc (SSK, PK)')를 생성할 수 있다. 동작 1716에서 보안 엘리먼트(420)는 상기 제2 암호화 메시지를 APDU의 포맷으로 어플리케이션 프로세서(410)에게 전송할 수 있다. 동작 1718에서 어플리케이션 프로세서(410)는 상기 제2 암호화 메시지를 외부 전자 장치(320)에게 전송할 수 있다.In operation 1714, the security element 420 may store the SK in the secure storage area 422 and encrypt the PK with the session key to generate a second encrypted message ('Enc (SSK, PK)'). In operation 1716, the security element 420 may transmit the second encrypted message to the application processor 410 in the format of an APDU. In operation 1718, the application processor 410 may transmit the second encrypted message to the external electronic device 320.
동작 1720에서 외부 전자 장치(320)는 상기 세션 키를 사용하여 상기 제2 암호화 메시지를 복호함으로써, 상기 제2 암호화 메시지에 포함되어 있는 PK를 획득할 수 있다. 동작 1722에서 외부 전자 장치(320)는 상기 PK를 기반으로 서버(310)와의 인증 절차를 수행할 수 있다. 서버(310)는 외부 전자 장치(320)에서 사용된 것과 동일한 키 생성 알고리즘을 사용하여 상기 동일한 비대칭 키 쌍을 생성하고, 상기 비대칭 키 쌍의 SK를 사용하여 외부 전자 장치(320)를 인증할 수 있다.In operation 1720, the external electronic device 320 can obtain the PK included in the second encrypted message by decrypting the second encrypted message using the session key. In operation 1722, the external electronic device 320 may perform an authentication procedure with the server 310 based on the PK. The server 310 may generate the same asymmetric key pair using the same key generation algorithm used in the external electronic device 320 and authenticate the external electronic device 320 using the SK of the asymmetric key pair. there is.
일 실시예에서 상기 인증 절차는 외부 전자 장치(320)가 상기 PK를 서버(310)로 전달하여 서버(310)에 클라우드 레지스트리를 생성하고 외부 전자 장치(320)의 장치 정보 및 상기 PK를 상기 클라우드 레지스트리에 저장하는 동작과, 외부 전자 장치(320)가 장치 인증을 위한 웹 토큰(예를 들어 JWT(JSON Web token))을 생성하고 상기 웹 토큰을 개인 키로 사인하여 서버(310)로 전달하는 동작과, 서버(310)가 상기 클라우드 레지스트리에 저장된 상기 PK를 기반으로 상기 사인된 웹 토큰을 검증함으로써 외부 전자 장치(320)가 인증되었음을 확인하는 동작을 포함할 수 있다.In one embodiment, the authentication procedure involves the external electronic device 320 transmitting the PK to the server 310 to create a cloud registry in the server 310 and storing the device information of the external electronic device 320 and the PK in the cloud. An operation of storing in the registry, and an operation of the external electronic device 320 generating a web token (e.g., JWT (JSON Web token)) for device authentication, signing the web token with a private key, and transmitting it to the server 310. and, the server 310 confirming that the external electronic device 320 has been authenticated by verifying the signed web token based on the PK stored in the cloud registry.
도 17의 절차를 통해 외부 전자 장치(320)의 인증에 필요한 비대칭 키(예를 들어 SK 및 PK)를 보안 엘리먼트(420)에서 생성하고 상기 SK를 안전하게 보관할 수 있다. Through the procedure of FIG. 17 , an asymmetric key (eg, SK and PK) required for authentication of the external electronic device 320 can be generated in the security element 420 and the SK can be safely stored.
개시되는 실시예들은 보안 엘리먼트를 탑재하지 않은 외부 전자 장치(예를 들어 외부 전자 장치(320))에 대하여 전자 장치(201)가 탑재하고 있는 보안 엘리먼트(420)를 활용하여 높은 보안 수준의 암호화/복호화 서비스를 제공할 수 있다. 예를 들어 홈 네트워크의 IoT 장치로서 구현될 수 있는 외부 전자 장치(320)에서 데이터의 안전한 보호 및 개인 정보의 유출 방지를 위해 사용되는 데이터 암호화 키를 전자 장치(201)의 보안 엘리먼트(420)를 사용하여 안전하게 보관할 수 있다. The disclosed embodiments utilize the security element 420 mounted on the electronic device 201 for an external electronic device not equipped with a security element (e.g., the external electronic device 320) to achieve high security level encryption/ Decryption service can be provided. For example, the data encryption key used to safely protect data and prevent leakage of personal information in an external electronic device 320 that can be implemented as an IoT device in a home network is stored in the security element 420 of the electronic device 201. It can be used and stored safely.
일 실시예에 따른 전자 장치(201)는, 통신 회로(290) 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서(220)를 포함할 수 있다. 상기 적어도 하나의 프로세서는, 보안 기능을 지원하지 않는 외부 전자 장치(320) 로부터 상기 통신 회로를 통해 고유 정보를 포함하는 인증 요청을 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하도록 구성될 수 있다.The electronic device 201 according to one embodiment may include a communication circuit 290 and at least one processor 220 operatively connected to the communication circuit. The at least one processor may be configured to receive an authentication request including unique information from an external electronic device 320 that does not support a security function through the communication circuit. The at least one processor may be configured to allocate a secure storage area for the external electronic device based on the unique information. The at least one processor may be configured to generate a data encryption key for the external electronic device and store it in the secure storage area. The at least one processor may be configured to generate a session key for session communication with the external electronic device. The at least one processor may be configured to provide an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
일 실시예에서 상기 세션 키는, 지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장될 수 있다.In one embodiment, the session key has a designated validity time and may be stored in volatile memory within the electronic device.
일 실시예에서 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와 통신하는 어플리케이션 프로세서(AP)(410)와, 상기 어플리케이션 프로세서를 통해 상기 외부 전자 장치와 통신하며, 지정된 보안 수준을 제공하는 상기 보안 저장 영역을 포함하고, 상기 외부 전자 장치를 위한 상기 데이터 암호화 키를 생성하고 상기 보안 저장 영역 내에 상기 데이터 암호화 키를 저장하도록 구성되는 보안 엘리먼트(SE)(420)를 포함할 수 있다.In one embodiment, the at least one processor includes an application processor (AP) 410 that communicates with the external electronic device, and the secure storage that communicates with the external electronic device through the application processor and provides a specified security level. area, and may include a security element (SE) 420 configured to generate the data encryption key for the external electronic device and store the data encryption key within the secure storage area.
일 실시예에서 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 상기 외부 전자 장치로부터 데이터와 암호화 요청을 포함하는 제1 암호화 메시지를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 데이터 및 상기 암호화 요청을 획득하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 보안 엘리먼트에 의해 상기 데이터 암호화 키를 이용하여 상기 데이터를 암호화하여 암호화 데이터를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 암호화 데이터를 암호화하여 암호화 데이터를 포함하는 제2 암호화 메시지를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 제2 암호화 메시지를 상기 통신 회로를 통해 상기 외부 전자 장치로 전송하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to receive a first encryption message including data and an encryption request from the external electronic device through the communication circuit. The at least one processor may be configured to obtain the data and the encryption request by decrypting the first encrypted message using the session key by the security element. The at least one processor may be configured to generate encrypted data by encrypting the data using the data encryption key by the security element. The at least one processor may be configured to encrypt the encrypted data using the session key by the security element to generate a second encrypted message including the encrypted data. The at least one processor may be configured to transmit the second encrypted message to the external electronic device through the communication circuit.
일 실시예에서 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치의 장치 인증을 위한 인증서, 제1 키 쌍, 제2 키 쌍, 또는 제1 난수 값 중 적어도 하나를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 난수 값과 상기 제1 키 쌍의 제1 공개 키를 포함하는 디지털 서명과 상기 인증서를 상기 제2 키 쌍의 비밀 키에 의해 암호화하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 암호화된 디지털 서명 및 상기 암호화된 인증서를 포함하는 제1 세션 키 생성 정보를 상기 외부 전자 장치로 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치로부터 암호화된 난수 정보 및 제2 공개 키를 포함하는 제2 세션 키 생성 정보를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 제1 키 쌍의 비밀 키와 상기 제2 공개 키를 기반으로 상기 세션 키를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키를 이용하여 상기 암호화된 난수 정보를 복호화함으로써 상기 제1 난수 값 및 제2 난수 값을 획득하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 제2 난수 값을 상기 세션 키를 이용하여 암호화하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 암호화된 제2 난수 값을 포함하는 세션 키 검증 정보를 상기 외부 전자 장치로 전송하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to generate at least one of a certificate, a first key pair, a second key pair, or a first random number value for device authentication of the external electronic device. The at least one processor may be configured to encrypt the digital signature including the random value and the first public key of the first key pair and the certificate with a private key of the second key pair. The at least one processor may be configured to transmit first session key generation information including the encrypted digital signature and the encrypted certificate to the external electronic device. The at least one processor may be configured to receive second session key generation information including encrypted random number information and a second public key from the external electronic device. The at least one processor may be configured to generate the session key based on the private key of the first key pair and the second public key. The at least one processor may be configured to obtain the first random number value and the second random number value by decrypting the encrypted random number information using the session key. The at least one processor may be configured to encrypt the second random number value using the session key. The at least one processor may be configured to transmit session key verification information including the encrypted second random number value to the external electronic device.
일 실시예에서 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치로부터 세션 키 요청을 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키 요청에 응답하여 새로운 세션 키를 생성하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to receive a session key request from the external electronic device. The at least one processor may be configured to generate a new session key in response to the session key request.
일 실시예에서 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치로부터 비대칭 키 요청을 포함하는 제1 암호화 메시지를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 비대칭 키 요청을 획득하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 비대칭 키 요청에 응답하여 서버 인증을 위한 비밀 키 및 공개 키를 포함하는 비대칭 키 쌍을 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 공개 키를 상기 세션 키로 암호화하여 제2 암호화 메시지를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 제2 암호화 메시지를 상기 외부 전자 장치로 전송하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to receive a first encryption message including an asymmetric key request from the external electronic device. The at least one processor may be configured to obtain the asymmetric key request by decrypting the first encrypted message using the session key. The at least one processor may be configured to generate an asymmetric key pair including a private key and a public key for server authentication in response to the asymmetric key request. The at least one processor may be configured to generate a second encrypted message by encrypting the public key with the session key. The at least one processor may be configured to transmit the second encrypted message to the external electronic device.
일 실시예에 따른 전자 장치(320)는, 통신 인터페이스(520) 및 상기 통신 인터페이스와 작동적으로 연결되는 적어도 하나의 프로세서(510)를 포함할 수 있다. 상기 적어도 하나의 프로세서는, 상기 통신 인터페이스를 통해 보안 기능을 지원하는 외부 전자 장치(201)에게 고유 정보를 포함하는 인증 요청을 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하도록 구성될 수 있다.The electronic device 320 according to one embodiment may include a communication interface 520 and at least one processor 510 operatively connected to the communication interface. The at least one processor may be configured to transmit an authentication request including unique information to an external electronic device 201 supporting a security function through the communication interface. The at least one processor may be configured to receive first session key creation information from the external electronic device. The at least one processor may be configured to generate a session key for session communication with the external electronic device based on the first session key generation information. The at least one processor may be configured to transmit second session key generation information for verification of the session key to the external electronic device. The at least one processor may be configured to use an encryption and/or decryption service provided by the external electronic device based on the session key.
일 실시예에서 상기 세션 키는, 지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장될 수 있다.In one embodiment, the session key has a designated validity time and may be stored in volatile memory within the electronic device.
일 실시예에서 상기 적어도 하나의 프로세서는, 암호화가 필요한 데이터의 발생을 검출하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 데이터 및 암호화 요청을 상기 세션 키에 의해 암호화하여 제1 암호화 메시지를 생성하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 통신 인터페이스를 통해 상기 외부 전자 장치로 상기 제1 암호화 메시지를 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치로부터 제2 암호화 메시지를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는, 상기 세션 키를 이용하여 상기 제2 암호화 메시지를 복호화하여 상기 데이터에 대응하는 암호화 데이터를 획득하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to detect the occurrence of data requiring encryption. The at least one processor may be configured to generate a first encrypted message by encrypting the data and the encryption request using the session key. The at least one processor may be configured to transmit the first encrypted message to the external electronic device through the communication interface. The at least one processor may be configured to receive a second encrypted message from the external electronic device. The at least one processor may be configured to decrypt the second encrypted message using the session key to obtain encrypted data corresponding to the data.
일 실시예에 따른 전자 장치(201)의 동작 방법은, 보안 기능을 지원하지 않는 외부 전자 장치(320)로부터 고유 정보를 포함하는 인증 요청을 수신하는 동작(605)을 포함할 수 있다. 상기 방법은, 상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하는 동작(615)을 포함할 수 있다. 상기 방법은, 상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하는 동작(615)을 포함할 수 있다. 상기 방법은, 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하는 동작(620)을 포함할 수 있다. 상기 방법은, 상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하는 동작(645)을 포함할 수 있다.A method of operating the electronic device 201 according to an embodiment may include an operation 605 of receiving an authentication request including unique information from an external electronic device 320 that does not support the security function. The method may include an operation 615 of allocating a secure storage area for the external electronic device based on the unique information. The method may include an operation 615 of generating a data encryption key for the external electronic device and storing it in the secure storage area. The method may include an operation 620 of generating a session key for session communication with the external electronic device. The method may include an operation 645 of providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
일 실시예에서 상기 세션 키는, 지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장될 수 있다.In one embodiment, the session key has a designated validity time and may be stored in volatile memory within the electronic device.
일 실시예에서 상기 전자 장치는, 상기 외부 전자 장치와 통신하는 어플리케이션 프로세서(AP)와, 상기 어플리케이션 프로세서를 통해 상기 외부 전자 장치와 통신하며, 지정된 보안 수준을 제공하는 상기 보안 저장 영역을 포함하고, 상기 외부 전자 장치를 위한 상기 데이터 암호화 키를 생성하고 상기 보안 저장 영역 내에 상기 데이터 암호화 키를 저장하도록 구성되는 보안 엘리먼트(SE)를 포함할 수 있다.In one embodiment, the electronic device includes an application processor (AP) that communicates with the external electronic device, and the secure storage area that communicates with the external electronic device through the application processor and provides a specified security level, and a security element (SE) configured to generate the data encryption key for the external electronic device and store the data encryption key in the secure storage area.
일 실시예에서 상기 암호화 서비스를 제공하는 동작은, 상기 외부 전자 장치로부터 데이터와 암호화 요청을 포함하는 제1 암호화 메시지를 수신하는 동작(1005)과, 상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 데이터 및 상기 암호화 요청을 획득하는 동작(1010)과, 상기 보안 엘리먼트에 의해 상기 데이터 암호화 키를 이용하여 상기 데이터를 암호화하여 암호화 데이터를 생성하는 동작(1015)과, 상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 암호화 데이터를 암호화하여 암호화 데이터를 포함하는 제2 암호화 메시지를 생성하는 동작(1020)과, 상기 제2 암호화 메시지를 상기 외부 전자 장치로 전송하는 동작(1025)를 포함할 수 있다.In one embodiment, the operation of providing the encryption service includes receiving a first encryption message including data and an encryption request from the external electronic device (1005), and using the session key by the security element to An operation (1010) of decrypting a first encryption message to obtain the data and the encryption request, and an operation (1015) of encrypting the data using the data encryption key by the security element to generate encrypted data, An operation of encrypting the encrypted data using the session key by the security element to generate a second encrypted message including encrypted data (1020), and transmitting the second encrypted message to the external electronic device ( 1025).
일 실시예에서 상기 세션 키를 생성하는 동작(620)은, 상기 외부 전자 장치의 장치 인증을 위한 인증서, 제1 키 쌍, 제2 키 쌍, 또는 제1 난수 값 중 적어도 하나를 생성하는 동작과, 상기 난수 값과 상기 제1 키 쌍의 제1 공개 키를 포함하는 디지털 서명과 상기 인증서를 상기 제2 키 쌍의 비밀 키에 의해 암호화하는 동작과, 상기 암호화된 디지털 서명 및 상기 암호화된 인증서를 포함하는 제1 세션 키 생성 정보를 상기 외부 전자 장치로 전송하는 동작과, 상기 외부 전자 장치로부터 암호화된 난수 정보 및 제2 공개 키를 포함하는 제2 세션 키 생성 정보를 수신하는 동작과, 상기 제1 키 쌍의 비밀 키와 상기 제2 공개 키를 기반으로 상기 세션 키를 생성하는 동작과, 상기 세션 키를 이용하여 상기 암호화된 난수 정보를 복호화함으로써 상기 제1 난수 값 및 제2 난수 값을 획득하는 동작과, 상기 제2 난수 값을 상기 세션 키를 이용하여 암호화하는 동작과, 상기 암호화된 제2 난수 값을 포함하는 세션 키 검증 정보를 상기 외부 전자 장치로 전송하는 동작을 포함할 수 있다.In one embodiment, the operation 620 of generating the session key includes generating at least one of a certificate for device authentication of the external electronic device, a first key pair, a second key pair, or a first random number value; , encrypting the digital signature including the random value and the first public key of the first key pair and the certificate with the private key of the second key pair, and encrypting the encrypted digital signature and the encrypted certificate. Transmitting first session key generation information including encrypted random number information and a second public key from the external electronic device; Generating the session key based on the secret key of one key pair and the second public key, and obtaining the first random number value and the second random number value by decrypting the encrypted random number information using the session key. It may include an operation of encrypting the second random number value using the session key, and an operation of transmitting session key verification information including the encrypted second random number value to the external electronic device.
일 실시예에서 상기 방법은, 상기 외부 전자 장치로부터 세션 키 요청을 수신하는 동작(1604, 1608)을 포함할 수 있다. 상기 방법은, 상기 세션 키 요청에 응답하여 새로운 세션 키를 생성하는 동작(1610)을 포함할 수 있다.In one embodiment, the method may include operations 1604 and 1608 of receiving a session key request from the external electronic device. The method may include an operation 1610 of generating a new session key in response to the session key request.
일 실시예에서 상기 방법은, 상기 외부 전자 장치로부터 비대칭 키 요청을 포함하는 제1 암호화 메시지를 수신하는 동작(1706, 1708)을 포함할 수 있다. 상기 방법은, 상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 비대칭 키 요청을 획득하는 동작(1710)을 포함할 수 있다. 상기 방법은, 상기 비대칭 키 요청에 응답하여 서버 인증을 위한 비밀 키 및 공개 키를 포함하는 비대칭 키 쌍을 생성하는 동작(1712)을 포함할 수 있다. 상기 방법은, 상기 공개 키를 상기 세션 키로 암호화하여 제2 암호화 메시지를 생성하는 동작(1714)을 포함할 수 있다. 상기 방법은, 상기 제2 암호화 메시지를 상기 외부 전자 장치로 전송하는 동작(1716, 1718)을 포함할 수 있다.In one embodiment, the method may include operations 1706 and 1708 of receiving a first encryption message including an asymmetric key request from the external electronic device. The method may include an operation 1710 of obtaining the asymmetric key request by decrypting the first encrypted message using the session key. The method may include an operation 1712 of generating an asymmetric key pair including a private key and a public key for server authentication in response to the asymmetric key request. The method may include an operation 1714 of encrypting the public key with the session key to generate a second encrypted message. The method may include operations 1716 and 1718 of transmitting the second encrypted message to the external electronic device.
일 실시예에 따른 전자 장치(320)의 동작 방법은, 보안 기능을 지원하는 외부 전자 장치(201)에게 고유 정보를 포함하는 인증 요청을 전송하는 동작(705)을 포함할 수 있다. 상기 방법은, 상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하는 동작(715)을 포함할 수 있다. 상기 방법은, 상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하는 동작(730)을 포함할 수 있다. 상기 방법은, 상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하는 동작(735)을 포함할 수 있다. 상기 방법은, 상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하는 동작(745)을 포함할 수 있다.A method of operating the electronic device 320 according to an embodiment may include an operation 705 of transmitting an authentication request including unique information to an external electronic device 201 that supports a security function. The method may include an operation 715 of receiving first session key creation information from the external electronic device. The method may include an operation 730 of generating a session key for session communication with the external electronic device based on the first session key generation information. The method may include an operation 735 of transmitting second session key generation information for verification of the session key to the external electronic device. The method may include an operation 745 of using an encryption and/or decryption service provided by the external electronic device based on the session key.
일 실시예에서 상기 세션 키는, 지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장될 수 있다.In one embodiment, the session key has a designated validity time and may be stored in volatile memory within the electronic device.
일 실시예에서 상기 암호화 서비스를 이용하는 동작은, 암호화가 필요한 데이터의 발생을 검출하는 동작(1105)과, 상기 데이터 및 암호화 요청을 상기 세션 키에 의해 암호화하여 제1 암호화 메시지를 생성하는 동작(1110)과, 상기 외부 전자 장치로 상기 제1 암호화 메시지를 전송하는 동작(1115)과, 상기 외부 전자 장치로부터 제2 암호화 메시지를 수신하는 동작(1120)과, 상기 세션 키를 이용하여 상기 제2 암호화 메시지를 복호화하여 상기 데이터에 대응하는 암호화 데이터를 획득하는 동작(1125)을 포함할 수 있다.In one embodiment, the operation of using the encryption service includes an operation of detecting the occurrence of data requiring encryption (1105), and an operation of generating a first encryption message by encrypting the data and the encryption request using the session key (1110). ), an operation 1115 of transmitting the first encrypted message to the external electronic device, an operation 1120 of receiving a second encrypted message from the external electronic device, and the second encryption using the session key. It may include an operation 1125 of decrypting the message and obtaining encrypted data corresponding to the data.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.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)(예: 전자 장치(201)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(236) 또는 외장 메모리(238))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(240))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(201))의 프로세서(예: 프로세서(220))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(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 236 or external memory 238) that can be read by a machine (e.g., electronic device 201). It may be implemented as software (e.g., program 240) including these. For example, a processor (e.g., processor 220) of a device (e.g., electronic device 201) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.
일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be provided and included in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or 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.

Claims (15)

  1. 전자 장치(201)에 있어서, In the electronic device 201,
    통신 회로(290); 및communication circuit 290; and
    상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서(220)를 포함하고, 상기 적어도 하나의 프로세서는,At least one processor 220 operatively connected to the communication circuit, the at least one processor comprising:
    보안 기능을 지원하지 않는 외부 전자 장치(320)로부터 상기 통신 회로를 통해 고유 정보를 포함하는 인증 요청을 수신하고,Receiving an authentication request containing unique information through the communication circuit from an external electronic device 320 that does not support the security function,
    상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하고,Allocating a secure storage area for the external electronic device based on the unique information,
    상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하고,Generate a data encryption key for the external electronic device and store it in the secure storage area,
    상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하고,Generate a session key for session communication with the external electronic device,
    상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하도록 구성되는 전자 장치.An electronic device configured to provide an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key.
  2. 제 1 항에 있어서, 상기 세션 키는,The method of claim 1, wherein the session key is:
    지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장되는 것을 특징으로 하는 전자 장치.An electronic device having a specified validity time and being stored in a volatile memory within the electronic device.
  3. 제 1 항 또는 제 2 항에 있어서, 상기 적어도 하나의 프로세서는,The method of claim 1 or 2, wherein the at least one processor:
    상기 외부 전자 장치와 통신하는 어플리케이션 프로세서(AP)(410)와,an application processor (AP) 410 that communicates with the external electronic device;
    상기 어플리케이션 프로세서를 통해 상기 외부 전자 장치와 통신하며, 지정된 보안 수준을 제공하는 상기 보안 저장 영역을 포함하고, 상기 외부 전자 장치를 위한 상기 데이터 암호화 키를 생성하고 상기 보안 저장 영역 내에 상기 데이터 암호화 키를 저장하도록 구성되는 보안 엘리먼트(SE)(420)를 포함하는 것을 특징으로 하는 전자 장치.Communicates with the external electronic device through the application processor, includes the secure storage area providing a specified level of security, generates the data encryption key for the external electronic device, and stores the data encryption key within the secure storage area. An electronic device comprising a security element (SE) 420 configured to store.
  4. 제 3 항에 있어서, 상기 적어도 하나의 프로세서는,The method of claim 3, wherein the at least one processor:
    상기 통신 회로를 통해 상기 외부 전자 장치로부터 데이터와 암호화 요청을 포함하는 제1 암호화 메시지를 수신하고,Receiving a first encrypted message containing data and an encryption request from the external electronic device through the communication circuit,
    상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 데이터 및 상기 암호화 요청을 획득하고,Decrypt the first encrypted message using the session key by the secure element to obtain the data and the encryption request,
    상기 보안 엘리먼트에 의해 상기 데이터 암호화 키를 이용하여 상기 데이터를 암호화하여 암호화 데이터를 생성하고,Encrypting the data using the data encryption key by the security element to generate encrypted data,
    상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 암호화 데이터를 암호화하여 암호화 데이터를 포함하는 제2 암호화 메시지를 생성하고,Encrypting the encrypted data using the session key by the security element to generate a second encrypted message containing the encrypted data,
    상기 제2 암호화 메시지를 상기 통신 회로를 통해 상기 외부 전자 장치로 전송하도록 구성되는 것을 특징으로 하는 전자 장치.An electronic device configured to transmit the second encrypted message to the external electronic device through the communication circuit.
  5. 제 1 항 내지 제 4 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,The method of any one of claims 1 to 4, wherein the at least one processor:
    상기 외부 전자 장치의 장치 인증을 위한 인증서, 제1 키 쌍, 제2 키 쌍, 또는 제1 난수 값 중 적어도 하나를 생성하고,Generate at least one of a certificate, a first key pair, a second key pair, or a first random number value for device authentication of the external electronic device,
    상기 난수 값과 상기 제1 키 쌍의 제1 공개 키를 포함하는 디지털 서명과 상기 인증서를 상기 제2 키 쌍의 비밀 키에 의해 암호화하고, encrypting the digital signature including the random value and the first public key of the first key pair and the certificate with the private key of the second key pair;
    상기 암호화된 디지털 서명 및 상기 암호화된 인증서를 포함하는 제1 세션 키 생성 정보를 상기 외부 전자 장치로 전송하고, Transmitting first session key creation information including the encrypted digital signature and the encrypted certificate to the external electronic device,
    상기 외부 전자 장치로부터 암호화된 난수 정보 및 제2 공개 키를 포함하는 제2 세션 키 생성 정보를 수신하고,Receive second session key generation information including encrypted random number information and a second public key from the external electronic device,
    상기 제1 키 쌍의 비밀 키와 상기 제2 공개 키를 기반으로 상기 세션 키를 생성하고,Generate the session key based on the private key of the first key pair and the second public key,
    상기 세션 키를 이용하여 상기 암호화된 난수 정보를 복호화함으로써 상기 제1 난수 값 및 제2 난수 값을 획득하고,Obtaining the first random number value and the second random number value by decrypting the encrypted random number information using the session key,
    상기 제2 난수 값을 상기 세션 키를 이용하여 암호화하고,Encrypting the second random number value using the session key,
    상기 암호화된 제2 난수 값을 포함하는 세션 키 검증 정보를 상기 외부 전자 장치로 전송하도록 구성되는 것을 특징으로 하는 전자 장치.An electronic device configured to transmit session key verification information including the encrypted second random number value to the external electronic device.
  6. 제 1 항 내지 제 5 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,The method of any one of claims 1 to 5, wherein the at least one processor:
    상기 외부 전자 장치로부터 세션 키 요청을 수신하고,Receive a session key request from the external electronic device,
    상기 세션 키 요청에 응답하여 새로운 세션 키를 생성하도록 구성되는 것을 특징으로 하는 전자 장치.An electronic device configured to generate a new session key in response to the session key request.
  7. 제 1 항 내지 제 6 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,The method of any one of claims 1 to 6, wherein the at least one processor:
    상기 외부 전자 장치로부터 비대칭 키 요청을 포함하는 제1 암호화 메시지를 수신하고,Receiving a first encryption message including an asymmetric key request from the external electronic device,
    상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 비대칭 키 요청을 획득하고,Decrypt the first encrypted message using the session key to obtain the asymmetric key request,
    상기 비대칭 키 요청에 응답하여 서버 인증을 위한 비밀 키 및 공개 키를 포함하는 비대칭 키 쌍을 생성하고,In response to the asymmetric key request, generate an asymmetric key pair including a secret key and a public key for server authentication,
    상기 공개 키를 상기 세션 키로 암호화하여 제2 암호화 메시지를 생성하고,Encrypting the public key with the session key to generate a second encrypted message,
    상기 제2 암호화 메시지를 상기 외부 전자 장치로 전송하도록 구성되는 것을 특징으로 하는 전자 장치.An electronic device configured to transmit the second encrypted message to the external electronic device.
  8. 전자 장치(320)에 있어서, In the electronic device 320,
    통신 인터페이스(520); 및communication interface 520; and
    상기 통신 인터페이스와 작동적으로 연결되는 적어도 하나의 프로세서(510)를 포함하고, 상기 적어도 하나의 프로세서는,At least one processor 510 operatively connected to the communication interface, the at least one processor comprising:
    상기 통신 인터페이스를 통해 보안 기능을 지원하는 외부 전자 장치(201)에게 고유 정보를 포함하는 인증 요청을 전송하고,Transmitting an authentication request containing unique information to an external electronic device 201 supporting a security function through the communication interface,
    상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하고,Receive first session key creation information from the external electronic device,
    상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하고,Generating a session key for session communication with the external electronic device based on the first session key generation information,
    상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하고,Transmitting second session key creation information for verification of the session key to the external electronic device,
    상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하도록 구성되는 전자 장치.An electronic device configured to use encryption and/or decryption services provided by the external electronic device based on the session key.
  9. 제 8 항에 있어서, 상기 세션 키는,The method of claim 8, wherein the session key is:
    지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장되는 것을 특징으로 하는 전자 장치.An electronic device having a specified validity time and being stored in a volatile memory within the electronic device.
  10. 제 8 항 또는 제 9 항에 있어서, 상기 적어도 하나의 프로세서는,The method of claim 8 or 9, wherein the at least one processor:
    암호화가 필요한 데이터의 발생을 검출하고,Detect the occurrence of data requiring encryption,
    상기 데이터 및 암호화 요청을 상기 세션 키에 의해 암호화하여 제1 암호화 메시지를 생성하고,Encrypting the data and encryption request using the session key to generate a first encrypted message,
    상기 통신 인터페이스를 통해 상기 외부 전자 장치로 상기 제1 암호화 메시지를 전송하고,Transmitting the first encrypted message to the external electronic device through the communication interface,
    상기 외부 전자 장치로부터 제2 암호화 메시지를 수신하고,Receiving a second encrypted message from the external electronic device,
    상기 세션 키를 이용하여 상기 제2 암호화 메시지를 복호화하여 상기 데이터에 대응하는 암호화 데이터를 획득하도록 구성되는 것을 특징으로 하는 전자 장치.An electronic device configured to obtain encrypted data corresponding to the data by decrypting the second encrypted message using the session key.
  11. 전자 장치(201)의 동작 방법에 있어서, In the method of operating the electronic device 201,
    보안 기능을 지원하지 않는 외부 전자 장치(320)로부터 고유 정보를 포함하는 인증 요청을 수신하는 동작(605)과,An operation 605 of receiving an authentication request containing unique information from an external electronic device 320 that does not support the security function;
    상기 고유 정보를 기반으로 상기 외부 전자 장치를 위한 보안 저장 영역을 할당하는 동작(615)과,An operation 615 of allocating a secure storage area for the external electronic device based on the unique information;
    상기 외부 전자 장치를 위한 데이터 암호화 키를 생성하여 상기 보안 저장 영역에 저장하는 동작(615)과,An operation 615 of generating a data encryption key for the external electronic device and storing it in the secure storage area;
    상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하는 동작(620)과,An operation 620 of generating a session key for session communication with the external electronic device;
    상기 세션 키로 암호화된 상기 외부 전자 장치의 요청에 응답하여 상기 데이터 암호화 키에 근거한 암호화 및/또는 복호화 서비스를 상기 외부 전자 장치에게 제공하는 동작(645)을 포함하는 방법.A method comprising providing an encryption and/or decryption service based on the data encryption key to the external electronic device in response to a request from the external electronic device encrypted with the session key (645).
  12. 제 11 항에 있어서, 상기 세션 키는,The method of claim 11, wherein the session key is:
    지정된 유효 시간을 가지며, 상기 전자 장치 내의 휘발성 메모리에 저장되는 것을 특징으로 하는 방법.A method having a specified validity time and being stored in a volatile memory within the electronic device.
  13. 제 11 항 또는 제 12 항에 있어서, 상기 전자 장치는,The electronic device of claim 11 or 12, wherein:
    상기 외부 전자 장치와 통신하는 어플리케이션 프로세서(AP)(410)와,an application processor (AP) 410 that communicates with the external electronic device;
    상기 어플리케이션 프로세서를 통해 상기 외부 전자 장치와 통신하며, 지정된 보안 수준을 제공하는 상기 보안 저장 영역을 포함하고, 상기 외부 전자 장치를 위한 상기 데이터 암호화 키를 생성하고 상기 보안 저장 영역 내에 상기 데이터 암호화 키를 저장하도록 구성되는 보안 엘리먼트(SE)(420)를 포함하는 것을 특징으로 하는 방법.Communicates with the external electronic device through the application processor, includes the secure storage area providing a specified level of security, generates the data encryption key for the external electronic device, and stores the data encryption key within the secure storage area. A method comprising a security element (SE) 420 configured to store.
  14. 제 13 항에 있어서, 상기 암호화 서비스를 제공하는 동작은,The method of claim 13, wherein the operation of providing the encryption service includes:
    상기 외부 전자 장치로부터 데이터와 암호화 요청을 포함하는 제1 암호화 메시지를 수신하는 동작(1005)과,An operation (1005) of receiving a first encrypted message including data and an encryption request from the external electronic device;
    상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 제1 암호화 메시지를 복호화하여 상기 데이터 및 상기 암호화 요청을 획득하는 동작(1010)과,An operation (1010) of decrypting the first encrypted message by the security element using the session key to obtain the data and the encryption request;
    상기 보안 엘리먼트에 의해 상기 데이터 암호화 키를 이용하여 상기 데이터를 암호화하여 암호화 데이터를 생성하는 동작(1015)과,An operation (1015) of encrypting the data by the security element using the data encryption key to generate encrypted data;
    상기 보안 엘리먼트에 의해 상기 세션 키를 이용하여 상기 암호화 데이터를 암호화하여 암호화 데이터를 포함하는 제2 암호화 메시지를 생성하는 동작(1020)과,An operation (1020) of encrypting the encrypted data using the session key by the security element to generate a second encrypted message including the encrypted data;
    상기 제2 암호화 메시지를 상기 외부 전자 장치로 전송하는 동작(1025)을 포함하는 것을 특징으로 하는 방법.A method comprising an operation (1025) of transmitting the second encrypted message to the external electronic device.
  15. 전자 장치(320)의 동작 방법에 있어서, In the method of operating the electronic device 320,
    보안 기능을 지원하는 외부 전자 장치(201)에게 고유 정보를 포함하는 인증 요청을 전송하는 동작(705)과,An operation 705 of transmitting an authentication request including unique information to an external electronic device 201 supporting a security function;
    상기 외부 전자 장치로부터 제1 세션 키 생성 정보를 수신하는 동작(715)과,An operation 715 of receiving first session key creation information from the external electronic device;
    상기 제1 세션 키 생성 정보에 근거하여 상기 외부 전자 장치와의 세션 통신을 위한 세션 키를 생성하는 동작(730)과,An operation 730 of generating a session key for session communication with the external electronic device based on the first session key generation information;
    상기 세션 키의 검증을 위한 제2 세션 키 생성 정보를 상기 외부 전자 장치로 전송하는 동작(735)과,An operation 735 of transmitting second session key creation information for verification of the session key to the external electronic device;
    상기 세션 키에 근거하여 상기 외부 전자 장치에 의해 제공되는 암호화 및/또는 복호화 서비스를 이용하는 동작(745)을 포함하는 방법.A method comprising using an encryption and/or decryption service provided by the external electronic device based on the session key (745).
PCT/KR2023/008366 2022-07-01 2023-06-16 Electronic device for providing encryption service and operation method thereof WO2024005419A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR10-2022-0081504 2022-07-01
KR20220081504 2022-07-01
KR10-2022-0105026 2022-08-22
KR1020220105026A KR20240003681A (en) 2022-07-01 2022-08-22 Electronic device for providing encryption service and method of operating the same

Publications (1)

Publication Number Publication Date
WO2024005419A1 true WO2024005419A1 (en) 2024-01-04

Family

ID=89381001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2023/008366 WO2024005419A1 (en) 2022-07-01 2023-06-16 Electronic device for providing encryption service and operation method thereof

Country Status (1)

Country Link
WO (1) WO2024005419A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150064600A (en) * 2013-12-03 2015-06-11 에스케이텔레콤 주식회사 Method and Apparatus for Providing M2M Cloud Storage Service
KR20150129824A (en) * 2013-03-14 2015-11-20 퀄컴 인코포레이티드 Master key encryption functions for transmitter-receiver pairing as a countermeasure to thwart key recovery attacks
KR20170084875A (en) * 2016-01-13 2017-07-21 삼성전자주식회사 Electric device, method for communication thereof and encryption method
KR20180130203A (en) * 2017-05-29 2018-12-07 한국전자통신연구원 APPARATUS FOR AUTHENTICATING IoT DEVICE AND METHOD FOR USING THE SAME
KR20210069473A (en) * 2019-12-03 2021-06-11 삼성전자주식회사 Security processor authorizing user data by authentication on an user and computing system comprising the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150129824A (en) * 2013-03-14 2015-11-20 퀄컴 인코포레이티드 Master key encryption functions for transmitter-receiver pairing as a countermeasure to thwart key recovery attacks
KR20150064600A (en) * 2013-12-03 2015-06-11 에스케이텔레콤 주식회사 Method and Apparatus for Providing M2M Cloud Storage Service
KR20170084875A (en) * 2016-01-13 2017-07-21 삼성전자주식회사 Electric device, method for communication thereof and encryption method
KR20180130203A (en) * 2017-05-29 2018-12-07 한국전자통신연구원 APPARATUS FOR AUTHENTICATING IoT DEVICE AND METHOD FOR USING THE SAME
KR20210069473A (en) * 2019-12-03 2021-06-11 삼성전자주식회사 Security processor authorizing user data by authentication on an user and computing system comprising the same

Similar Documents

Publication Publication Date Title
WO2020171538A1 (en) Electronic device and method for providing digital signature service of block chain using the same
WO2019164339A1 (en) Electronic device and method for sharing screen data
WO2019172641A1 (en) Electronic device and method for managing electronic key thereof
WO2020184987A1 (en) Electronic device including secure integrated circuit
WO2020091525A1 (en) Payment method using biometric authentication and electronic device therefor
WO2019098790A1 (en) Electronic device and method for transmitting and receiving data on the basis of security operating system in electronic device
WO2022154272A1 (en) Iot device and method for onboarding iot device to server
WO2021060745A1 (en) Electronic device for updating firmware by using security integrated circuit and operation method thereof
KR102643372B1 (en) Electronic device for performing discovery device and method thereof
WO2022114857A1 (en) Electronic device that shares data by using blockchain network, and operation method therefor
WO2022010134A1 (en) Message encryption method and electronic device
WO2020149555A1 (en) Electronic device for selecting key to be used for encryption on basis of amount of information of data to be encrypted, and operation method of electronic device
WO2023038466A1 (en) Electronic device for generating transaction in blockchain network, and operating method thereof
WO2022145768A1 (en) Electronic device performing wireless communication with accessory device, and operating method thereof
WO2024005419A1 (en) Electronic device for providing encryption service and operation method thereof
WO2022146026A1 (en) Method for processing protected data and electronic device supporting same
WO2019164204A1 (en) Electronic device and operating method therefor
WO2021085954A1 (en) Electronic device for ensuring integrity of electronic device intrinsic information, and operating method therefor
WO2022182102A1 (en) Method for performing user authentication and device for performing same
WO2021025322A1 (en) Electronic device for activating application through key account, and system including same
WO2020171466A1 (en) Electronic device, and authentication method in electronic device
WO2022139468A1 (en) Electronic device for sharing id and password, operation method thereof, and server
WO2024039235A1 (en) Electronic device and method for performing user authentication on electronic device
WO2023038222A1 (en) Electronic device for protecting bio-information of user
WO2024049141A1 (en) Electronic device for storing encrypted data in non-volatile memory, and method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23831779

Country of ref document: EP

Kind code of ref document: A1