Protection of access rights in a locking system with an electronic access means
Patent Information
- Application Number
- ES2021192178T
- Authority / Receiving Office
- ES · ES
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2026-11-16
- Estimated Expiration
- 2041-08-19
AI Technical Summary
Existing locking systems with electronic access media, such as transponders, are vulnerable to unauthorized reading and manipulation of access rights.
Implementing an electronic access medium with a security module that stores access rights encrypted with a public key and uses a private key for decryption, along with a symmetric key for encryption, ensuring each medium has a unique asymmetric key pair and the private key remains within the medium, and utilizing cryptographic methods to secure data exchange.
Enhances security by preventing unauthorized access and manipulation of access rights, ensuring data integrity and rapid verification of access rights.
Smart Images

Figure 00000009_0000 
Figure 00000010_0000
Abstract
Description
[0001] The invention relates to an electronic access medium for a locking system, a locking system and a method for operating a locking system.
[0002] Locking systems with electronic access media, especially transponders, are well-known. The access rights stored in a transponder can be exposed to various attack scenarios, such as unauthorized reading and / or manipulation of access rights.
[0003] US 2019 / 0305967 A1 describes a system for authenticating credentials based on distributed ledger technology. According to US 2019 / 0305967 A1, digital credentials are stored on a medium, and access to such credentials is granted to a user via a PIN or biometric authentication.
[0004] The present invention is therefore based on the objective of providing a method, an electronic access medium and a locking system with which unauthorized reading of access rights and / or manipulation of access rights can be made more difficult or prevented.
[0005] A first embodiment relates to an electronic access medium, in particular a transponder, for a locking system, wherein the electronic access medium comprises at least one computing unit, at least one communication interface, at least one storage unit and at least one security module for encrypting and / or decrypting data, characterized in that access rights encrypted with a public key are stored in the storage unit and that a private key and at least one symmetric key are stored in the security module, in particular in a memory of the security module.
[0006] An asymmetric key pair, comprising a public key and a private key, is assigned to the electronic access medium. When the electronic access medium is used in a locking system with multiple electronic access media, each electronic access medium is assigned its own public key and its own private key, i.e., its own asymmetric key pair. The public key and the private key of each electronic access medium differ from the public key and the private key of each other electronic access medium. At least one symmetric key is assigned to the locking system in which the electronic access medium is used.In the event that an electronic access medium is used in at least two locking systems, the electronic access medium also includes at least two symmetrical keys.
[0007] The private key always remains in the electronic access medium and is used there for decryption. The public key is linked to the private key and is used to encrypt data that can only be decrypted with the associated private key.
[0008] The private and public keys are used in cryptographic encryption methods.
[0009] The communication interface is, for example, an RFID (Radio-Frequency Identification) interface, through which the electronic access medium can exchange data contactlessly with an RFID read / write device in a known manner. A passive electronic access medium without its own power supply can be powered via the interface.
[0010] The security module is a hardware unit separate from the storage unit and the processing unit of the electronic access medium. The security module includes its own working memory. Advantageously, the security module includes appropriate security certification, such as EAL (Evaluation Assurance Level) from NIST (National Institute of Standards and Technology).
[0011] Advantageously, the storage unit can be designed to include, or be, a block memory, and the block memory can contain n+1 blocks with a block index i=0 to n. A block is a data area, where each block is uniquely identified by its block index. Here, block memory is understood in the broadest sense as a memory divided into blocks.
[0012] Advantageously, access rights are stored in each block of the block memory along with a check value and / or the block index. A placeholder can also be advantageously included in each block. For example, a block, particularly one with a block index i>0, comprises one or more access points of a locking system, represented by bits, especially bitmaps. Depending on the bit value, 1 or 0, access rights exist for a given access point. Furthermore, the block with the block index can contain additional data, such as general access rights, time zone, and / or expiration date, etc. Block-based storage enables fast memory access and thus rapid verification of access rights. Additionally, block-by-block encryption is advantageously possible for technical reasons.
[0013] The test value is a CRC value, short for cyclic redundancy check, which can be determined using a cyclic redundancy check to detect errors or modifications in data during transmission or storage.
[0014] It can be advantageous if the security module is designed for symmetric and / or asymmetric encryption and / or decryption. In asymmetric encryption and / or decryption, unlike symmetric encryption and / or decryption, the two communicating parties do not share a common secret key. Each user generates and possesses their own key pair, consisting of a secret part (private key) and a non-secret part (public key).
[0015] It may also be provided that an identifier, ID, of the electronic access medium is stored in the storage unit and / or in the security module. The identifier may, for example, be stored unencrypted.
[0016] Another embodiment relates to a locking system with at least one locking device for locking and / or unlocking a respective access point, the locking device comprising at least one computing unit, at least one communication interface, and at least one security module for encrypting and / or decrypting data, the locking system further comprising at least one electronic access medium, in particular a transponder, characterized in that the electronic access medium is designed according to one of claims 1 to 5 and that the symmetrical key is stored in the security module of the locking device.
[0017] The security module of a locking device can be structured similarly to, or identically with, the security module of an electronic access medium. The symmetrical key is used in the locking system to exchange encrypted data between an electronic access medium and a locking device.
[0018] The locking device also includes at least one communication interface, for example an RFID interface, via which the locking device, in particular as an RFID read / write device, can exchange data with the electronic access medium.
[0019] Another embodiment relates to a method for operating a locking system according to the described embodiments with at least one locking device for locking and / or unlocking a respective access point and at least one electronic access medium, the method comprising the following steps: Requesting access rights from the electronic access medium via the locking device; transferring access rights encrypted with the public key from the storage unit of the electronic access medium to the security module of the electronic access medium; decrypting the access rights with the private key stored in the security module, and encrypting the access rights with the symmetric key stored in the security module; transferring the access rights encrypted with the symmetric key to the locking device; decrypting the access rights with the security module of the locking device and, depending on the access rights, granting or denying access to a respective access point.
[0020] After the locking device requests access rights from the electronic access medium, these rights are first transferred within the electronic access medium from its storage unit to its security module. The security module decrypts the access rights encrypted with the public key using the private key stored within the security module and then re-encrypts them with the symmetric key. The access rights encrypted with the symmetric key are then transmitted to the locking device and decrypted by the locking device's security module. The symmetric key is stored in the locking device's security module.
[0021] According to further training, encryption with the symmetric key also includes encryption with a temporary key that was generated based on the symmetric key.
[0022] It can prove advantageous if the request for access rights by the locking device to the electronic access medium includes: the transmission of a challenge from the locking device to the electronic access medium, wherein the challenge comprises a block index of a block from the transponder's block memory and a random number. The block index is calculated, for example, from an identifier of the locking device, in particular of the access point.
[0023] It can prove further advantageous if the procedure includes: supplementing the challenge with a verification value via the electronic access medium, encrypting the challenge and the verification value with the symmetric key, and transmitting the encrypted challenge and the encrypted verification value to the locking device. The verification value is also stored in the block memory of the electronic access medium.
[0024] Advantageously, the procedure is designed to further include: Identifying the electronic access medium using the challenge and the verification value by the locking device. In this case, the access point knows both the challenge and the verification value and can therefore identify the transponder as the sender. The verification value is stored, for example, in memory or in the security module of the locking device. Using the verification value ensures that the data, especially access rights, secured by the public key and / or the symmetric key, cannot be subsequently altered. This can be verified by the locking device after decryption.
[0025] Advantageously, the procedure can be further designed to include: verification of access rights and / or the verification value by the locking device. Verification is carried out, for example, using the block index. The block index is calculated, for instance, from an ID of the locking device, particularly the access point. This step serves to verify whether the access rights for the corresponding block have been transmitted.
[0026] It can also prove advantageous if the procedure further includes: providing a temporary key. A temporary key can, for example, be based on the challenge and / or the block index and / or the checksum and / or the symmetric key. The temporary key is valid, for example, for one session, i.e., for one transmission between the locking device and the electronic access medium.
[0027] In further developing the inventive concept, it can prove to be advantageous if the locking system further comprises a locking system management unit with at least one computing unit, at least one storage unit and at least one communication interface, and the method further comprises: Generation of the public key and the private key by the electronic access medium, in particular by the security module of the electronic access medium, transmission of the public key from the electronic access medium to the locking system management unit, encryption of access rights with the public key by the locking system management unit, transmission of the access rights encrypted with the public key from the locking system management unit to the electronic access medium and storage of the access rights encrypted with the public key in the storage unit of the electronic access medium.
[0028] The communication interface of the locking system management unit is, for example, an RFID interface, via which the locking system management unit can exchange information with the electronic access medium.
[0029] The public key is transmitted from the electronic access medium to the locking system management unit. The private key remains within the security model of the electronic access medium.
[0030] The locking system management unit encrypts access rights with the public key individually for each electronic access medium and transmits them to the electronic access medium. These access rights are then stored in the electronic access medium's memory unit.
[0031] Advantageously, the generation of the public and private keys via the electronic access medium can be triggered by the locking system management unit. The locking system management unit triggers the key generation, for example, by sending a corresponding message.
[0032] Furthermore, it proves advantageous if the procedure also includes: The electronic access medium generates a certificate associated with the public key and transmits this certificate, particularly together with the public key, to the locking system management unit. The locking system management unit then verifies the certificate and / or the public key. For example, the key management program checks the certificate when verifying the public key. If the certificate is faulty, the electronic access medium cannot be used in a locking system.
[0033] The procedure can further include the generation of a verification value, particularly when encrypting access rights, by the locking system management unit. The verification value, especially together with the encrypted access rights, is transmitted to the electronic access medium and stored in the storage unit, specifically in a respective block of the block memory.
[0034] Furthermore, it proves advantageous if the procedure also includes: assigning an identifier (ID) to the electronic access medium by the locking system management unit. The identifier can be used by the locking system management unit to establish a link between an electronic access medium and a corresponding public key. The identifier can also be used in a locking device at an access point for rights management.
[0035] Furthermore, it proves advantageous if the procedure also includes: transferring the symmetric key encrypted with the public key from the locking system management unit to the access medium.
[0036] Further features, applications, and advantages of the invention will become apparent from the following description of exemplary embodiments of the invention, which are illustrated in the figures of the drawing. All described or illustrated features, individually or in any combination, constitute the subject matter of the invention, irrespective of their inclusion in the claims or their cross-references, and irrespective of their formulation or representation in the description or in the drawing.
[0037] The drawing shows: Figure 1 schematically shows a first embodiment of a locking system, Figure 2 a communication diagram of the embodiment according toFigure 1 .
[0038] Figure 1 Figure 1 schematically shows a locking system 100. The locking system 100 schematically comprises an electronic access medium 200, a locking device 300, and a locking system management unit 400. The locking system 100 may include further electronic access media 200 (not shown) and further locking devices 300 (not shown).
[0039] The electronic access medium 200 comprises a computing unit 210, for example a microcontroller, a storage unit 220 and at least one security module 230, for encrypting and / or decrypting data.
[0040] The storage unit 220, for example, is a block memory containing n+1 blocks with block indices i=0 to n. A block is a data area where each block is uniquely identified by its block index.
[0041] Advantageously, access rights encrypted with a public key, in particular together with a check value and / or the block index, are stored in each block of the block memory. Advantageously, a placeholder can also be provided in each block. For example, a block, in particular a block with a block index i>0, comprises one or more access points of the locking system 100, represented by bits, in particular bitmaps. Depending on the value of the bit, 1 or 0, there is either one or no access right for a respective access point. Furthermore, it can be provided that additional data, in particular general access rights and / or time zone and / or expiry date, etc., are stored in the block with the block index.
[0042] The security module 230 is a hardware unit separate from the storage unit 220 and the processing unit 210 of the electronic access medium. The security module 230 advantageously includes its own memory, in particular working memory. The security module 230 advantageously includes a corresponding security certification, for example, EAL (Evaluation Assurance Level), NIST (National Institute of Standards and Technology). A private key and at least one symmetric key are stored in the security module 230, in particular in a memory of the security module 230.
[0043] The computing unit 210 is specifically designed to store data, especially encrypted data, in the memory 220, to write and read data into the security module 230 and / or to control the security module 230 for asymmetric and / or symmetric encryption.
[0044] Furthermore, the electronic access medium 200 includes a communication interface 240. The communication interface 240 is, for example, an RFID (Radio-Frequency Identification) interface, via which the electronic access medium 200 can exchange data contactlessly with an RFID read / write device, in particular with the locking device 300 and the locking system management unit 400, in a manner known per se. A passive electronic access medium without its own power supply can be powered via the interface 240.
[0045] It may also be provided that an identifier, ID, of the electronic access medium 200 is stored in the storage unit 220 and / or in the security module 230. The identifier may, for example, be stored unencrypted.
[0046] The locking device 300 is assigned to an access point (not shown), in particular a door or gate. The locking device 300 comprises, for example, a locking cylinder (not shown) which can be operated, in particular opened and closed, via an actuating element. The actuating element can, for example, be controlled by a processing unit 310 of the locking device 300 depending on access rights.
[0047] The locking device 300 includes a communication interface 320, in particular an RFID interface, via which the locking device 300 can exchange data, in particular access rights, with the electronic access medium 200.
[0048] Furthermore, the locking device 300 includes a security module 330, in which the symmetrical key is also stored.
[0049] The public key and the private key are assigned to the electronic access medium 200. When the electronic access medium 200 is used in a locking system 100 with multiple electronic access media 200, each electronic access medium 200 is assigned its own public key and its own private key. The public key and the private key of each electronic access medium 200 differ from the public key and the private key of each other electronic access medium. The symmetrical key is assigned to the locking system 100 in which the electronic access medium 200 is used.
[0050] The private key always remains in the electronic access medium 200 and is used there by the security module 230 for decryption. The public key and the symmetric key are used for encryption.
[0051] The symmetric key is used to exchange encrypted access rights between the electronic access medium 200 and the locking device 300.
[0052] The first public key is used to exchange encrypted access rights between the electronic access medium 200 and the locking system management unit 400. Furthermore, the access rights within the electronic access medium 200 are also encrypted either with the public key or with the symmetric key.
[0053] Access rights are therefore never transmitted unencrypted.
[0054] The locking system management unit 400 is designed to manage access rights and assign them to a respective electronic access medium 200 of a locking system 100.
[0055] The locking system management unit 400 comprises a computing unit 410, in particular for executing a computer program for managing access rights, a storage unit 420, in particular a secure storage unit in which access rights and / or public keys and, if applicable, other data such as identifiers of electronic access media 200 are stored, and a communication interface 430, for example an RFID interface.
[0056] In Figure 2 A communication diagram 500 of the locking system 100 is shown.
[0057] In a first step, the locking system management unit 400 triggers the generation of the public key and the private key by the electronic access medium 200. The locking system management unit 400 triggers the generation of the keys, for example, by sending a corresponding message to the electronic access medium 200.
[0058] The security module 230 of the electronic access medium 200 generates the public key and the private key in one step 502, in particular by appropriate control by the computing unit 210.
[0059] In step 503, the public key is transferred from the electronic access medium 200 to the locking system management unit 400.
[0060] Steps 502 and 503 may include the generation of a certificate associated with the public key by the electronic access medium 200 and the transfer of the certificate, in particular together with the public key, to the locking system management unit 400.
[0061] In step 504, the certificate and / or the public key is verified by the locking system management unit 400.
[0062] In step 505, access rights are encrypted with the public key by the locking system management unit 400.
[0063] In step 506, access rights encrypted with the public key are transferred from the locking system management unit 400 to the electronic access medium 200.
[0064] In step 507, access rights encrypted with the public key are stored in the storage unit 220 of the electronic access medium 200.
[0065] Procedure 500 may further include the assignment of an identifier, ID, to the electronic access medium 200 by the locking system management unit 400; this step may, for example, be carried out in step 501.
[0066] When using the electronic access medium 200 to operate the locking device 300, it is brought close to the locking device 300.
[0067] In step 508, the locking device requests 300 access rights from the electronic access medium 200.
[0068] The request for access rights by the locking device 300 from the electronic access medium 200 can include the transmission of a challenge by the locking device 300 to the electronic access medium 200, wherein the challenge comprises a block index of a block of the block memory of the electronic access medium 200 and a random number.
[0069] In step 509, access rights encrypted with the public key are transferred from the storage unit 220 of the electronic access medium 200 to the security module 230 of the electronic access medium 200.
[0070] In step 510, the access rights are decrypted by the security module 230 of the electronic access medium 200 using the private key stored in the security module 230.
[0071] In step 511, the challenge is supplemented with a test value using the electronic access medium 200.
[0072] In step 512, the access rights are encrypted by the security module 230 of the electronic access medium 200 with the symmetric key stored in the security module 230 and / or the challenge and the check value are encrypted with the symmetric key.
[0073] In step 513, the access rights encrypted with the symmetric key are transferred to the locking device 300 and / or the encrypted challenge and the encrypted check value are transferred to the locking device 300.
[0074] In step 514, the electronic access medium 200 is identified by the locking device 300 based on the challenge and the test value.
[0075] In step 515, the access rights are decrypted by the security module 330 of the locking device 300.
[0076] In step 516, the access rights and / or the test value are verified by the locking device 300.
[0077] In step 517, depending on the access rights, access to the access point assigned to the locking device 300 is granted or denied by the locking device 300.
Claims
1. Electronic access medium (200), in particular a transponder, for a locking system (100), wherein the electronic access medium (200) comprises at least one computing unit (210), at least one communication interface (240), at least one storage unit (220) and at least one security module (230) for encrypting and / or decrypting data, wherein access rights encrypted using a public key are stored in the storage unit (220), and a private key and at least one symmetric key are stored in the security module (230), in particular in a memory of the security module (230), wherein the electronic access medium (200) is designed such that access rights encrypted using the public key are transmitted from the storage unit (220) of the electronic access medium (200) to the security module (230) of the electronic access medium (200), and that the access rights are decrypted by the security module (230) of the electronic access medium (200) using the private key stored in the security module (230), and that the access rights are encrypted by the security module (230) using the symmetric key stored in the security module (230), and the access rights encrypted using the symmetric key are transmitted to a locking device (300) of the locking system.
2. Electronic access medium (200) according to claim 1, wherein the storage unit (220) comprises or is a block storage means, and the block storage means comprises a number of n+1 blocks with a block index i=0 to n.
3. Electronic access medium (200) according to claim 2, wherein access rights are stored in a relevant block of the block storage means together with a check value and / or a block index.
4. Electronic access medium (200) according to any of the preceding claims, wherein the security module (230) is designed for symmetric and / or asymmetric encryption and / or decryption.
5. Electronic access medium (200) according to any of the preceding claims, wherein an identifier, ID, of the electronic access medium (200) is stored in the storage unit (220) and / or in the security module (230).
6. Locking system (100) comprising at least one locking device (300) for locking and / or unlocking a relevant access point, the locking device (300) comprising at least one computing unit (310), at least one communication interface (310), and at least one security module (330) for encrypting and / or decrypting data, the locking system (100) further comprising at least one electronic access medium (200), in particular a transponder, characterized in that the electronic access medium (200) is designed according to any of claims 1 to 5, and in that the symmetric key is stored in the security module (330) of the locking device (300).
7. Method (500) for operating a locking system according to claim 6 with at least one locking device (300) for locking and / or unlocking a relevant access point, and at least one electronic access medium (200), the method (500) comprising the following steps: requesting (508) access rights from the electronic access medium (200) by means of the locking device (300); transmitting access rights encrypted using the public key from the storage unit (220) of the electronic access medium (200) to the security module (230) of the electronic access medium (200); decrypting the access rights by means of the security module (230) of the electronic access medium (200) using the private key stored in the security module (230), and encrypting the access rights by means of the security module (230) of the electronic access medium (200) using the symmetric key stored in the security module (230); transmitting the access rights encrypted using the symmetric key to the locking device (300); decrypting the access rights by means of the security module (330) of the locking device (330) and, depending on the access rights, granting or denying access to a relevant access point by means of the locking device (300).
8. Method (500) according to claim 7, wherein requesting (508) access rights from the electronic access medium (200) by means of the locking device (300) comprises: transmitting a challenge to the electronic access medium (200) by means of the locking device (300), wherein the challenge comprises a block index of a block of the block storage means of the electronic access medium (200) and a random number.
9. Method (500) according to claim 8, wherein the method (500) further comprises: supplementing the challenge with a check value by means of the electronic access medium (200), encrypting the challenge and the check value using the symmetric key, and transmitting the encrypted challenge and the encrypted check value to the locking device (300).
10. Method (500) according to claim 9, wherein the method (500) further comprises: identifying the electronic access medium (200) using the challenge and the check value by means of the locking device (300).
11. Method (500) according to any of claims 8 to 10, wherein the method (500) further comprises: verifying the access rights and / or the check value by means of the locking device (300).
12. Method (500) according to at least one of claims 7 to 11, wherein the method (500) further comprises: providing a temporary key.
13. Method (500) according to at least one of claims 7 to 12, wherein the locking system (100) further comprises a locking system management unit (400) having at least one computing unit (410), at least one storage unit (420) and at least one communication interface (430), and the method (500) further comprises: generating (502) the public key and the private key by means of the electronic access medium (200), in particular by means of the security module (230) of the electronic access medium (200), transmitting the public key from the electronic access medium (200) to the locking system management unit (400), encrypting access rights using the public key by means of the locking system management unit (400), transmitting the access rights encrypted using the public key from the locking system management unit (400) to the electronic access medium (200), and storing the access rights encrypted using the public key in the storage unit (220) of the electronic access medium (200).
14. Method (500) according to claim 13, wherein the generation of the public key and the private key by the electronic access medium (200) is triggered by the locking system management unit (400) (501).
15. Method (500) according to claim 13 or 14, wherein the method further comprises: generating (502) a certificate belonging to the public key by means of the electronic access medium (200) and transmitting (503) the certificate, in particular together with the public key, to the locking system management unit (400), verifying (504) the certificate and / or the public key by means of the locking system management unit (400).
16. Method (500) according to any of claims 13 to 15, wherein the method further comprises: assigning (501) an identifier, ID, to the electronic access medium (200) by means of the locking system management unit (400).
17. Locking system (100) according to claim 6, comprising a locking system management unit (400) having at least one computing unit (410), at least one storage unit (420) and at least one communication interface (430), wherein the locking system (100) is designed to carry out the method according to any of claims 7 to 16.
