Transaction NFC
Patent Information
- Application Number
- FR2021013466
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-12-14
Smart Images

Figure 00000028_0000 
Figure 00000028_0001 
Figure 00000029_0000
Abstract
Description
Description Title of the invention: NFC transaction Technical field The present description relates generally to electronic devices, and more particularly to electronic devices adapted to process secret data. More particularly, the present description relates to electronic devices adapted to implement near field communication (NFC), and in particular an NFC transaction, in which at least part of the data exchanged is secret data and / or part of the data exchanged is sensitive data allowing, for example, a method of identifying or authenticating a user. Prior art Complex electronic devices, such as mobile phones, tablets, computers, etc., integrate, over time, more and more functionalities and allow the implementation of digital and / or digital services in order to better integrate into daily life. For example, certain mobile phones, and more particularly smart phones, integrate digital services such as a bank payment service, or a service for using public transport tickets, show tickets, user authentication with a remote system (banking, public administration, etc.).To implement these functionalities, these devices can integrate electronic components specific to these functionalities, such as secure components which make it possible to keep / store identification, reference and authentication information, generally referred to as "credentials", and resources (assets) of the digital service provider, motion sensors, a near field communication (NFC) module, etc. One difficulty arising from the addition of new functionalities is that secret data and / or sensitive data are exchanged between different modules of the same electronic device without being protected. Summary of the invention There is a need for more reliable near-field communications. There is a need for near-field communications that respect the confidentiality and / or anonymity of the users of these communications. There is a need for more reliable NFC transactions. There is a need for privacy-respecting NFC transactions and / or the anonymity of users of these transactions. One embodiment overcomes all or part of the disadvantages of known near-field communications. One embodiment overcomes all or part of the drawbacks of known NFC transactions. According to a first aspect, an embodiment provides a method for carrying out an NFC transaction between a mobile terminal and a remote module, the terminal comprising a processor hosting an application establishing the NFC transaction, a near-field communication module, and a secure element separate from the processor, the method comprising at least the following successive steps: (a) said near field communication module encrypts first data sent by the remote module using a first key provided by said secure element: and (b) said first application decrypts said first data using a second key provided by said secure element. Another embodiment provides a mobile terminal suitable for implementing an NFC transaction with a remote module, the terminal comprising a processor hosting an application establishing the NFC transaction, a near-field communication module, and a secure element separate from the processor, the method for carrying out the NFC transaction comprising at least the following successive steps: (a) said near field communication module encrypts first data sent by the remote module using a first key provided by said secure element: and (b) said first application decrypts said first data using said first key provided by said secure element. According to one embodiment, the application is authorized to implement an NFC transaction by interface software, the interface software being software hosted by the processor and executing commands sent by said application. According to one embodiment, the application is a system application. According to one embodiment, the application is a trusted application having received permanent authorization to implement an NFC transaction. According to one embodiment, the application has received temporary authorization to implement an NFC transaction. According to one embodiment, the secure element provides temporary authorization regarding the application to said interface software. According to one embodiment, if the interface software does not include authorization concerning said application then during the step the software interface prohibits the application from requesting the key from the secure element. According to one embodiment, the secure element obtains temporary authorization from an external server. According to one embodiment, the secure element comprises a list of rules indicating the authorization(s) concerning said application, and other applications if the device implements other applications. According to one embodiment, the first and second keys are identical. According to one embodiment, if the application is not authorized to implement an NFC transaction then during the step the secure element refuses to provide said second key to said application, and the application cannot decrypt said first data. According to one embodiment, the NFC transaction is a transaction implemented by a near field communication method. According to one embodiment, the NFC transaction is a transaction during which the terminal and the remote module are likely to exchange third sensitive data. According to one embodiment, the NFC transaction is a banking transaction. According to one embodiment, step (a) is preceded by a step (c) in which the near field communication module is capable of detecting that data is sensitive data. According to one embodiment, step (a) is preceded by a step (c) in which the near-field communication module detects that the first data comprises sensitive data. Another embodiment provides a system comprising a terminal described above and a remote module. According to a second embodiment, an embodiment provides a method for carrying out an NFC transaction between a mobile terminal and a remote module, said terminal comprising a processor hosting an application establishing the NFC transaction, a near-field communication module, and a secure element separate from the processor, the method comprising at least the following successive steps: (a) said near field communication module sends, to said first application, first data sent by the remote module and encrypted by said secure element; and (b) said first application requests said secure element to decrypt said first data. Another embodiment provides a mobile terminal adapted to implement an NFC transaction with a remote module, said terminal comprising a processor hosting an application establishing the NFC transaction, a near-field communication module, and a secure element separate from the processor, the method for carrying out the NFC transaction comprising at least the following successive steps (a) said near-field communication module sends, to said first application, first data sent by the remote module and encrypted by said secure element: and (b) said first application requests said secure element to decrypt said first data. According to one embodiment, the application is authorized to implement an NFC transaction by interface software, the interface software being software hosted by the processor and executing commands sent by said application. According to one embodiment, the application is a system application. According to one embodiment, the application is a trusted application having received permanent authorization to implement an NFC transaction. According to one embodiment, the application has received temporary authorization to implement an NFC transaction. According to one embodiment, the secure element provides temporary authorization regarding the application to said interface software. According to one embodiment, if the interface software does not include authorization concerning said application then during the step the interface software prohibits the application from requesting the key from the secure element. According to one embodiment, the secure element obtains temporary authorization from an external server. According to one embodiment, the secure element comprises a list of rules indicating the authorization(s) concerning said application, and other applications if the device implements other applications. According to one embodiment, if the application is not authorized to implement an NFC transaction then during step (b) the secure element refuses to decrypt the first data and send them to said application. According to one embodiment, the NFC transaction is a transaction implemented by a near field communication method. According to one embodiment, the NFC transaction is a transaction during which the terminal and the remote module are likely to exchange third sensitive data. According to one embodiment, the NFC transaction is a banking transaction. According to one embodiment, step (a) is preceded by a step (c) in which The near field communication module is able to detect that data is sensitive data. According to one embodiment, step (a) is preceded by a step (c) in which the near-field communication module detects that the first data comprises sensitive data. Another embodiment provides a system comprising a terminal described above and a remote module. According to a third aspect, an embodiment provides a method for carrying out an NFC transaction between a mobile terminal and a remote module, said terminal comprising a processor hosting an application establishing the NFC transaction, a near-field communication module, and a secure element separate from the processor, the method comprising at least the following successive steps: (a) said near field communication module stores, in said secure element, first data sent by said remote module; (b) said near field communication module sends second data to said first application to notify it that said first data has been stored in said secure element: and (c) said first application requests said secure element to provide it with said first data. Another embodiment provides a mobile terminal suitable for implementing an NFC transaction with a remote module, the terminal comprising a processor hosting an application establishing the NFC transaction, a near-field communication module, and a secure element separate from the processor, the method for carrying out the NFC transaction comprising at least the following successive steps: (a) said near field communication module stores, in said secure element, first data sent by said remote module; (b) said near field communication module sends second data to said first application to notify it that said first data has been stored in said secure element: and (c) said first application requests said secure element to provide it with said first data. According to one embodiment, the application is authorized to implement an NFC transaction by interface software, the interface software being software hosted by the processor and executing commands sent by said application. According to one embodiment, if the interface software does not include authorization concerning said application then during the step the interface software prohibits the application from requesting the key from the secure element. According to one embodiment, the application is a system application, or in which the application is a trusted application that has been granted permanent authorization to implement an NFC transaction, or the application has received a temporary authorization to implement an NFC transaction, wherein the secure element provides the temporary authorization concerning the application to said interface software, the secure element having obtained this temporary authorization from an external server. According to one embodiment, said second data are representative of said first data. According to one embodiment, said second data is random data. According to one embodiment, said secure element encrypts said first data. According to one embodiment, said first data is encrypted with an asymmetric encryption algorithm. According to one embodiment, if the application is not authorized to implement an NFC transaction then during step (b) the secure element refuses to send the first data to said application. According to one embodiment, the NFC transaction is a transaction implemented by a near field communication method. According to one embodiment, the NFC transaction is a transaction during which the terminal and the remote module are likely to exchange third secret data. According to one embodiment, the NFC transaction is a banking transaction. According to one embodiment, step (a) is preceded by a step (d) in which the near field communication module is capable of detecting that data is sensitive data. According to one embodiment, step (a) is preceded by a step (d) in which the near-field communication module detects that the first data comprises sensitive data. Another embodiment provides a system comprising a terminal described above and a remote module. According to a fourth aspect, an embodiment provides a method for carrying out an NFC transaction between a mobile terminal and a remote module, said terminal comprising a processor hosting an application establishing the NFC transaction and interface software executing commands of said application, a near-field communication module, and a secure element separate from the processor, the method comprising the following successive steps: (a) said application requests authorization from the secure element to implement the NFC transaction, and the interface software checks whether said application is authorized to communicate with the secure element; (b) said secure element sends a first temporary authorization to the interface software; and (c) at least the first time the near field communication module receives first data from the remote module, the interface software checks whether it has received said first temporary authorization, and if so, the interface software transmits said first data to the application. Another embodiment provides a mobile terminal suitable for implementing an NFC transaction with a remote module, the terminal comprising a processor hosting an application establishing the NFC transaction and interface software executing commands of said application, a near-field communication module, and a secure element separate from the processor, the method for carrying out the NFC transaction comprising the following successive steps: (a) said application requests authorization from the secure element to implement the NFC transaction: (b) said secure element sends a first temporary authorization to the interface software; and (c) at least the first time the terminal receives first data from the remote module, the interface software checks whether it has received said first temporary authorization. According to one embodiment, the interface software is a primary interface layer which is a software interface directly receiving commands from said application and which converts these commands into a series of commands adapted to different software controlling the circuits and components of said terminal. According to one embodiment, the interface software is a layer of software controls comprising the software controlling the circuits and components of said terminal. According to one embodiment, the application is authorized to implement an NFC transaction by filtering interface software, the filtering interface software being part of the interface software. According to one embodiment, the application is a system application. According to one embodiment, the application is a trusted application having received permanent authorization to implement an NFC transaction. According to one embodiment, the application has received a second temporary authorization to implement an NFC transaction. According to one embodiment, the secure element provides the second temporary authorization regarding the application to a filtering interface software forming part of said interface software, the secure element having obtained this temporary authorization from an external server. According to one embodiment, if the secure element has not given said first temporary authorization to the interface software, then during step (c) the interface software does not transmit the first data to the application. According to one embodiment, the NFC transaction is a transaction implemented by a near field communication method. According to one embodiment, the NFC transaction is a transaction during which the terminal and the remote module are likely to exchange third secret data. According to one embodiment, the NFC transaction is a banking transaction. Another embodiment provides a system comprising a terminal described above and a remote module. Brief description of the drawings These and other features and advantages will be set forth in detail in the following description of particular embodiments given without limitation in relation to the attached figures, among which: [Fig.1] represents, very schematically and in the form of blocks, the implementation of an NFC transaction; [Fig.2] represents, very schematically and in the form of blocks, an embodiment of a mobile terminal capable of implementing a mode of implementation of an NFC transaction; [Fig.3] represents a block diagram illustrating a mode of implementation of an NFC transaction: [Fig.4] represents a block diagram illustrating another mode of implementation of an NFC transaction: [Fig.5] represents a block diagram illustrating another mode of implementation of an NFC transaction: [Fig.6] represents a block diagram illustrating another mode of implementation of an NFC transaction:; and [Fig.7] represents a block diagram illustrating another mode of implementation of an NFC transaction. Description of the embodiments The same elements have been designated by the same references in the different figures. In particular, the structural and / or functional elements common to the different embodiments may have the same references and may have identical structural, dimensional and material properties. For the sake of clarity, only the steps and elements useful for understanding the described embodiments have been represented and are detailed. In particular, the details of the data exchanged during an NFC transaction of the type described below are not described. The various NFC communication protocols specific to the types of NFC transactions described are within the reach of those skilled in the art, and are compatible with the implementation modes described below. Unless otherwise specified, when referring to two elements connected together, this means directly connected without intermediate elements other than conductors, and when referring to two elements connected (in English "coupled") together, this means that these two elements can be connected or be connected by means of one or more other elements. In the following description, when reference is made to absolute position qualifiers, such as the terms “front”, “back”, “top”, “bottom”, “left”, “right”, etc., or relative position qualifiers, such as the terms “above”, “below”, “upper”, “lower”, etc., or to orientation qualifiers, such as the terms “horizontal”, “vertical”, etc., reference is made unless otherwise specified to the orientation of the figures. Unless otherwise specified, the expressions 'about', 'approximately', 'substantially', and 'of the order of' mean to within 10%, preferably to within 5%. [Fig.1] illustrates, very schematically and in the form of blocks, an NFC transaction between an electronic device 101 (TERM) serving as a mobile terminal, or mobile terminal 101, and an electronic device 103 (CARD) serving as a remote module, or remote module 103. A transaction is herein a particular communication whose purpose is a commercial and / or monetary operation in which one device, the terminal 101, is the “payment” terminal which implements the transaction and the other device, the remote module 103, is the one which accepts or not the transaction. An example of a transaction concerned by the embodiments described below is a banking transaction. Another example of a transaction concerned is the purchase of a transport ticket. Other types of transactions are conceivable, and the two examples cited previously are not limiting. The NFC transaction concerned here is particularly a transaction in which the two devices exchange sensitive and / or secret data. An NFC transaction is a wireless and contactless communication that uses near-field communication technology, hereinafter referred to as NFC communication. Near-field communication (NFC) technologies enable high-frequency, short-range communications. Such systems use a radiofrequency electromagnetic field emitted by a device (terminal or reader) to communicate with another device (remote module, transponder, or card). We assume the case of two electronic devices, for example the terminal 101 and the remote module 103, but everything that will be described applies more generally to any system in which a transponder picks up an electromagnetic field radiated by a reader, terminal or terminal. In this type of communication, the electronic devices 101 and 103 are positioned within range of each other, that is to say at a distance generally less than 10 cm. According to another example, the devices 101 and 103 are in mechanical contact with each other. Depending on the applications, for NFC communication, one of the devices, the terminal 101, operates in so-called reader mode while the other, the remote module 103, operates in so-called card mode, or the two devices communicate in peer-to-peer (P2P) mode. Each device comprises various electronic circuits 105 (NFC) adapted to emit a radiofrequency (RF) signal transmitted using an antenna of an oscillating / resonant circuit. The radiofrequency field generated by one of the devices, for example the terminal 101, is picked up by the other device, for example the remote module 103, which is within range and which also comprises an antenna. When the terminal 101 emits an electromagnetic field to initiate communication with the remote module 103, this field is picked up by the remote module 103 as soon as it is within range. This field is detected by the circuits 105 of the remote module 103 which, if they are in standby, are reactivated.This results in a variation of the load constituted by the circuits 105 of the remote module 103 on the resonant field generation circuit of the terminal 101. In practice, the corresponding variation in phase or amplitude of the emitted field is detected by the terminal 101 which then starts an NFC communication protocol with the remote module 103. On the terminal 101 side, it is detected in practice whether the amplitude of the voltage across the resonant circuit falls below a threshold or whether the voltage across the resonant circuit has a phase shift greater than a threshold. Once the terminal 101 has detected the presence of the remote module 103 in its field, it starts a communication establishment procedure, implementing transmissions of requests by the terminal 101 and responses by the remote module 103. The transmissions of requests and responses are described in more detail in relation to figures 3 to 7. The terminal 101 is an electronic device that may be, for example, fixed or mobile. It is the terminal 101 that is responsible for initiating the communication. For example, the terminal 101 is an electronic device adapted to implement a transaction application as a transaction terminal. According to a more detailed example, the terminal 101 is a mobile telephone, for example a smartphone implementing a point of sale (POS) application, i.e. an application allowing it to implement a transaction as a terminal. According to another example, the terminal 101 could be a device connected, like a smartwatch, adapted to implement near-field communication, and more specifically an NFC transaction. The remote module 103 is a generally mobile device. According to a preferred embodiment, the remote module 103 is a microcircuit card (or smart card), for example a bank card or a transport card. Alternatively, the remote module 103 could be a mobile telephone. The remote module 103 comprises various electronic circuits adapted to implement various commands sent by the terminal 101, such as, for example, authentication circuits, cryptography circuits, etc. In recent systems, the same NFC device can operate in card mode or in reader mode (for example in the case of near-field communication between two mobile phones), and can choose, depending on the case, whether it operates in card mode or in reader mode. According to one example, the module 101 could be used as a reader or terminal to implement a payment transaction, and, in another case, be used as a card, for example, to validate a transport ticket. [Fig. 2] represents, schematically but in more detail, and in the form of blocks, an embodiment of an NFC transaction, of the type described in relation to [Fig. 1], between a terminal device 201 (TERM), or terminal 201, and a remote module 203 (CARD). [Fig. 2] illustrates in more detail the hardware structure (in solid lines) and software structure (in dotted lines) of the terminal 201, the remote module 203 being identical to the remote module 103 described in relation to [Fig. 1]. Terminal 201 includes, at least: - a 2011 processor (APP PROC); - a secure element (SE) 2012; and - a 2013 near field communication (NFC) module. The processor 2011 is a processor adapted, among other things, to implement a software architecture of the terminal 201, described below. The secure element 2012 is a secure circuit or component, for example, a processor, or a computing unit, adapted to handle secret data, or confidential data. The secure element is distinct from the processor 2011. The secure element 2012 can, for example, implement algorithms for authentication, encryption and / or decryption of data, generation of encryption key or decryption, etc. According to one example, the secure element 2012 is a secure element embedded in the terminal 201, but, according to a variant, the secure element 2012 can be a secure element integrated into the terminal 203. The advantage of having an embedded or integrated secure element is that it allows for a high level of protection, since the secure element is part of the device 100. According to yet another variant, the secure element 2012 can be part of a secure platform which physically isolates it from the other components of the device 201, or the secure element 2012 can be combined with the processor 2011 by benefiting from a hardware part which physically isolates it from the processor 2011, for example by using a TrustZone type technology. These last two variants have a lower level of protection than the previous variants. According to one embodiment, the secure element 2012 is capable of knowing whether an NFC transaction is a transaction during which sensitive information and data can be exchanged. The near field communication module 2013, or NFC module 2013, is a set of circuits and one or more antennas, allowing the terminal 201 to implement near field communication, and, in particular, an NFC transaction of the type described in relation to [Fig. 1]. The NFC module therefore makes it possible to send and receive data, like the circuits 105 described in relation to [Fig. 1]. According to one embodiment, the NFC module is capable of detecting that data is sensitive data, for example, by checking the type of command sent, and the type of response subsequently received, for example based on a correspondence table stored in the NFC module 2013, or, for example, by counting the number of commands following the selection (or the response of the selection) of an application. The NFC module could combine both methods. These three elements are adapted to communicate with each other by different means of communication. According to one example, the processor 2011 is adapted to communicate with the NFC module 2013, for example, via an I2C (Inter Integrated Circuit) type bus, an SPI (Serial Peripheral Interface) type bus, or a UART (Universal Asynchronous Receiver Transmitter) type bus. According to one example, the processor 2011 is adapted to communicate with the secure element 2012, for example, via an I2C (Inter Integrated Circuit) type bus or an SPI (Serial Peripheral Interface) type bus.According to one example, the secure element 2012 is adapted to communicate with the NFC module 2013, for example, via a SWP (Single Wire Protocol) type bus using, for example, a HCI (Host-Controller Interface) type communication protocol or a CLT (ContactLESS) type communication protocol, or, for example, via a shared data memory using an IPC (Inter-Process Communication) type communication mechanism. To communicate together, the secure element 2012 and the NFC module 2013 may, for example, use a VNP (VPP Network Protocol, VPP meaning Virtual Primary Platform) type communication protocol, such a protocol may be used with an I2C or SPL type bus. Furthermore, the terminal 201, and more particularly the processor 2011, is adapted to implement different software allowing it to execute different functionalities, including, more particularly, that of initiating and carrying out a transaction. NFC with another electronic device, such as the remote module 203. The software architecture of the terminal 201, and more precisely of the processor 2011, includes different applications allowing a user to implement different functionalities and several interface software layers 2016 (PLATFORM), or interface software 2016 allowing the commands sent by the applications to be translated into commands interpretable by the different circuits and components of the terminal 201, such as the secure element 2012 and the NFC module 2013. In [Fig. 1], the terminal 201 is adapted to implement at least one application 2014 (mPOS App) whose functionality is, among other things, to implement an NFC transaction of the type described in relation to [Fig. 1] as a terminal. The application 2014 may be a point-of-sale type application. According to one example, the terminal 201 may implement one or more other applications 2015 (App 2). In this description, an "application" refers to software whose manipulation is accessible to the user of the terminal 201. To implement the different functionalities of the terminal 201, the applications are adapted to use the different circuits and components of the terminal 201 by sending commands to the interface software layers 2016. The 2016 interface software layers include: - a 2017 primary interface layer (APD); - a 2018 filtering layer (OMAPI); and - a control layer 2019 (DRIVERS) of the circuits and components of the terminal 201. The primary interface layer 2017 is a software interface directly receiving the operation orders to be performed from the applications 2014 and 2015 and which converts these operations into a series of commands adapted to the different circuits and components of the terminal 201. In other words, if an application sends the order to perform an operation requiring the use of several circuits or components of the terminal 201, the interface 2017 converts this order into a set of commands. An operation can be performed by implementing one or more commands intended for one or more circuits or components of the terminal 201. The filtering layer 2018 is a software filtering interface adapted to authorize, limit or prohibit an application, for example the applications 2014 and 2015, from using all or part of one or more circuits or components of the terminal 201. In other words, the filtering layer 2018 receives the commands sent by the interface 2017 and decides whether or not to transmit them depending on the application that formulated the initial command. The filtering layer 2018 can be based on different criteria to authorize or not access to the circuits and components of the terminal 201 to an application. According to an example, the filtering layer 2018 can authorize access to one or part of a circuit or component of the terminal 201 to a first application, and refuse this access to a second application. According to a first example, if the application is a system application, that is to say an application produced by the manufacturer of the terminal 201, or by the manufacturer or designer of the interface software layers 2016, the application may have permanent authorization to access all circuits or components, or only circuits and components chosen by the manufacturer, and has at least the authorization to implement an NFC transaction. Furthermore, conversely, a system application may have limited access, permanent or not, to all or part of one or more circuits or components of the terminal 201. Thus, certain parts of circuits or components, or certain circuits or components of the terminal 201 may only be accessible to system applications, and an application not meeting this criterion will systematically receive a refusal each time it tries to send a command to these parts of circuits or components, or circuits or components. According to a second example, the application may be a reliable application having passed various reliability tests with the manufacturer of the terminal 201, or with the manufacturer or designer of the interface software layers 2016, who has therefore permanently authorized it to have access to all or part of the circuits or components of the terminal 201. According to one example, the application has at least the authorization to implement an NFC transaction. A reliable application of this type can be likened to a system application, and therefore have the same characteristics. According to a third example, the application may have the possibility of authenticating itself, periodically, with a server external to the terminal 201 to obtain temporary authorization to access all or part of the circuits and components of the terminal 201. According to one example, the application has at least temporary authorization to implement an NFC transaction. In the remainder of the description, it will be said that an application is authorized to have access to such a circuit or such a component of the terminal 201 if the filtering layer 2018 authorizes it to access it. According to one example, the temporary authorization to access the circuits and components of the terminal 201 may be retained by the interface software 2016, for example by the filtering interface 2018, the interface software 2016 being, for example, adapted to implement the authentication of the application with the external server. According to a fourth example, a circuit or component of the terminal 201, for example the secure element 2012, may be adapted to determine which applications have the authorization to implement one or more of its functions. A circuit or component of the terminal 201 may, for example, provide, to the filtering layer 2018, a list indicating which application is authorized to implement one or more of its functions. According to a variant, this circuit or component may provide authorizations temporary to all or part of an application, for example, by authorizing a certain number of uses of one or more of its functions. It is the filtering layer 2018 which applies these authorizations at the time when an application sends orders to use one or more functions of one or more circuits or components of the terminal 201. According to a preferred example, the secure element 2012 comprises a list of rules, for example stored in a memory, indicating the authorizations of the different applications implemented by the terminal 201. The control layer 2019 of the circuits and components of the terminal 201 is the set of control software for the circuits and components 201, that is to say the software controlling the circuits and components of the terminal 201. In other words, the control layer 2019 is the set of programs making it possible to implement the commands provided by the interface 2017. Each circuit or component is associated with control software adapted to implement it. This control software is commonly called driver software. [Fig. 3] is a block diagram illustrating steps of an implementation mode of a method of implementing, or method of carrying out, an NFC transaction of the type of NFC transaction described in relation to [Fig. 1]. These steps are executed by the terminal 201 and the remote module 203 described in relation to [Fig. 2]. At an initial step 301 (App -> NFC emd1l), the application 2014 of the terminal 201 decides to implement an NFC transaction with the remote module 203. For this, the application 2014, once the communication has been established (for example according to the anti-collision standards defined by NFC-Forum or ISO14443 or defined by any other protocol implemented by the NFC module 2013), needs to send a first cmd! command to the remote module 203 using the NFC module 2013. The application 2014 then transmits a request to the interface software layers 2016 to use the NFC module 2013 to send the cmd1 command to the remote module 203. This operation not being, a priori, a sensitive operation, the filtering layer 2018 authorizes this operation. At a step 302 (NFC -> CARD cmd1), following step 301, the NFC module has received the cmd! command to be sent to the remote module 203 and sends it using a near-field communication method of the type described previously. At a step 303 (CARD -> NFC ansl), following step 302, the remote module 203 has received and processed the cmd1l command and provides an ansl response to the NFC module 2013 of the terminal 201. This ansl response is likely to contain sensitive data. According to one example, if the NFC transaction is a banking transaction, sensitive banking data is likely to be part of the ansl response, such as, for example, identification data or data allowing the identification of a user. According to one embodiment, the NFC module 2013 is capable, depending on the type of NFC transaction implemented, of determining whether data included in the ansl response is sensitive data or not. For example, when the NFC module detects that the NFC transaction is a banking transaction, it is able to understand that the data exchanged is sensitive data. In a step 304 (NFC -> SE keyl), implemented in parallel with operations 301, 302 or 303, the NFC module 2013 requests the secure element 2012 to provide it with an encryption key. The NFC module can, for example, send a particular command to request the key from the secure element. The NFC module 2013 and the secure element 2012 having a direct communication line, as described previously, the secure element 2012 provides an encryption key key1 to the NFC module 2013. According to an example, the NFC module 2013 is capable of assigning a communication channel as defined in the HCI standard. At a step 305 (NFC encrypt), following step 303, the NFC module 2013 having received the ansl response from the remote module 203 and the encryption key key1 from the secure element, can encrypt the ansl response using the encryption key key1 to obtain an encrypted response e(ans1). Thus the sensitive data of the ansl response are protected by encryption. At a step 306 (NFC -> App e(ans1)), following step 305, the NFC module 2013 sends the encrypted response e(ans1) to the application 2014. At a step 307 (App -> SE key?), following step 306, the application 2014 receives the encrypted response e(ans1) and can neither read nor interpret it without decrypting it. The application 2014 therefore sends a request for a decryption key to the secure element 2012. This operation being a sensitive operation, the filtering interface 2018 checks whether the application 2014 is authorized to send this request to the secure element 2012. If the application 2014 is authorized (output Y) the next step is a step 308 (App decrypt), otherwise (output N) the next step is a step 309 (App error). In step 308, the application 2014 being authorized, the secure element 2012 provides it with a decryption key, for example the key key1 if it is an encryption and decryption key, otherwise a decryption key different from the key key1. The application 2014 can then decrypt the response ans1l. At a step 310 (Continued Transaction), following step 308, the application 2014 can continue to send commands and receive responses from the remote module 203 using the same mechanism described previously, using different encryption and / or decryption keys for each response received from the remote module 203. According to a variant, the same encryption key can be used for each response received from the remote module 203 to speed up the transaction. In this case, at the end of the transaction, the encryption key could be rendered ineffective, for example, by being deleted or invalidated, The transaction can be considered to be complete when there have been no new commands for a given period of time, for example a period of time of the order of 500 ms or 1 s, or, for example, when the remote module is no longer within range of the terminal, or if an application other than the 2014 application is launched. Alternatively, the NFC module could also decide after a certain period of time or a particular command, that the NFC transaction no longer includes sensitive data and thus stop encrypting the data exchanged. At step 309, the application 2014 was recognized as unauthorized by the filtering interface 2018, the secure element 2012 does not provide it with a decryption key. The application 2014 cannot therefore decrypt the response. By being recognized as unauthorized, the application 2014 will not have access to the sensitive data of the NFC transaction. At a step 311 (Transaction stop), following step 309, the application 2014 does not have access to the sensitive and / or secret data, the application 2014 cannot carry out the NFC transaction, and the NFC transaction stops by itself. An advantage of this embodiment is that an application not authorized by the 2018 filtering interface cannot have access to the sensitive data sent by the remote module, since they remain encrypted with a key not accessible to the application. [Fig.4] is a block diagram illustrating steps of an implementation mode of a method of implementing, or method of carrying out, an NFC transaction of the type of NFC transaction described in relation to [Fig.1]. These steps are executed by the terminal 201 and the remote module 203 described in relation to [Fig.2]. At an initial step 401 (App -> NFC cmd2), the application 2014 of the terminal 201 decides to implement an NFC transaction with the remote module 203. For this, the application 2014, once the communication has been established (for example according to the anti-collision standards defined by NFC-Forum or ISO14443 or defined by any other protocol implemented by the NFC module 2013), needs to send a first cmd2 command to the remote module 203 using the NFC module 2013. The application 2014 then transmits a request to the interface software layers 2016 to use the NFC module to send the cmd2 command to the remote module 203. This operation not being, a priori, a sensitive operation, the filtering layer 2018 authorizes this operation. At a step 402 (NFC -> CARD cmd2), following step 401, the NFC module 2013 has received the cmd2 command to be sent to the remote module 203 and sends it using a near-field communication method of the type described previously. At a step 403 (CARD -> NFC ans2), following step 402, the remote module 203 received and processed the cmd2 command and provided an ans2 response to the NFC module 2013 of the terminal 201. This ans2 response, like the ans! response described in relation to [Fig.3], is likely to contain sensitive data. At a step 404 (NFC -> SE ans2), following step 403, the NFC module 2013 sends the ans2 response to the secure element 2012 so that the secure element encrypts it. Step 404 can be optimized, for example if the NFC module 2013 is capable of detecting the sensitive data among the data of the ans2 response, the NFC module can only ask the secure element to encrypt the sensitive data of the ans2 response. According to a variant, the NFC module sends the ans2 response to the secure element, and the secure element chooses the sensitive data to be encrypted among the data of the ans2 response. At a step 405 (SE encrypt), following step 404, the secure element 2012 encrypts the ans2 response using an encryption key that only it knows, to obtain an encrypted response e(ans2). Thus the sensitive data in the ans2 response are protected by encryption. At a step 406 (SE -> NFC -> App e(ans2)), following step 405, the secure element 2012 returns the encrypted response e(ans2) to the NFC module 2013. Then, the NFC module 2013 sends the encrypted response e(ans2) to the application 2014. At a step 407 (App -> SE decrypt?), following step 406, the application 2014 receives the encrypted response e(ans2) and cannot read it without decrypting it. The application 2014 therefore sends a decryption request to the secure element 2012. This operation being a sensitive operation, the filtering interface 2018 checks whether the application 2014 is authorized to send this request to the secure element 2012. If the application 2014 is authorized (output Y) the next step is a step 408 (SE -> App decrypt), otherwise (output N) the next step is a step 409 (App error). In step 408, the application 2014 being authorized to communicate with the secure element, it requests the secure element 2012 to decrypt the response e(ans2). The latter implements this decryption, and returns the response ans2 to the application 2014. According to an alternative embodiment, the application 2014 can request the decryption key from the secure element and decrypt the data itself. At a step 410 (Continuous transaction), following step 408, the application 2014 can continue to send commands and receive responses from the remote module 203 using the same mechanism described previously, i.e. by encrypting each response received from the remote module 203 by the secure element 2012. According to a variant, a single encryption can be carried out for the first response(s) received from the remote module 203 to accelerate the transaction. At step 409, the 2014 application was recognized as unauthorized. The application 2014 cannot therefore decrypt the response e(ans2). By being recognized as unauthorized, the 2014 application will not have access to the sensitive data of the NFC transaction. At a step 411 (Transaction stop), following step 409, the application 2014 does not have access to the sensitive and / or secret data, the application 2014 cannot carry out the NFC transaction, and the NFC transaction stops by itself. An advantage of this embodiment is that an application not authorized by the 2018 filtering interface cannot have access to sensitive data sent by the remote module. Another advantage of this embodiment is that the management of the decryption key is the sole responsibility of the secure element 2012. The secure element can thus choose which decryption key to use, use only the same key, or change it as often as it wishes. [Fig. 5] is a block diagram illustrating steps of an implementation mode of a method of implementing, or method of carrying out, an NFC transaction of the type of NFC transaction described in relation to [Fig. 1]. These steps are executed by the terminal 201 and the remote module 203 described in relation to [Fig. 2]. At an initial step 501 (App -> NFC emd3), the application 2014 of the terminal 201 decides to implement an NFC transaction with the remote module 203. For this, the application 2014, once the communication has been established (for example according to the anti-collision standards defined by NFC-Forum or ISO14443 or defined by any other protocol implemented by the NFC module 2013), needs to send a first cmd3 command to the remote module 203 using the NFC module 2013. The application 2014 then transmits a request to the interface software layers 2016 to use the NFC module to send the cmd3 command to the remote module 203. This operation not being, a priori, a sensitive operation, the filtering layer 2018 authorizes this operation. At a step 502 (NFC -> CARD cmd3), following step 501, the NFC module 2013 has received the cmd3 command to be sent to the remote module 203 and sends it using a near-field communication method of the type described previously. At a step 503 (CARD -> NFC ans3), following step 502, the remote module 203 received and processed the cmd3 command and provided an ans3 response to the NFC module 2013 of the terminal 201. This ans3 response, like the ans! response described in relation to [Fig.3], is likely to contain sensitive data. At a step 504 (NFC -> SE ans3), following step 503, the NFC module 2013 sends the ans3 response to the secure element 2012 so that the secure element stores it. According to a variant, the secure element 2021 can store the ans3 response and apply an encryption method, for example an asymmetric encryption method. According to another variant, the NFC module 2013 sends the ans3 response to the secure element 2012, and if the latter detects that some of the data in the ans3 response is sensitive data, the secure element 2012 can store it, and remove it from the ans3 response or replace it with other data before returning the ans3 response to the NFC module 2013. At a step 505 (NFC Subs), following step 503, the NFC module prepares a data item s(ans3) to be sent to the application 2014 so that it understands that the remote module 203 has sent the ans3 response. This data item s(ans3) may be data dependent on the ans3 response, such as for example the truncated ans3 response, or the encrypted or signed ans3 response, or data independent of the ans3 response such as random data or standard data indicating to the application 2014 that a response has been received. At a step 506 (NFC -> App s(ans3)), following step 505, the NFC module 2013 sends the data s(ans3) to the application 2014. At a step 507 (App -> SE ans3?), following step 506, the application 2014 receives the data s(ans3) and understands that it must request the ans3 response from the secure element 2012. The application 2014 therefore sends a request to the secure element 2012. This operation being a sensitive operation, the filtering interface 2018 checks whether the application 2014 is authorized to send this request to the secure element 2012. If the application 2014 is authorized (output Y) the next step is a step 508 (SE -> App decrypt), otherwise (output N) the next step is a step 509 (App error). In step 508, the application 2014 being authorized to communicate with the secure element 2012, it requests the ans3 response from the secure element 2012. The latter returns the ans3 response to the application 2014. According to a variant, if the ans3 response has been encrypted by the secure element 2012, the application 2014 can request the decryption of the ans3 response from the secure element 2012 or decrypt it itself. In this second case, it is considered that an encryption and / or decryption key has been exchanged before the implementation of the NFC transaction to establish a common secret. A technique of the Diffie-Hellman type can, moreover, be used here. At a step 510 (Continued transaction), following step 508, the application 2014 can continue to send commands and receive responses from the remote module 203 using the same mechanism described previously, by storing each response received from the remote module 203 by the secure element 2012. According to a variant, a single storage can be carried out for the first response(s) received from the remote module 203 to speed up the transaction. At step 509, the 2014 application was recognized as unauthorized. The application 2014 therefore cannot receive the ans3 response, whether it was encrypted or not. By being recognized as unauthorized, the 2014 application will not have access to the sensitive data of the NFC transaction. At a step 511 (Transaction stop), following step 509, the application 2014 does not have access to the sensitive and / or secret data, the application 2014 cannot carry out the NFC transaction, and the NFC transaction stops by itself. An advantage of this embodiment is that an application not authorized by the 2018 filtering interface cannot have access to sensitive data sent by the remote module. [Fig. 6] is a block diagram illustrating steps of an implementation mode of a method of implementing, or method of carrying out, an NFC transaction of the type of NFC transaction described in relation to [Fig. 1]. These steps are executed by the terminal 201 and the remote module 203 described in relation to [Fig. 2]. At an initial step 601 (App -> API Req Trans), the application 2014 of the terminal 201 decides to implement an NFC transaction with the remote module 203. For this, the application 2014 sends an authorization request to the primary interface layer 2017. This request may be, for example, a request comprising an authentication of the application 2014 with the secure element 2012. This request may, for example, comprise information on the type of NFC transaction authorized to be implemented by the application, which allows the secure element to filter the types of NFC transactions implemented by an application. At a step 602 (API -> SE Transaction?), following step 601, the primary interface layer 2017 sends the request to the filtering interface which checks whether the application is authorized to be sent to the secure element 2012. If the application 2014 is authorized (output Y) the next step is a step 603 (SE -> API evt4), otherwise (output N) the next step is a step 604 (App error). At step 604, the application 2014 has been recognized as unauthorized and will therefore not be able to implement a transaction. The primary interface layer 2017 may, for example, prevent any transaction start requests from the application 2014, or may, for example, detect the presence of sensitive data as described below. In step 603, following step 602, the secure element 2012 sends to the primary interface layer 2017 an instruction evt4, or temporary authorization evi4, according to which the application 2014 can implement an NFC transaction. This instruction evt4 may, for example, concern a single NFC transaction, or several consecutive NFC transactions, or all the NFC transactions of the application 2014. In practice, the instruction evt4 may be a software event. At step 605 (App -> NFC cmd4), following step 603, but which can be directly following step 601, the application 2014 decides to implement an NFC transaction with the remote module 203. The application 2014 then transmits a request to the interface software layers 2016 to use the NFC module 2013 to send an emd4 command to the remote module 203. This operation not being, a priori, a sensitive operation, the primary interface layer 2017 authorizes this operation. At a step 606 (NFC -> CARD cmd4), following step 605, the NFC module 2013 has received the cmd4 command to be sent to the remote module 203 and sends it using a near-field communication method of the type described previously. At a step 607 (CARD -> NFC ans4), following step 606, the remote module 203 received and processed the cmd4 command and provided an ans4 response to the NFC module 2013 of the terminal 201. This ans4 response, like the ans! response described in relation to [Fig.3], is likely to contain sensitive data. At a step 608 (NFC -> API ans4), following step 607, the NFC module 2013 sends the ans4 response to the application 2014, but this sending is intercepted by the primary interface layer 2017. At a step 609 (API evt4?), following step 608, the evt4 instruction received by the primary interface layer 2017 is implemented. If the evt4 instruction authorizes the application to implement the NFC transaction (output Y), the next step is a step 610 (API -> App ans4), otherwise (output N) the next step is a step 611 (App error). Sending the evt4 instruction can be, for example, sending a software event of transaction type as defined by the HCI standard, this sending being carried out via a dedicated communication channel connecting the secure element 2012 and the processor 2011. The evt4 instruction can, in this case, comprise different parameters indicating, for example: - the application authorized to carry out an NFC transaction; - the type(s) of NFC transaction concerned; and / or - the number of NFC transactions that the application is authorized to implement. For example, application 2014 may be allowed to implement two banking-type NFC transactions. At step 610, the application 2014 being authorized to communicate with the secure element, the primary interface layer 2017 transmits the ans4 response to it. At a step 612 (Continuous Transaction), following step 610, the application 2014 can continue to send commands and receive responses from the remote module 203 using the same mechanism described previously. According to a variant, the primary interface layer 2017 can check at each exchange whether the application 2014 is authorized to implement an NFC transaction, or whether the primary interface layer 2017 can consider that the authorization of the evt4 instruction is valid until the end of the current NFC transaction or for a pre-determined duration, or according to a parameter included in the evt4 instruction. At step 611, application 2014 has been recognized as unauthorized and is therefore not authorized to receive the ans4 response. By being recognized as unauthorized, application 2014 will not have access to the sensitive data of the NFC transaction. At a step 613 (Transaction stop), following step 611, the application 2014 not having access to the sensitive and / or secret data, the application 2014 cannot carry out the NFC transaction, and the NFC transaction stops by itself. An advantage of this embodiment is that an application not authorized by the 2018 filtering interface cannot have access to sensitive data sent by the remote module. [Fig.7] is a block diagram illustrating steps of an implementation mode of a method of implementing, or method of carrying out, an NFC transaction of the type of NFC transaction described in relation to [Fig.1]. These steps are executed by the terminal 201 and the remote module 203 described in relation to [Fig.2]. The implementation mode of [Fig.7] is similar to the implementation described in relation to [Fig.6]. The difference between these two implementations is that in that of [Fig.7], it is not the primary interface layer 2017 which checks whether the application is authorized to implement the NFC transaction but the control layer 2019 of the circuits and components of the terminal 201 which performs this check. In this case, the method is therefore as follows. At an initial step 701 (App -> DRIVERS Req Trans), the application 2014 of the terminal 201 decides to implement an NFC transaction with the remote module 203. To do this, the application 2014 sends a request to the control layer 2019. This request may be, for example, an authentication request to the secure element 2012. This request may, for example, include information on the type of NFC transaction authorized to be implemented by the application. At a step 702 (NFC -> CARD cmd5), following step 701, the command layer 2019 sends the request to the secure element 2012. If the application 2014 is authorized (output Y) the next step is a step 703 (SE -> DRIVERS evt5), otherwise (output N) the next step is a step 704 (App error). According to an alternative embodiment, the verification of the authorization of the application 2014 is not carried out at step 702, and the next step is directly step 703. At step 704, application 2014 has been recognized as unauthorized and is therefore unable to implement a transaction. Control layer 2019 may, for example, prevent any transaction start requests from application 2014. In step 703, following step 702, the secure element 2012 sends to the control layer 2019 an instruction evt5, or temporary authorization evt5, according to which the application 2014 can implement an NFC transaction. This instruction evt5 may, for example, concern a single NFC transaction, or several consecutive NFC transactions, or all the NFC transactions of the application 2014. In practice, the instruction evt5 may be a software event. Sending the instruction evt4 may be, for example, sending a software event of transaction type as defined by the HCI standard, this sending being carried out via a dedicated communication channel connecting the secure element 2012 and the processor 2011. The instruction evt4 may, in this case, comprise different parameters indicating, for example: - the application authorized to carry out an NFC transaction; - the type(s) of NFC transaction concerned; and / or - the number of NFC transactions that the application is authorized to implement. For example, application 2014 may be allowed to implement two banking-type NFC transactions. At a step 705 (App -> NFC cmd5), following step 703, but which may be directly following step 701, the application 2014 decides to implement an NFC transaction with the remote module 203. The application 2014 then transmits a request to the interface software layers 2016 to use the NFC module 2013 to send an emdS command to the remote module 203. This operation not being, a priori, a sensitive operation, the command layer 2019 authorizes this operation. At a step 706 (NFC -> CARD cmd5), following step 705, the NFC module 2013 has received the cmd5 command to be sent to the remote module 203 and sends it using a near-field communication method of the type described previously. At a step 707 (CARD -> NFC ans5), following step 706, the remote module 203 received and processed the cmdS command and provided an ans5 response to the NFC module 2013 of the terminal 201. This ans5 response, like the ans! response described in relation to [Fig.3], is likely to contain sensitive data. At a step 708 (NFC -> DRIVERS ans5), following step 707, the NFC module 2013 sends the ans5 response to the application 2014, but this sending is intercepted by the control layer 2019 (DRIVERS). At a step 709 (DRIVERS evt5?), following step 708, the evt5 instruction received by the control layer 2019 (DRIVERS) is implemented. If the evt5 instruction authorizes the application to implement the NFC transaction (output Y) the next step is a step 710 (DRIVERS -> App ansS5), otherwise (output N) the next step is a step 711 (App error). At step 710, the application 2014 being authorized to communicate with the secure element 2012, the control layer 2018 transmits the ans5 response to it. At a step 712 (Continuous Transaction), following step 710, the application 2014 can continue to send commands and receive responses from the remote module 203 using the same mechanism described previously. According to a variant, the control layer 2019 can check at each exchange whether the application 2014 is authorized to implement an NFC transaction, or the control layer 2019 can consider that the authorization of the evtS instruction is valid until the end of the current NFC transaction or for a predetermined duration. The control layer 2019 (DRIVERS) can, in addition, use parameters provided by the evt4 instruction. At step 711, application 2014 has been recognized as unauthorized and is therefore not authorized to receive the ans5 response. By being recognized as unauthorized, application 2014 will not have access to the sensitive data of the NFC transaction. At a step 713 (Transaction stop), following step 711, the application 2014 not having access to the sensitive and / or secret data, the application 2014 cannot carry out the NFC transaction, and the NFC transaction stops by itself. An advantage of this embodiment is that an application not authorized by the control layer 2019 cannot have access to the sensitive data sent by the remote module, the authorization of the application initially coming from the secure element 2012. Various embodiments and variations have been described. Those skilled in the art will understand that certain features of these various embodiments and variations could be combined, and other variations will occur to those skilled in the art. In particular, the terminal and the NFC module may only implement such methods for sensitive NFC transactions, i.e., transactions during which sensitive and / or secret data are exchanged. The NFC module, the interface layer 2018, and the control layer 2019 may, for example, be capable of distinguishing whether an NFC transaction is sensitive or not. This distinction may be made based on the context in which the transaction is implemented, based on instructions, based on the selection of a specific application, or otherwise. Finally, the practical implementation of the embodiments and variants described is within the reach of those skilled in the art from the functional indications given above.
Claims
Claims
1. Method for carrying out an NFC transaction between a mobile terminal (201) and a remote module (203), said terminal (201) comprising a processor (2011) hosting an application (2014) establishing the NFC transaction, a near field communication module (2013), and a secure element (2012) separate from the processor (2011), the method comprising at least the following successive steps: (a) said near field communication module (2013) sends, to said application (2014), first data (ans2) sent by the remote module (203) and encrypted by said secure element (2012); and (b) said application (2014) requests said secure element (2012) to decipher the said first data (ans2).
2. The method of claim 1, wherein the application (2014) is authorized to implement an NFC transaction by software interface (2016), interface software (2016) being software hosted by the processor (2011) and executing commands sent by the said application (2014).
3. The method of claim 2, wherein the application (2014) is a system application.
4. The method of claim 2, wherein the application (2014) is a reliable application that has received permanent authorization to put implement an NFC transaction.
5. The method of claim 2, wherein the application (2014) has received a temporary authorization to implement an NFC transaction.
6. The method of claim 5, wherein the secure element (2012) provides temporary authorization regarding the application (2014) to the said interface software (2016).
7. A method according to claim 5 or 6, wherein if the software interface (2016) do not include any authorization regarding the said application (2014) then during step (b) the interface software (2016) prohibit the application (2014) from requesting the second key from the secure element (2012).
8. A method according to any one of claims 5 to 7, wherein the secure element (2012) obtains temporary authorization from a external server.
9. A method according to any one of claims 1 to 8, wherein the secure element (2012) includes a list of rules indicating the permissions regarding said application, and other applications if a device implements other applications.
10. A method according to any one of claims 1 to 9, wherein if the application (2014) is not authorized to implement a NFC transaction then during step (b) the secure element (2012) refuses to decrypt the first data (ans2) and send it to said application (2012).
11. A method according to any one of claims 1 to 10, wherein the NFC transaction (is a transaction implemented by a method of near field communication.
12. A method according to any one of claims 1 to 11, wherein the NFC transaction is a transaction during which the terminal (201) and the remote module are likely to exchange third data sensitive.
13. A method according to any one of claims 1 to 12, wherein the NFC transaction is a banking transaction.
14. A method according to any one of claims 1 to 13, wherein step (a) is preceded by a step (c) in which the module of near field communication (2013) is capable of detecting only data is sensitive data.
15. The method of claim 14, wherein step (a) is preceded by a step (c) in which the field communication module close (2013) detects that the first data (ansl) include sensitive data.
16. Mobile terminal adapted to implement an NFC transaction with a remote module, said terminal comprising a processor (2011) he- hosting an application (2014) establishing the NFC transaction, a near field communication module (2013), and an element secure (2012) separate from the processor (2011), the production method of the NFC transaction including at least the successive steps following: (a) said near field communication module (2013) sends, to said application (2014), first data (ans2) sent by the remote module (203) and encrypted by said secure element (2012); and (b) said application (2014) requests said secure element (2012) to decipher the said first data (ans2).
17. System comprising a terminal according to claim 16 and a module distant.
