The purpose of this invention is related to the domain of cryptography and more particularly public key infrastructures.
Asymmetric cryptography systems, also called public key systems, traditionally call upon certification authorities with the function of delivering, authenticating and possibly revoking public key certificates. More precisely, a node holding a private key and public key pair making use of an asymmetric cryptosystem (for example such as the RSA cryptosystem), can ask a certification authority to create a certificate for it to link its public key to its identity. Such a certificate is usually obtained by hashing (for example SHA hashing) of information containing the public key and the holder's identifier, the result of hashing or the condensate being signed by the private key of the certification authority. Thus, any third party who would like to make a secure exchange with the node in question and that trusts the Certification Authority (CA) can firstly verify the authenticity of the public key of the node with the CA. In practice, certification authorities are organised hierarchically according to their degree of trust, a public key of one certification authority itself possibly being authenticated with a higher rank certification authority, as far a root certification authority. Remember that public key certificates respect a format standardised by the ITU, called the X.509 format.
However, classical asymmetric cryptosystems such as RSA use large keys (public and private) (2 or 4 kbits) and the associated X.509 certificates are also very high volume (several kilobytes). Consequently they are not suitable for the field of Internet of Things (IoT) in which nodes usually only have small memory and calculation resources. This is why it is preferred to use cryptosystems on Elliptic Curve Qu-Vanstone implicit Certificates (ECQV).
Firstly, it should be remembered that an Elliptic Curve Cryptography (ECC) cryptosystem is defined by a set of parameters called domain parameters, in other words particularly constants involved in the elliptical equation defined on Zp (in which p is prime), the generating point G and the order n of the cyclic group generated by the generating point. The ECC encryption is based on the discrete logarithm problem. More precisely, a private key c (integer number) is related to the public key Q (point on the elliptical curve E) by cG=Q.
The principle of encryption on an elliptical curve with implicit certificate is summarised below. It is assumed that Alice would like to generate a (private key, public key) pair and to obtain a certificate for her public key from a certification authority CA.
Alice generates an integer number α (that will be used to obtain her secret key) and sends αG to the certification authority CA.
The certification authority CA has a private key c and a corresponding public key cG. It generates an integer number k within the [1,n−1] range and calculates data γ, called the public key reconstruction data, making use of:
γ=αG+kG (1)
Consequently, the data γ are on the elliptical curve.
The certification authority CA calculates the condensate e=h(γ∥IDA) in which IDA is an identifier of Alice (for example her IPv6 address), ∥ is a concatenation operation and h(.) is a hash function (such as SHA-1).
The certification authority CA then calculates the private key reconstruction data by:
s=ek+c mod.n (2)
The certification authority sends the private key and public key reconstruction data pair (s, γ) to Alice. Alice can then calculate her private key a and her public key QA as follows:
αa=eα+s mod.n (3-1)
QA=eγ+QCA (3-2)
where QCA is the public key of the certification authority.
It can be seen that a third party, Bob, who would like to make a secure exchange with Alice, can obtain her public key QA directly from her implicit certificate γ.
This encryption and certification method is well adapted to the Internet of Things (IoT) because the keys and the implicit certificates are very small (128 or 256 bits)
Nevertheless, the implicit certificates are still managed (creation, storage, revocation) in a central location by a certification authority. The trust in a centralised certification authority can require caution or be doubted, especially in the field of the Internet of things in which their independence is not necessarily guaranteed.
Consequently, the purpose of this invention is to propose a method of managing implicit certificates, particularly in the domain of the Internet of Things, that does not have the disadvantages mentioned above. In particular, the invention aims to disclose a method of managing implicit certificates with a very high degree of security and independent of a single certification authority.
This invention is defined by a method of managing implicit certificates of public keys for a communication network, the public keys being related to a cryptosystem on an elliptic curve, each implicit certificate being usable to identify a public key of a node on the network and each node being identified by an identifier, in which:
The identifier condensate is advantageously obtained by h(IDA∥keyword) where IDA is the identifier of node A, keyword is a known password of network nodes, ∥ is a concatenation operation and h is a hash function.
According to a first embodiment:
In a second embodiment of the invention, a plurality of implicit certificates are generated for node A during a plurality of successive iterations, and at iteration i:
The (i+1)th certificate condensate is advantageously obtained by eA
Alternatively, the (i+1)th certificate condensate is obtained by eA
The (i+1)th public key of node A can be calculated by QA
The interval between two successive iterations may be equal to a predetermined fixed duration.
Alternatively, the (i+1)th implicit certificate (γA
Also alternatively, the interval between two successive iterations may be equal to a pseudo-random duration.
In all cases, it would be possible that in the next iteration i, the first indexing node stores a list of implicit certificates γA
Furthermore, in iteration i, the first indexing node can store a list of validity dates DA
Other characteristics and advantages of the invention will become clear after reading a preferred embodiment of the invention with reference to the appended figures among which:
In the following, we will consider a plurality of network nodes, for example a 6LoWPAN network in the domain of the Internet of Things connected to the Internet IP through a gateway. However, the man skilled in the art will understand that the invention can be applied to any type of network.
A first concept on which the invention is based is to not store implicit certificates in a single node, for example on a dedicated server, but rather to store them distributed in a plurality of nodes by means of a Distributed Hash Table (DHT).
It should be remembered that a DHT can be used to find the address of a node (of the addresses of several nodes) on which the information (also called value in the context of a DHT) associated with this key is stored. An introduction to DHT techniques is given in the paper by S. Sarmady entitled “A Survey on Peer-to-Peer and DHT”, arXiv preprint arXiv:1006.4708, 2010.
The storage of implicit certificates using the Chord protocol will be described below. However, an expert in the subject will understand that other DHT storage protocols could be used alternatively without going outside the scope of protection of the invention.
As mentioned above, the implicit certificates are generated using a hash function h (for example SHA hashing). If the number of condensate bits is denoted m, the values of function h lie within the interval [0,2m−1]. This interval can be looped back on itself (the value 2m then coinciding with the value 0) and represented in the form of a circle as illustrated in
According to a first example embodiment, the interval [0,2m−1] is divided into a plurality of consecutive segments (ring portions in
Preferably, according to a second example embodiment, the interval [0,2m−1] is covered by a plurality of segments, these segments possibly overlapping with a degree of overlap, K, in other words said point in this interval belongs to at least K distinct segments.
The nodes associated with the different segments are called indexing nodes and contain a copy of the DHT table. For each segment, the DHT table gives the indexing node that will manage implicit certificates belonging to the segment.
Thus, in order to recover the implicit certificate of a public key belonging to a node characterised by its identifier ID, for example its IPv6 address, the hash value h(ID)) is calculated and the DHT table is searched for an indexing node Ai responsible for managing a segment containing h(ID)). The implicit certificate can be retrieved from this indexing node.
The indexing nodes could possibly be organised hierarchically, a coarse indexing level being made by first level indexing nodes pointing to indexing nodes on a second level responsible for finer indexing (in other words a finer segmentation). In the domain of the Internet of Things, the root indexing node can be the gateway between the 6LoWPAN network and Internet.
In any case, it will be understood that the second example embodiment has the advantage of providing storage redundancy due to overlapping of segments. Thus, if one of said indexing nodes responsible for the relevant segment leaves the network or stops functioning, the implicit certificate can alternatively be retrieved from the K−1 other nodes.
If required, each segment can be managed by several indexing nodes, a priority level then being assigned to each indexing node. Thus, the first step could be to address a first high priority indexing node managing the segment that contains h(Id) and, if this first indexing node is overloaded, a second lower priority indexing node managing the same segment.
Storage and management of implicit certificates are thus distributed to a plurality of network nodes. These nodes are advantageously chosen from among nodes that have the highest memory capacity.
To prevent an indexing node from being able to allocate a segment of the DHT to itself, a password keyword known to all nodes in the network can advantageously be added to the node identifier, ID, before the hash function is applied to it. More precisely, for a given segment [a,b[, the indexing node of this segment (consequently managing implicit certificates falling in this segment) will then be chosen from among nodes Bi such that h(IDB
A second concept on which this invention is based is to chain implicit certificates to reinforce the security of certificates and authentication of the public keys contained in them.
It is assumed that a node A (Alice) would like to obtain an implicit certificate for a public key using an elliptical curve cryptosystem ECC. The Elliptic Curve Cryptography ECC cryptosystem is defined by a set of given domain parameters, in other words constants involved in the elliptical equation defined on Zp (in which p is prime), the generating point G and the order n of the cyclic group generated by the generating point.
In step 210, node A calculates the hash value h(IDA), in which IDA is a identifier of node A. This is why the value h(IdA) will be called the identifier condensate. Node A uses the DHT table to determine an indexing node responsible for management of a segment containing h(IDA). Optionally, a password can be concatenated with the identifier before hashing in all cases, this indexing node is denoted B0.
In step 220, node A generates an integer α0 and sends α0G to node B0. In practice, only coordinate x0 of α0G can be transmitted, since node B0 knows the domain parameters.
Node B0 has a private key b0 and a corresponding public key QB
In step 230, node B0 calculates private key and public key reconstruction data as follows:
Node B0 generates an integer k0 within the interval [1,n−1] and calculates public key reconstruction data γ0 using:
γ0=α0G+k0G (4-1)
This public key reconstruction data forms the first implicit certificate (of the public key) for node A.
The indexing node B0 then calculates the condensate eA
sA
In step 240, the indexing node B0 sends the pair (sA
In step 250, node A builds a first private key and a first pubic key using private key and public key reconstruction data respectively, as follows:
aA
QA
In step 255, an indexing node Bi is generated managing the first implicit certificate in the DHT. More precisely, the node Bi is a DHT indexing node for a segment containing the first certificate condensate, namely eA
In step 260, node generates an integer αi and sends αiG to node Bi. Node Bi has a private key bi and a corresponding public key QB
In step 270, node Bi calculates private key and public key reconstruction data: More precisely, node Bi generates an integer kB
γA
This public key reconstruction data forms the second implicit certificate for node A.
The indexing node Bi then calculates a second certificate condensate defined by eA
The indexing node Bi determines private key reconstruction data from the second condensate:
sA
In step 280, the indexing node Bi sends the pair (sA
Furthermore, node Bi transmits the second implicit certificate γA
It is thus understood that the first and second implicit certificates γA
In step 290, node A constructs a second private key from the private key reconstruction data sA
aA
Similarly, node A constructs a second public key from the public key reconstruction data γA
QA
It can be shown that relation QA
We will assume that the elliptical curve cryptosystem is the same as in the first embodiment. Node A once again would like to obtain an implicit certificate for a public key related to this cryptosystem.
Generation of the implicit certificate and the keys for node A is initialised by steps 310 to 350. Steps 310 to 350 are identical to steps 210 to 250 respectively and therefore they will not be described again herein.
Some time after the initialisation phase that can correspond to the validity duration of the implicit certificate, or to the expiration of a repetition period, or a duration obtained by a pseudo-random drawer, the implicit certificate is enriched by a recurrence chaining process related to steps 360 to 390. In general, the interval between two successive iterations can be fixed or it can depend on the validity duration of the certificate or it may be pseudo-random.
We will now assume that the (i−1)th iteration has already been done and we will consider the ith iteration.
In step 355, node A searches for node Bi that manages the condensate eA
In step 360, node A generates and integer αi and sends αiG to node Bi.
Node Bi has a private key bi and a corresponding public key QB
In step 370, node Bi calculates private key and pubic key reconstruction data as follows:
Node Bi generates an integer kB
γA
The indexing node Bi calculates the condensate eA
Regardless of the form selected far the condensate, node Bi uses it to determine private key reconstruction data for iteration i:
sA
In step 380, the indexing node Bi sends the pair (sA
Furthermore, node Bi transmits the implicit certificate γAi and possibly the validity date DA
In step 390, node A constructs a new private key from the private key reconstruction data for the current iteration i and the private key for the previous iteration, i−1, by:
aA
Similarly, node A constructs a new public key from the public key reconstruction data for iteration i and the public key for iteration i−1:
QA
It can be demonstrated by recurrence that QA
QA
and according to (9-1) and (8-2): aA
It will be noted for a current iteration i, node B0 that manages h(IDA) in the DHT, stores the list of implicit certificates γA
The last implicit certificate of node A, γA
Under these conditions, it will be understood that if a “man in the middle” type attack is to be successful, it would have to operate between node A and its indexer, B0, between C and its indexer D0 and between A and C simultaneously, which is very difficult unless the entire network is controlled. Furthermore, each node A and C can check that the public key of the other is coherent by checking if the chaining of implicit certificates is valid. Thus, node C will be able to check that the public key QA
Therefore according to this invention, the certificates are not stored with a single certification authority but instead with indexing nodes participating in the DHT.
Distributed storage of implicit certificates and chaining of these certificates to obtain pubic and private keys of nodes make the network particularly resistant to “man in the middle” type attacks.
Number | Date | Country | Kind |
---|---|---|---|
16 51549 | Feb 2016 | FR | national |
Number | Name | Date | Kind |
---|---|---|---|
6792530 | Qu | Sep 2004 | B1 |
6891503 | Savry et al. | May 2005 | B1 |
7841528 | Savry et al. | Nov 2010 | B2 |
8022810 | Savry et al. | Sep 2011 | B2 |
8106845 | Savry | Jan 2012 | B2 |
8110894 | Savry et al. | Feb 2012 | B2 |
8141787 | Savry | Mar 2012 | B2 |
8249502 | Savry | Aug 2012 | B2 |
8653938 | Savry et al. | Feb 2014 | B2 |
8699949 | Thevenon et al. | Apr 2014 | B2 |
20040064693 | Pabla | Apr 2004 | A1 |
20100023771 | Struik | Jan 2010 | A1 |
20130091362 | Poeluev | Apr 2013 | A1 |
20150288527 | Vanstone | Oct 2015 | A1 |
Entry |
---|
U.S. Appl. No. 12/899,852, filed Oct. 7, 2010, 2011/0084796 A1, Olivier Savry. |
U.S. Appl. No. 15/412,252, filed Jan. 23, 2017, Florian Pebay-Peyroula et al. |
U.S. Appl. No. 15/440,157, filed Feb. 23, 2017, Olivier Savry et al. |
French Preliminary Search Report dated Nov. 7, 2016 in French Application 16 51549 filed on Feb. 25, 2016 (with English Translation of Categories of Cited Documents). |
Zhen Luo et al., “A Self-organized Public-Key Certificate System in P2P Network,” Journal of Networks, vol. 6, No. 10, Oct. 2011, pp. 7. |
Srdjan Capkun et al., “Self-Organized Public-Key Management for Mobile Ad Hoc Networks,” IEEE Transactions on Mobile Computing, vol. 2, No. 1, Jan.-Mar. 2003, pp. 13. |
Siamak Sarmady et al., “A Survey on Peer-to-Peer and DHT,” https://arxiv.org/fftp/arxix/papers/1006/1006.4708.pdf, Jun. 2010, pp. 3. |
Savio Sciancalepore et al., “Key Management Protocol with Implicit Certificates for IoT systems,” Proceedings of The 2015 Workshop on IOT Challenges in Mobile and Industrial Systems, JOT-SYS '15, Jan. 2015, pp. 6. |
Adis Medic, “Survey of Computer Trust and Reputation Models—The Literature Overview,” International Journal of Information and Communication Technology Research, vol. 2, No. 3, Mar. 2012, pp. 22. |
Number | Date | Country | |
---|---|---|---|
20170250822 A1 | Aug 2017 | US |