Secure element for processing and authenticating digital keys and method of operating the same
Digital key security and efficiency issues are addressed by using a service provider-specific service performance manager and digital key manager in the secure element to process and certify digital keys, enabling fast and secure digital key management. , reducing the burden on service providers.
Patent Information
- Application Number
- CN201980049203.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-07-24
- Filing Date
- 2019-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-07-18
AI Technical Summary
Existing technologies have security and efficiency issues when using digital keys. Digital keys are easily used maliciously, and service providers face high burden and complexity when managing and processing digital keys, making it difficult to provide fast and secure services. .
A secure element is designed, including a communication interface, memory and processor, to process and authenticate digital keys through a service provider-specific service performance manager and digital key manager, generate and manage digital key processing certificates, and mitigate reduce the burden on service providers and improve security.
It realizes the secure storage and management of digital keys, reduces the risk of malicious use, improves the operational efficiency of service providers, and provides fast and secure digital key processing and authentication services.
Smart Images

Figure CN112513844B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a secure element for processing and authenticating digital keys and a method of operating the same. Background Art
[0002] Due to the popularity of personalized electronic devices such as smartphones and tablet personal computers (PCs), technologies for performing security and authentication services using digital keys are being developed. As an example of digital key technology, a technology for integrating a digital key into a mobile device (e.g., a smartphone) by using a wireless communication technology such as near field communication (NFC) is being developed. That is, a digitized virtual key (i.e., a digital key) can be added to the mobile device, and the user of the mobile device can use the digital key instead of a physical key to open a door or perform control and access functions.
[0003] Therefore, the use of digital keys can greatly improve user convenience and industrial effects, but may also cause security issues. That is, digital keys basically need to be associated with electronic devices, and therefore may be used maliciously, such as hacker attacks on electronic devices. Therefore, a technology for securely storing digital keys in electronic devices is needed.
[0004] Typically, digital keys are generated by a server of an external service provider and unilaterally stored in a mobile device. This type of service places a burden on the service provider to operate the server, requires the application of complex technologies to enhance security, and thus increases the time spent processing (e.g., generating, managing, removing, or using) the digital key. Therefore, there is a need for a technology for providing secure and fast services and alleviating the burden on the service provider in operating the server. Summary of the invention
[0005] Technical issues
[0006] A secure element for processing and authenticating digital keys and a method of operating the same are provided.
[0007] Solution to the problem
[0008] According to an embodiment of the present disclosure, a security element (SE) for processing digital keys includes: a communication interface, the communication interface is used to communicate with a host; a memory, the memory is used to store programs and data for processing the digital keys; and a processor, the processor is used to execute the program stored in the memory to: receive a digital key processing request from a target device, determine whether a service can be provided to the target device by using a service-provider-specific service performance manager, and when it is determined that the service can be provided to the target device, process the digital key by using a digital key manager based on digital key processing information stored in the memory, issue a digital key processing certificate by using the service-provider-specific service performance manager based on authentication information stored in the memory, and send the digital key processing certificate to the service provider and at least one of the target device.
[0009] According to another embodiment of the present disclosure, a method for operating a security element to process a digital key includes: receiving a digital key processing request from a target device; determining whether a service can be provided to the target device by using a service-provider-specific service performance manager; when it is determined that the service can be provided to the target device, processing the digital key by using the digital key manager based on digital key processing information stored in a memory; issuing a digital key processing certificate by using the service-provider-specific service performance manager based on authentication information stored in the memory; and sending the digital key processing certificate to at least one of the service provider and the target device.
[0010] According to another embodiment of the present disclosure, a security element (SE) for authenticating a digital key includes: a communication interface, the communication interface is used to communicate with a host; a memory, the memory is used to store programs and data for authenticating the digital key; and a processor, the processor is used to execute the program stored in the memory to: receive a digital key authentication request from a target device, determine whether a registered digital key exists in the target device, and when it is determined that the registered digital key exists in the target device, perform an authentication process based on the authentication request type.
[0011] According to another embodiment of the present disclosure, a method for operating a security element to authenticate a digital key includes: receiving a digital key authentication request from the target device, determining whether a registered digital key exists in the target device, and when it is determined that the registered digital key exists in the target device, performing an authentication process based on the authentication request type.
[0012] According to another embodiment of the present disclosure, a computer program product includes a recording medium having a program stored therein, wherein the program instructs: receiving a digital key processing request from a target device, determining whether a service can be provided to the target device by using a service-provider-specific service performance manager, and when it is determined that the service can be provided to the target device, processing the digital key by using a digital key manager based on digital key processing information stored in a memory, issuing a digital key processing certificate by using the service-provider-specific service performance manager based on authentication information stored in the memory, and sending the digital key processing certificate to the service provider and at least one of the target device.
[0013] According to another embodiment of the present disclosure, a computer program product includes a recording medium storing a program, wherein the program instructs: receiving a digital key authentication request from a target device, determining whether a registered digital key exists in the target device, and when it is determined that the registered digital key exists in the target device, performing an authentication process based on the authentication request type.
[0014] Beneficial Effects of the Invention
[0015] According to an embodiment of the present disclosure, a security element for processing and authenticating a digital key and an operation method thereof may be provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a diagram for describing an environment to which a digital key is applicable.
[0017] Figure 2 is a diagram for describing a system for implementing a service using a digital key.
[0018] Figure 3 is a block diagram of a secure element according to an embodiment.
[0019] Figure 4 is a block diagram illustrating a system architecture of an electronic device including a secure element according to an embodiment.
[0020] Figure 5 is a flow chart of a method of operating a secure element to process a digital key according to an embodiment.
[0021] Figure 6 is a flow chart of a method of operating a secure element to generate a digital key according to an embodiment.
[0022] Figure 7 is a flow chart of a method of operating a secure element to remove a digital key according to an embodiment.
[0023] Figure 8is a flow chart of a method of operating a secure element to integrally process a digital key according to an embodiment.
[0024] Fig. 9 is a flow chart of a method of operating a secure element to authenticate a digital key according to an embodiment.
[0025] Fig.10 is a flow chart of a method of operating a secure element to mutually authenticate a digital key according to an embodiment.
[0026] Fig.11 is a flow chart of a method of operating a secure element to one-way authenticate a digital key according to an embodiment.
[0027] Best Practices
[0028] According to an embodiment of the present disclosure, a security element (SE) for processing digital keys includes: a communication interface, the communication interface is used to communicate with a host; a memory, the memory is used to store programs and data for processing the digital keys; and a processor, the processor is used to execute the program stored in the memory to: receive a digital key processing request from a target device, determine whether a service can be provided to the target device by using a service-provider-specific service performance manager, and when it is determined that the service can be provided to the target device, process the digital key by using a digital key manager based on digital key processing information stored in the memory, issue a digital key processing certificate by using the service-provider-specific service performance manager based on authentication information stored in the memory, and send the digital key processing certificate to the service provider and at least one of the target device.
[0029] Processing the digital key may include at least one of generating, removing, and managing the digital key.
[0030] The processor can determine whether the service can be provided to the target device by determining at least one of whether the authentication information of the service provider for the target device is stored in the SE, whether the authentication information of the service provider is valid, whether the target device is a valid target device, and whether the user of the target device is a valid user.
[0031] The digital key processing information may include at least one of attribute information and identification information of the digital key, the attribute information including at least one of effective time, effective area, authority and personal setting information of the target device, and the authentication information may include a key pair of a certificate, the key pair of the certificate including a public key and a private key of the service provider, and the service operation data of the service provider includes at least one of the identification information of the service provider, a public key and a root certificate of a service provider server.
[0032] The processor may send the digital key handling certificate to an entity other than the service provider and the target device based on at least one of the authentication information and the digital key handling information.
[0033] When receiving a request for integral processing of the digital key of the service provider stored in the memory, the processor can determine whether integral processing is possible by using the service-provider-specific service performance manager, and when it is determined that integral processing is possible, integrally process the digital key of the service provider stored in the memory by using the digital key manager, issue an integral processing certificate by using the service-provider-specific service performance manager, and send the integral processing certificate to the service provider.
[0034] According to another embodiment of the present disclosure, a method for operating a security element (SE) to process a digital key includes: receiving a digital key processing request from a target device; determining whether a service can be provided to the target device by using a service-provider-specific service performance manager; when it is determined that the service can be provided to the target device, processing the digital key by using a digital key manager based on digital key processing information stored in a memory; issuing a digital key processing certificate by using the service-provider-specific service performance manager based on authentication information stored in the memory; and sending the digital key processing certificate to at least one of the service provider and the target device.
[0035] Processing the digital key may include at least one of generating, removing, and managing the digital key.
[0036] Determining whether the service can be provided to the target device may include: determining at least one of whether the authentication information of the service provider for the target device is stored in the SE, whether the authentication information of the service provider is valid, whether the target device is a valid target device, and whether the user of the target device is a valid user.
[0037] The digital key processing information may include at least one of attribute information and identification information of the digital key, the attribute information including at least one of effective time, effective area, authority and personal setting information of the target device, and the authentication information may include a key pair of a certificate, the key pair of the certificate including a public key and a private key of the service provider, and the service operation data of the service provider includes at least one of the identification information of the service provider, a public key and a root certificate of a service provider server.
[0038] The method may further include sending the digital key handling certificate to an entity other than the service provider and the target device based on at least one of the authentication information and the digital key handling information.
[0039] When a request for integral processing of the digital key of the service provider stored in the memory is received, the method may further include: determining whether integral processing is possible by using the service-provider-specific service performance manager; when it is determined that integral processing is possible, integral processing of the digital key of the service provider stored in the memory by using the digital key manager; issuing an integral processing certificate by using the service-provider-specific service performance manager; and sending the integral processing certificate to the service provider.
[0040] According to another embodiment of the present disclosure, a security element (SE) for authenticating a digital key includes: a communication interface, the communication interface is used to communicate with a host; a memory, the memory is used to store programs and data for authenticating the digital key; and a processor, the processor is used to execute the program stored in the memory to: receive a digital key authentication request from a target device, determine whether a registered digital key exists in the target device, and when it is determined that the registered digital key exists in the target device, perform an authentication process based on the authentication request type.
[0041] When the digital key authentication request received from the target device is a one-way authentication request, the processor may determine whether one-way authentication is executable, and perform one-way authentication when it is determined that one-way authentication is executable.
[0042] The processor may determine whether bidirectional authentication is executable when it is determined that one-way authentication is not executable, and send a bidirectional authentication request to the target device when it is determined that bidirectional authentication is executable.
[0043] The processor may perform user authentication and terminate the authentication process when the user authentication fails.
[0044] According to another embodiment of the present disclosure, a method for operating a security element (SE) to authenticate a digital key includes: receiving a digital key authentication request from a target device, determining whether a registered digital key exists in the target device, and when it is determined that the registered digital key exists in the target device, performing an authentication process based on the authentication request type.
[0045] Receiving the digital key authentication request may include receiving a one-way authentication request, and performing the authentication process based on the authentication request type may include determining whether one-way authentication can be performed, and performing one-way authentication when it is determined that one-way authentication can be performed.
[0046] Performing the authentication process based on the authentication request type may include: determining whether bidirectional authentication is executable when it is determined that one-way authentication is not executable, and sending a bidirectional authentication request to the target device when it is determined that bidirectional authentication is executable.
[0047] The method may further include performing user authentication, and terminating the authentication process when the user authentication fails.
[0048] According to another embodiment of the present disclosure, a computer program product includes a recording medium, in which a program is stored, and the program instructs: receiving a digital key processing request from a target device, determining whether a service can be provided to the target device by using a service-provider-specific service performance manager, and when it is determined that the service can be provided to the target device, processing the digital key by using a digital key manager based on digital key processing information stored in a memory, issuing a digital key processing certificate by using the service-provider-specific service performance manager based on authentication information stored in the memory, and sending the digital key processing certificate to the service provider and at least one of the target device.
[0049] According to another embodiment of the present disclosure, a computer program product includes a recording medium, in which a program is stored, and the program instructs: receiving a digital key authentication request from a target device, determining whether a registered digital key exists in the target device, and when it is determined that the registered digital key exists in the target device, performing an authentication process based on the authentication request type. DETAILED DESCRIPTION
[0050] Hereinafter, the present disclosure will be described in detail by explaining the embodiments of the present disclosure with reference to the accompanying drawings. However, the present disclosure can be implemented in many different forms and should not be construed as being limited to the embodiments of the present disclosure set forth herein. In the accompanying drawings, for the sake of clarity of explanation, parts not related to the present disclosure are not shown, and the same reference numerals represent the same elements.
[0051] Embodiments of the present disclosure can be expressed as function blocks and various processing steps. Some or all function blocks can be implemented by various numbers of hardware and / or software elements configured to perform specific functions. For example, the function blocks of the present disclosure can be implemented by one or more microprocessors or circuit elements for specific functions. As another example, the function blocks of the present disclosure can be implemented using various programming or scripting languages. The function blocks can be implemented using algorithms executed by one or more processors. In addition, the present disclosure can adopt known techniques for electronic settings, signal processing and / or data processing.
[0052] In addition, the connecting lines or connecting members between the elements shown in the drawings only indicate functional connections and / or physical or circuit connections. The connections between the elements may be represented by various alternative or additional functional connections, physical connections or circuit connections in the actual device.
[0053] The term "unit" or "module" as used herein refers to an entity for performing at least one function or operation, and can be implemented using hardware, software, or a combination thereof. A "unit" or "module" can also be implemented as a program stored in an addressable storage medium and executable by a processor. For example, the term "unit" or "module" can be implemented as an element (e.g., a software element, an object-oriented software element, a class element, and a task element), a procedure, a function, a property, a process, a subroutine, a program code segment, a driver, firmware, a microcode, a circuit, data, a database, a data structure, a table, an array, or a variable.
[0054] Figure 1 is a diagram for describing an environment to which a digital key is applicable.
[0055] refer to Figure 1 , shows an electronic device 100 , a user 1 of the electronic device 100 , and target devices 11 , 12 . . . 13 that are controlled and accessed using a digital key included in the electronic device 100 .
[0056] The electronic device 100 may include a personalized mobile device, but is not limited thereto, and may include various types of electronic devices. For example, the electronic device 100 may include a smart phone, a personal computer (PC), a tablet PC, a camera, and a wearable device. In an embodiment, the electronic device 100 may include a security element, and the security element may process, for example, generating, removing, and managing digital keys for controlling and accessing the target devices 11, 12 ... 13, and authenticating the digital keys.
[0057] The target devices 11, 12, . . . 13 may perform an operation for generating a digital key associated with the electronic device 100, and may be controlled and accessed using the digital key generated as described above and stored in the secure element of the electronic device 100.
[0058] For example, when the vehicle 11 is the target device, the user 1 can generate a digital key via the electronic device 100 associated with the vehicle 11, and store the generated digital key in the security element of the electronic device 100. The user 1 can control various operations of the vehicle 11 by using the digital key stored in the SE of the electronic device 100. For example, the user 1 can open the door, start the engine, and control various electronic devices included in the vehicle 11 by using the digital key. In addition, the user 1 can control operations related to autonomous driving, such as automatic parking. When the door lock 12 is the target device, the user 1 can lock or unlock the lock device by using the digital key, and when the control system 13 is the target device, the digital key can be used to authenticate the user 1, and different levels of authority can be granted to the user 1 according to the authenticated user 1.
[0059] Figure 1 The embodiments shown are merely examples, and the scope of the present disclosure is not limited thereto. Figure 1 In addition to the target devices 11, 12...13 shown, various other target devices may also be present.
[0060] Figure 2 is a diagram for describing a system for implementing a service using a digital key.
[0061] refer to Figure 2 , a service provider server 210, a digital key service manager server 220, an electronic device 100, and a target device 10 are shown.
[0062] The service provider server 210 is a server of a service provider who wishes to provide a digital key service to the user 1. A service provider refers to a commercial operator for providing services related to, for example, a vehicle, a hotel, a house, or a building, and can provide the digital key service to the user 1 as an additional service added to the main service. For example, a vehicle company sells vehicles, while a hotel, a house, or a construction company provides services related to a hotel, a house, or a building. The service provider can provide a digital key service for access functions such as opening a door, starting or controlling an engine, and the like.
[0063] The service provider server 210 may include a user information database including user account information (e.g., an identifier (ID) and password of user 1) and information about products or services sold. For example, when selling a vehicle, a car company may store the ID and password of user 1, the identification number of the vehicle sold, and information indicating whether a digital key service is used.
[0064] The digital key service manager server 220 provides technology and services that can securely issue digital keys and store them in the electronic device 100. For example, when user 1 purchases a vehicle and desires to store a digital key in the electronic device 100, the digital key service manager server 220 can determine whether user 1 is a valid user and whether the vehicle is a valid vehicle, generate a digital key and store it in the electronic device 100, and manage the stored digital key.
[0065] The target device 10 is an entity corresponding to the products and services sold by the service provider to the user 1. For example, the target device 10 may include a door of a vehicle, a hotel, a house, or a building. Specifically, with respect to a vehicle, the target device 10 may include not only a door and a tailgate, but also an access door for starting the engine and controlling the vehicle, and the like.
[0066] As described above, the electronic device 100 may include various types of electronic devices. In an embodiment, the electronic device 100 may include a security element, and the security element may process, for example, generating, removing, and managing digital keys for controlling and accessing the target devices 11, 12 ... 13, and authenticating the digital keys. In addition, the security element may authenticate access to the digital keys by an external entity such as a service provider server 210 and check permissions, thereby providing a function of securely managing the digital keys.
[0067] Figure 2 Only an example of a system that implements a service using a digital key is shown, but the service using the digital key is not limited thereto and may be implemented in various ways.
[0068] Figure 3 is a block diagram of a secure element 300 according to an embodiment.
[0069] refer to Figure 3 , the secure element 300 may include a communication interface 310 , a memory 320 , and a processor 330 .
[0070] The security element 300 is an independent secure storage device of the electronic device 100 and is a secure area that can only be accessed by authenticated applications. The security element 300 can be configured to be physically isolated from other hardware elements. In an embodiment, the security element 300 may include, for example, an embedded security element (eSE), a universal integrated circuit card (UICC), a secure digital card (SD card), or an embedded UICC (eUICC), but is not limited thereto.
[0071] The communication interface 310 may communicate with the host 101. In an embodiment, the communication interface 310 may include at least one of various wired and wireless communication interfaces for communicating with the host 101. Here, the host 101 may be one of the devices included in the electronic device 100, such as an application processor (AP) or a memory. The communication interface 310 may be, for example, a serial interface (such as an ISO 7816 interface), a universal serial bus (USB) interface, an inter-integrated circuit (IC) interface, or a 128-bit 4-port bus (128-bit 4-port bus). 2 The communication interface 310 may be a 100-bit C) interface, a serial peripheral interface (SPI) or a single wire protocol (SWP) interface, or any serial interface generally used for communication between two hardware devices. Alternatively, the communication interface 310 may be a wireless interface for directly connecting an antenna to a hardware device, such as an ISO 14443 interface, a Zigbee interface, or a Bluetooth interface. In addition, the communication interface 310 may be a parallel interface connected to a central bus of the electronic device 100, and in this case, the communication interface 310 may include a buffer for receiving commands and data from the host 101.
[0072] Programs such as applications and various types of data such as files may be installed and stored in the memory 320. The processor 330 may access and use the data stored in the memory 320, or store new data in the memory 320. In an embodiment, a program and data for processing and authenticating a digital key may be installed and stored in the memory 320.
[0073] The processor 330 may control the overall operation of the SE 300 and include at least one processor, such as a central processing unit (CPU) or a graphics processing unit (GPU). The processor 330 may control other elements included in the security element 300 to process and authenticate digital keys. For example, the processor 330 may execute a program stored in the memory 320, read a file stored in the memory 320, or store a new file in the memory 320. In an embodiment, the processor 330 may execute a program stored in the memory 320 to process and authenticate digital keys.
[0074] In an embodiment, the processor 330 may receive a digital key processing request from a target device, determine whether a service is available to the target device by using a service-provider-specific service performance manager; when it is determined that the service is available to the target device, process the digital key by using a digital key manager based on digital key processing information stored in the memory 320; issue a digital key processing certificate by using a service-provider-specific service performance manager based on authentication information stored in the memory 320; and send the digital key processing certificate to at least one of the service provider and the target device. Here, processing the digital key may include generating, removing or managing the digital key. The digital key processing information may include attribute information and identification information of the digital key, the attribute information including an effective time, an effective area, permissions or personal setting information of the target device, and the identification information of the digital key including an ID of the digital key. In addition, the authentication information may include: a key pair for a certificate including a public key and a private key of a service provider, and service operation data of the service provider including identification information of the service provider, a public key or a root certificate of a service provider server.
[0075] In an embodiment, the processor 330 can determine whether the service is available to the target device by determining whether the service provider's authentication information for the target device is stored in the security element 300, whether the service provider's authentication information is valid, whether the target device is a valid target device, or whether the user of the target device is a valid user. The processor 330 can send the digital key processing certificate to entities other than the service provider and the target device based on the authentication information and the digital key processing information. Here, other entities may include a service provider server, an electronic device manufacturer server, an SE manager server, or a digital key application manager server.
[0076] In addition, when a request for integral processing of a digital key of a service provider stored in memory 320 is received, processor 330 may determine whether integral processing is possible by using a service-provider-specific service performance manager; integrally process the digital key of the service provider stored in memory 320 by using a digital key manager when it is determined that integral processing is possible; issue an integral processing certificate by using a service-provider-specific service performance manager; and send the integral processing certificate to the service provider.
[0077] According to an embodiment, by allocating a service-provider-specific service performance manager to provide a digital key service to a service provider, and processing the digital key of the service provider via the service-provider-specific service performance manager, the security element 300 can provide independent services to the service provider even when a public area is used. According to an embodiment, by isolating the service-provider-specific service performance manager 435 for providing a digital key processing service to the service provider from the digital key manager 436 for generating, removing, managing and modifying the digital key in the security element 300, even when a service using a digital key occurs, regardless of the request of the service provider, the service using the digital key can be processed in the security element 300, and then a certificate capable of proving the service performance history can be issued and sent to the service provider by using the service-provider-specific service performance manager, thereby managing and synchronizing all services as a whole without the direct participation of the service provider.
[0078] In another embodiment, the processor 330 may receive a digital key authentication request from a target device; determine whether a registered digital key exists in the target device; and when it is determined that the registered digital key exists in the target device, perform an authentication process based on the authentication request type. Here, the authentication request may include types such as quick transaction, standard transaction, internal authentication, and mutual authentication.
[0079] The processor 330 determines whether there is a digital key that can be used for the authentication process. In one embodiment, the processor 330 can determine whether the registered digital key exists in the target device by using the digital key use determiner 437. In this case, the digital key use determiner 437 can determine whether the registered digital key exists in the target device based on the data included in the digital key management table 453. For example, when the identification information of the service requester is given, the digital key use determiner 437 can search for a digital key corresponding to the identification information of the service requester.
[0080] In an embodiment, upon determining that the registered digital key exists in the target device, the digital key use determiner 437 may additionally determine the state of the digital key to determine whether the digital key is usable. For example, the digital key use determiner 437 may determine the state of the digital key based on the state information included in the digital key management table 453. Here, the state information may include information indicating whether the digital key is locked. In addition, the state information may include information about the security validity of the digital key and the effective duration of the digital key.
[0081] When the digital key authentication request received from the target device is a one-way authentication request, the processor 330 can determine whether the one-way authentication can be performed, and perform the one-way authentication when it is determined that the one-way authentication can be performed. In an embodiment, the processor 330 can determine whether the one-way authentication can be performed by using the digital key usage determiner 437. The digital key usage determiner 437 can determine whether the one-way authentication can be performed based on the status information included in the digital key management table 453. Here, the status information may include information indicating whether the digital key is locked. In addition, the status information may include the number of times the one-way authentication is performed, the number of times the one-way authentication can be performed, or information indicating whether the one-way authentication is locked.
[0082] The processor 330 may determine whether two-way authentication can be performed when it is determined that one-way authentication cannot be performed, and send a two-way authentication request to the target device when it is determined that two-way authentication can be performed. In one embodiment, the processor 330 may determine whether two-way authentication can be performed by using a digital key usage determiner 437. The digital key usage determiner 437 may determine whether two-way authentication can be performed based on the state information included in the digital key management table 453. Here, the state information may include information indicating whether the digital key is locked. In addition, the state information may include information about the security validity of the digital key and the effective duration of the digital key.
[0083] In addition, the processor 330 can perform user authentication and stop the authentication process when the user authentication fails. In an embodiment, the processor 330 can request the service framework 410 to perform user authentication and then receive the user authentication result from the service framework 410. Here, the user authentication can be performed at any stage of the authentication process. For example, when it is determined that there is a registered digital key and the digital key is available, the user authentication can be performed to stop or continue the authentication process.
[0084] According to an embodiment, when a service such as authentication is to be used by using a digital key, an optimized authentication service may be provided by actively determining a requirement for using the digital key.
[0085] Figure 4 is a block diagram illustrating a system architecture of an electronic device 100 including a secure element 300 according to an embodiment.
[0086] refer to Figure 4 , the electronic device 100 includes a digital key service framework 410 and a security element 300.
[0087] The service framework 410 is a service application that acts as a gateway when access occurs from an external entity to the security element 300. The service framework 410 can provide an application programming interface (API) that can be accessed by an external entity to the security element 300, and provide functions such as access control and command conversion. The external entity may include, for example, a user application installed in an operating system (e.g., Android or iOS) of a mobile device, or an external server.
[0088] The security element 300 is an independent secure storage device of the electronic device 100 and is a secure area that can only be accessed by authenticated applications. The security element 300 can be configured to be physically isolated from other hardware elements. In an embodiment, the security element 300 may include, for example, an embedded security element (eSE), a universal integrated circuit card (UICC), a secure digital card (SD card), or an embedded UICC (eUICC), but is not limited thereto.
[0089] The digital key application 430 is a lightweight application installed and driven in the security element 300. The digital key application 430 can generate a digital key and store it in the storage unit 450 of the security element 300, and generally provides use, removal and management services to multiple service providers. The digital key application 430 can be pre-embedded in the security element 300, or loaded or installed later when needed.
[0090] refer to Figure 4 , the digital key application 430 may include a session manager 431, a command processor 432, a secure channel manager 433, an event logger 434, a service-provider-specific service performance manager 435, a digital key manager 436, a digital key usage determiner 437, a digital key sharing manager 438, a common security module 439, an authentication executor 440, and a digital key usage / access policy manager 441. The storage device 450 in the SE 300 may store multiple service-provider-specific instance certification authorities (CAs) 451, digital key data 452, and a digital key management table 453, each certification authority including operation data and a key pair of certificates for each service provider.
[0091] Each element will now be described in detail. Figure 4 The elements of the digital key application 430 shown in FIG. 4 are merely examples, and the digital key application 430 may be configured in various ways, for example, to include only some elements or to further include other elements. For example, the digital key application 430 may not include the public security module 439 .
[0092] The session manager 431 establishes, releases, or maintains a session for communicating with an external device. The command processor 432 receives, processes (e.g., parses), and interprets a command, and connects the command to an element (e.g., a processor or a determiner) suitable for executing the command. When a secure channel is required, the secure channel manager 433 generates a temporary key pair, calculates a session key, an encryption key, and a message authentication code (MAC) key by using a key exchange algorithm, and performs secure transmission by using the calculated key (here, secure transmission includes: encrypting the data portion of a message to be sent, decrypting the data portion of a received command, or generating or verifying a MAC).
[0093] When an event such as generation, removal, modification, or use of a digital key occurs in the digital key application 430 , the event logger 434 records the event.
[0094] The service-provider-specific service performance manager 435 provides digital key generation, removal, and management services for each service provider. The service-provider-specific service performance manager 435 generates a key pair of a certificate for each service provider, generates service operation data or receives service operation data from a service requester, and stores it in the storage unit 450 according to a request from an electronic device manufacturer, a secure element manager, or a digital key application manager.
[0095] Here, the key pair of the certificate is a pair of public and private keys based on a symmetric key system. The service operation data may include the name of the service provider, the public key, or the root certificate of the service provider server. The service-provider-specific service performance manager 435 may generate, remove, or modify the digital key by using the digital key manager 436, and generate confirmation information (e.g., certificate, confirmation, receipt, or token) about the service result at the request of the service provider or an entity authorized by the service provider (e.g., a target entity for which the digital key is available, such as a vehicle, a door, a building door, or a hotel door). The service-provider-specific service performance manager 435 adds a signature to the confirmation information about the result of the service performed using the key pair of the service provider's certificate. Here, the signature may include a signature using the private key of the service provider, or encryption using a key previously shared with the service provider. The service-provider-specific service performance manager 435 may send a signed confirmation information (e.g., a signed service result confirmation) to the service requester. When the service requester is different from the service provider, for example, when the service requester is an entity authorized by the service provider, the service-provider-specific service performance manager 435 may send the signed confirmation information to the service provider.
[0096] The digital key manager 436 generates a digital key based on the request of the service-provider-specific service performance manager 435. Here, the digital key includes the newly generated public key and private key, as well as the attribute information of the digital key. The attribute information may include the validity period, validity area, or allowed permissions of the digital key (for example, about the vehicle, door opening, trunk opening, and engine start). In addition, the attribute information may include a nickname assigned to the generated digital key, and setting information of the user of the digital key (for example, about the vehicle, personal vehicle setting information, such as preferred seat position, rearview mirror position, and preferred radio channel). The digital key manager 436 can additionally store or remove key information that depends on a specific digital key based on the request of the service requester. Here, the key information includes information required to start the vehicle engine, for example, an anti-theft token.
[0097] When a service use request for performing authentication by using a digital key occurs, the digital key use determiner 437 determines the validity of the service use request and provides an appropriate response. Here, the appropriate response may include data for authentication, a response indicating that authentication cannot be performed and its reason, or a suggestion for an authentication type different from the requested authentication. When a service use request by an external service requester occurs, the digital key use determiner 437 determines via the digital key use / access policy manager 441 whether there is an available digital key and no restrictions in use for the service requester stored in the digital key management table 453.
[0098] Here, the service usage request includes types such as quick transaction, standard transaction, internal authentication and mutual authentication. One-way authentication may include authentication based on symmetric keys using a value and a digital key previously shared between service requesters, and two-way authentication may include mutual authentication based on asymmetric keys. Internal authentication is a one-way authentication by which the electronic device 100 sends information proving that the electronic device 100 has a digital key corresponding to the service requester to the service requester, so that the service requester can prove that the electronic device 100 has a digital key corresponding to the service requester, and mutual authentication is a two-way authentication performed by the service requester and the electronic device 100 based on an asymmetric key.
[0099] The digital key usage determiner 437 generates a response corresponding to the received usage request and sends the response to the service requester when it is determined that there are no restrictions in use. Here, the restrictions in use may include information indicating whether the digital key is locked by a service provider, an electronic device manufacturer, a security element manager, or a digital key application manager, the number of valid uses of the digital key, and the requirement for user authentication before using the digital key. When the requested usage service cannot be provided due to restrictions in use, the digital key usage determiner 437 can generate a response including the reason why the service cannot be provided and send the response to the service requester. The digital key usage determiner 437 generates a response for proposing an authentication of a different type than the requested authentication and sends the response to the service requester.
[0100] When permissions applied to a specific digital key stored in storage unit 450 are to be shared with (or transferred to) a digital key in a secure element of another electronic device, digital key sharing manager 438 executes a protocol for sharing and manages information of the electronic devices to be shared and the sharing history.
[0101] The public security module 439 includes security algorithms commonly used for encryption, decryption, signature generation, and MAC generation. When the security element 300 provides a public security module, the public security module 439 can be omitted. Common security algorithms can include Advanced Encryption Standard (AES), Triple Data Encryption Standard (3-DES), Elliptic Curve Cryptography (ECC), and Rivest-Shamir-Adleman (RSA) algorithms.
[0102] The authentication executor 440 provides security services for authentication by using the common security module 439 according to a request of the service-provider-specific service performance manager 435 or the digital key usage determiner 437. Here, the security services include services such as challenge generation, challenge response verification, signature generation using a specific key, signature verification using a specific key, encryption using a specific key, decryption using a specific key, hash value generation using a specific key, hash value verification using a specific key, and authentication token generation using a specific key.
[0103] Whenever a digital key is generated, the digital key usage / access policy manager 441 stores information about external entities authorized to access and use the digital key and requirements for using the digital key in the digital key management table 453, manages its update and removal, and provides a service for searching the digital key management table 453. External entities include a service provider, a user application installed in an operating system (e.g., Android or iOS) of a mobile device, an external server, an electronic device manufacturer, an SE manager, a digital key application manager, or an entity that has received authorization from a service provider (e.g., a target entity for which a digital key is available, such as a vehicle, a car door, a building door, or a hotel door). Requirements for using a digital key include: the maximum number of times a digital key can be effectively used, user authentication requirements before using a digital key, the maximum number of one-way authentications allowed, or the maximum number of internal authentications allowed.
[0104] A plurality of service-provider-specific instance CAs 451 are generated for a plurality of service providers, each instance CA 451 including a key pair of operation data and a certificate of each service provider, and the plurality of service-provider-specific instance CAs 451 are stored in the storage unit 450. The key pair of the certificate is a pair of public and private keys based on a symmetric key system. The service operation data may include the name of the service provider, a public key, or a root certificate of a service provider server.
[0105] The digital key data 452 is generated by the digital key manager 436 and stored in the storage unit 450 at the request of the service-provider-specific service performance manager 435 .
[0106] Whenever digital key data 452 is generated, the digital key usage / access policy manager 441 updates the digital key management table 453. The digital key management table 453 may include: information about external entities authorized to access and use each digital key, requirements for using the digital key, and status information of the digital key. External entities include: service providers, user applications installed in the operating system of the mobile device (e.g., Android or iOS), external servers, electronic device manufacturers, SE managers, digital key application managers, or entities that have received authorization from the service provider (e.g., target entities for which digital keys are available, such as vehicles, car doors, building doors, or hotel doors). Requirements for using digital keys include: the maximum number of times a digital key can be effectively used, user authentication requirements before using a digital key, the maximum number of one-way authentications allowed, or the maximum number of internal authentications allowed. The status information of a digital key may include information indicating whether the digital key is locked.
[0107] Figure 5 is a flow chart of a method of operating a secure element 300 to process a digital key according to an embodiment.
[0108] Initially, in operation 510, the security element 300 receives a digital key processing request from a target device. That is, the security element 300 receives a digital key processing request for a target device from a user of the target device. Here, the processing of a digital key may include generating, removing or managing a digital key. Therefore, the security element 300 may receive a digital key generation request, a digital key removal request or a digital key management request from a target device.
[0109] Then, in operation 520, the secure element 300 determines whether the service can be provided to the target device by using the service-provider-specific service performance manager 435. The service-provider-specific service performance manager 435 provides digital key generation, removal, and management services for each service provider, and thus can determine whether the service can be provided to the target device based on information stored in the storage device 450 of the secure element 300. According to an embodiment, by allocating a service-provider-specific service performance manager to provide a digital key service to a service provider, and processing the digital key of the service provider via the service-provider-specific service performance manager, the secure element 300 can provide independent services to the service provider even when a public area is used.
[0110] In an embodiment, the service-provider-specific service performance manager 435 can determine whether the service is available to the target device by determining whether the service provider's authentication information for the target device is stored in the storage unit 450 of the security element 300, whether the service provider's authentication information is valid, whether the target device is a valid target device, or whether the user of the target device is a valid user. Here, the authentication information may include a key pair of a certificate, the key pair of which includes a public key and a private key of the service provider. In addition, the authentication information may include service operation data of the service provider, which includes identification information of the service provider, a public key, or a root certificate of a service provider server.
[0111] When it is determined in operation 520 that the service can be provided to the target device, the security element 300 proceeds to operation 530, and processes the digital key by using the digital key manager 436 based on the digital key processing information stored in the storage unit 450 of the security element 300. The digital key manager 436 generates, removes, manages or modifies the digital key. Here, the digital key processing information may include attribute information, which includes the effective time, effective area, authority or personal setting information of the target device. In addition, the digital key processing information may include identification information of the digital key, which includes the ID of the digital key.
[0112] Then, in operation 540, the security element 300 issues a digital key processing certificate based on the authentication information stored in the memory 320 by using the service-provider-specific service performance manager 435. The security element 300 can prove the service performance history to the service provider by issuing a certificate. When a service using a digital key occurs, regardless of the service provider's request, the certificate issuance process is required to prove the service performance history to the service provider.
[0113] In operation 550, the security element 300 sends the digital key handling certificate to at least one of the service provider and the target device. The security element 300 can prove the service performance history to the service provider by sending the certificate to the service provider and the target device, and even when a service using the digital key occurs, regardless of the service provider's request, the service provider can obtain the service performance history by receiving the certificate.
[0114] In an embodiment, the security element 300 can send the digital key processing certificate to entities other than the service provider and the target device based on the authentication information and the digital key processing information. For example, the security element 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through a service. Here, other entities can include a service provider server, an electronic device manufacturer server, a security element manager server, or a digital key application manager server.
[0115] In addition, when a request for overall processing of the digital key of the service provider stored in the memory 320 is received in operation 510, in operation 520, the SE 300 may determine whether overall processing is possible by using the service-provider-specific service performance manager 435. Here, the request for overall processing of the digital key of the service provider is a request to equally process the digital key of the service provider, and may include, for example, a request to remove, stop using, or lock all digital keys of a specific service provider included in the security element 300. When it is determined that overall processing is possible, in operation 530, the security element 300 may overall process the digital key of the service provider stored in the memory 320 by using the digital key manager 436, in operation 540, issue an overall processing certificate by using the service-provider-specific service performance manager 435, and in operation 550, send the overall processing certificate to the service provider. In this case, the overall processing certificate may be sent to the entity that has requested the overall processing, or to another entity when necessary.
[0116] According to an embodiment, by isolating a service-provider-specific service performance manager 435 for providing digital key processing services to a service provider from a digital key manager 436 for generating, removing, managing, and modifying digital keys in a secure element 300, even when a service using a digital key occurs, regardless of a request from the service provider, the service using the digital key can be processed in the secure element 300, and then a certificate capable of proving the service performance history can be issued and sent to the service provider using the service-provider-specific service performance manager, thereby managing and synchronizing all services as a whole without the direct involvement of the service provider.
[0117] Figure 6 is a flowchart of a method of operating a secure element 300 to generate a digital key according to an embodiment.
[0118] Initially, in operation 605, the security element 300 receives a digital key generation request from an external service requester. In this case, the security element 300 may receive the digital key generation request from the external service requester via a target device. In operation 610, the security element 300 interprets the received command by using the command processor 432 and calls the service-provider-specific service performance manager 435.
[0119] In operation 615, service-provider-specific service performance manager 435 determines whether the service can be provided to the service requester. Service-provider-specific service performance manager 435 can determine whether the service can be provided based on the instance CA451 of the corresponding service provider. Specifically, when the service operation data of the service provider and the key pair of the certificate are stored in the storage unit 450 of the security element 300, service-provider-specific service performance manager 435 can determine that the service is available. In addition, service-provider-specific service performance manager 435 can determine whether the service can be provided to the target device by determining whether the service operation data of the service provider and the key pair of the certificate are valid, whether the target device is a valid target device, or whether the user of the target device is a valid user.
[0120] When it is determined in operation 615 that the secure element is not available for service, the process terminates immediately.
[0121] When it is determined in operation 615 that the service is available, the security element 300 proceeds to operation 620 and calls the digital key manager 436 to generate a digital key by using the service-provider-specific service performance manager 435. Then, in operation 625, the digital key manager 436 generates a digital key based on the digital key generation information. The digital key generation information may include identification information and attribute information of the digital key. Here, the attribute information may include the valid time, valid area or permission of the digital key (for example, about the vehicle, the door is opened, the trunk is opened and the engine is started). In addition, the attribute information may include a nickname assigned to the generated digital key, and the setting information of the user of the digital key (for example, about the vehicle, the personal vehicle setting information, such as, the preferred seat position, the rearview mirror position and the preferred radio channel). The digital key manager 436 stores the digital key data 452 of the generated digital key in the storage unit 450.
[0122] In operation 630, the service-provider-specific service performance manager 435 generates a digital key generation certificate proving that the digital key is successfully generated, and publishes the digital key generation certificate by adding a signature thereto using the private key of the service provider.
[0123] Then, in operation 635, the service-provider-specific service performance manager 435 determines whether it is necessary to send the issued digital key generation certificate to a third entity other than the service requester. For example, SE 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through service. The service-provider-specific service performance manager 435 can determine whether the digital key generation certificate needs to be sent to a third entity other than the service requester based on the service operation data of each service provider or the digital key data 452 of the generated digital key. For example, the security element 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through service. Here, the third entity can include a service provider server, an electronic device manufacturer server, a security element manager server, or a digital key application manager server.
[0124] When it is determined in operation 635 that the digital key generation certificate needs to be sent to a third entity other than the service requester, the security element 300 proceeds to operation 640 and sends the digital key generation certificate to the target entity. Then, in operation 645, the security element 300 sends the digital key generation certificate to the service requester.
[0125] When it is determined in operation 635 that the digital key generation certificate does not need to be sent to a third entity other than the service requester, the secure element 300 directly proceeds to operation 645 and sends the digital key generation certificate to the service requester. The order of operations 635 and 640 and operation 645 may be reversed.
[0126] Referenced above Figure 6 A method of operating a secure element to generate a digital key is described and will now be referred to Figure 7 A method of operating a secure element to remove a digital key is described.
[0127] Figure 7 is a flow chart of a method of operating a secure element to remove a digital key according to an embodiment.
[0128] Initially, in operation 705, the security element 300 receives a digital key removal request from an external service requester. In this case, the security element 300 may receive the digital key removal request from the external service requester via the target device. In operation 710, the security element 300 interprets the received command by using the command processor 432 and calls the service-provider-specific service performance manager 435.
[0129] In operation 715, service-provider-specific service performance manager 435 determines whether the service can be provided to the service requester. Service-provider-specific service performance manager 435 can determine whether the service can be provided based on the instance CA451 of the corresponding service provider. Specifically, when the service operation data of the service provider and the key pair of the certificate are stored in the storage unit 450 of the security element 300, service-provider-specific service performance manager 435 can determine that the service is available. In addition, service-provider-specific service performance manager 435 can determine whether the service can be provided to the target device by determining whether the service operation data of the service provider and the key pair of the certificate are valid, whether the target device is a valid target device, or whether the user of the target device is a valid user.
[0130] When it is determined in operation 715 that the secure element 300 cannot provide services, the process is immediately terminated.
[0131] When it is determined in operation 715 that the service is available, the security element 300 proceeds to operation 720 and calls the digital key manager 436 to remove the digital key by using the service-provider-specific service performance manager 435. Then, in operation 725, the digital key manager 436 removes the digital key based on the digital key removal information. Then, the digital key manager 436 can send a digital key removal result value to the service-provider-specific service performance manager 435. In an embodiment, the removal result value may include information indicating whether the removal is successfully performed, identification information of the removed digital key, or a public key of the removed digital key.
[0132] In operation 730, the service-provider-specific service performance manager 435 generates a digital key removal certificate proving that the digital key is successfully removed, and publishes the digital key removal certificate by adding a signature to it using the service provider's private key. The digital key removal certificate may include the digital key removal result value received in operation 725.
[0133] Then, in operation 735, service-provider-specific service performance manager 435 determines whether it is necessary to send the issued digital key removal certificate to a third entity other than the service requester. For example, security element 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through service. Service-provider-specific service performance manager 435 can determine whether the digital key removal certificate needs to be sent to a third entity other than the service requester based on the service operation data of each service provider or the digital key data 452 of the removed digital key. For example, security element 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through service. Here, the third entity can include a service provider server, an electronic equipment manufacturer server, a security element manager server, or a digital key application manager server.
[0134] When it is determined in operation 735 that the digital key removal certificate needs to be sent to a third entity other than the service requester, the security element 300 proceeds to operation 740 and sends the digital key removal certificate to the target entity. Then, in operation 745, the security element 300 sends the digital key removal certificate to the service requester. The order of operations 735 and 740 and operation 745 can be reversed.
[0135] When it is determined in operation 735 that there is no need to send the digital key removal certificate to a third entity other than the service requester, the secure element 300 directly proceeds to operation 745 and sends the digital key removal certificate to the service requester.
[0136] Referenced above Figure 7 A method of operating a secure element to remove a digital key is described and will now be referred to Figure 8 Methods for operating a secure element to integrally process digital keys are described.
[0137] Figure 8 is a flow chart of a method of operating a secure element to integrally process a digital key according to an embodiment.
[0138] Initially, in operation 805, the security element 300 receives an overall service request from an external service requester. In this case, the security element 300 may receive an overall service request from the external service requester via a target device. Here, the overall service request is a request to equally process the digital keys of the corresponding service providers, and the overall service is not a service for individually managing specific digital keys, but a service-provider-specific service for overall management of the digital keys of the service provider stored in the security element 300. For example, the overall service request may include a request to remove, stop using, or lock all digital keys of a specific service provider included in the SE300.
[0139] In operation 810 , the secure element 300 interprets the received command by using the command processor 432 and calls the service-provider-specific service performance manager 435 .
[0140] In operation 815, the service-provider-specific service performance manager 435 determines whether the overall service is available to the service requester. The service-provider-specific service performance manager 435 can determine whether the overall service is available based on the instance CA 451 of the service provider. Specifically, when the service operation data and the key pair of the certificate of the service provider are stored in the storage unit 450 of the SE 300, the service-provider-specific service performance manager 435 can determine that the overall service is available. In addition, the service-provider-specific service performance manager 435 can determine whether the overall service is available to the target device by determining whether the service operation data and the key pair of the certificate of the service provider are valid, whether the target device is a valid target device, or whether the user of the target device is a valid user.
[0141] When it is determined in operation 815 that the secure element 300 cannot provide the overall service, the process is immediately terminated.
[0142] When it is determined in operation 815 that the overall service is available, the secure element 300 proceeds to operation 820 and calls the digital key manager 436 to provide the overall service by using the service-provider-specific service performance manager 435. Then, in operation 825, the digital key manager 436 obtains information about the digital key for the overall service. The information about the digital key for the overall service can be obtained by searching the digital key management table 453 using the digital key usage / access policy manager 441, or obtained together with the key pair of the service operation data and certificate of each service provider.
[0143] In operation 830, the digital key manager 436 performs an overall service on the digital key. For example, the digital key manager 436 may remove or lock the digital key for the overall service. In order to remove the digital key for the overall service, the data of the digital key for the overall service may be removed from the storage unit 450. In order to lock the digital key for the overall service, the state information of the digital key included in the digital key management table 453 may be changed to a locked state.
[0144] The digital key manager 436 may send the digital key overall service performance result value to the service-provider-specific service performance manager 435. In an embodiment, the performance result value may include information indicating whether the overall service was successfully executed, identification information of the removed or locked digital key, or the public key of the removed or locked digital key.
[0145] In operation 835, the service-provider-specific service performance manager 435 generates a digital key overall service performance certificate proving that the overall service was successfully performed, and issues the digital key overall service performance certificate by adding a signature thereto using the service provider's private key. The digital key overall service performance certificate may include the digital key overall service performance result value received in operation 830.
[0146] Then, in operation 840, the service-provider-specific service performance manager 435 determines whether it is necessary to send the issued digital key overall service performance certificate to a third entity other than the service requester. For example, the security element 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through service. The service-provider-specific service performance manager 435 can determine whether it is necessary to send the digital key overall service performance certificate to a third entity other than the service requester based on the service operation data of each service provider or the digital key data 452 of the generated digital key. For example, the security element 300 can send the certificate to a billing server or a server of a third entity to perform a billing process by tracking or managing the key of the third entity through service. Here, the third entity can include a service provider server, an electronic device manufacturer server, a security element manager server, or a digital key application manager server.
[0147] When it is determined in operation 840 that the digital key overall service performance certificate needs to be sent to a third entity other than the service requester, the security element 300 proceeds to operation 845 and sends the digital key overall service performance certificate to the target entity. Then, in operation 850, the security element 300 sends the digital key overall service performance certificate to the service requester.
[0148] When it is determined in operation 840 that there is no need to send the digital key overall service capability certificate to a third entity other than the service requester, the secure element 300 directly proceeds to operation 850 and sends the digital key overall service capability certificate to the service requester.
[0149] Fig. 9 is a flow chart of a method of operating a secure element to authenticate a digital key according to an embodiment.
[0150] Initially, the secure element 300 receives a digital key authentication request from a target device at operation 910. In an embodiment, the authentication request may include types such as quick transaction, standard transaction, internal authentication, and mutual authentication.
[0151] Then, in operation 920, the safety element 300 determines whether the registered digital key exists in the target device. Specifically, the safety element 300 determines whether there is a digital key that can be used for the authentication process. In an embodiment, the safety element 300 can determine whether the registered digital key exists in the target device by using the digital key usage determiner 437. In this case, the digital key usage determiner 437 can determine whether the registered digital key exists in the target device based on the data included in the digital key management table 453. For example, when the identification information of the service requester is given, the digital key usage determiner 437 can search for the digital key corresponding to the identification information of the service requester.
[0152] When it is determined in operation 920 that there is no available digital key, the process is terminated immediately. In this case, a message indicating that the authentication cannot be performed and the reason thereof may be sent to the service requester.
[0153] When it is determined in operation 920 that the registered digital key exists in the target device, the digital key use determiner 437 may additionally determine the state of the digital key to determine whether the digital key is usable. For example, the digital key use determiner 437 may determine the state of the digital key based on the state information included in the digital key management table 453. Here, the state information may include information indicating whether the digital key is locked. In addition, the state information may include information about the security validity of the digital key and the effective duration of the digital key.
[0154] Finally, in operation 930, when it is determined that the registered digital key exists in the target device, the security element 300 performs the authentication process based on the authentication request type. In an embodiment, when the digital key authentication request received from the target device is a one-way authentication request, the security element 300 can determine whether the one-way authentication can be performed, and perform the one-way authentication when determining that the one-way authentication can be performed. In an embodiment, SE 300 can determine whether the one-way authentication can be performed by using the digital key using a determiner 437. The digital key can determine whether the one-way authentication can be performed based on the state information included in the digital key management table 453. Here, the state information can include information indicating whether the digital key is locked. In addition, the state information can include the number of times the one-way authentication is performed, the number of times the one-way authentication can be performed, or the information indicating whether the one-way authentication is locked.
[0155] In an embodiment, the digital key usage determiner 437 may check additional usage conditions to determine whether to continue the authentication process. Here, the additional usage conditions may include a condition on whether to perform user authentication before performing authentication. User authentication may be performed by entering a personal identification number (PIN) or biometric data.
[0156] The safety element 300 can determine whether two-way authentication can be performed when it is determined that one-way authentication cannot be performed, and send a two-way authentication request to the target device when it is determined that two-way authentication can be performed. In an embodiment, the safety element 300 can determine whether two-way authentication can be performed by using a digital key using a determiner 437. The digital key can be determined based on the state information included in the digital key management table 453 using the determiner 437. Here, the state information can include information indicating whether the digital key is locked. In addition, the state information can include information about the security validity of the digital key and the effective duration of the digital key.
[0157] In addition, the safety element 300 can perform user authentication, and stop the authentication process when the user authentication fails. In one embodiment, the safety element 300 can request the service framework 410 to perform user authentication, and then receive the user authentication result from the service framework 410. Here, user authentication can be performed at any stage of the authentication process. For example, when it is determined in operation 920 that the registered digital key exists and the digital key is available, user authentication can be performed to stop or continue the authentication process.
[0158] According to an embodiment, when a service such as authentication is to be used by using a digital key, an optimized authentication service may be provided by actively determining a requirement for using the digital key.
[0159] Fig.10 is a flow chart of a method of operating a secure element to mutually authenticate a digital key according to an embodiment.
[0160] Initially, in operation 1005, the security element 300 receives a two-way authentication service request using a digital key from an external service requester. Here, the authentication service request may include types such as standard transactions and mutual authentication. Then, in operation 1010, the security element 300 calls the digital key usage determiner 437.
[0161] In operation 1015, the digital key use determiner 437 determines whether there is a digital key that can be used for two-way authentication. The digital key use determiner 437 can determine whether a registered digital key exists in the target device based on the data included in the digital key management table 453. For example, when the identification information of the service requester is given, the digital key use determiner 437 can search for a digital key corresponding to the identification information of the service requester.
[0162] When it is determined in operation 1015 that the registered digital key does not exist in the target device, the process proceeds to operation 1020 to send a response indicating that the authentication service cannot be performed and the reason thereof to the service requester, and then immediately terminates.
[0163] When it is determined in operation 1015 that the registered digital key exists in the target device, the process proceeds to operation 1025, and the digital key use determiner 437 determines whether the requested two-way authentication service can be performed using the digital key. The digital key use determiner 437 can determine the state of the digital key based on the state information included in the digital key management table 453. Here, the state information may include information indicating whether the digital key is locked. In addition, the state information may include information about the security validity of the digital key and the effective duration of the digital key.
[0164] When it is determined in operation 1025 that the requested two-way authentication service can be performed using a digital key, the digital key usage determiner 437 proceeds to operation 1030 and determines whether additional usage conditions are applied to the digital key. In an embodiment, the digital key usage determiner 437 may check the additional usage conditions to determine whether to continue the authentication process. Here, the additional usage conditions may include: a condition on whether to perform user authentication before performing authentication. User authentication can be performed by entering a PIN code or biometric data. However, operation 1030 is not required, and the authentication process can be performed without, for example, determining whether to perform user authentication. Although in Fig.10 In operation 1030, it is determined whether to perform user authentication, but user authentication is not limited thereto and can be performed at any stage of the authentication process. For example, user authentication can be performed before operation 1015 for determining whether the registered digital key exists in the target device.
[0165] When it is determined in operation 1030 that user authentication is required, the digital key usage determiner 437 can proceed to operation 1035 and request the service framework 410 to perform user authentication, and then receive the user authentication result from the service framework 410. When the user authentication is successful in operation 1035, the process proceeds to operation 1040 to perform two-way authentication. Specifically, authentication response information for two-way authentication can be generated. In an embodiment, generating the authentication response information includes performing a security operation by using a private key of a specific digital key. Here, the security operation may include signing, encryption, calculation of a session key, encryption using a calculated session key, or calculation of a MAC key using a calculated session key.
[0166] When it is determined in operation 1030 that user authentication is not required, operation 1035 may be skipped and the process may proceed directly to operation 1040 to perform two-way authentication.
[0167] When it is determined in operation 1025 that the requested two-way authentication service cannot be performed using the digital key, or when the user authentication fails in operation 1035, the process can proceed to operation 1045 to send a response indicating that the authentication service cannot be performed and the reason for it to the service requester.
[0168] Fig.11 is a flow chart of a method of operating a secure element to one-way authenticate a digital key according to an embodiment.
[0169] Initially, in operation 1105, the security element 300 receives a one-way authentication service request using a digital key from an external service requester. Here, the authentication service request may include types such as fast transactions and internal authentication. Then, in operation 1110, the security element 300 calls the digital key usage determiner 437.
[0170] In operation 1115, the digital key use determiner 437 determines whether there is a digital key that can be used for one-way authentication. The digital key use determiner 437 can determine whether the registered digital key exists in the target device based on the data included in the digital key management table 453. For example, when the identification information of the service requester is given, the digital key use determiner 437 can search for a digital key corresponding to the identification information of the service requester.
[0171] When it is determined in operation 1115 that the registered digital key does not exist in the target device, the process proceeds to operation 1120 to send a response indicating that the authentication service cannot be performed and the reason thereof to the service requester, and then immediately terminates.
[0172] When it is determined in operation 1115 that the registered digital key exists in the target device, the process proceeds to operation 1125, and the digital key use determiner 437 determines whether the requested one-way authentication service can be performed using the digital key. The digital key use determiner 437 can determine the state of the digital key based on the state information included in the digital key management table 453. Here, the state information may include information indicating whether the digital key is locked. In addition, the state information may include the number of times the one-way authentication is performed, the number of times the one-way authentication can be performed, or information indicating whether the one-way authentication is locked.
[0173] When it is determined in operation 1125 that the requested one-way authentication service can be performed using a digital key, the digital key usage determiner 437 proceeds to operation 1130 and determines whether additional usage conditions are applied to the digital key. In an embodiment, the digital key usage determiner 437 may check the additional usage conditions to determine whether to continue the authentication process. Here, the additional usage conditions may include: a condition on whether to perform user authentication before performing authentication. User authentication can be performed by entering a personal identification code or biometric data. However, operation 1130 is not required, and the authentication process can be performed without, for example, determining whether to perform user authentication. Although in Fig.11 In operation 1130, it is determined whether to perform user authentication, but user authentication is not limited thereto, and user authentication can be performed at any stage of the authentication process. For example, user authentication can be performed before operation 1115 for determining whether the registered digital key exists in the target device.
[0174] When it is determined in operation 1130 that user authentication is required, the digital key usage determiner 437 can proceed to operation 1135 and request the service framework 410 to perform user authentication, and then receive the user authentication result from the service framework 410. When the user authentication is successful in operation 1135, the process proceeds to operation 1140 to perform one-way authentication. Specifically, authentication response information for one-way authentication can be generated. In an embodiment, generating authentication response information includes performing security operations by using specific information. Here, the specific information can be public information generated in a two-way digital key authentication process previously performed with the service requester. In addition, the security operation may include signing, encryption, encryption using specific information, calculating a MAC key by using specific information, or generating a challenge response by using specific information.
[0175] When it is determined in operation 1130 that user authentication is not required, operation 1135 may be skipped and the process may proceed directly to operation 1140 to perform one-way authentication.
[0176] When the user authentication fails in operation 1135 , the process may proceed to operation 1150 to send a response indicating that the authentication service cannot be performed and the reason thereof to the service requester.
[0177] When it is determined in operation 1125 that the requested one-way authentication service cannot be performed using the digital key, the digital key use determiner 437 proceeds to operation 1145 and determines whether the two-way authentication service can be performed. In an embodiment, the digital key use determiner 437 can determine whether the two-way authentication service can be performed based on the status information included in the digital key management table 453. Here, the status information may include information indicating whether the digital key is locked. In addition, the status information may include information about the security validity of the digital key and the effective duration of the digital key.
[0178] When it is determined in operation 1145 that the two-way authentication service is executable, the process proceeds to operation 1155, and the digital key use determiner 437 sends a response indicating that the one-way authentication service is not executable together with the two-way authentication service request to the service requester.
[0179] When it is determined in operation 1145 that the mutual authentication service cannot be performed, the digital key usage determiner 437 may proceed to operation 1150 to send a response indicating that the authentication service cannot be performed and the reason thereof to the service requester.
[0180] At the same time, the above-mentioned embodiments can be written as a program executable on a computer, and can be implemented by a general-purpose digital computer by operating the program using a computer-readable medium. The data structure used in the above-mentioned embodiments can be recorded on a computer-readable medium in various ways. The above-mentioned embodiments can be implemented in the form of a recording medium, which includes instructions executable by a computer, such as a program module executed by a computer. For example, the method implemented by a software module or algorithm can be stored in a computer-readable medium as a computer-readable and computer-executable code or program instruction.
[0181] Computer readable media may be any recording medium accessible to a computer, and examples thereof may include volatile, nonvolatile, removable, and non-removable media. Examples of computer readable media include magnetic storage media (e.g., read-only memory (ROM), floppy disks, and hard disks) and optical recording media (e.g., compact disc ROM (CD-ROM) and digital versatile disc (DVD)), but are not limited thereto. Computer readable media may include computer storage media and communication media.
[0182] A plurality of computer-readable recording media may be distributed over networked computer systems, and data (eg, program instructions and codes) stored in the distributed recording media may be executed by at least one computer.
[0183] Although the present disclosure has been specifically shown and described with reference to the embodiments of the present disclosure, it will be understood by those skilled in the art that various changes may be made in form and detail without departing from the scope of the present disclosure. Therefore, it should be understood that the foregoing embodiments are illustrative in all aspects and do not limit the present disclosure.
Claims
1. A secure element (SE) included in an electronic device for running a digital key application to process a digital key, the secure element include: a memory for storing a program and a plurality of instance certificate authorities corresponding to the digital key application, wherein each of the plurality of instance certificate authorities includes a key pair for a service provider and is used for a different service provider; and at least one processor, the at least one processor being configured to execute a program stored in the memory, wherein the at least one processor is configured to: receiving a digital key processing request associated with an external entity from a service framework included in the electronic device, wherein the external entity is a target device or a server associated with the service provider, determining whether digital key services are available to the external entity, When it is determined that the digital key service can be provided to the external entity, based on the digital key processing information, processing the digital key, Based on the authentication information, a digital key processing certificate is generated, and The digital key handling certificate is provided to the service framework.
2. The security element according to claim 1, in, Processing the digital keys includes at least one of generating or managing the digital keys.
3. The security element according to claim 1, in, The at least one processor is further configured to determine whether the digital key service is available to the external entity based on at least one of: Whether an instance certification authority corresponding to the service provider for the external entity is stored in the security element, whether a key pair for authentication including a public key and a private key of the service provider is stored in the security element, whether identification information of the digital key is stored in the security element, whether identification information of the target device is stored in the security element, whether authentication information of the service provider is valid, or whether the target device is a valid target device.
4. The security element according to claim 1, in, The digital key processing information includes at least one of the following: identification information of the target device, validity period, or identification information of the digital key, and The instance certification authority corresponding to the service provider includes a key pair of a certificate, and the key pair of the certificate includes a public key and a private key of the service provider.
5. The security element according to claim 1, in, The service framework is configured to provide the digital key handling certificate to at least one of the external entity or an entity other than the external entity.
6. The security element according to claim 1, in, When receiving a request to perform overall processing on the digital key of the service provider stored in the memory, the at least one processor is further configured to: Determine whether overall processing is possible. When it is determined that the overall processing is possible, the digital key of the service provider stored in the memory is overall processed, Issue a certificate of overall processing, and The overall transaction certificate is sent to the service provider.
7. The security element according to claim 1, in, The at least one processor is further configured to: receiving a digital key authentication request from the target device, determining whether a registered digital key exists in the target device, and When it is determined that the registered digital key exists in the target device, an authentication process is performed based on the authentication request type.
8. The security element according to claim 7, in, In a case where the digital key authentication request received from the target device is a one-way authentication request, the at least one processor is further configured to: Determine whether one-way authentication can be performed, and When it is determined that the one-way authentication can be performed, the one-way authentication is performed.
9. The security element according to claim 7, in, The at least one processor is further configured to: Determine whether to perform user authentication, and In the case where the user authentication is not performed, the authentication process is ended.
10. A method executed by a security element included in an electronic device to run a digital key application to process a digital key, the method include: receiving, from a service framework included in the electronic device, a digital key processing request associated with an external entity, wherein the external entity is a target device or a server associated with a service provider; determining whether a digital key service is available to the external entity, wherein the secure element includes a plurality of instance certificate authorities corresponding to the digital key application, and wherein each instance certificate authority of the plurality of instance certificate authorities includes a key pair for a service provider and is used for a different service provider; When it is determined that the digital key service can be provided to the external entity, based on the digital key processing information, processing the digital key; generating a digital key processing certificate based on the authentication information; and The digital key handling certificate is provided to the service framework.
11. The method according to claim 10, in, Processing the digital keys includes at least one of generating or managing the digital keys.
12. The method according to claim 10, in, Determining whether the digital key service is available to the external entity includes: Determine at least one of the following: whether an instance certification authority corresponding to the service provider for the external entity is stored in the security element, whether a key pair for authentication including a public key and a private key of the service provider is stored in the security element, whether identification information of the digital key is stored in the security element, whether identification information of the target device is stored in the security element, whether authentication information of the service provider is valid, or whether the target device is a valid target device.
13. The method according to claim 10, in, The digital key processing information includes at least one of the following: identification information of the target device, validity period, or identification information of the digital key, and The instance certification authority corresponding to the service provider includes a key pair of a certificate, and the key pair of the certificate includes a public key and a private key of the service provider.
14. The method according to claim 10, in, The service framework is configured to provide the digital key handling certificate to at least one of the external entity or an entity other than the external entity.
15. The method according to claim 10, in, When receiving a request to perform an integral process on a digital key of the service provider stored in a memory of the secure element, the method further comprises: Determine whether holistic treatment is possible; When it is determined that the overall processing is possible, overall processing the digital key of the service provider; Issue a certificate of overall treatment; and The overall transaction certificate is sent to the service provider.
