Near field communication (NFC) device and method for selectively securing records in a near field communication data exchange format (NDEF) message
09949132 ยท 2018-04-17
Assignee
Inventors
Cpc classification
H04L2209/805
ELECTRICITY
H04L2209/72
ELECTRICITY
H04W4/80
ELECTRICITY
G06K7/10297
PHYSICS
International classification
H04L9/00
ELECTRICITY
H04B5/00
ELECTRICITY
H04W4/00
ELECTRICITY
H04L9/32
ELECTRICITY
Abstract
A method and device for selectively securing records in a Near Field Communication Data Exchange Format (NDEF) message in a Near Field Communication (NFC) device are provided. The method includes generating a record by setting a first field to 0 and setting a second field to a predefined value, wherein the record indicates a beginning of at least one record to be secured in the NDEF message; and placing the record in the NDEF message, wherein, at least one record preceding the record is unsecured and at least one record following the record is secured.
Claims
1. A method for selectively securing records in a Near Field Communication Data Exchange Format (NDEF) message in a Near Field Communication (NFC) device, the method comprising: generating a first record by setting at least one sub-field to a predefined value that indicates at least one second record preceding the first record in the NDEF message is unsecured and at least one third record following the first record in the NDEF message is secured; and placing the first record in the NDEF message, wherein the at least one third record following the first record in the NDEF message is secured.
2. The method of claim 1, wherein the at least one unsecured second record preceding the first record spans from a beginning of the NDEF message to the first record.
3. The method of claim 1, wherein the at least one unsecured second record preceding the first record spans from a fourth record preceding the first record to the first record.
4. The method of claim 1, wherein the at least one secured third record following the first record is secured by using a fifth record that includes a valid signature.
5. The method of claim 4, further comprising deleting the at least one unsecured second record preceding the first record in the NDEF message without changing the valid signature in the fifth record.
6. The method of claim 4, further comprising modifying the at least one unsecured second record preceding the first record in the NDEF message, without changing the valid signature in the fifth record.
7. The method of claim 4, further comprising adding the at least one unsecured second record preceding the first record in the NDEF message, without changing the valid signature in the fifth record.
8. The method of claim 1, wherein the first record is generated in a form of a signature record, and wherein the first record does not have a signature.
9. A Near Field Communication (NFC) device for selectively securing records in a Near Field Communication Data Exchange Format (NDEF) message, the NFC device comprising: a processor for: generating a first record by setting at least one sub-field to a predefined value that indicates at least one second record preceding the first record in the NDEF message is unsecured and at least one third record following the first record in the NDEF message is secured, and placing the first record in the NDEF message, wherein the at least one third record following the first record in the NDEF message is secured; and a transmitter for transmitting the NDEF message.
10. The device of claim 9, wherein the at least one unsecured second record preceding the first record spans from a beginning of the NDEF message to the first record.
11. The device of claim 9, wherein the at least one unsecured second record preceding the first record spans from a fourth record preceding the first record to the first record.
12. The device of claim 9, wherein the at least one secured third record following the first record is secured by using a fifth record that includes a valid signature.
13. The device of claim 12, wherein the processor deletes the at least one unsecured second record preceding the first record in the NDEF message without changing the valid signature in the fifth record.
14. The device of claim 12, wherein the processor modifies the at least one unsecured second record preceding the first record in the NDEF message, without changing the valid signature in the fifth record.
15. The device of claim 12, wherein the processor adds the at least one unsecured second record preceding the first record in the NDEF message, without changing the valid signature in the fifth record.
16. The device of claim 9, wherein the first record is generated in a form of a signature record, and wherein the first record does not have a signature.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The above and other aspects, features, and advantages of the present invention will become more apparent to one skilled in the art from the following detailed description when taken in conjunction with the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15) Persons skilled in the art will appreciate that elements in the figures are illustrated for simplicity and clarity and may have not been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of various embodiments of the present invention.
DETAIL DESCRIPTION OF EMBODIMENTS OF THE INVENTION
(16) Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, the same elements will be designated by the same reference numerals although they are shown in different drawings. Further, in the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may obscure the subject matter of the present invention.
(17) Additionally, it may be observed that the method steps and system components have been represented by conventional symbols in the figures, showing only specific details that are relevant for an understanding of the present invention. Further, details that may be readily apparent to person ordinarily skilled in the art may not have been disclosed. In this document, relational terms such as first and second, and the like, may be used to distinguish one entity from another entity, without necessarily implying any actual relationship or order between such entities.
(18) As indicated above, the present application provides methods for identifying records preserved in NDEF (NFC Data Exchange Format). In accordance with one embodiment of the present invention, the beginning of a set of records that are secured by a signature RTD is indicated using a Begin/Place Marker signature record. In accordance with a second embodiment of the present invention, a new field is added to the signature RTD record called the secured bytes. The secured bytes field is used to identify bytes of data that are to be protected by the Signature RTD. This application has the potential to protect the data from multiple records and multiple NDEF messages using a single Signature RTD, by using the secured bytes field.
(19)
(20)
(21)
(22)
(23)
(24)
(25) Referring to
(26) Referring to
(27) 00Marks a beginning of a record block for which signature is later added. This is a Place Marker Signature Record.
(28) 11Indicates a signature record including a signature
(29) 01-10 are reserved for future use.
(30)
(31)
(32) Referring to
(33)
(34)
(35)
(36) Referring to
(37) At step 1106, a place marker signature record is placed in the NDEF message. The place marker signature record is a modified signature RTD. A first set of records preceding the place marker signature record in the NDEF is unsecured. In accordance with an embodiment of the present invention, the first set of records preceding the place marker signature record until a beginning of the NDEF message are unsecured In accordance with another embodiment of the present invention, the first set of records preceding the place marker signature record until the signature RTD preceding the place marker signature record are unsecured.
(38) At step 1108, the second set of records following the place marker signature record is secured. The method 1100 gives flexibility to secure some records while keeping some records the same NDEF unsecured. Thereafter, the method 1100 terminates at step 1110.
(39) The above-described method provides flexibility to delete unsecured records in the NDEF message without changing the signature in the signature RTD. In addition, unsecured records in the NDEF message can be modified without changing the signature in the signature RTD. Further unsecured records in the NDEF message can be added without changing the signature in the signature RTD. The method 1100 is explained below in detail under the heading Method 1.
(40) Method 1:
(41) To mark the beginning of a set of records that are secured by a Signature RTD, a Begin/Place Marker signature record is added before the first record that is to be secured. Three different field representations can be used define a Begin/Place Marker signature record.
(42) (i) Defining a Begin/Place Marker Signature Record Using a Control Field
(43) The Signature RTD record is modified to include a two bit flag field. This 2 bit field can be coded in the first byte of the current Signature RTD record. The values that can be taken by this 2 bit flag field are:
(44) 00Marks beginning of record block for which signature is later added. This is a Place Marker Signature Record.
(45) 11Signature record with signature
(46) 01-10 are reserved for future use
(47)
(48) To mark the beginning of a set of records that are secured by a Signature RTD, a Begin/Place Marker signature record is added before the first record that is to be secured with the control field 500 in the Signature RTD set to 00. The signature field 505 can be absent in this record, as this is just a place marker record. The Certificate Chain field 510 can be optionally specified in this place marker record itself. By placing the Certificate Chain field 510 in the place marker record, the security engine in the NDEF parser at the receiver can authenticate the message even before the signature needs to be calculated. Another advantage is that the signature generation can happen as the NDEF message is read. This can give added performance improvement.
(49) A signature RTD with the flag bits set to 11 is placed after the set of records that are to be secured. This Signature RTD has the signature that will be verified at the receiver for integrity protection. If the certificate values are not specified in the Place
(50) Marker signature record then it is provided in the later Signature RTD that has the signature field set.
(51) (ii) Defining a Begin/Place Marker Signature Record Using First Byte of Signature Field
(52) An alternate way to represent a Begin/Place Marker record is to use subfields 415, 420, 425, and 430 of the Signature field of the Signature RTD. The version field 400 is used only to indicate the version. The sub fields 415, 420, 425, and 430 of the Signature field are illustrated
(53) 1. The first byte of the Signature field can be set to 0. This means that the first bit, URI_present field 415 is set to 0 and the Signature Type field 420 is set to a pre-defined value, e.g., 0. This indicates that this Signature record does not have a valid signature, but is used only as a place marker to identify records that are to be signed or left unsecured. In this format, the Signature Length field 425 and the Signature/URI field 430 follow the Signature Type field 420. Referring to
(54) 2. The first bit, URI_present 415 is set to 0, and the Signature Length field 425 is set to 0 (See
(55) A Signature RTD with the Signature Type set to denote the signature algorithm used along with the digital signature is placed after the set of records that are to be secured. This Signature RTD includes the digital signature that is to be verified at the receiver for integrity protection, of the set of records. If the certificate values are not specified in the Place Marker signature record then it is included in the later Signature RTD that has the signature field set.
(56) Using one of the above two methods it is possible to represent Place Marker/Begin Signature RTD records. The payload of the Place Marker Signature RTD records is only a few bytes long, accordingly they can be set as Short Records (e.g., set SR=1 in NDEF header, as in
(57) The records before the Begin/Place Marker signature record up to the start of the NDEF message or up to another signature RTD record are not secured. This is an additional advantage given to the application by which some large records or records containing public information may not be secured using the digital signature. For example, in
(58)
(59) Referring to
(60) Method 2:
(61) Referring to
(62) For example, the NDEF message in accordance with an embodiment of the present invention may be used to depict a Smart Poster. A Smart Poster can typically have several records of Text type, or MIME type that includes audio, video data, URI, etc. The NDEF message illustrated in
(63)
(64) Referring to
(65) More specifically, in accordance with the method illustrated in
(66) In accordance with the method illustrated in
(67) While various embodiments of the present invention have been illustrated and described, it will be clear that the present invention and its advantages are not limited to only these embodiments. Numerous modifications, changes, variations, substitutions and equivalents will be apparent to those skilled in the art without departing from the spirit and scope of the present invention as described in the claims. Accordingly, the specification and figures are to be regarded as illustrative examples of the invention, rather than in restrictive sense.