Method and system for cryptographically secured data transmission
Regularly updating and securely documenting asymmetric key pairs addresses the vulnerability of non-post-quantum secure key pairs to quantum attacks, ensuring continued secure operation of devices by preventing key pair compromise within a predetermined time frame.
Patent Information
- Application Number
- PCT/EP2024/056846
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-23
- Filing Date
- 2024-03-14
- Publication Date
- 2024-09-26
AI Technical Summary
Asymmetric cryptography systems, particularly those using non-post-quantum secure key pairs, are vulnerable to quantum computer attacks, which can break private keys and compromise security, especially in industrial settings where firmware updates or resource upgrades are not feasible.
Regularly changing the asymmetric key pairs within a predetermined time T and documenting these changes using a method that provides a higher security level than the asymmetric key pair, ensuring that key pairs are replaced before they can be broken by quantum computers, and using a secure documentation method to verify the authenticity of key pair changes.
This approach allows for continued secure operation of devices using non-PQ-secure asymmetric key pairs by ensuring key pairs are updated before they can be compromised, providing a high degree of certainty that attackers cannot assume identities or gain unauthorized access, thus maintaining security even in the presence of quantum computing.
Smart Images

Figure EP2024056846_26092024_PF_FP
Abstract
Description
[0001] Description
[0002] Method and system for cryptographically secured data transmission
[0003] The present invention relates to the field of asymmetric cryptography and, in particular, to a method and a system for cryptographically secured data transmission.
[0004] The field of asymmetric cryptography knows cryptographic methods in which two communicating entities do not need to know a common key. Using an entity's public key, data can be encrypted, which the entity can then decode with its private key. Likewise, the entity can sign data with its private key, and other entities can verify the signature using the public key. In this case, the private key is known only to the entity, not to its communication partners. The communication partners only know the public key. In practice, a certificate is usually used that includes the entity's public key, information about the entity's identity, and a signature issued by a root certification authority.A communication partner can extract the public key and the identity of the institution from the certificate and, based on the signature of the root certification authority, trust the extracted information. For example, a large number of field institutions can deposit a respective certificate with a server and then communicate with the server in a cryptographically secure manner without the need to exchange a shared secret. An attacker who does not know the secret key cannot decrypt data transmissions encrypted with the public key and cannot create signatures that pass a check using the public key. The security of asymmetric cryptography is based on so-called trapdoor functions, which are easy to calculate but can only be inverted with disproportionate effort without knowledge of a secret.The trapdoor function (parameter of the trapdoor function) forms the public key, and the secret forms the private key.
[0005] However, it has already been shown in the past that, with increasing computing power, methods once considered secure can still be broken. For example, public-key methods initially used a key length of 128 bits when they were first introduced, but by the time of registration, key lengths of only 2048 bits and above are considered sufficiently secure.
[0006] With the advent of quantum computing, this problem is becoming more severe. Quantum algorithms are already known that are capable of inverting the trapdoor function used in asymmetric cryptography in a comparatively short time, such as the Shor algorithm. A quantum computer could thus gain unauthorized access to the private key, decrypt encrypted data transmissions, and / or generate signatures that could be used to fake a false identity.
[0007] The solution for the transition to the quantum computing era is generally seen in the use of so-called post-quantum-safe, PQ-safe, algorithms that cannot be broken by a quantum computer, at least not in orders of magnitude less time than with classical computers. However, especially in industrial contexts, a large number of devices are already installed in the field today that cannot be converted to use PQ-safe algorithms, for example, because the firmware cannot be updated or because there is insufficient memory or computing power to execute PQ-safe algorithms.Against this background, it is an object of the present invention to increase the security of the operation of a device which communicates using an asymmetric key pair which is only limitedly secure, in particular not PQ-secure, according to a limitedly secure, in particular non-PQ-secure, algorithm.
[0008] According to a first aspect, a computer-implemented method for cryptographically secured data transmission is proposed.The method comprises: a) carrying out a cryptographically secured data transmission between a first device and a second device using an asymmetric key pair of the first device which comprises a private key and a public key, wherein only the public key is also accessible to the second device; b) regularly changing the currently used key pair of the first device, wherein with each key pair change the currently used key pair is replaced by a new asymmetric key pair to be used, wherein each key pair change takes place within a predetermined time T after the currently used key pair is created; and c) documenting a time of the respective key pair change using a method which provides a higher level of security than the asymmetric key pair.
[0009] The invention is based on the assumption that, even with an increase in available computing power and / or the advent of quantum computers, a certain time 0 will still be required to break a private key of a key pair that was originally considered secure but is now only partially secure. If the key pair is changed within a specified time T < 0, the asymmetric key pair can continue to be used securely without fear of a successful attack.By documenting the times of key pair changes using a process that provides a higher level of security, communication partners such as the second institution or external auditors can also subsequently verify that communication with the first institution consistently met the higher level of security. This means that it can be ruled out with a high degree of certainty that an attacker could even temporarily assume the identity of the first institution and install backdoors, obtain their own certificates or gain unauthorized access in any other way because the attacker did not have the necessary time to do so. In particular, it can be ruled out with a high degree of certainty that an attacker could have inserted self-selected keys into the documentation as per step c).
[0010] Accordingly, the proposed method advantageously enables the operation of a device that communicates using an asymmetric key pair with a higher level of security. In particular, field devices that only support a specific asymmetric cryptography method or only a specified maximum key length can continue to operate securely even if, due to technological advances, the encryption method or key length used by the field devices is no longer considered unlimitedly secure.
[0011] Here and in the following, terms such as "limited security" and / or "restricted security" refer to a security level as provided by the asymmetric key pair (of methods performed using the asymmetric key pair), whereas terms such as "secure", "unlimited security", "with increased security", "at a higher security level" and / or "more secure" refer to a security level that is higher than the security level provided by the asymmetric key pair. In this case, "higher security level" can mean in particular that breaking a method, encrypted or signed data and / or private keys that provide the higher security level is not possible or only possible with more computational effort or time than breaking methods, encrypted or signed data and / or private keys that do not provide the higher security level.
[0012] The cryptographically secured data transmission can, for example, be a data transmission encrypted using asymmetric cryptography and / or a transmission of data signed using asymmetric cryptography.
[0013] That is, the cryptographically secured data transmission can comprise: signing data to be transmitted by the first device using the private key; transmitting the signed data from the first device to the second device; and verifying the signature of the transmitted data by the second device using the public key; or the cryptographically secured data transmission can comprise: encrypting data to be transmitted by the second device using the public key; transmitting the encrypted data from the second device to the first device; and decrypting the transmitted data by the first device using the private key.
[0014] The key pair of the first device, comprising the private and public keys, may be stored on the first device or be accessible to the first device in a secure manner.
[0015] The private key is inaccessible to the second device or to the public and is preferably accessible only to the first device or, more preferably, only to a protected cryptographic module, such as a trusted platform module of the first device or a smart card inserted into the first device.
[0016] The public key may be accessible to the public, to a restricted public, or only to the second entity. Accessibility means, in particular, that the second entity can obtain a digital copy of the public key or has a digital copy of the public key.
[0017] Step b) may be performed by the first device. However, step b) may also be performed by an external device. The external device may instruct the first device to generate the new key pair to be used and to perform the key pair exchange. Alternatively, the external device may generate the new key pair to be used and provide it to the first device, install it on the first device, and so on.
[0018] The step of "documenting" information, such as the time of each key pair change, includes, in particular, storing the information and making it available. The information can, in particular, be made available for later access by third parties. The term "third parties" here includes, for example, the second institution and / or an auditor and / or a restricted public and / or the public. In particular, both the storage and the provision of the information are preferably carried out using a respective method that provides the higher level of security.
[0019] The documented time of the key pair change can be the time of creation of the new key pair to be used. Provided it is ensured that the key pair or data encrypted or signed with it could not have been accessible to an attacker before its first use, the time of first use of the new key pair to be used can also be documented.
[0020] Step c) can be carried out by the first institution. Step c) can be initiated by the first institution by contacting an external institution and thereby causing it to carry out step c). Step c) can also take place without the involvement of the first institution. For example, an external institution can monitor data transmissions from the first institution, a directory in which certificates from the first institution are published, or the like and document the time at which the use of a particular public key is first detected during monitoring as the time of the respective key pair change, provided that it is ensured that an attacker did not have access to data encrypted with the public key or signed with the associated private key at any earlier time.
[0021] According to one embodiment, a respective limited secure asymmetric key pair is a non-PQ-secure asymmetric key pair, and the documentation in step c) is carried out using a PQ-secure method.
[0022] Accordingly, the proposed method can be advantageously used to continue operating classical asymmetric cryptography systems in the quantum computer age.
[0023] A non-PQ-secure key pair is, in particular, a key pair whose private key is attackable by quantum algorithms or can be attacked by quantum algorithms in a shorter time, preferably in at least a factor of 10 shorter time, particularly preferably in at least a factor of 1000 shorter time than by classical algorithms. A PQ-secure key pair, on the other hand, is a key pair which, at the time of implementation of the proposed technical teaching, is considered unattackable by quantum algorithms or whose breaking by quantum algorithms requires at least one hundredth of the time, particularly preferably at least one tenth of the time, very particularly preferably at least the same time as breaking by classical algorithms.
[0024] According to a further embodiment, the cryptographically secured data transmission takes place as part of an authentication of the first device at the second device.
[0025] For example, the cryptographically secured data transmission can involve the transmission of a response to a challenge within the framework of challenge-response authentication. The challenge can be a random data sequence, and the response can be the random data sequence signed using the private key of the first device. The challenge can also be a random data sequence encrypted using the public key, and the response can be the decrypted data sequence.
[0026] The use of the proposed method in this way within the framework of an authentication process is particularly advantageous since – unlike, for example, when storing encrypted data for permanent storage – in the authentication process only the period of time in which the authentications are carried out with the asymmetric key pair is important, but it is irrelevant if the signed or encrypted data are broken by a quantum computer or the like at a later point in time after the expiry of the specified time T, since this data was only relevant during the authentication process.
[0027] According to a further embodiment, the proposed method further comprises d) checking, on the basis of the documented times of the key pair changes, whether the key pair changes were each carried out within the predetermined time T and / or whether the predetermined time T has not yet elapsed since the last documented time of a key pair change.
[0028] Accordingly, communication partners, such as the second institution or external auditors, can verify that communication with the first institution was consistently secure, thus ruling out with high certainty that an attacker could even temporarily assume the identity of the first institution and install backdoors, obtain their own certificates, or otherwise gain unauthorized access. In particular, it can be ruled out with high certainty that an attacker could incorporate self-selected keys into the documentation according to step c).
[0029] Depending on the result of the test, a safety function can be activated or an audit can be requested by an operator.
[0030] According to a further embodiment, it is provided that the second device carries out step d) or obtains a result of the execution of step d) and, in the event of a failed check, permits the cryptographically secured data transmission with the first device only with restricted authorization or refuses it entirely.
[0031] Accordingly, the second device can advantageously detect whether there is a risk that an attacker has at least temporarily assumed the identity of the first device and, in the event of such a risk, prevent the attacker from gaining access to sensitive information.
[0032] Permitting data transmission only with restricted authorization may, for example, include denying the first device write permissions and leaving only read permissions and / or denying the first device access to a portion of the data and services offered by the second device and leaving only access to another portion of these data and services.
[0033] According to a further embodiment, a certificate for the public key of the first key pair used is issued by a root certification authority by signing the public key, step b) further comprises issuing a certificate for the public key of the new key pair to be used by signing the public key of the new key pair to be used with the private key of the currently used key pair, step c) further comprises documenting the time of the key pair change linked to the certificate issued in step b), and step d) further comprises checking whether the certificate of the currently used key pair of the first institution can be traced back to a certificate of the root certification authority.
[0034] A respective certificate, such as an X.509 certificate, can in particular comprise a respective public key of the first institution (a digital copy of the respective public key), information on the identity of the first institution and a signature. Such certificates can be distributed publicly or specifically made available to the second institution in order to enable cryptographically secured data transmission with the first institution. The second institution obtains the public key from the certificate and checks the signature. If this signature is issued by the root certification authority or can be traced back to it, and if the second institution is in a relationship of trust with the root certification authority, the second institution can verify the identity of the first institution and, for example, authenticate it.
[0035] According to the proposed embodiment, only the first public key used by the first device is signed by a root certification authority. With each key pair change, the new certificate to be used is created by signing the new public key with the currently used private key. A certificate signed with the previously used private key also exists for the corresponding, currently used public key, etc. Thus, a certificate chain or signature chain is constructed that can be traced back to the signature of the root certification authority from the certificate of the currently used public key by gradually verifying the respective signatures.
[0036] This advantageously avoids the computational, organizational and cost effort that would arise if a new certificate had to be obtained from the root certification authority every time the key pair was changed.
[0037] However, if an attacker were to succeed in breaking just one of the private keys used to create the certificate chain, he could then forge the certificate chain from that point on and forever claim to be the first institution by generating a new key pair himself, signing the public key of the new key pair with the broken private key and documenting the certificate thus generated, thus continuing and documenting the certificate chain himself for as long as he wanted.
[0038] According to the proposal, this is advantageously prevented by documenting the certificates in step c) in conjunction with the times of the key pair changes, and by verifying both the traceability of the current certificate to the root certification authority and the times of the key pair changes in step d). If all key pair changes were made within the specified time T, there is a high degree of certainty that no attacker has yet penetrated in this way and inserted self-generated keys into the documentation according to step c).
[0039] According to a further embodiment, the root certification authority signs the public key of the first key pair used using a cryptographic method with increased security.
[0040] For example, the root certification authority can PQ-securely sign the public key of the first key pair used.
[0041] This does not conflict with the task of enabling the continued operation of a first facility that does not support the higher security level procedure, since the first facility does not need to verify the signature in the certificate obtained from the root certification authority. Only the second facility must be able to verify signatures created using the higher security level procedure, in particular using a PQ-secure procedure.
[0042] Accordingly, a closed chain of trust is advantageously created from the root certification authority through the individual certificates to the currently used certificate. This chain of trust satisfies the requirement of providing increased security overall, since the first certificate is issued with increased security, and all subsequent certificates are verifiably created in compliance with the requirement for sufficiently frequent key pair changes.
[0043] According to a further embodiment, step c) comprises depositing the certificate of the public key of the new key pair to be used in a transaction ledger of a distributed database, wherein the distributed database timestamps the deposited certificate upon its inclusion in the transaction ledger. A blockchain is an example of a distributed database with a transaction ledger.
[0044] Manipulating a distributed transaction-based database is significantly more difficult than manipulating data secured with a single key pair.
[0045] In addition, a blockchain in the area of proof-of-work relies on cryptographic primitives that are not vulnerable to quantum computers.
[0046] Accordingly, an advantageous technique for documenting the certificates and the times of the key pair changes is specified using a method that offers a higher level of security than the (single currently used) asymmetric key pair of the first device.
[0047] According to a further embodiment, step d) is carried out by a smart contract stored in the transaction ledger of the distributed database.
[0048] If a certificate is deposited that fails the check, the smart contract can enter a corresponding check note in the transaction ledger to alert the second entity and the public to a security issue. Alternatively, the smart contract can prevent the transfer of a certificate that fails the check into the transaction ledger, so that subsequent checks on the certificates deposited in the transaction ledger fail, thus revealing the security issue. The smart contract can also note the failure to deposit a new certificate after the expiration of time T since the last, i.e., current, certificate was deposited in the transaction ledger.
[0049] According to a further embodiment, a third device is provided which has a secure time source; step c) comprises: depositing, by the third device, the certificate of the public key of the new key pair to be used, linked to a time obtained from the secure time source at which the third device becomes aware of the key pair change, in an internal database of the third device;and: step d) is carried out by the third institution, and the third institution transmits a result of the check to the second institution using a cryptographic procedure that provides the higher security level, or step d) is carried out by the second institution, for which the third institution transmits to the second institution the certificates stored in the internal database and the times linked thereto using a cryptographic procedure that provides the higher security level.;
[0050] The transmission using a method that provides the higher security level can in particular comprise providing the information to be transmitted, such as the test result or the certificates and the times, with a signature that provides the higher security level, such as a PQ-secure signature.
[0051] The point in time at which the third device becomes aware of the key pair change can be regarded as the point in time of the key pair change. In this case, it is preferably ensured that, on the basis of two consecutive points in time at which a key change was acquired, it can be concluded without a doubt that the key changes themselves are less than the specified time T apart. This is the case, for example, if the third device becomes aware of each key change after a period of time R at the latest and if there is a maximum period of time TR between all consecutive points in time at which the change was acquired. The third device can become aware of the key pair change by observing data transmissions from the first device, a certificate directory or the like.Alternatively, the third device can be actively contacted by the device performing step b), for example the first device, at each key pair change.
[0052] By documenting the certificates and the dates in the internal database, the documented information is initially protected from attacks. Database contents are only transmitted to third parties, such as the second institution, using the method that provides the higher level of security.
[0053] This provides another advantageous technique for documenting certificates and times using a method that provides a higher level of security.
[0054] Note that the first device thus derives a capability to transmit data with the higher security level from the third device, even though the first device itself only communicates with the (less secure) asymmetric key pair. The advantages of this technique become apparent, for example, in scenarios where a plurality of first devices are provided, each communicating with a respective asymmetric key pair, but using a single common third device to document the times of key pair changes.
[0055] According to a further embodiment, step d) is carried out when one or more selected certificates are deposited in the database, and the certificate to be deposited is stored in the database linked to a test note about a result of the test carried out in step d).
[0056] The database can be the private database of the third party institution or the distributed database.
[0057] By storing a verification note for at least some of the certificates in the database, subsequent verification steps are advantageously accelerated, since the certificate chain then no longer needs to be traced back to the root certification authority, but only back to the first verification note.
[0058] According to a further embodiment, the predetermined time T is variable, and at least upon each change in the predetermined time T, the change in the predetermined time T is documented using the method providing the higher security level.
[0059] The predetermined time T may be changed as technological advances or as new information about technological advances becomes available. The predetermined time T to be specified may, for example, be specified by a government agency or other authority via an API or the like.
[0060] In this way, the first device can advantageously continue to operate even if more sophisticated attack techniques become known, as long as it is still possible to specify at least a predetermined time T within which successful attacks are not to be expected. Since the respectively valid predetermined time T is also documented, it is possible for the second device and any third party to compare the documented times of the key pair changes with the corresponding documented predetermined time T at any time during the testing process.
[0061] Thus, on the one hand, there can advantageously be a high degree of certainty that the key pair changes at past times take place within the times considered secure at the times in question in the past.
[0062] It is also conceivable that new information about possible attack methods might subsequently become known, resulting in the specified time having to be reduced retroactively. In this case, it is planned to replace the documented predetermined times T or to re-document the now correct corresponding predetermined times. Furthermore, it is planned to invalidate previously created test notes in the documentation in the event of a subsequent correction of predetermined times.
[0063] This means that the variable predetermined time T to be applied during the testing in step d) can, on the one hand, be dependent on the time of the respective key pair exchange and, on the other hand, be dependent on the time of carrying out the testing step d).
[0064] According to a further embodiment, step d) further comprises checking whether the securely documented key pair changes have not occurred earlier than within a predetermined interval before the expiry of the predetermined time T.
[0065] A key pair change that occurs earlier than within the predetermined interval before the expiration of the predetermined time T, i.e. not towards the end of the predetermined time T but significantly earlier, is an indication that the key pair change may not have been carried out as part of the proposed method, but rather by an attacker who obtained knowledge of the currently used private key and, based on this, created a new key pair and issued it as the new key pair of the first device. Accordingly, in this case, the verification may be set to fail.
[0066] This makes it possible to advantageously detect attacks even if an attack unexpectedly succeeds earlier than the expiration of the specified time T .
[0067] According to a second aspect, a method for carrying out a regular key pair change of an asymmetric key pair of a first device is proposed. The method comprises: b) regularly changing the currently used key pair of the first device, wherein with each key pair change the currently used key pair is replaced by a new, to-be-used asymmetric key pair, wherein each key pair change takes place within a predetermined time T after creation of the currently used key pair; and c) documenting a time of the respective key pair change using a method that provides a higher security level than the asymmetric key pair.
[0068] The embodiments, features and advantages described for the method of the first aspect also apply mutatis mutandis to the proposed method of the second aspect.
[0069] In particular, the advantages of the proposed solutions apply not only to cryptographically secured data transmissions between the first device and a second device. Rather, a first device whose fundamentally only limitedly secure asymmetric keys are regularly changed according to the method of the second aspect, with the times of the key pair changes being documented at the higher security level, can also continue to perform any other cryptographic processes with the higher security level, such as the encrypted storage of data whose confidentiality is only important during the predetermined time T.
[0070] Furthermore, a computer program product is proposed which comprises instructions which, when the program is executed by a computer, cause the computer to carry out one of the methods described above.
[0071] A computer program product, such as a computer program means, can be provided or delivered, for example, as a storage medium, such as a memory card, USB stick, CD-ROM, DVD, or in the form of a downloadable file from a server in a network. This can be done, for example, in a wireless communications network by transmitting a corresponding file with the computer program product or the computer program means.
[0072] More specifically, the computer program product may comprise a plurality of computer program product sections, each of which is executed on a respective unit, such as the first device, the second device, the third device and / or further devices, such that upon execution of all of the computer program product sections, the respective units jointly execute one of the methods described above.
[0073] According to a third aspect, a system for cryptographically secured data transmission is proposed. The system comprises: a) a first device and a second device configured to carry out cryptographically secured data transmission between the first device and the second device using an asymmetric key pair of the first device, which comprises a private key and a public key, wherein only the public key is also accessible to the second device;and b) a key pair exchange unit which is configured to regularly exchange the currently used key pair of the first device, wherein with each key pair exchange the currently used key pair is replaced by a new, asymmetric key pair to be used, wherein each key pair exchange takes place within a predetermined time T after the currently used key pair has been created; and c) a documentation unit which is configured to record a time of each key pair exchange using a method which provides a higher security level than the asymmetric key pair;
[0074] The embodiments and features described for the proposed methods apply accordingly to the proposed system. The respective unit, for example a computing unit or control unit, can be implemented in hardware and / or software. In a hardware implementation, the respective unit can be designed as a device or as part of a device, for example as a computer or as a microprocessor or as a control computer of a vehicle. In a software implementation, the respective unit can be designed as a computer program product, as a function, as a routine, as part of a program code or as an executable object.
[0075] In particular, the key pair exchange unit and / or the documentation unit may be respective units of the first device or at least one of them may be a unit of a separately provided auxiliary device.
[0076] Further possible implementations of the invention also include combinations of features or embodiments described above or below with respect to the exemplary embodiments, which are not explicitly mentioned. In this case, the person skilled in the art will also add individual aspects as improvements or additions to the respective basic form of the invention.
[0077] Further advantageous embodiments and aspects of the invention are the subject of the dependent claims and the exemplary embodiments of the invention described below. The invention is explained in more detail below using preferred embodiments with reference to the accompanying figures.
[0078] Fig. 1 shows a functional diagram of a system for cryptographically secured data transmission according to a first embodiment;
[0079] Fig. 2 illustrates steps of a method for cryptographically secured data transmission and a method for performing a regular key pair exchange according to the first embodiment;
[0080] Fig. 3 illustrates a first device according to a modification of the first embodiment;
[0081] Fig. 4 shows a functional diagram of a system 10 for cryptographically secured data transmission according to a second embodiment;
[0082] Fig. 5 illustrates steps of a method for cryptographically secured data transmission according to the second embodiment;
[0083] Fig. 6 shows a functional diagram of a system 10 for cryptographically secured data transmission according to a third embodiment;
[0084] Fig. 7 illustrates details of a documentation of the key pair changes according to the third embodiment; and
[0085] Fig. 8 illustrates a blockchain for storing the documentation according to a modification of the third embodiment.
[0086] In the figures, identical or functionally equivalent elements are provided with the same reference symbols unless otherwise stated.
[0087] Fig. 1 shows a functional diagram of a system 10 for cryptographically secured data transmission according to a first exemplary embodiment; and Fig. 2 illustrates steps of a method for cryptographically secured data transmission and a method for carrying out a regular key pair exchange according to the first exemplary embodiment. Reference is made to Fig. 1 and Fig. 2. The system 10 comprises a first device 1 and an auxiliary device 3. Furthermore, a second device 2 is provided as a communication partner of the first device 1, however, the second device 2 does not necessarily form part of the system 10.
[0088] The first device 1 has a communication unit 4 configured to exchange data 9 with a communication unit 8 of the second device 2. Data transmission occurs in a cryptographically secured manner as described below.
[0089] The first device 1 has a currently used asymmetric key pair 100 comprising a public key 110 and a private key 111. The key pair 100 is a limitedly secure, in particular non-PQ-secure, asymmetric key pair. The private key 111 is known only to the first device or at least not to the second device 2. However, the second device 2 has the public key 110 (more precisely: a digital copy of the public key 110) of the key pair 100.
[0090] In step S 1 of the proposed method for cryptographically secured data transmission, data 9 are transmitted between the communication unit 4 of the first device 1 and the communication unit 8 of the second device 2.
[0091] In particular, it is conceivable that the communication unit 8 of the second device 2 uses the public key 110 to encrypt data 9 that is to be transmitted to the first device 1. The communication unit 4 of the first device 1 receives the transmitted encrypted data 9 and uses the private key 111 of the key pair 100 to decrypt the received data. It is also conceivable that the communication unit 4 of the first device 1 uses the private key 111 of the key pair 100 to sign data 9 that is to be transmitted to the second device 2. The communication unit 8 of the second device 2 receives the transmitted signed data 9 and uses the public key 110 to check the signature of the received data.
[0092] Such cryptographically secured data transmission can, for example, occur as part of a challenge-response authentication of the first device 1 to the second device 2. However, there is no restriction to this use case, and the first device 1 can also use asymmetric cryptography for other purposes, such as the encryption of in-transit data or data at rest.
[0093] Since the key pair 100 is not a PQ-secure key pair, there is a risk that a quantum computer using the Shor algorithm or the like can break the key pair in a short time 0 of, for example, one month, that is, it can gain knowledge of the private key 111 from observations of the cryptographically secured communication 9 and can then, for example, impersonate the first device 1 to the second device 2 and / or decrypt data transmissions intended for the first device 1.
[0094] Against this background, the proposed method comprises carrying out steps S2 to S4 of a likewise proposed method for regular key pair exchange, which in the present exemplary embodiment is carried out by the auxiliary device 3 and will now be described.
[0095] In particular, the auxiliary device 3 has a key pair exchange unit 6 which, after the expiration of a predetermined time T which is sufficiently shorter than the time 0 after which there is a risk of the key pair 100 being broken, causes a new key pair 200 to be used, which comprises a new public key 210 to be used and a new key 211 to be used, to be generated in step S2. The key pair exchange unit 6 can, for example, generate the new key pair 200 to be used itself and install it on the first device 1. Alternatively, the key pair exchange unit 6 can transmit a command to the first device 1 which causes the first device 1, or a trusted platform module thereof, or a smart card inserted therein, to create the new key pair 200 to be used.Then, continuing in step S2, the key pair exchange unit 6 performs a key pair exchange, during which the currently used key pair 100 is replaced by the new key pair 200 to be used. That is, the currently used key pair 100 becomes the previously used key pair 300, and the new key pair 200 to be used becomes the currently used key pair 100.
[0096] In addition, the key pair exchange unit 6 can preferably also store the new public key 210 to be used, which has now become the currently used public key 110, on the second device 2 so that it can be used by the latter for future data transmissions. To this end, the key pair exchange unit 6 can transmit the public key directly to the second device 2 or, for example, publish a certificate of the public key in a public or partially public certificate directory from which the second device 2 can obtain it. This step is optional, however, since the second device 2 can obtain the public key 2 according to preferred embodiments, which are described in detail later, or alternatively, from the documentation 5 described below.The auxiliary device 3 further comprises a documentation unit 7 which documents a time of the key change carried out in step S2 with a security level that is higher than the security level that the asymmetric key pair 100 can offer. This means that in step S4 the documentation unit 7 creates a particularly PQ-secure documentation 5 with the time t of the key pair change carried out in step S2 or supplements this documentation 5, if it already includes times of past key pair changes, with the time t of the last key pair change carried out in step S2.
[0097] The fact that the documentation 5 is PQ-secure means that even an attacker who has access to a quantum computer must make a considerable effort to successfully manipulate the documentation 5, for example an effort of several years, such that the documentation 5 can be considered unmanipulable under all practical aspects, or at least an effort that is higher than the effort to break the private key 111 directly.
[0098] The documentation 5 may be data stored on a storage device (not shown) to which access is granted only in a cryptographically PQ-secure manner. Alternatively, the documentation 5 may also be data in transit that is transmitted from the first device 1 and / or the auxiliary device 3 in a cryptographically secure manner, for example, to the second device 2, using a PQ-secure cryptographic method.
[0099] Finally, in step S4, the system waits until the predetermined time T, minus a slight tolerance time, which will be required at most for the renewed execution of steps S2 and S3, has elapsed after the time documented in step S3. Then, the system returns to step S2 and performs another key pair exchange, with secure documentation of the time of the key pair exchange.
[0100] According to the method of the first embodiment, it is therefore advantageously possible to continue to operate the first device with non-PQ-secure asymmetric keys even in the age of quantum computing, since it is ensured that the non-PQ-secure key pair 100 is replaced before a quantum computer can break it, and it is documented in a PQ-secure manner that the key pair changes actually took place within the specified time T.
[0101] It should be noted that a technical advantage may also exist, for example, in that the auxiliary device 3 that performs the key pair changes and the PQ-secure documentation needs to be provided only once, even if a plurality of first devices 1 are installed in the field, since a single auxiliary device 3 can manage the key pair changes and the PQ-secure documentation for all of the plurality of first devices 1. However, there is no restriction to such a configuration as described below.
[0102] Fig. 3 illustrates the first device 1 according to a modification of the first embodiment. The first device 1 according to the modification comprises the key pair exchange unit 6 and the documentation unit 7, which were described for the first embodiment as part of the auxiliary device 3 (Fig. 1). According to the modification, no auxiliary device is provided. In other words, this can also be understood in such a way that the auxiliary device 3 (Fig.
[0103] 1 ) is integrated into the first device 1 according to the modification .
[0104] A technical advantage also arises according to the modification in that PQ-secure documentation of the time of each key pair change needs to be performed only once per specified time T, and PQ-secure cryptography does not need to be used for each individual data transmission by the communication unit 4. In other words, the first device 1, even if its computing power is not sufficient to cryptographically secure all data transmissions using a PQ-secure method, can still be able to perform or initiate PQ-secure documentation only once per specified time.
[0105] Fig. 4 illustrates a functional diagram of a system 10 for cryptographically secured data transmission according to a second embodiment.
[0106] The second embodiment is based on the first embodiment. Identical or functionally equivalent elements bear the same reference numerals and will not be described again.
[0107] The system 10 according to the second embodiment comprises a plurality of first devices 1, 11, the auxiliary device 3 (which is optional just as in the first embodiment), the second device 2 and a third device 12.
[0108] The third device 12 has a secure time source 13. A secure time source 13 means that the time source cannot be manipulated by external attackers. For example, the secure time source 13 can be a time source of the third device 12 that is only accessible internally. Alternatively, the secure time source 13 can obtain its time from an external time source using a cryptographically PQ-secure method and / or provide the obtained time to the third device 12 in a PQ-secure manner.
[0109] The third device 12 is configured to store the documentation 5 of the times of the respective key pair changes in an internal database. The database is internal in the sense that, for example, no or only a PQ-secure interface is provided for write access by any external devices to the internal database of the third device 12. Thus, a manipulative attack on the documentation 5 by a quantum computer is also not possible.
[0110] In one variant, the third device 12 is contacted by the key pair exchange unit 6 and / or by the communication unit 5 when a key pair exchange has been carried out, obtains a current time from the secure time source 13 in response to such contact, and stores the time thus obtained as the time of the key pair exchange in the documentation 5.
[0111] According to another variant, the third device 12 monitors data transmissions from the first device 1, detects when the first device 1 publishes or uses a new public key 210, 110, and registers the time at which the use of a new public key 210, 110 is detected, which is obtained from the secure time source 13, as the time of the key pair change in the documentation 5. According to this other variant, the first device 1 and / or the auxiliary device 3 do not need to have a documentation unit 7; rather, in this variant, the external device 12 fulfills the function of the documentation unit 7.
[0112] According to the second embodiment, the second device 2 has a testing unit 15 which is configured to test the documentation 5, as described below.
[0113] Fig. 5 illustrates steps of a method for cryptographically secured data transmission according to the second embodiment. Reference is made to Fig. 4 and Fig. 5. The steps S1 to S4 executed by the first device 4 and / or the auxiliary device 3 in the second embodiment correspond to the steps S1 to S4 (Fig. 3) of the first embodiment and will not be described again.
[0114] The second device 2 carries out the steps S5 to S10 shown in Fig. 5, which in particular comprise the test steps S5 to S8 and S10.
[0115] The following description assumes that the public key 110 currently stored in the second device has already successfully passed at least the test steps S7 and S8 described below at an earlier time when the public key 110 was deposited.
[0116] In test step S5, the test unit 15 of the second device 2 checks whether the specified time T has already elapsed since the time the public key 110 was deposited in the second device. If yes (Y at S5), the test fails, and the process branches to step S10 described below. Otherwise (N at S5), the process continues with step S6.
[0117] In step S6, the checking unit 15 of the second device 2 checks whether a new public key 110 has been deposited in the second device 2 or received from the first device 1 or obtained by the second device 2 from a directory of public keys or the like, which has not yet been checked.
[0118] If no (N at S6), ie if no new public key 110 has yet been deposited and the last deposited public key 110, which was checked during its deposit in accordance with the following steps S7 and S8, was deposited or exchanged less than the predetermined time T ago, no further check is required, the check concludes successfully, and the process branches directly to step S9.
[0119] In step S 9 , the communication unit 8 performs the cryptographically secured data transmission between the first device 1 and the second device 2 using the public key 110. Step S 9 thus corresponds to step S 1 performed by the communication unit 4 of the first device 1.
[0120] Otherwise (Y at S6), that is, if a new public key 110 has been deposited, further verification is required and the process continues with step S7.
[0121] In step S7, the testing unit 15 obtains information 14 required for the test from the third device 5 using a PQ-secure, cryptographically secured data transmission process. For example, the information 14 can be provided with a PQ-secure signature of the third device 12. The required information 14 can be the last documented time of a key pair change of the first device 1 or the entire documentation 5 relating to the first device 1.
[0122] In step S8, the checking unit 15 checks, based on the information 14 obtained in step S7, whether the newly deposited public key 110 was exchanged less than the predetermined time T since the last key pair exchange, and preferably also checks whether all previously used public keys 310 were each exchanged after the predetermined time T at the latest.
[0123] If yes (Y at S 8 ), the test is successful and the process continues with step S 9 . If no (N at S 8 ), the process branches to step S 10 . In step S 10 , to which the process branches if one of the test steps S 5 - S 8 has failed, either the transmission of the data 9 between the first device 1 and the second device 2 is refused and the method ends (not shown) or the authorization of the second device 1 to access services and data offered by the second device is restricted and only after the restriction has taken place in this way does the process branch to step S 9 and the data transmission take place.
[0124] It should be noted that the documentation 5 can be described as PQ-safe insofar as it is only stored in an internal database of the third device 12, where it is not exposed to attacks, and the information 14 is transmitted to the second device 2 exclusively in a PQ-safe manner, as described.
[0125] It should also be noted that the sequence of steps S5 to S10, as shown in Fig. 5, is merely an example and the steps can also be carried out in a different order, as long as the result is that communication is refused or the authorizations of the first device 1 are restricted if the currently used key pair 100 or a key pair 300 used in the past has been used for longer than the predetermined time T.
[0126] According to a modification of the second embodiment, the third device 12 can carry out the examination of the documentation 5 according to step S 8 and transmit as the information 14 only a result of this examination in a PQ-safe manner to the examination unit 15 of the second device 2.
[0127] According to the second embodiment and its modifications, the second device 2 can advantageously protect itself reliably against attacks by quantum computers by denying or restricting access by the first device 1 if the first device 1 has not changed its respective key pair 100 currently or in the past within the specified time T. Checking for sufficiently frequent key pair changes in the past is important because an attacker who was able to assume the identity of the first device 1 even just once in the past could have carried out numerous malicious actions that still have an impact in the present.
[0128] Fig. 6 illustrates a functional diagram of a system 10 for cryptographically secured data transmission according to a third embodiment.
[0129] The third embodiment is based on the second embodiment. Identical or functionally equivalent elements bear the same reference numerals and will not be described again.
[0130] The system 10 of the third embodiment additionally has a root certification authority 16. The root certification authority 16 has a key pair 400 comprising a public key 410 and a private key 411. The key pair 400 of the root certification authority 16 is a PQ-secure key pair 400.
[0131] A certificate 420 is stored in the second device 2, which certificate includes the public key 410 of the root certification authority 16, information 421 about the identity of the root certification authority 16, and a signature 422 (self-signature) generated with a private key of a key pair (not shown) of the second device 2. This places the second device 2 in a relationship of trust with the root certification authority 16.
[0132] Furthermore, a certificate 120 of the key pair 100 currently used by the first device 1 is stored in the second device 2. The certificate 120 can be transferred from the first device 1 to the second device 2 at the time of creation or replacement of the currently used key pair 110. Alternatively, the first device 1 can publish the certificate 120 in a certificate directory service (not shown), and the second device 2 can obtain the certificate 120 from the certificate directory service. As a third alternative, it is also conceivable for the first device 1 to obtain the certificate 120 directly from the documentation 5 described in detail below, which, in addition to the key pair replacement times, also includes certificates 520, 620, 720 (Fig. 7).The certificate 120 includes the currently used public key 110 of the first device 1, information 121 on the identity of the first device, and a signature 122.
[0133] In the event that the key pair 100 is the first key pair used by the first device 1 (the first key pair used since commissioning, or the first key pair used since the last certification by the root certification authority 16), the signature 122 is a signature issued with the private key 411 of the root certification authority 16. Such a signed certificate 120 can be obtained from the root certification authority after the key pair 100 has been created in a known, but organizationally complex and possibly financially costly, process.
[0134] However, if the key pair 100 has been changed since the signature of the root certification authority 16 was obtained, the signature 122 is not a signature created with the private key 411 of the root certification authority 16, but rather a signature created with the private key 311 of the previously used key pair 300. In other words, each time the currently used key pair 100 is changed, a respective certificate 120 is created and signed with the previously used private key 311. The second device 2 obtains the respective certificate 120 from the first device 1, from a certificate directory, or from the documentation 5, and the checking step S8 (Fig. 5) according to the present embodiment includes, in addition to checking the times of the key pair changes, also checking the signature 122 of the respective certificate 120.This gives the second institution 2 a high degree of certainty about the identity of the first institution 1.
[0135] According to the third embodiment, the certificates 120 created in this way are documented in a PQ-secure manner linked to the times of the respective key pair changes.
[0136] Fig. 7 illustrates details of the documentation 5 for the key pair exchange in the third embodiment. Reference is made to Fig. 5 to Fig. 7.
[0137] For ease of reference, Fig. 7 shows the certificate 400 of the root certification authority 16 with the private key 410 and the public key 411 of the root certification authority 16, as well as several key pairs 500, 600, 700 of the first device 1 with respective public keys 510, 610, 710 and respective private keys 511, 611, 711, which were successively rotated on the first device 1. Here, the key pair 500 is considered the first key pair 500 of the first device 1, since the associated certificate 520 is signed by the root certification authority 16, as explained below.
[0138] Fig. 7 also shows documentation 5, which was created by documenting certificates 500, 600, 700 and times tl-t3 of the key pair changes.
[0139] A first entry in the documentation 5 comprises the certificate 520 of the public key 510 of the first key pair 500. The certificate 520 comprises the public key 510 of the first key pair 500, information 521 about the identity of the first entity 1, and a signature 522. The certificate 520 is a certificate that the key pair exchange entity 6 and / or the first entity 1 obtains from the root certification authority 16 according to a known certification procedure, for example, by transmitting a certificate signing request (CSR) to the root certification authority 16 using the key pair 500. As part of the certification procedure, the root certification authority 16 verifies the identity of the first entity 1 and creates the signature 522 only if the identity of the first entity 1 could be successfully verified.The signature 522 is thus issued with the private key 411 of the root certification authority 16, and it is preferably a PQ-secure signature 522. Examples of PQ-secure signing methods that can be used include LMS, XMSS, SPINCS+, Dilithium, or Falcon. Since the signature 522 is not verified by the first device 1, but only by other devices, such as the second device 2 or the third device 12, it is irrelevant whether the first device supports the PQ-secure method or not.
[0140] The certificate 520 is stored in the documentation 5 linked to the time t1. The time t1 is the time at which the third device 12 first becomes aware of the use of the certificate 520.
[0141] Another entry in the documentation 5 includes the certificate 620 of the public key 610 of the second key pair 600, which was substituted for the first key pair 500. The certificate 620 includes the public key 610 of the second key pair 600, information 621 about the identity of the first unit 1, and a signature 622. The certificate 620 is a certificate created during the key pair swap in step S2 and is provided with a signature 622 created using the private key 511 of the previous, first key pair 500. The certificate 620 can be created by the key pair swap unit 6 (provided it creates the key pairs and therefore also has access to the private keys 511, 611) or by the first device 1 at the instigation of the key pair swap unit 6. The certificate 620 is stored linked to the time t2.Time t2 is the time at which the third entity 12 first becomes aware of the use of certificate 620.
[0142] Another entry in documentation 5 includes the certificate 720 of the public key 710 of the third key pair 700, which was substituted as the successor to the second key pair 500. The certificate 620 includes the public key 710 of the third key pair 700, information 721 about the identity of the first unit 1, and a signature 722 created using the private key 611 of the previous, second key pair 600. The certificate 720 is stored linked to the time t3 at which the third device 12 first becomes aware of the use of the certificate 720.
[0143] In this way, a certificate chain is created, as shown in Fig. 7. Assume that certificate 720 is certificate 120 of the currently used key pair 100 shown in Fig. 6, and key pair 700 is the currently used key pair 100. When the verification unit 15 of the second device 2 verifies the certificate 120, 720 of the currently used key pair 100, 700 in step S8, it checks whether the signature 122 can be traced back to the certificate 420 of the root certification authority 16. That is, the verification unit 15 checks whether the signature 722, 122 can be verified with the public key 610 from the previously used certificate 620. If so, the verification unit 15 checks whether the signature 622 of the certificate 620 can be verified with the public key 510 from the initially used certificate 620.If so, the verification unit 15 checks whether the PQ-secure signature 522 can be validated with the public key 410 of the certificate 420 of the root certification authority 16. Since the second device 2 is in a trust relationship with the root certification authority 16 through the self-signature 522, a high degree of certainty regarding the identity of the first device 1 prevails upon successful completion of these checks.
[0144] However, it should be ensured that no attacker with enhanced capabilities, such as a quantum computer, could have broken even one of the private keys 511, 611, or 711. If an attacker had succeeded in breaking even one of these keys 511, 611, or 711, for example, key 511, the attacker could subsequently have created fraudulent signatures 622 and 722 themselves.
[0145] Therefore, in step S8, the verification unit 15 of the second device 2 also checks whether the documented times t1, t2, t3 and a current time are separated from each other by no more than the predetermined time T. In this case, breaking the certificate chain is considered impossible.
[0146] If, as described, both the traceability of the certificate 120 to the certificate 520 of the root certification authority 16 and the sufficient frequency of the key pair changes have been checked, the first device 2 has a high degree of certainty about the identity of the first device 1, since it is in a trust relationship with the root certification authority 16 via the self-signature 422, and the method illustrated in Fig. 5 can continue with step S 9 and cryptographically secured data transmissions can still be carried out in a comparatively PQ-secure manner using the non-PQ-secure asymmetric key pair 700, 100.
[0147] However, if even just one of these checks fails, the method branches to step S10 and restricts the authorizations of the first device or refuses data transmission entirely, since the asymmetric key pair 700, 100 no longer offers sufficient security guarantees in this case. According to the third exemplary embodiment, a signature from the root certification authority 16 is thus advantageously obtained only at the beginning, whereas there is no longer any compelling need for repeated, complex certifications in the further course of the process, despite frequent key pair changes. Nevertheless, security against attacks with quantum computers and the like is advantageously maintained, since not only the traceability of the certificate chain but also the sufficient frequency of key pair changes is checked.
[0148] It should be noted that the certificate chain shown in Fig. 7 can only be successfully verified according to a procedure common for X.509 certificates if the keys 611 and 711 used to sign the subsequent certificates 620 and 720 have the authorization to act as intermediate certification authorities with the right to sub-authorize. The root certification authority would have to grant such authorization to the first key pair 500 with its signature 522. However, for both market and security reasons, root certification authorities 400 are often unwilling to certify such extensive authorizations.Therefore, according to an advantageous development of the third embodiment, it is proposed that the key pair exchange unit 6, in a certification signature request (CSR) with which it requests the issuance of the certificate 520 from the root certification authority 16, sets the certificate extension "Basic Constraints" to "false," thus explicitly not requesting the right to act as an intermediate certification authority. Instead, a predetermined user-defined "Extended Key Usage" according to RFC 5280, X.509 v3 is specified in the CSR, which indicates that the certified key pair 500 has the right to sign further certificates 620, 720 exclusively within the framework of the proposed procedure for regular key pair exchange.The units involved in the proposed method, in particular the units that perform the verification step S7, such as the verification unit 15 and / or the third device 12, are configured to accept signatures 622, 722 on the certificates 620, 720, provided that the certificates 520, 620 of the public keys 510, 610 of the signing unit that issued the signatures 622, 722 do not specify a right to act as an intermediate certification authority, but the predetermined user-defined "Extended Key Usage" is indicated.
[0149] Fig. 8 illustrates a blockchain for storing documentation 5 according to a modification of the third embodiment. Reference is made to Fig. 6 and Fig. 8.
[0150] According to the present modification, no third device 12 (Fig. 4) is provided. According to this modification, the role of the third device 12 is assumed by a blockchain 30. The blockchain 30 is formed by several mutually independent and not necessarily trusting node devices 31-33. Each of the node devices 31-33 stores its own copy of a transaction ledger 90. The transaction ledger 90 consists of several cryptographically linked blocks 91-93, linked by hash values or the like. Each block 91-93 comprises a number of transactions 911-914, 921-924, 931-934 and a proof of work or stake 918, 928, 938. The proof of work or proof of stake 918, 928, 938 is created by a mining facility that originally created the respective block 91-93 from several transactions to be transferred to the transaction ledger.The mining device can be one of the node devices 31-33 or another device not shown. A respective block 91-93 further comprises a cryptographic hash value 919, 929, 939, which is formed from the content of the respective preceding block 91-93 and thereby creates a link to the respective preceding block 91-93. This means that the hash value 929 is formed from the hash value 919, the proof of work or stake 918, and the transaction 911-914. The hash value 929 is formed from the hash value 919, the proof of work or stake 918, and the transaction 911-914. When a block 91-93 with this format is created by a mining facility and proposed to the node facilities 31-33 for adoption into the transaction ledger 90, a predefined consensus protocol determines whether the block 91-93 can be adopted.In particular, the consensus protocol requires a verification of the proof of work or stake 918, 928, 938 and the hash value 919, 929, 939, as well as a verification of the formal correctness of the transactions 911-914, 921-924, 931-934. Each of the node devices 31-33 executes the consensus protocol independently of the other node devices 31-33 and decides whether to incorporate the block 91-93 into the respective copy of the transaction ledger 90. Admittedly, an individual node device 31 could decide to violate the consensus protocol and incorporate a block 91-93 with a forged transaction 911-914, 921-924, 931-934, or the like, into the transaction ledger 90. However, this would result in further blocks 91-93 generated by the individual node device 31 based on the forged copy of the transaction book 90 being rejected by the other node devices 32-33.In such a blockchain 30, a transparent and tamper-proof (forgery-proof) transaction ledger can be maintained by majority consensus without the need for trust between the individual nodes 31-33.
[0151] According to the present modification, it is proposed to store the documentation 5 (Fig. 7) in the form of several transactions in the transaction book 90 of the blockchain 30.
[0152] Reference is made to Figs. 6 to 8. For example, a smart contract can be stored in transaction 911, which manages the documentation 5 stored or to be stored in transaction ledger 90. When the first key pair 500 is created, key pair exchange unit 6 calls smart contract 911 with certificate 520 as a parameter. The smart contract then stores certificate 520 linked to timestamp t1 as payload in transaction 922. With each subsequent key pair exchange, key pair exchange unit 6 calls smart contract 911 with the respective certificate 620, 720 as a parameter, so that certificates 620, 720 linked to timestamps t2, t3 are also stored in transaction ledger 90 as respective transactions, e.g. certificate 620 in transaction 931.The documentation of the times tl-t3 of the key pair changes and the certificates 520, 620, 720 is thus stored distributed across the transaction book 90 in the form of individual transactions 922, 931, ...
[0153] It should be noted at this point that the consensus protocol of blockchain 30 and / or the execution of the smart contract may include checking whether the timestamps tl-t3 are plausible, i.e., whether they lie within an interval within which the relevant block 91-93 was formed and included in the transaction ledger 90. Blockchain 30 thus represents a decentralized and secure time source.
[0154] It should also be noted that manipulating blockchain 30 is significantly more complex than breaking a single asymmetric key pair. Using blockchain 30 to document the key pair exchange times and certificates 520, 620, 720 therefore offers the advantage that the key pair exchange times and certificates 520, 620, 720 are stored with increased security.
[0155] In typical blockchains, for example, when creating the proof of work (918, 928, 938), cryptographic primitives are used which, unlike asymmetric cryptography, are considered PQ-secure at the time of registration.
[0156] According to a preferred development, it is envisaged that the smart contract 911 not only handles the deposit of certificates 520, 620, 720 and the timestamps tl-t3 in transactions 911-934 of the transaction ledger 90, but also checks the certificates 520, 620, 720 according to the previously described step S6, i.e., checks the traceability to the certificate 400 of the root certification authority 16 and the sufficient frequency of the key pair changes that have taken place up to that point. According to this preferred development, only certificates 520, 620, 720 that are considered PQ-safe at the time of use are stored in the transaction ledger 90. It is therefore not necessary for the second device 2 to have its own verification unit 15, although this can still be provided optionally.It is also conceivable that certificates 520, 620, 720 are entered into transaction ledger 90 even if the verification by smart contract 911 fails, but with an additional note about the failed verification, so that for certificates 520, 620, 720 that carry a corresponding note, authorizations can be limited during data transmission.
[0157] According to a further preferred development, it is envisaged that after checking at least some of the certificates 520, 620, 720, the unit that performed the check step S6 stores a check note about the result of the check in the transaction book 90. For example, information could be stored in the payload of transaction 933 that the certificate 620 stored in transaction 931 was successfully checked. In this case, during subsequent checks of subsequent certificates 720, the entire documentation 5 no longer needs to be extracted from the transaction book 90; instead, it is sufficient to traverse the transaction book 90 backwards from the end (right side in Fig. 8) until the first check note is encountered. Such check notes can therefore increase the performance when checking the documentation 5.A corresponding verification note can be stored in the transaction ledger 90 after each initial verification of one of the certificates 520, 620, 720, or only for some verifications, for example for every second, fifth, tenth verification, or the like. According to a further advantageous development of embodiments of the present embodiment, in test step S7, not only can it be checked whether the intervals between the documented times t1, t2, t3 of the respective key pair changes and the current time are not greater than the predetermined time T, but it can also check whether the intervals between the documented times t1, t2, t3 of the key pair changes are at least as large as the predetermined time T less a predetermined interval.In other words, a check is carried out to determine whether the respective key pair changes at times t2 and t3 did not occur earlier than within a predetermined interval before the expiry of the predetermined time T. The predetermined interval is small in comparison to the predetermined time T and is selected such that it is sufficient to carry out and complete the key pair change process. In other words, the predetermined interval is selected such that it corresponds to the time before the expiry of the predetermined time T at which the key pair change unit 6 initiated or should have initiated the key pair change. If the intervals between the documented times t1, t2, t3 are at least as long as the predetermined time T less the predetermined interval, then normal behavior is present.If, however, one of the key pair changes occurred earlier, i.e., if the intervals between at least two consecutive documented times t1, t2, t3 are less than the predetermined time T minus the predetermined interval, there is a suspicion that the key change in question was not initiated by the key pair change unit 6, but rather, for example, by an attacker who guessed a private key 111 and forged the certificate chain. Therefore, in this case, data transmission can be refused or branched to step S10 (Fig. 5), authorizations of the first device 1 can be restricted, and / or an operator can be alerted.
[0158] Although the application has been described using exemplary embodiments, it is modifiable in many ways. The described variants, modifications, developments, and other features can be combined in any way between the various exemplary embodiments, as long as no contradictions arise.
[0159] The modification of the first embodiment of Fig. 3, in which the first device 1 comprises the key pair exchange unit 6 and the documentation unit 7, is also applicable to the second and / or the third embodiment.
[0160] The modification described with reference to Fig. 8 can be combined not only with the third embodiment, but also with the second or first embodiment.
[0161] In connection with the blockchain 30 shown in Fig. 8, in which the documentation 5 is distributed across a transaction ledger 90, the possibility of using audit trails was described to accelerate the searching of the transaction ledger 90. However, audit trails can also be used if the documentation 5 is stored in an internal database of the third device 12 in order to increase the speed of the audit by the third device 12 or to reduce the amount of data to be transmitted to the second device 12 as part of the information 14.
[0162] If the blockchain 30 is used to store the documentation 5, a smart contract 911 does not necessarily need to take over the documentation of the certificates and key pair exchange times in the transaction ledger 90. The key pair exchange unit 6 can also directly fill transactions 922, 931 with payload data and transmit them to the node devices 31-33 of the blockchain 91-93 for inclusion in the transaction ledger 90. In the described embodiments, the predetermined time T, within which key pair exchanges should take place so that they are considered unassailable, was assumed to be constant. However, it is conceivable to adapt the time T as new findings become known about emerging crypto threats, such as the emergence of more powerful quantum computers or quantum algorithms.It is conceivable, for example, that the third device 12 has an API interface via which a government agency or another central body responsible for IT security can configure the predetermined time T. A smart contract 912 can be stored in the blockchain 30, from which the currently valid predetermined time T can be queried and which is under the control of a wallet (not shown in the figures) of a government agency or other central body that monitors the global security situation and can adjust the predetermined time T stored there by interacting its wallet with the smart contract 912. It is conceivable in this case that if the predetermined time T is changed, all future key pair changes only have to take place within the changed predetermined time T.However, it is also conceivable that the specified time T may be changed retroactively due to delayed findings. It goes without saying that in this case, all previously created audit notes should be deleted, and the currently used certificate 120 should then be re-examined.
[0163] The embodiments were primarily described with reference to a non-PQ-secure asymmetric key pair 100 and a PQ-secure documentation method. However, the invention is also applicable to cases in which the documentation method also uses asymmetric key pairs, but these provide a higher security level than the asymmetric key pair 100 of the first device, for example, because they have a longer key length or are created according to a more secure, but not necessarily PQ-secure, method.
Claims
Patent claims 1. A computer-implemented method for cryptographically secured data transmission, comprising: a) carrying out (S1) a cryptographically secured data transmission between a first device (1) and a second device (2) using an asymmetric key pair (100) of the first device (1), which comprises a private key (111) and a public key (110), wherein only the public key (110) is also accessible to the second device (2); b) regularly changing (S2) the currently used key pair (100) of the first device (1), wherein with each key pair change the currently used key pair (100) is replaced by a new, asymmetric key pair (200) to be used, wherein a respective key pair change takes place within a predetermined time T after the currently used key pair (100) has been created;and c) documenting (S3) a time (tl, t2, t3) of the respective key pair exchange using a method that provides a higher security level than the asymmetric key pair.; 2. Device according to claim 1, characterized in that a respective asymmetric key pair (100, 200, 300, 500, 600, 700) is a non-PQ-secure asymmetric key pair and the documentation (S3) in step c) is carried out using a PQ-secure method.
3. Method according to claim 1 or 2, characterized in that the cryptographically secured data transmission takes place within the framework of an authentication of the first device (1) at the second device (2).
4. Method according to one of claims 1 to 3, further characterized by d) checking (S7), on the basis of the documented times of the key pair changes, whether the key pair changes have each taken place within the specified time T and / or whether the specified time T has not yet elapsed since the last documented time of a key pair change.
5. Method according to claim 4, characterized in that the second device (2) carries out step d) or obtains a result of the execution of step d) and, in the event of a failed check, permits the cryptographically secured data transmission with the first device (1) only with restricted authorization or refuses it entirely.
6. The method according to claim 4 or 5, characterized in that a certificate (520) for the public key (510) of the first key pair (500) used is issued by a root certification authority (16) by signing the public key (510), step b) further comprises issuing a certificate for the public key (610, 710) of the new key pair (600, 700) to be used by signing the public key (610, 710) of the new key pair (600, 700) to be used with the private key (511, 611) of the currently used key pair (500, 600), Step c) further comprises documenting the time (t2, t3) of the key pair exchange linked to the certificate (620, 720) issued in step b), Step d) further comprises checking whether the certificate of the currently used key pair (100) of the first device (1) can be traced back to a certificate (400) of the root certification authority (16).
7. Method according to claim 6, characterized in that the root certification authority (16) signs the public key (510) of the first key pair (500) used using a cryptographic method with increased security.
8. Method according to one of claims 6 or 7, characterized in that Step c) comprises: depositing the certificate (620, 720) of the public key of the new key pair (200, 600, 700) to be used in a transaction book (90) of a distributed database (30), wherein the distributed database (30) provides the deposited certificate (620, 720) with a time stamp (t2, t3) when it is transferred to the transaction book (90).
9. Method according to claim 8, characterized in that Step d) is carried out by a smart contract stored in the transaction book (90) of the distributed database (30).
10. Method according to one of claims 6 or 7, characterized in that a third device (12) is provided which has a secure time source (13), Step c) comprises: depositing, by the third device (12), the certificate of the public key (210) of the new key pair (200) to be used, linked to a time obtained from the secure time source at which the third device becomes aware of the key pair change, in an internal database of the third device (12), and Step d) is carried out by the third device (12) and the third device (12) transmits a result of the check to the second device (2) using a cryptographic method that provides the higher security level, or Step d) is carried out by the second device (2), for which purpose the third device (12) transmits to the second device (2) the certificates (520, 620, 720) stored in the internal database as well as the times (tl, t2, t3) associated therewith using a cryptographic method which provides the higher security level.
11. Method according to one of claims 1 to 10, characterized in that when one or more selected certificates (120, 520, 620, 720) are deposited in the database (30), step d) is carried out and the certificate to be deposited is stored in the database (30) linked to a test note about a result of the test carried out in step d).
12. Method according to one of claims 1 to 11, characterized in that the predetermined time T is variable and at least for each change in the predetermined time T, the change in the predetermined time T is documented using the method which provides the higher security level.
13. Method according to one of claims 4 to 12, characterized in that step d) further comprises checking whether the securely documented key pair changes have not occurred earlier than within a predetermined interval before the expiry of the predetermined time T.
14. A method for carrying out a regular key pair change of an asymmetric key pair (100) of a first device (1), the method comprising: b) regularly changing (S2) the currently used key pair (110) of the first device (1), wherein at each key pair change the currently used key pair (100) is replaced by a new asymmetric key pair (200) to be used, wherein a respective The key pair change takes place within a predetermined time T after the currently used key pair (100) has been created; and c) documenting (S3) a time (tl, t2, t3) of the respective key pair change using a method that provides a higher security level than the asymmetric key pair.
15. A computer program product comprising instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1 to 14.
16. System (10) for cryptographically secured data transmission, comprising: a) a first device (1) and a second device (2) which are configured to carry out a cryptographically secured data transmission between the first device (1) and the second device (2) using an asymmetric key pair (100) of the first device (1) which comprises a private key (111) and a public key (110), wherein only the public key (110) is also accessible to the second device (2);and b) a key pair exchange unit (6) configured to regularly exchange the currently used key pair (100) of the first device (1), wherein with each key pair exchange, the currently used key pair (100) is replaced by a new, asymmetric key pair (200) to be used, wherein a respective key pair exchange takes place within a predetermined time T after the currently used key pair (100) has been created; and c) a documentation unit (7) configured to document a time (t1, t2, t3) of the respective key pair exchange using a method that provides a higher security level than the asymmetric key pair.
Citation Information
Patent Citations
Managing authenticators in a computer system
US10530814B2
Secure DRM-agnostic key rotation
US11030279B2
Apparatus and method for renewing a key, computer readable medium thereof and wireless network comprising the same
US20100105357A1
Secure orbit communication
US20220263656A1
