Method and system for establishing a secure messaging channel between a smartcard and an end device
A method using a PIN and key derivation functions establishes secure messaging channels on smartcards and devices, addressing the lack of protection against active attacks in existing technologies, thereby enhancing data security and integrity.
Patent Information
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2026-04-16
AI Technical Summary
Current methods for securing communication links between smartcards and devices lack a flexible, easy-to-implement, and low-cost solution that protects against both passive and active attacks, particularly in contactless communication systems where encryption measures are lacking.
A method involving a Personal Identification Number (PIN), a first key derivation function, and a communication channel establishment protocol is used to create secure messaging channels by generating keys on both the smartcard and end device, utilizing a nonce value and encryption to protect against active attacks.
This approach provides a simple, cost-effective, and practical method to secure messaging channels, enhancing data security by protecting against active attacks and ensuring data integrity and confidentiality.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
TECHNICAL AREA OF INVENTION
[0001] The present invention relates to a method for establishing a secure messaging channel between a smartcard and an end device. The present invention also relates to a system for such a method. The present invention also relates to a use of such a method. BACKGROUND OF THE INVENTION
[0002] Advances in communication technology, increasing digitalization, and growing connectivity are leading to a greater exchange of data. The exchange of data via a communication link must be secured through appropriate measures to prevent, hinder, or avoid eavesdropping, interception, and / or manipulation of the data during transmission.
[0003] When protecting a communication link, a distinction is made between passive and active attacks. Passive attacks include eavesdropping on or reading information, whereas active attacks also aim to manipulate data or information.
[0004] The communication link for data exchange between smart cards and other devices is particularly vulnerable to these threats today. Smart cards with contactless communication often still lack encryption measures, resulting in open communication that can be exploited to read and / or manipulate sensitive data.
[0005] Therefore, there is an interest in securing communication links by ensuring a secure connection between smart cards and devices. Additionally, there are regulations governing the exchange of certain data, specifying how this data must be protected and what security requirements must be met for a connection used to exchange such data, for example, in the case of classified information.
[0006] One method of securing communication connections is the approach of so-called "secure messaging". This involves establishing a secure messaging channel for exchanging data, which, however, often only protects against passive attacks.
[0007] To ensure protection against active attacks, a pre-shared secret is required on both sides. This pre-shared secret comprises, for example, symmetric keys, also known as pre-shared keys. However, distributing these keys beforehand is complex, inconvenient, impractical, and involves increased administrative overhead, potentially requiring updates. Furthermore, such keys are also generated outside the smart card, increasing the risk of misuse or other security vulnerabilities. If the keys are to vary for different smart cards, increased administrative overhead is also to be expected.
[0008] The current state of the art therefore lacks a secure, flexible, easy-to-implement and low-cost method for establishing a secure messaging channel between a smartcard and an end device that also protects against active attacks.
[0009] Against this background, the technical object of the present invention is to provide an improved method for establishing a secure messaging channel between a smartcard and an end device, as well as a system and use for such a method. SUMMARY OF THE INVENTION
[0010] This problem is solved by a method having the features of main claim 1. This problem is further solved by a system having the features of dependent claim 8. This problem is further solved by a processor unit having the features of dependent claim 13. This problem is further solved by a computer program product having the features of dependent claim 14. This problem is further solved by a computer-readable storage medium having the features of dependent claim 15. This problem is further solved by a use having the features of dependent claim 16. Advantageous embodiments and improvements of the present invention are the subject of the dependent claims.
[0011] A method for establishing a secure messaging channel between a smartcard and an end device is disclosed in this document. In accordance with a first aspect, a Personal Identification Number (PIN), a first key derivation function, and a communication channel establishment protocol are provided on the smartcard. The PIN, the first key derivation function, and the communication channel establishment protocol are provided on the end device. The method comprises the following steps: creating a first key on the smartcard and on the end device based on the PIN and the first key derivation function; creating a nonce value, wherein the creation of the nonce value further comprises the following steps: generating the nonce value on a device stored on the smartcard or the end device; and encrypting the nonce value with the first key.Sending the encrypted nonce value to the other device from the terminal or smartcard and decrypting the encrypted nonce value with the first key, executing the communication channel establishment protocol on the smartcard and on the terminal device based on the generated nonce value to generate a second key on the smartcard and on the terminal device, first deriving a first secure messaging channel key on the smartcard and on the terminal device based on the second key, and second deriving a second secure messaging channel key on the smartcard and on the terminal device based on the second key.
[0012] This method offers the possibility of establishing a secure messaging channel based on a shared secret derived from a user's PIN. This provides a simple, cost-effective, and practical measure to protect against active attacks on the communication between the smartcard and the end device, thereby increasing data security. The use of the nonce value allows for further enhancement and improvement of the communication connection security for data exchange, thus increasing data security.
[0013] In another aspect, the smartcard includes a chip card. In yet another aspect, the chip card is preferably a plastic card with an integrated circuit or circuits.
[0014] In another aspect, however, the chip card can also be made of materials other than plastic, for example, but not limited to, metals, alloys, wood or other natural materials, composite materials, and combinations of different materials. It is understood that, within the scope of this invention, any material suitable for manufacturing a chip card is conceivable; therefore, the chip card is not limited to one or more specific materials for use according to the invention. The mention of materials is therefore only to be considered exemplary.
[0015] In another aspect, the integrated circuit(s) can be implemented passively as a storage medium for information and / or actively with a processor (for example, a central processing unit, CPU) for more complex tasks / functions.
[0016] In another aspect, the smartcard can also be referred to as a key card, the chip card mentioned above, or an Integrated Circuit Card (ICC), or it can include such things.
[0017] In another aspect, a smartcard is preferably a plastic card with an integrated circuit (chip) or integrated circuits (chip) that includes hardware logic, non-volatile EPROM or EEPROM memory, and a microprocessor. Furthermore, smartcards can be accessed, for example, by special card readers.
[0018] In another aspect, the smart card, or chip card, encompasses a transmission technology. A further distinction regarding the transmission technology of the chip card is made, for example, between contactless and contact-based chip cards. The contactless chip card, or smart card, can also be called a transponder card or RFID (radio-frequency identification) card, and data transmission preferably occurs without contact. The chip in such chip cards or smart cards is preferably not visible externally, and these cards are typically made of plastic. RFID refers to a technology for transmitter-receiver systems for the automatic and contactless identification of objects—in this case, the contactless smart cards or chip cards—using radio waves.Contact-based chip cards or contact-based smart cards require physical contact between the chip module and, for example, a chip card reader or a chip card encoding unit. With these cards, a chip is preferably visible on a surface of the chip card or smart card.
[0019] In accordance with another aspect, the communication channel establishment protocol includes a Password-Authenticated Connection Establishment (PACE) protocol. Preferably, the PACE protocol further includes an Elliptic Curve Diffie-Hellman (ECDH) method. Preferably, the ECDH method uses the Elliptic Curve (EC)-384 standard. Preferably, the first secure messaging channel key for encryption conforms to an Advanced Encryption Standard (AES). More preferably, the AES is AES-256. Preferably, the second secure messaging channel key for message authentication code (MAC) protection conforms to an Advanced Encryption Standard (AES). More preferably, the AES is AES-256.
[0020] The use of the PACE protocol, the ECDH method, the EC-384 standard, and the Advanced Encryption Standard contributes to increased data security through improved protection of the communication connection via the corresponding secure messaging channel. The first secure messaging channel key provides encryption for data confidentiality. The second secure messaging channel key ensures data integrity, guaranteeing that transmitted data has not been altered.
[0021] In another aspect, AES is AES-128. In another aspect, AES is AES-512. The AES-128 key could enable faster data transmission. The AES-512 key could enable an even more secure communication connection via the Secure Messaging Channel.
[0022] In accordance with another aspect, the execution of the process for generating the second key on the smartcard and on the terminal device further includes counting incorrect operations based on an incorrect operation counter. Preferably, the execution also includes terminating the communication channel establishment protocol in a case where a predetermined value corresponds to an incorrect operation counter value.
[0023] The incorrect operation counter protects against unauthorized access to or use of the connection between the smartcard and the terminal device by an unauthorized user. To protect the data, the communication channel establishment protocol is terminated if an impermissible number of incorrect operations occur, thus further increasing data security.
[0024] In accordance with another aspect, the first and second derivations are repeated based on a repetition condition. Preferably, the repetition condition includes a time interval and / or a data set.
[0025] By repeating the first derivation and the second derivation via the once established secure messaging channel, the first secure messaging channel key and the second secure messaging channel key can be renewed cyclically or regularly, leading to increased security of the communication connection.
[0026] In accordance with another aspect, the PIN includes at least one user PIN or administrator PIN. Preferably, the PIN has a length of at least 6 digits.
[0027] Using the user PIN and / or the administrator PIN provides a simple and low-effort way to access a shared secret of the smartcard and the terminal device.
[0028] In accordance with another aspect, the secure messaging channel is established for a radio connection between the smartcard and the terminal device (210). Preferably, the radio connection features near-field communication (NFC).
[0029] Wireless connectivity enables simple and user-friendly data exchange, as the smartcard does not need to be in direct contact with a device by the user. Furthermore, wireless implementations are often space-saving. Wireless connectivity via NFC is an established technology.
[0030] In accordance with another aspect, at least one of the PIN, the first key derivation function and the communication channel establishment protocol is provided in encrypted form.
[0031] The encrypted provision of at least one of the PIN, the first key derivation function and the communication channel establishment protocol further increases data security through improved communication protection.
[0032] A system for establishing a secure messaging channel is disclosed in this document. In accordance with a further aspect, the system comprises an end device, including a Personal Identification Number (PIN), a first key derivation function, and a communication channel establishment protocol, and a smart card, including the PIN of the end device, the first key derivation function of the end device, and the communication channel establishment protocol of the end device. The end device and the smart card are configured to establish a communication link via a wired and / or wireless connection. The end device and the smart card have a first key, which is generated based on the PIN and the first key derivation function, and a nonce value, which is exchanged based on the first key.
[0033] The system for establishing a secure messaging channel for transmitting data via the secure messaging channel offers the possibility of implementing a secure messaging channel based on a shared secret based on a user's PIN, which provides a simple, low-effort and practical measure to protect against active attacks on the communication between the smartcard and the end device, thereby increasing data security as a result of improved communication security.
[0034] In accordance with another aspect, at least one of the PIN, the first key derivation function and the communication channel establishment protocol is / are encrypted and provided on the terminal device and / or on the smartcard.
[0035] The encrypted provision of at least one of the PIN, the first key derivation function and the communication channel establishment protocol further increases data security as a result of improved communication security.
[0036] In accordance with another aspect, the system also includes a processor unit. The processor unit is configured to carry out the procedure according to one of the preceding aspects in order to establish the secure messaging channel.
[0037] The installed processor unit contributes to increased data security and improved communication security by carrying out the procedure according to one of the preceding aspects.
[0038] In accordance with another aspect, the radio connection features Near-Field Communication (NFC).
[0039] Wireless connectivity enables simple and user-friendly data exchange, as the smartcard does not need to be in direct contact with a device by the user. Furthermore, wireless implementations are often space-saving. Wireless connectivity via NFC is an established technology.
[0040] In accordance with another aspect, the end device further comprises a user interaction device. Preferably, the user interaction device is a card reader. Preferably, the card reader further comprises a user control panel.
[0041] The user interaction device serves to provide simple and user-friendly interaction with the user, thereby enabling further functions, processes and / or procedures.
[0042] A processor unit is disclosed in this document. In accordance with a further aspect, the processor unit is configured to perform the procedure according to one of the preceding aspects.
[0043] The installed processor unit contributes to increased data security and improved communication security by carrying out the procedure according to one of the preceding aspects.
[0044] A computer program product is disclosed in this document. In accordance with a further aspect, the computer program product includes instructions which, when the program is executed by a processor unit, cause the processor unit to perform the procedure according to one of the preceding aspects.
[0045] The use of the computer program product allows for the implementation of the procedure for automatic execution by the processor unit.
[0046] A computer-readable storage medium is disclosed in this document. In accordance with a further aspect, the computer-readable storage medium has stored the computer program product according to one of the preceding aspects.
[0047] The use of the computer-readable storage medium allows for flexible storage of the computer program product.
[0048] One use of the method is disclosed in this document. In accordance with a further aspect, the use of the method, as described in one of the preceding aspects, is to establish a secure messaging channel for the transmission of data, where the data includes classified information.
[0049] The method is therefore suitable for establishing a secure messaging channel for transmitting confidential data, whereby the transmitted data may include classified information. BRIEF DESCRIPTION OF THE FIGURES Fig. Figure 1 shows a flowchart of a procedure for establishing a secure messaging channel between a smartcard and an end device according to a first aspect. Fig. Figure 2 shows a schematic representation of a system for establishing a secure messaging channel for transmitting data over a communication link according to another aspect. DETAILED DESCRIPTION OF THE INVENTION
[0050] The invention will now be described based on the figures. It is assumed that the aspects of the invention described here are only examples and do not in any way limit the scope of protection of the claims. The invention is defined by the claims and their equivalents. It is assumed that features of one aspect of the invention can be combined with a feature of another aspect or aspects of the invention.
[0051] Unless otherwise indicated, elements that are identical or functionally similar are marked with the same reference symbols in the figures. It should also be noted that the representations in the figures are not necessarily to scale.
[0052] Fig. Figure 1 shows a flowchart of a procedure S for establishing a secure messaging channel between a smartcard 220 and an end device 210. The procedure S includes the smartcard 220 and the end device 210. A personal identification number (PIN), a first key derivation function KDF1, and a communication channel establishment protocol KCP are provided on the smartcard 220. The PIN, the first key derivation function KDF1, and the communication channel establishment protocol KCP are provided on the end device 210. The procedure S includes the following steps: creating S100 a first key K1 on the smartcard 220 and on the end device 210 based on the PIN and the first key derivation function KDF1; creating S110 a nonce value, wherein creating S110 further includes the following steps: generating the nonce value on a device provided by the smartcard 220 or the end device 210.Encrypting the nonce value with the first key K1, sending the encrypted nonce value to the other from terminal device 210 or smartcard 220, and decrypting the encrypted nonce value with the first key K1, executing S120 of the communication channel establishment protocol KCP on smartcard 220 and on terminal device 210 based on the created nonce value to create a second key K2 on smartcard 220 and on terminal device 210, first derivation S130 of a first secure messaging channel key Kenc on smartcard 220 and on terminal device 210 based on the second key K2, and second derivation S140 of a second secure messaging channel key Kmac on smartcard 220 and on terminal device 210 based on the second key K2.
[0053] The S method allows the derivation of the first Secure Messaging Channel key Kenc, thereby achieving, in one aspect, encryption of the confidentiality of the data.
[0054] The S procedure allows the derivation of the second Secure Messaging Channel key Kmac, which in a further aspect provides integrity protection, ensuring that transmitted data has not been altered.
[0055] In another aspect, the first derivation S130 includes a second key derivation function. In yet another aspect, the second derivation S140 includes a third key derivation function.
[0056] The method S can further comprise a further step S150. Step S150 comprises a repetition S150 of the first derivation S130 and the second derivation S140. The repetition S150 is performed based on a repetition condition. Preferably, the repetition condition comprises a time interval and / or a data quantity. The time interval can, in one example, be a number of minutes, hours, or days. It is understood that the time interval can also include other units of time, such as seconds or weeks. In another example, the time interval of the repetition condition can be 0.5 hours. The data quantity can, in another example, comprise a cumulative amount of transferred data. The cumulative amount of transferred data can be in the range of kilobytes, megabytes, or gigabytes. It is understood that the transferred data quantity can also include other data quantities in the range of bytes or terabytes.In another example, the repetition condition includes both a time interval and a data set, with the repetition condition being considered satisfied as soon as one of the time interval or the data set is reached.
[0057] In procedure S, if desired and / or necessary, at least one of the PIN, the first key derivation function KDF1, and the communication channel establishment protocol KCP can be provided in encrypted form. It is understood, therefore, that encrypted provision / storage of at least one of the PIN, the first key derivation function KDF1, and the communication channel establishment protocol KCP is not necessarily required.
[0058] Creating a nonce value (S110) involves generating the nonce value. The nonce value includes, in one aspect, a random value.
[0059] The execution of S120 of the Communication Channel Establishment Protocol (CCP) on the smartcard 220 and on the terminal device 210 can involve an initiator of the CCP. In one aspect, the terminal device 210 is the initiator of the CCP. The terminal device 210 can, for example, be a host system. In another aspect, the smartcard 220 responds as a corresponding receiver to the initiation of the CCP by the terminal device 210.
[0060] Fig.Figure 2 shows a schematic representation of a system 200 for establishing a secure messaging channel for transmitting data via a communication link 230. The system 200 comprises an end device 210 and a smart card 220. A communication link 230 is shown schematically between the end device 210 and the smart card 220. The system 200 also includes a processor unit 240.
[0061] In one example, the Smartcard 220 is a physical card and uses Java Card technology.
[0062] In another aspect, the smartcard 220 can comprise a chip card. In one example, the smartcard 220 is a chip card and is preferably a plastic card or a plastic card with an integrated circuit or integrated circuits. It is understood, however, that the smartcard 220 can also be made of materials other than plastic, for example, metals, alloys, wood or other natural materials, composite materials, or combinations of different materials. It is also understood that, within the scope of this invention, any material suitable for manufacturing the smartcard 220 is conceivable; therefore, the smartcard 220 is not limited to one material or specific materials for use according to the invention, and the mention of the material or materials is therefore only to be understood as an example.
[0063] In another aspect, the integrated circuit(s) of the Smartcard 220 can, for example, be passively configured as storage for information(s) and / or actively implemented / formed with a processor (a CPU) for more complex tasks.
[0064] The Smartcard 220 can also be referred to as a key card, as mentioned above, a chip card, or an Integrated Circuit Card (ICC), or it can incorporate such components. In another example, the Smartcard 220 is preferably a plastic card with an embedded integrated circuit (chip) comprising hardware logic, non-volatile EPROM or EEPROM memory, and a microprocessor. Furthermore, the Smartcard 220 can be accessed, for example, by special card readers.
[0065] In another aspect, the Smartcard 220 can incorporate a transmission technology. Regarding the transmission technology of the Smartcard 220, a distinction can be made, for example, between a contactless Smartcard 220 and a contact-based Smartcard 220. In another aspect, the contactless Smartcard 220 can also be referred to as a transponder card or RFID (radio-frequency identification) card, and data transmission preferably occurs without contact. A chip in such a contactless Smartcard 220, which is preferably a plastic card, is preferably not externally visible. RFID refers to a technology for transmitter-receiver systems for the automatic and contactless identification of objects—in this case, the contactless Smartcard 220—using radio waves.The contact-based Smartcard 220 requires physical contact between the chip module and, for example, a chip card reader or a chip card encoding unit. With the contact-based Smartcard 220, a chip is preferably visible on one surface of the Smartcard 220.
[0066] In the System 200, if desired and / or required, at least one of the PIN, an administrator PIN, the first key derivation function KDF1, and the communication channel establishment protocol KCP can be provided in encrypted form on the terminal device 210 and / or on the smartcard 220. It is understood, therefore, that the encrypted provision / storage of at least one of the PIN, the administrator PIN, the first key derivation function KDF1, and the communication channel establishment protocol KCP is not necessarily required.
[0067] In another aspect, the KCP communication channel establishment protocol includes a Password Authenticated Connection Establishment (PACE) protocol. It goes without saying that other protocols can also be used to establish a communication channel.
[0068] In another aspect, the PACE protocol includes an Elliptic Curve Diffie-Hellman (ECDH) method for negotiating parameters between the smartcard 220 and the terminal device 210. Furthermore, parameters of the PACE protocol and / or the ECDH method are, if desired and / or required, encrypted and provided on the smartcard 220 and / or the terminal device 210.
[0069] In one example, the end device 210 can be a host system.
[0070] In one example, data exchange takes place via communication link 230 by establishing a secure messaging channel. In this example, the secure messaging channel is established based on the PIN and the PACE protocol using the ECDH method or ECDH protocol. The established secure messaging channel protects against both passive and active attacks and enables a high level of data communication security due to improved communication link protection. REFERENCE MARK LIST S procedure S100 Process step “Create” S110 Procedure step “Create” S120 Procedure step “Execute” S130 Procedure step “first derivation” S140 Procedure step “second derivation” S150 Procedure step “Repeat” 200 System 210 End device 220 Smartcard 230 communication link 240 processor units
Citation Information
Patent Citations
Creating a cryptographically secured electronic identity
DE102021110143A1
Method and system for generating a private key for encrypted data transfer between an electronic identity document and a terminal
EP3386143A1
Method for Protection of A Chip Card From Unauthorized Use, Chip Card and Chip Card Terminal
US20100223479A1
Systems and Methods for "Machine-to-Machine" (M2M) Communications Between Modules, Servers, and an Application using Public Key Infrastructure (PKI)
US20230208629A1
Cited By
Method and system for establishing a secure messaging channel between a smart card and a terminal device
WO2026078046A1