Method for securely negotiating symmetric keys between two participants of communication

CN118633260APending Publication Date: 2024-09-10MERCEDES BENZ GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380019655.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-22
Filing Date
2023-01-20
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing vehicle ecosystem, traditional asymmetric encryption methods are insecure in the face of quantum computer threats, while the distribution and negotiation process of symmetric keys is complex and resource-intensive, making it difficult to achieve effective secure communication especially in vehicle control equipment.

Method used

By equipping the participants of the communication system with a shared secret of sufficient length and entropy, using a key derivation function to derive a symmetric key, and updating the key when needed through derivation rules, the key agreement process is simplified and traditional encryption methods are avoided. dependence.

Benefits of technology

It achieves easy and effective negotiation of symmetric keys, is post-quantum resistant, is suitable for modern vehicle control equipment, reduces resource consumption, and improves communication security.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a method for securely negotiating a symmetric key between at least two participants of a communication. Each participant is provided with a public secret in each case in pairs or can be indirectly provided with a public secret via a further participant, which shares a public secret with each of the other two participants. The invention is characterized in that each participant is provided in each case in pairs or can be indirectly provided with at least one common key derivation function via a further participant, said key derivation function being derived according to a derivation rule on the basis of one of the common secret and the key derivation function when a symmetric key is required or when an update of the symmetric key is required, the derivation rule includes at least a key derivation function to be used and at least one parameter for the key derivation function, and is communicated by one of the participants to another.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for securely negotiating a symmetric key between two participants in a communication, of the type defined in more detail in the preamble of claim 1. Background Art

[0002] Modern vehicles are characterized by increasing networking. Vehicles are not only connected to systems such as the World Wide Web, but also to systems and servers operated by the vehicle manufacturer or OEM, such as the manufacturer's own applications and the manufacturer's own servers, often also referred to as the vehicle backend. These are developed, sold and operated by the manufacturer specifically for its own fleet. All of this together is also referred to as the vehicle ecosystem.

[0003] In practice, the various communication relationships between the various system components in such a vehicle ecosystem generate a large number of new interfaces and applications, all of which must be protected by appropriate cryptographic methods, such as mechanisms, protocols, etc. This protection is intended, on the one hand, to protect the privacy of vehicle users, and on the other hand, to prevent external interference in data traffic, especially when transmitting data related to vehicle control, which hackers may use to attack the vehicle and manipulate important functions.

[0004] A common approach is to use asymmetric keys or methods based on asymmetric encryption. These are usually used in the form of so-called TLS (Transport Layer Security) and sometimes also in the form of IPSec (Internet Protocol Security), which in turn use traditional asymmetric methods such as RSA or ECC (Elliptic Curve Cryptography) based on prime number factorization.

[0005] The advantage of the commonly used asymmetric encryption methods (e.g. ECC or RSA) is that they offer relatively secure protection at minimal cost given the current state of the art. However, all of these methods are based on cryptographic algorithms, the security of which is not considered to be robust compared to quantum computers. Due to their calculation method, quantum computers are able to crack asymmetric encryption methods and decrypt protected data in a very short time. The cryptographic protection (i.e., especially encryption and / or authentication) methods currently commonly used for communication between vehicle and backend are no longer secure. So far, this so-called post-quantum threat has been more of a theoretical threat, as quantum computers are still considered to be purely research tools and the implementation costs are huge. However, in recent years, the development of quantum computers has accelerated significantly. From today's perspective, it can no longer be guaranteed that sufficiently powerful quantum computers will not be commercially available on the market within the next decade.

[0006] Vehicles currently on the market are typically on the road for 10 to 15 years. This means that the post-quantum threat, i.e. the potential for simple cracking of conventional asymmetric cryptographic safeguards by easily available or especially commercially available quantum computers in the future, is already relevant for vehicles delivered today. The communication of the vehicle's communication devices with external servers, which is now mainly protected by cryptographic protocols based on RSA or ECC, would no longer be secure if such a post-quantum threat were to occur, and therefore secure communication could not be guaranteed over the entire expected service life of the vehicle from today's perspective. This threat is particularly severe for systems that cannot be easily updated. This is the case, for example, for the electronic control units (ECUs) installed in vehicles. This is easier for servers, smartphones, etc., whose hardware can usually be expanded faster than the vehicle or have a shorter assumed service life than the vehicle.

[0007] In order to cope with the post-quantum threat, asymmetric algorithms that resist post-quantum threats have been studied for many years. These methods are generally referred to as post-quantum cryptography or PQC. However, these are not yet very mature and are therefore not yet suitable to replace asymmetric traditional methods. Therefore, today's vehicles cannot be designed with post-quantum cryptographic protection methods because such technologies are not yet mature enough to make a final assessment of the expected security. In addition, there is no standardization at present, and these methods require a lot of resources. It is neither wise nor easy to turn to such quantum computer-resistant encryption methods too early. Even if there were already standardized PQC methods that were considered secure enough, it would not be reasonable to implement it in today's vehicle communication equipment because the higher cost and high resource consumption conflict with economic feasibility in the current vehicle ecosystem.

[0008] Furthermore, according to current knowledge, symmetric methods such as AES (Advanced Encryption Standard) or hashing methods such as SHA-512 (Secure Hash Algorithm) or symmetric authentication methods such as HMAC (Hash Message Authentication Code) are not fundamentally affected by post-quantum threats. According to current knowledge, in the event of a post-quantum threat, the security of these methods will be halved, so that after quantum computers become available, a 128-bit key will still provide 64 bits of security. And this weakening can be relatively easily compensated by increasing the key length.

[0009] The main problem with such symmetric methods compared to asymmetric methods is that the distribution and negotiation of keys is difficult to handle in symmetric cryptographic methods, especially because their number can be very large. This involves, in particular, the provisioning of the participating components with initial symmetric keys. In addition, it involves the negotiation of, in particular, demand-controlled, in particular public symmetric keys or session keys between two or more communication partners, which do not have public symmetric keys, i.e. do not "know" each other or have not yet "known" each other. In addition, for each component with which a communication relationship already exists and with which public symmetric keys have been agreed upon, these public symmetric keys must be stored accordingly. Since a large number of communication relationships usually occur, the management of symmetric keys in the components is very complex.

[0010] Thus, for example, in TLS, certificate-based asymmetric cryptographic methods are used to negotiate symmetric keys between the communication partners. If symmetric keys are negotiated via such methods, authentication and encryption can also only be performed symmetrically in TLS. As mentioned above, negotiation via asymmetric cryptographic methods is not post-quantum-resistant in itself.

[0011] DE 10 2020 003 739 A1 describes a method for distributing and negotiating key material within a vehicle ecosystem, in which a central trust authority is established and the participants involved are initially equipped with personal secrets with the help of which they can communicate with the trust authority in a protected manner and, if necessary, extract a shared key for the group of participants from the trust authority in a protected manner.

[0012] A disadvantage of this method is that all negotiated shared secrets must be generated by a trusted authority and then transmitted to the individual participants, and for this purpose each participant must carry out an authentication process and an encryption process with the trusted authority in order to transmit these secrets securely. However, it may happen that the capabilities of a participant equipped with few resources are insufficient to implement and properly use a secure authentication process and a secure encryption process. This applies in particular to control devices in vehicles, which usually have quite limited resources in terms of freely available computing power and storage capacity. Summary of the invention

[0013] It is an object of the present invention to provide an improved method for distributing and negotiating key material, in particular within a vehicle ecosystem.

[0014] This object is achieved according to the invention by a method having the features of claim 1. Further advantageous embodiments and developments of the method are given in the dependent claims. DETAILED DESCRIPTION

[0015] The method according to the invention is essentially based on the above-mentioned DE 10 2020 003 739 A1 and provides that all participants in the communication system have a TN i TN j (which can be part of a vehicle ecosystem in particular) is equipped with a shared, and therefore public, secret SEC of sufficient length and entropy TNi TNj Among them, the public secret SEC TNi TNj Can be used as the initial shared secret SEC TNi TNj , however, if participant TN i The number of TNs is very large, which quickly becomes very resource intensive. Therefore, alternatively, if necessary, they can also be used in two participants TN i TN j Between, through another participant TN who knows and trusts the two participants or has communicated with the two participants k According to a very advantageous development of the method according to the invention, the further participant can be a trust authority TA according to DE 10 2020 003 739 A1. The communication can also take place directly at the participant TN i Between the trusted institution TA, the initially shared secret SEC is required TNi TA .

[0016] According to the invention, compared to the prior art in the form of DE 10 2020 003 739 A1, in the method, the participant TN i TN j Used to protect TN i With TN j All secrets (e.g., symmetric keys) of the communication between the two parties are obtained from the public secret SEC when necessary. TNi TNj Therefore, this shared secret SEC TNi TNj A central, if not unique, "secret source of entropy" to protect the various participants TN i TN j Communication between.

[0017] To this end, each participant TN i Implement at least one secure key derivation function KDF that is used by another participant TN of the communication j or a trusted authority TA if it is the other participant TN k) is known. The key derivation function can in particular be based only on a secure one-way function, such as a hash function. Like the shared secret, it can also be implemented initially or can be provided or shared by the other participants.

[0018] If a new key is needed to protect both participants TN i With TN j or TN i A communication with TA, either for a new purpose (e.g., first communication) or because of an update of an expired key for a known purpose, then one of the participants TN i By another participant TN j Or the trusted authority TA informs (or vice versa) a derivation rule DR (Derivation Rule). The derivation rule DR at least includes information about which key derivation function (if there are multiple ones) should be used, and transmits at least one parameter to the key derivation function itself.

[0019] On this basis, it is easy and efficient to obtain the shared secret SEC TNi TNj A symmetric key for cryptographic protection is derived from the symmetric key. This symmetric key can then be used for authentication and / or encryption. In the case of an initially shared secret, only one message needs to be transmitted for this key agreement. According to a very advantageous extension of the method according to the invention (which will be explained in detail later), the message can include the message content in encrypted form but not the derivation rule DR. However, the entire message can be authenticated.

[0020] The advantages of the method according to the invention are mainly:

[0021] - Symmetric and therefore post-quantum resistant keys can be easily and efficiently negotiated;

[0022] The method can already be used particularly advantageously in current vehicle control units, since more and more vehicle control units have secure hardware modules (HSM) in which shared secrets can be securely stored, and it is already common practice today for control unit manufacturers to initially introduce individual secrets securely into the control units.

[0023] According to a very advantageous design of the method of the present invention, it can be provided that the key derivation function KDF uses a key base KDF-Key, a salt KDF-Salt and an output length KDF-Length as parameters, wherein the key base KDF-Key is a secret directly contained in the key derivation function KDF for deriving a key, wherein the salt KDF-Salt is a random or pseudo-random bit sequence of a predetermined length, and wherein the output length KDF-Length is a natural number, which represents the length of the symmetric key to be created.

[0024] The derived rules inform the corresponding participants TN i (or TN j ), Public Secrets SEC TNi TNj Which bits of TN are used to form the key base KDF-Key and in what order they should be arranged. The key base KDF-Key determined in this way is then used to generate a new key via KDF. In addition, the corresponding participant TN i (or TN j ) is told which salt should be used to generate the key and what length the output of the key derivation function KDF should have KDF-Length.

[0025] According to an advantageous extension of the method of the invention, the derivation rule DR comprises the key derivation function KDF to be used, the salt KDF-Salt, the output length KDF-Length, and the input selection function and / or the output selection function SeqPosIn, SeqPosOut. The input selection function SeqPosIn is used to determine the key base KDF-Key from the secret SEC by "bit selection". The key base KDF-Key itself is not part of the derivation rule DR, because the key base is secret, and the derivation rule DR is transmitted unencrypted.

[0026] As a result, one of the participants, TN i Can now be TN'd by another participant j Or the trusted authority TA (if it is the second participant) informs the derivation rule DR of the new key taking into account the mentioned parameters and one or two selection functions SeqPosIn, SeqPosOut. The derivation rule may contain at least the following information:

[0027] - the key derivation function KDF to be used, which depends on the parameters KDF-Key, KDF-Salt and KDF-Length;

[0028] - By specifying the input selection function SeqPosIn, according to SEC TNi TNj To define the bit sequence KDF-Key, the input selection function defines the secret SEC TNi TNj Which bits of should form the KDF-Key in what order?

[0029] - bit sequence KDF-Salt;

[0030] - natural number KDF-Length;

[0031] - Define the newly derived key DR(SEC) according to the output of the key derivation function KDF by specifying the output selection function SeqPosOut TNi TNj ), which defines which bits of the output of the key derivation function KDF should form the newly derived key DR(SEC) in what order. TNi TNj ).

[0032] Thus, the derivation rule DR is uniquely described, for example, by a tuple of the following form:

[0033] DR=(KDF, SeqPosIn, KDF-Salt, KDF-Length, SeqPosOut).

[0034] By the derivation rule DR and the shared secret SEC defined in this way TNi TNj The unique key is designated as DR (SEC TNi TNj ) and through DR (SEC TNi TNj ):=SeqPosOut(KDF(SeqPosIn(SEC TNi TNj ),KDF-Salt,KDF-Length)) definition.

[0035] Among them, the input selection function SeqPosIn is from length L (SEC TNi TNj ) and rearrange these selected bits when necessary (L(bf) in this article represents the bit length of the bit sequence bf). Similarly, the output selection function SeqPosOut is a function that selects specific bits from a bit sequence of length KDF-Length and rearranges these selected bits when necessary.

[0036] The selection function can either rearrange the bits selected from the input bit sequence or maintain their original relative order with respect to each other. The first reordering variant of the selection function provides more flexibility in defining the selection function, in this way more selection functions can be defined, but the description of the selection function that rearranges the bits therefore contains more information and requires more space in the derivation rule DR. The second variant does not require the reordering of the selected bits, is less flexible and less functional, but requires less space in the derivation rule DR. Due to the shared secret SEC TNi TNj The length of is fixed, assuming that SEC TNi TNjEach bit in it is selected by the input selection function SeqPosIn at most once, so the KDF-Key selected from the secret SEC can be借助于输入选择函数SeqPosIn从秘密SEC TNi TNj The number of KDF-Keys selected from it is limited, and perhaps not every conceivable KDF-Key of a specified length can be selected from SEC借助于SeqPosIn从SEC TNi TNj Therefore, especially in the case of SeqPosIn, it makes sense to be able to reorder the selected bits by SeqPosIn. Since SeqPosOut selects bits from the output of the key derivation function KDF, and the length of this output is determined by the freely selectable parameter KDF-Length, the DR parameter KDF-Length can be selected for each key derivation function KDF and each desired output chosenKey such that chosenKey can be defined by the order-preserving selection function SeqPosOut, such that chosenKey = DR(SEC TNi TNj ).

[0037] Among them, the selection function can be defined in different ways. Several possible variants are described below.

[0038] Variant 1

[0039] It is proposed to describe the reordering selection function by a sequence of bit positions (pos_0,…,pos_(n - 1)), where n is the length of the selection function output, and each position pos_j is less than the length of the input and pairwise different from each other. For example, for the input bit sequence 00001111 and n = 4, the output bit sequence 0101 is defined or encoded by the selection function (0, 5, 2, 7).

[0040] Variant 2.1

[0041] It is proposed to describe the order-preserving selection function by a sequence of distances (dist_0,…,dist_(n - 1)), where n is the length of the selection function output, dist_0≥0 is applicable, for the remaining distances, i.e., for 0 < j < n, dist_j>0 is applicable, and the sum of all distances is less than the length of the input. For example, for the input bit sequence 00001111 and n = 4, the output bit sequence 0011 is defined or encoded by the selection function (0, 3, 2, 2). Note that in the case of the same input bit sequence, the bit sequence 0101 cannot be defined by the order-preserving selection function.

[0042] Variant 2.2

[0043] As an extension of this, it is further proposed to describe the order-preserving selection function by segment sequences, where a segment is described by a single distance dist_j or by a distance pair (dist_j, dist_k). The single distance represents a segment consisting of a single bit position, while the distance pair (dist_j, dist_k) (dist_k + 1) represents consecutive bit positions, where dist_0 ≥ 0 is applicable, and for the remaining distances, i.e., for 0 < j < n, dist_j > 0 is applicable, and the sum of all distances is less than the length of the input. For example, for the input bit sequence 00001111, the output bit sequence 00111 is defined or encoded by the selection function (0, (3, 2), 2).

[0044] Variant 3

[0045] Furthermore, it is proposed to describe the order-preserving selection function by a bit sequence (bit_0, …, bit_(le - 1)), where le does not exceed the length of the input of the selection function, i.e., in the case of SeqPosIn, le ≤ L(SEC TNi TNj ), and in the case of SeqPosOut, le ≤ KDF - Length. Among them, (for 0 ≤ j ≤ le - 1), bit_j = 1 indicates that the bit at the bit_j position of the input of the selection function belongs to its output, and bit_j = 0 indicates that the bit at the bit_j position of the input of the selection function does not belong to its output.

[0046] The described variants can also be combined with each other. For example, individual bits can be selected from the consecutive regions of SEC defined by variant 2.2 by means of variant 1 or variant 3, where in the case of variant 1, the selected bits can be rearranged. TNi TNj Each variant of defining the selection function has its advantages and disadvantages. In particular, it makes sense to use different definitions for SeqPosIn and for SeqPosOut.

[0047] A very advantageous design of this method can also stipulate that the derived rule DR without at least one of the input selection function SeqPosIn and / or the output selection function SeqPosOut is transmitted, where instead of transmitting at least one of the selection functions SeqPosIn, SeqPosOut, a reference to a known input selection function SeqPosIn and / or output selection function SeqPosOut is transmitted.

[0048]

[0049] ​The selection functions SeqPosIn and SeqPosOut do not have to be fully described every time as part of the derivation rule DR. Instead of a complete description, the derivation rule DR may also contain a description of the communication parties TN. i TN j A reference to a known selection function SeqPosIn, SeqPosOut, for example, is provided by specifying the unique name of the selection function to be used together with the values ​​of the parameters that the selection function may require.

[0050] In an advantageous embodiment of the method according to the invention, different regions of the common secret can be used by means of different input selection functions. Thus, the derivation rules can use the shared secret optimally over the entire length by means of different input selection functions.

[0051] Therefore, the secret SEC TNi TNj It can be used in this way: Use the secret SEC for every foreseeable purpose TNi TNj SEC-Key, so that if information about the underlying key base KDF-Key is available when using the derived key, only the secret SEC TNi TNj The area used for this purpose will only be damaged. The selection function described above in variant 2.2 (here as input selection function SeqPosIn) can be implemented particularly effectively to select SEC TNi TNj Divided into separate areas.

[0052] In addition, it may make sense to always choose to use the secret SEC TNi TNj The input selection function SeqPosIn_j of the derivation rule DR_j is such that the participant-specific secret SEC TNi TNj The bits of SEC are used “uniformly” by these derivation rules DR_j, i.e., at any point in time, the secret SEC TNi TNj Each bit of is used by almost the same number of derivation rules as previously used for key derivation. Thus, if #u represents the number of derivation rules or selection functions, where the secret SEC TNi TNj The bit at position u contributes to the formation of KDF-Key_j, then at any point in time, for any two bit positions u, k and 0 ≤ u <k<L(SEC TNi TNj ), for |#u–#k|≤1, where |.| represents the absolute distance between two numbers.

[0053] In addition, it may make sense to always choose to use the secret SEC TNi TNj The input selection function SeqPosIn_l of the derivation rule DR_l of DR_l is such that the key bases KDF-Key_l of the respective derivation rules DR_l overlap pairwise at approximately the same number of positions. Therefore, if DR_1, ..., DR_n are separate derivation rules and SeqPosIn_1, ..., SeqPosIn_n are related input selection functions, and for two selection functions SeqPosIn_l, SeqPosIn_k, #∩(SeqPosIn_l, SeqPosIn_k) denotes the number of bit positions selected by both SeqPosIn_l and SeqPosIn_k, then |#∩(SeqPosIn_l1, SeqPosIn_k1)–#∩(SeqPosIn_l2, SeqPosIn_k2)|≤1 should always apply as far as possible for any l1, k1, l2, k2 and l1≠k1, l2≠k2.

[0054] If a random number generator or a pseudo-random number generator is used to select the bit positions selected by the input selection function SeqPosIn_l, where the generator randomly determines the bit positions described by SeqPosIn_l for each derivation rule DR_l, then in the long run, that is, when n is large, the probability of achieving the above two characteristics increases with increasing n.

[0055] The output selection function SeqPosOut is used to explicitly design or form the derived key DR (SEC TNi TNj ) value. This also makes it possible to use any arbitrary predetermined bit sequence bf* as a DR (SEC) in a confidential manner by appropriately selecting the output length KDF-Length and an adapted output selection function SeqPosOut. TNi TNj) is transmitted to the recipient. To this end, exactly those bits are selected from a sufficiently long bit sequence bf (which is the result of the derivation rule DR before applying the output selection function SeqPosOut) which produce the specified bit sequence bf*. Therefore, if necessary, the derivation rule can also be used as an encryption method (which is not particularly efficient in terms of space requirements in the message, but is secure) instead of using conventional encryption methods. This encryption method was inspired by the well-known book encryption method, in which the character sequence is encoded as a pre-agreed page number and word number of a book as well as the character number as a "public secret". Therefore, despite two different secrets, the same fixed bit sequence bf* can still be transmitted to different participants. This requires only a length specification KDF-Length suitable for the corresponding secret bf* and an output selection function suitable for bf*.

[0056] This encryption method is safe from passive reading because KDF is a secure one-way function. Due to the uniqueness of the Salt value, when KDF-Length is large enough, each use of KDF will generate a unique value KDF(SeqPosIn(SEC TNi TNj ), KDF-Salt, KDF-Length), which ensures that even for the same secret DR (SEC TNi TNj ) also uses a different selection function SeqPosOut.

[0057] When defining the derivation rule DR, it is also possible to completely omit specifying one or both selection functions SeqPosIn and SeqPosOut. If SeqPosIn is not specified, the entire shared secret SEC TNi TNj It will be used as the input of the key derivation function KDF. If SeqPosOut is not specified, all KDF-Length bits of the output of the key derivation function KDF are used as the result DR (SEC TNi TNj ).

[0058] The described method can be used in the following situation, that is, two participants TN i and TN j , which do not know each other (i.e., have no shared keys), but have a "mutually known" partner (e.g., participant TN) with whom both participants share at least one common key. k or TA), from TN k Or TA sends an arbitrary public key to the two participants, so that TN i With TN jcan communicate with each other securely at any time without using traditional encryption methods.

[0059] This achieves the following advantages:

[0060] - the method enables secure transmission of arbitrary information of arbitrary size over confidentiality-insecure channels; and

[0061] - The method does not require conventional encryption methods, which are completely based on a secure key derivation function KDF, which is usually based only on a secure one-way function (hash function).

[0062] As an alternative to a key agreement carried out in advance according to the method described above, according to an advantageous development of the method according to the invention, the key derivation rule DR can also be sent directly with the message, wherein parts of the message are protected by the newly negotiated key. Before reading or evaluating the message, the key must then be generated by the other party according to the derivation rule sent together. It must be noted here that the derivation rule of the key that may be used to encrypt the message or parts thereof must not be transmitted in encrypted form.

[0063] Therefore, any key DR_ENCR(SEC TNi TNj ) can be used to encrypt any data dat of the same bit length by using the XOR function ⊕. Contains the data generated by DR_ENCR (SEC TNi TNj ) The encrypted data dat message may look like this, for example:

[0064] (DR_ENCR,DR_ENCR(SEC TNi TNj )⊕dat)

[0065] In this case, the data dat and the derivation rule DR_ENCR can therefore be transmitted in one message.

[0066] Since the derivation rules do not contain secrets, the message containing the derivation rules does not need to be encrypted, so that, in contrast to the method described in the aforementioned DE 10 2020 003 739 A1, the secure encryption method ENCR does not necessarily have to be implemented by each participant TN i Implementation.

[0067] If we assume that participant TN i The secret of the derivation rule DR is known only to the attacker and the trusted authority TA. Strictly speaking, there is no need to authenticate the message containing the derivation rule DR, because if the attacker successfully transmits the derivation rule DR' defined by the attacker to the participant TN i, the possible wrong derivation and subsequent use of the key means that the key has not been leaked or damaged. However, this may mean that the participant TN i A key that has already been agreed upon with the TA for a specific purpose may be overwritten by a wrong key "negotiated newly" by the attacker. However, if it is assumed that the attacker does not possess the shared secret SEC used TNi TNj , but only transmits an erroneous derivation rule DR' and thereby triggers the derivation and use of a new key, the attacker will not be able to subsequently read data protected (e.g. encrypted) with the erroneous key. However, for reasons of system robustness, authentication AUTH of the message containing the derivation rule DR would be desirable for key agreement.

[0068] If the communication channel used is not protected against manipulation of the transmitted data, an additional authentication key DR_AUTH (SEC TNi TNj ) Create and transfer the derived rule DR_AUTH, where TN i This authentication key is used to authenticate the transmission to the TN using a symmetric method AUTH (e.g. HMAC). j The second part of the message, DR (SEC TNi TNj ), where AUTH uses the symmetric key symKey to calculate the authentication stamp AUTH(symKey, dat) of the date / data dat. A manipulation-resistant message may, for example, look like this:

[0069] (DR,DR_AUTH,AUTH(DR_AUTH(SEC TNi TNj ),DR)) or

[0070] (DR,DR_AUTH,AUTH(DR_AUTH(SEC TNi TNj ),(DR,DR_AUTH)))

[0071] If you should also use DR_AUTH (SEC TNi TNj ) to authenticate other data, these data may be included, for example, as follows:

[0072] (DR,DR_AUTH,dat,AUTH(DR_AUTH(SEC TNi TNj ),(DR,DR_AUTH,dat)))

[0073] According to an extremely advantageous embodiment of the method according to the invention, the derived key DR(SEC TNi TNj ) itself can also be used to authenticate the derived rule DR directly during transmission using the symmetric method AUTH. A manipulation-resistant message may, for example, look like this:

[0074] (DR,AUTH(DR(SEC TNi TNj ),DR))

[0075] If DR (SEC TNi TNj ) to authenticate other data, these data may be included here, for example, as follows:

[0076] (DR,dat,AUTH(DR(SEC TNi TNj ),(DR,dat)))

[0077] To prevent replay attacks and other attacks, in addition to the derivation rule DR, other data can be verified, such as the sending partner (e.g., TN i or TA) and / or a timestamp for proving that the derived rule DR is up to date. A challenge-response approach can also be used, whereby the recipient (e.g., TA or TN) i ) can check whether the generated key is "fresh".

Claims

1. A method for securely negotiating a symmetric key between at least two participants in a communication, in, The participants are each provided with a common secret in pairs or can be provided with a common secret indirectly via a further participant, which in turn shares a common secret with each of the other two participants, It is characterized in that The participants are each provided in pairs or can be provided indirectly via the other participants with at least one common key derivation function, wherein If a symmetric key or an update of a symmetric key is required, it is derived based on one of the key derivation functions and the public secret according to a derivation rule, which derivation rule includes at least the key derivation function to be used and at least one parameter for the key derivation function, and is transmitted from one of the participants to another.

2. The method according to claim 1, It is characterized in that The key derivation function uses a key base, a salt and an output length as parameters, wherein the key base is a secret known to both parties or a secret that can be derived from a secret known to both parties, wherein the salt is a random or pseudo-random bit sequence of a predetermined length, and wherein the output length is a natural number that represents the length of the output of the key derivation function.

3. The method according to claim 1 or 2, It is characterized in that The derivation rule includes the key derivation function to be used, the salt, the output length, and an input selection function and an output selection function for defining input bits and output bits, respectively.

4. The method according to claim 3, It is characterized in that A key base for the key derivation function is determined with the aid of the input selection function, wherein the input selection function selects specific bits of the public secret, preserves or changes the order of the selected bits, and uses the result as the key base for the key derivation function.

5. The method according to claim 3 or 4, It is characterized in that The key is created by the derivation rule based on the output selection function, wherein the output selection function selects specific bits from the output of the key derivation function output length and arranges the selected specific bits in a selected order or a new order.

6. The method according to claim 3, 4 or 5, It is characterized in that The input selection function and / or the output selection function is described as a reordering selection function by a sequence of bit positions.

7. The method according to any one of claims 3 to 6, It is characterized in that The input selection function and / or the output selection function is described as an order-preserving selection function by a sequence of bit distances and / or a sequence of bit distances and associated bit numbers.

8. The method according to any one of claims 3 to 7, It is characterized in that The input selection function and / or the output selection function is described as an order-preserving selection function by a bit sequence, Wherein a bit indicates whether the corresponding bit is included in the output of the selection function or not.

9. The method according to any one of claims 3 to 8, It is characterized in that The derivation rule is transmitted without at least one of the input selection function and / or the output selection function, wherein instead of transmitting at least one of these selection functions, a reference to a well-known input selection function and / or output selection function is transmitted.

10. The method according to any one of claims 3 to 9, It is characterized in that Different regions of the common secret are used by means of different input selection functions.

11. The method according to claim 10, It is characterized in that For multiple derivation rules, the relevant input selection functions are selected so that the selection of each bit position of the secret by the input selection function is approximately uniformly distributed, or so that for any two different input selection functions, the number of bit positions of the secret selected by the two input selection functions is approximately uniformly distributed.

12. The method according to claim 10 or 11, It is characterized in that The bit positions of the secret selected by the corresponding input selection function are determined by a random number generator or a pseudo-random number generator, wherein the bit positions are selected from the entire secret or from a predetermined region of the secret.

13. The method according to any one of claims 1 to 12, It is characterized in that The transmitted data are symmetrically authenticated by means of a key defined by the derivation rule transmitted together.

14. The method according to any one of claims 1 to 13, It is characterized in that The derivation rules are transmitted as an unencrypted part of a message that is encrypted using a key defined by the derivation rules transmitted together.

15. The method according to claims 13 and 14, It is characterized in that The derivation rule transmitted together is a part of the data authenticated by a key defined by the derivation rule transmitted together.

16. The method according to any one of claims 1 to 13, It is characterized in that A central credit institution is designated as one of the participants or as the further participant.