DYNAMIC SECURE MESSAGING
20180176716 ยท 2018-06-21
Inventors
Cpc classification
H04L9/0866
ELECTRICITY
H04W4/80
ELECTRICITY
H04W12/02
ELECTRICITY
H04L63/0435
ELECTRICITY
H04L9/30
ELECTRICITY
H04B5/20
ELECTRICITY
International classification
H04W4/00
ELECTRICITY
H04B5/00
ELECTRICITY
H04L9/08
ELECTRICITY
Abstract
The disclosure relates to dynamic secure messaging using near-field communication. Example embodiments include a near field communication target device (102) configured to respond to a read request (202) transmitted by a reader device (101) by transmitting a message (204) comprising an unencrypted portion and an encrypted portion, the encrypted portion incorporating a counter that is incremented each time a read request is received.
Claims
1. A near field communication target device configured to respond to a read request transmitted by a reader device by transmitting a message comprising an unencrypted portion and an encrypted portion, the encrypted portion incorporating a counter that is incremented each time a read request is received.
2. The device of claim 1 wherein the encrypted portion incorporates an identification code for the target device.
3. The device of claim 2 wherein the identification code is a unique identification code of the target device.
4. The device of claim 1, wherein the unencrypted portion of the message contains a uniform resource identifier of a resource for decryption of the encrypted portion of the message.
5. The device of claim 1, wherein the encrypted portion comprises the counter.
6. The device of claim 1, wherein the encrypted portion is encrypted with a session key derived from the counter.
7. A method of near field communication between a target device and a reader device, the method comprising: i) the reader device transmitting a read request; ii) the target device responding to the read request by transmitting a message comprising an unencrypted portion and an encrypted portion, the encrypted portion incorporating a counter that is incremented each time a read request is received.
8. The method of claim 7 wherein the encrypted portion incorporates an identification code of the target device.
9. The method of claim 8 wherein the identification code is a unique identification code of the target device.
10. The method of claim 7, wherein the unencrypted portion of the message contains a uniform resource identifier of a resource for decryption of the encrypted portion of the message.
11. The method of claim 7, wherein the encrypted portion comprises the counter.
12. The method of claim 7, wherein the encrypted portion is encrypted with a session key derived from the counter.
13. The method of claim 10 further comprising: the reader device transmitting the encrypted portion of the message to the resource identified by the uniform resource identifier; and the resource decrypting the encrypted portion of the message and sending a verification message to the reader device.
14. The method of claim 7, further comprising: the target device incrementing the counter after transmitting the message, the encrypted portion being a first encrypted portion; and repeating steps i) and ii), wherein the encrypted portion is a second encrypted portion.
15. The method of claim 14 further comprising: the reader device transmitting the first and second encrypted portions to the resource identified by the uniform resource identifier; and the resource decrypting the first and second encrypted portions of the message and sending a verification message to the reader device.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0033] Embodiments will be described, by way of example only, with reference to the drawings, in which
[0034]
[0035]
[0036]
[0037] It should be noted that the Figures are diagrammatic and not drawn to scale. Relative dimensions and proportions of parts of these Figures have been shown exaggerated or reduced in size, for the sake of clarity and convenience in the drawings. The same reference signs are generally used to refer to corresponding or similar feature in modified and different embodiments.
DETAILED DESCRIPTION OF EMBODIMENTS
[0038]
[0039] The target device 102 comprises a near field communication module 107 and an associated antenna 108. The target device 102 may for example be in the form of a tag attached to or embedded in an article, or a smart card.
[0040] In operation, the reader device 101 transmits a read request signal 109 via antenna 104. The read request may be transmitted in response to a user interaction with the reader device, for example by the user initiating the read request by activating a control when the reader device is within range of the target device, or in some cases by tapping the reader device 101 on the target device 102 or by waving the reader device 101 in proximity to the target device 102. The target device responds to the read request signal 109 by transmitting a message in a return signal 110, which is received by antenna 104 on the reader device and processed by the reader module 103. The message comprises an unencrypted portion and an encrypted portion, the unencrypted portion including a uniform resource identifier (URI) for a resource, or server, that is able to decrypt the encrypted portion. The reader device does not therefore need to be able to decrypt any portion of the message but instead can pass on the encrypted portion to the server identified by the URI. Once the decrypted portion of the message has been received from the server by the reader device, and the target device authenticated, the reader device can establish a secure communication link with the server.
[0041] The basic process described above is illustrated in the diagram in
[0042] The NFC communication module 107 of the target device 102 comprises a processor 301, a non-volatile memory (NVM) 302 and a communication module 303, as illustrated in
[0043] A first read command from the reader device 101 may cause the processor 301 to increment the counter in the NVM 302. Subsequent read commands from the same reader device may result in the counter not being incremented, and the counter may be incremented once any other command has been received, causing the counter to be incremented on a subsequent read command. Alternatively, the counter may be incremented more than once for the same reader device, for example in the case where additional security is required to show that messages from the target device are not being replicated by an attacker. Since the content of the encrypted portion is not known to the attacker, and will change each time the counter is incremented, sending a second message after incrementing the counter will reduce the possibility of an attacker being able to reproducing the messages.
[0044] As part of the process of responding to a read request, a session key is generated. This session key may be derived from a non-diversified key (i.e. the same for every target device of that type) or a diversified key (i.e. different for each target device). Both types of keys may be generated. The session key incorporates the current counter value, and optionally also the UID of the target device. One key may be generated for encryption, while another may be generated for creating a MAC.
[0045] In alternative implementations, the reader device 101 may collect responses from the target device 102, for example for later decryption and verification. The reader device 101 may already be in possession of a URI for contacting a server for decryption and verification or may be able to perform these functions itself, in which case there is no need for a URI to be included in the responses.
[0046] From reading the present disclosure, other variations and modifications will be apparent to the skilled person. Such variations and modifications may involve equivalent and other features which are already known in the art of near field communication, and which may be used instead of, or in addition to, features already described herein.
[0047] Although the appended claims are directed to particular combinations of features, it should be understood that the scope of the disclosure of the present invention also includes any novel feature or any novel combination of features disclosed herein either explicitly or implicitly or any generalisation thereof, whether or not it relates to the same invention as presently claimed in any claim and whether or not it mitigates any or all of the same technical problems as does the present invention.
[0048] Features which are described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, various features which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable sub-combination. The applicant hereby gives notice that new claims may be formulated to such features and/or combinations of such features during the prosecution of the present application or of any further application derived therefrom.
[0049] For the sake of completeness it is also stated that the term comprising does not exclude other elements or steps, the term a or an does not exclude a plurality, a single processor or other unit may fulfil the functions of several means recited in the claims and reference signs in the claims shall not be construed as limiting the scope of the claims.