US20110029774A1 - Secure communication between a hardware device and a computer - Google Patents
Secure communication between a hardware device and a computer Download PDFInfo
- Publication number
- US20110029774A1 US20110029774A1 US12/902,869 US90286910A US2011029774A1 US 20110029774 A1 US20110029774 A1 US 20110029774A1 US 90286910 A US90286910 A US 90286910A US 2011029774 A1 US2011029774 A1 US 2011029774A1
- Authority
- US
- United States
- Prior art keywords
- secret
- session key
- hardware device
- secure hardware
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
- 238000004891 communication Methods 0.000 title claims abstract description 44
- 238000000034 method Methods 0.000 claims description 53
- GNFTZDOKVXKIBK-UHFFFAOYSA-N 3-(2-methoxyethoxy)benzohydrazide Chemical compound COCCOC1=CC=CC(C(=O)NN)=C1 GNFTZDOKVXKIBK-UHFFFAOYSA-N 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 102100035087 Ectoderm-neural cortex protein 1 Human genes 0.000 description 1
- 108050003258 Ectoderm-neural cortex protein 1 Proteins 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001010 compromised effect Effects 0.000 description 1
- 238000005336 cracking Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0838—Key agreement, i.e. key establishment technique in which a shared key is derived by parties as a function of information contributed by, or associated with, each of these
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
- H04L9/0822—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using key encryption key
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0894—Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
- H04L9/0897—Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage involving additional devices, e.g. trusted platform module [TPM], smartcard or USB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3271—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S40/00—Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
- Y04S40/20—Information technology specific aspects, e.g. CAD, simulation, modelling, system security
Definitions
- the present invention relates to the field of secure communication in an insecure environment.
- the present invention is directed to a method for secure communication between a secure hardware device connected to the computer and the computer, the method comprising the steps of:
- the first application defines a first session key and generates first session key indication data based on the first secret set, said first session key indication data including the identifier of the first secret set as the only element from the first secret set, and transmits said first session key indication data to the secure hardware device, which retrieves, as a first secret, the secret of the first secret set based on the identifier included in the first session key indication data and further retrieves the first session key from said first session key indication data based on the first secret, so that for secure communication the first session key for encrypting and decrypting of data to be transmitted through the channel is shared.
- the first session key in a secure manner through an insecure communication channel between the secure hardware device and the computer.
- the thus shared first session key can then be used by the first application and the secure hardware device for encrypting and decrypting of the data to be transmitted through an insecure environment between the secure hardware device and the first application (computer).
- the method can further comprise the steps of:
- the second application defines a second session key and generates second session key indication data based on the second secret set, said second session key indication data including the identifier of the second secret set as the only element from the second secret set, and transmits said second session key indication data to the secure hardware device, which retrieves, as a second secret, the secret of the second secret set based on the identifier included in the second session key indication data and further retrieves the second session key from said second session key indication data based on the second secret.
- step h) it is further possible, that in step h)
- the group of secret sets is defined by encrypting each of a group of identifiers by a master key using a symmetrical encryption method, and in step b) the master key is stored and the symmetrical encryption method is implemented in the secure hardware device.
- step b) the group of secrets can be stored in a dynamically manner such that the secure hardware device can compute the secret based on the identifier included in the session key indication data.
- a dynamically manner is the use of an encryption/decryption method, which can be realized as a symmetrical or asymmetrical method.
- the starting conditions of the pseudo random generator for defining the group of secrets in step a) are also used as starting conditions for the pseudo random generator implemented in the secure hardware device (both pseudo random generators for steps a) and e) correspond each other in function), so that the identifier, for example, can be used as indicator for the x th random number of the series (for example the first, second, third, random number).
- the secrets of the group of secrets are defined in step a) by using the same hash function and the same master key and the corresponding identifiers, so that the secret of specific secret set can be derived in the secure hardware device by carrying out the hash function with the transmitted identifier and the stored master key.
- the secure hardware device only reads out the entry in the look-up table which is stored for the transmitted identifier. Therefore, the method can be Implemented even in secure hardware devices having weak processing power.
- the second application delivered in step g) can be an update for the first application running on the computer. Further, it is possible that a second application delivered in step g) is a separate application.
- the secret sets can be assigned to different levels and once a secure hardware device has retrieved a secret based on an identifier of a secret set of a first level the secure hardware device does not accept secrets based on identifiers of secret sets of a level lower than the first level. If the secure hardware device does not accept a secret, the secure hardware device does not use the secret for retrieving a session key so that sharing a session key for a secure communication was not successful.
- secret sets can be assigned to different levels and in the secure hardware device, which is in the possession of the user, a first level can be set so that the secure hardware device only accepts secrets based on identifiers of secret sets of a level. higher than the said first level
- the first application can generate a random value as the session key. Further, also the second application can generate a random value as a session key.
- the random value can be a string, a figure, or any other value which can be computed.
- an authentication procedure for the application communicating with the secure hardware device can be implemented.
- the secure hardware device For authentication the secure hardware device generates an authentication value and transmits the authentication value to the first or second application, the first or second application encrypts the received authentication value with the secret of the first or second secret set, respectively, and transmits the encrypted authentication value to the secure hardware device, which decrypts the encrypted authentication value with the first or second secret, respectively, and compares the decrypted authentication value with the generated authentication value and, only if those authentication values are identical, the secure hardware device uses the session key for encrypting and decrypting By these steps it can be ensured that the secure hardware device is really communicating with the first or second application, respectively.
- the authentication value can be a random value generated by the secure hardware device.
- the group of secret sets is defined in step a) such that it is impossible to derive a secret if only the identifier of the secret set is known.
- the secure hardware device can be used to avoid unauthorized use of the first and second application, respectively.
- the present invention is directed to .a method of establishing a secure communication channel in a renewable manner between a secure hardware device connected to a computer and said computer,
- a group of secret sets including at least two secret sets, each of which includes a secret and an assigned identifier, is stored in the secure hardware device in such a manner that the secure hardware device can retrieve the secret of any of said secret sets from the assigned identifier
- a first one of said secret sets is stored in a first application running on said computer, said method comprising the steps of:
- said first application defining a first session key and generating first session key indication data based on the first secret sets, said first session key indication data including the identifier of the first secret set as the only element from the first secret set, and transmitting said first session key indication data to the secure hardware device,
- said secure hardware device retrieving, as a first secret, the secret of the first secret set based on the identifier included in the first session key indication data and further retrieving the first session key from said first session key indication data based on the first secret, so that for the secure communication channel the first session key for encrypting and decrypting of data to be transmitted through the channel is shared, wherein, for renewing the secure communication channel,
- said second application defining a second session key and generating a second session key indication data based on the second secret set, said second session key indication data including the identifier of the second secret set as the only element from the second secret set, and said second session key indication data is transmitted to the secure hardware device,
- said secure hardware device retrieves, as a second secret, the secret of the second secret set based on the identifier included in the second session key indication data and further retrieves the second session key from said second session key indication data based on the second secret, so that for the secure communication channel the second session key for encrypting and decrypting of data to be transmitted through the channel is shared.
- step B) it is possible that the first application encrypts the generated first session key with said first secret and transmits the identifier of the first secret set together with the encrypted first session key as said first session key indication data to said hardware device through an insecure environment, and that the secure hardware device decrypts the encrypted first session key using the retrieved first secret
- step D) the second application encrypts the generated second session key with the secret of the second secret set and transmits the identifier of the second secret set together with the encrypted second session key as said second session key indication data to said secure hardware device through an insecure environment, and that the secure hardware device decrypts the encrypted second session key using the retrieved second secret.
- the group of secret sets can be defined by encrypting each of a group of identifiers with a master key using a symmetrical encryption method and the master key is stored and the symmetrical encryption method is implemented in the secure hardware device.
- the second application of step C) can be an update for the first application or can be a separate application.
- the secret sets can be assigned to different levels and once the secure hardware device has retrieved a secret based on an identifier of a secret set of a first level the secure hardware device does not accept secrets based on identifiers of secret sets of a level lower than the first level
- the secret sets can be assigned to different levels and in the secure hardware device, which is in the possession of the user, a first level can be set so that the secure hardware device only accepts secrets based on identifiers of secret sets of the level higher than the said first level
- the authentication procedure for the application communicating with the secure hardware device can be implemented as follows:
- the secure hardware device generates an authentication value and transmits the authentication value to the first or second application, the first or second application encrypts the received authentication value with the secret of the first or second secret set, respectively, and transmits the encrypted authentication value to the secure hardware device, which decrypts the encrypted authentication value with the first or second secret, respectively, and compares the decrypted authentication value with the generated authentication value and, only if both authentication values are identical, the secure hardware device uses the session key for encrypting and decrypting.
- the authentication value can be a random value generated by the secure hardware device.
- the group of secret sets is preferably defined such that it is impossible to derive a secret from a secret set if only the identifier of the secret set is known.
- the secure hardware device is preferably used to avoid unauthorized use of the first and second application, respectively.
- the secret itself retrieved by the secure hardware device based on the identifier included in the session key indication data is used as session key.
- the step of retrieving the secret and the step of retrieving the session key from the session key indication data are in fact one single step
- the present invention is directed to an apparatus for changing a shared secret for generating a session key for secure communication between a secure hardware device connected to a computer and said computer, said apparatus comprising a key generator which generates a group of secret sets including at least two secret sets, each of which includes a secret and an assigned identifier, stores the group of secret sets in the secure hardware device in such a manner that the secure hardware device can retrieve the secret of any of said secret sets from the assigned identifier, and selects a first one of said secret sets and stores said selected first secret set in a first application, wherein the first application which includes the first secret set is delivered to a user who executes the first application on a computer being connected to the secure hardware device, wherein, in order to define and share a session key for secure communication, the first application defines a first session key and generates first session key indication data based on the first secret set, said first session key indication data including the identifier of the first secret set as the only element from the first secret set, and transmits said first session key
- the apparatus can be further embodied such that the above described methods as well as the further embodiments of the methods can be realized.
- FIG. 1 schematically illustrates a system for secure communication through an insecure communication channel.
- FIG. 2 is a flowchart explaining steps of a method for secure communication.
- FIG. 3 is a flowchart explaining further steps of the method for secure communication.
- FIG. 4 is a flowchart of another embodiment of the method for secure communication.
- FIG. 5 is a flowchart of further steps of the further embodiment described in FIG. 4
- FIG. 6 is a flowchart describing an authentication procedure.
- FIG. 7 is a flowchart describing another preferred embodiment of secure communication.
- FIG. 8 schematically illustrates a computer for carrying out steps of the method according to the preferred embodiments.
- FIG. 1 schematically illustrates a system for secure communication in an untrusted and insecure environment.
- the system comprises a computer 1 connected to a secure hardware device 2 .
- a software application 3 is running which is communicating with the secure hardware device 2 through an insecure communication channel 4 .
- the communication channel 4 is insecure since the secure hardware device 2 as well as the computer 1 are in the possession of a user and the hardware device 2 is connected to the computer 1 via a common interface 5 , e.g a USB port. Therefore, the user can eavesdrop on the communication between the hardware device 2 and the application 3 .
- the secure hardware device 2 is used to avoid unauthorized use of the software application 3 and uses a symmetric encryption algorithm for communicating through the insecure channel 4 .
- the secure hardware device 2 has a hardware-based encryption engine.
- the secure hardware device 2 receives encrypted strings or data from the protected application 3 .
- the encrypted strings or data are encrypted with a session key defined by the first software application 3 using the same symmetric encryption algorithm as implemented in the secure hardware device 2 .
- the secure hardware device 2 decrypts the received encrypted strings or data and uses the decrypted strings or data to check whether or not the user is authorized to use the application 3 (or parts thereof).
- the necessary authorization is transmitted from the secure hardware device 2 to the application 3 in encrypted form using the session key.
- Secure communication can be provided using the session key for encrypting and decrypting data to be transmitted through the insecure communication channel 4
- the session key used for encryption has to be shared in a secure manner.
- the software publisher or vendor of the software application 3 carries out the following steps ( FIG. 2 ) before delivering the application 3 and the secure hardware device 2 to the user, who will use the first software application 3 and the secure hardware device 2 in the manner illustrated in FIG. 1 .
- a group of secret sets including at least two secret sets (in this embodiment three secret sets), each of which includes a secret and an assigned identifier, is defined. This is done by selecting a symmetric cryptographic algorithm (ENC(,), ENG ⁇ 1 (,)) by selecting a master key MK and by defining a set of identifiers I1, I2, I3.
- EEC(,), ENG ⁇ 1 (,) a symmetric cryptographic algorithm
- step S 2 the master key MK is stored in the secure hardware device and the symmetric cryptographic algorithm (ENC(,), ENC ⁇ 1(,)) is implemented in the secure hardware device.
- the hardware device 2 is considered to be secure since the master key MK is stored in the hardware device 2 in a place which is secure and is inaccessible for a cracker.
- step S 3 a first one of the secret sets is selected (here the secret set including the first secret K1 and the first identifier I1) and is stored In the first application 3 Further, the symmetric cryptographic algorithm is implemented in the software application 3
- step S 4 the thus protected software application 3 and the secure hardware device 2 are delivered to the user (step S 4 ) who will connect the secure hardware device 2 with the computer 1 on which he will execute the software application 3 .
- the application 3 generates a random value R (step S 5 in FIG. 3 )
- the application 3 encrypts the generated random value R using the first secret K1 stored in the application 3 so that an encrypt random value ENC_R is obtained (step S 6 ).
- the application transmits the encrypt random value ENC_R together with the identifier I1 as session key indication data to the secure hardware device 2 through the insecure communication channel 4 (step S 7 ).
- the secure hardware device 2 retrieves the first secret K1 used for encrypting the random value R by encrypting the received first identifier I1 with the master key MK stored in the secure hardware device 2 (step S 8 ).
- the session key (random value R) generated, by the application 3 is shared with the secure hardware device 2 . Even if an eavesdropper has recorded the transmitted first identifier I1 and the encrypted random ENC_R the eavesdropper cannot retrieve the random value R used as the session key. Therefore, using the session key R for decrypting and encrypting the data to be transmitted to the insecure channel leads to secure communication through the insecure communication channel 4 between the secure hardware device 2 and the application 3 .
- a new session key (new random value) can be generated and shared by carrying out the above described steps S 5 to S 9 .
- the first secret K1 stored in the application 3 is always needed to share the session key generated by the application 3 with the secure hardware device 2 in a secure manner. Since the application 3 is in the possession of the user and a first secret K1 cannot be stored in an absolutely secure manner in the application 3 it has to be assumed that the secrecy of the secret K1 is limited in time. If, however, secrecy has been compromised by a cracker the encrypted communication through the insecure communication channel 4 is no longer secure.
- the vendor or software publisher only needs to generate the updated application 3 ′ (step S 10 in FIG. 4 ), to select a second one of the secret sets defined in step S 1 , e.g. K2 and I2 (step S 11 in FIG. 4 ), store the selected second secret set in the updated application and implement the defined cryptographic algorithm in the updated application 3 ′ (step S 12 ) and deliver the updated application 3 ′ to the user (step S 13 ). It is not necessary to carry out any amendments in the secure hardware device 2 which is already in the possession of the user. An update of the secure hardware device 2 would lead to a more complicated update procedure compared to a simple update of the application 3 .
- step S 12 In order to update the application 3 it is also possible to generate a software update module (instead of a complete updated software 3 ′) in which software update module the selected secret set is stored in step S 12 .
- the software update module including the second secret set is delivered to the user in step S 13 and the software update module, when executed, generates together with the already installed application 3 the updated software application 3 ′.
- step S 10 it is also possible to use step S 10 to generate another software application which is not related to the software application 3
- step S 10 it is possible to use the secure hardware device 2 which is already in the possession of the user, for secure communication between the other software application and the secure hardware device 2 based on the second secret set without having to carry out any amendment in the secure hardware device 2 .
- step 14 If the updated application 3 ′ is started (cf. FIG. 5 ) and random value R′ is generated (step 14 ) basically the same steps as described in connection with FIG. 3 are carried out.
- the random value R′ is encrypted with the second secret K2 (cf. step S 15 in the flow chart of FIG. 5 ).
- the encrypted random value ENC-R′ is transmitted together with the second identifier I2 to the secure hardware device 2 in step S 16 .
- the secure hardware device 2 retrieves the second secret K2 using the second identifier I2 (step S 17 ) and obtains the random value R′ by decrypting the encrypted random value ENC_R′ using the second secret K2 (step S 18 ).
- the cracker Since the cracker only knows the first secret S 1 and it is not possible to derive the second secret S 2 from the first secret Si the cracker does not benefit from cracking the application 3 for the updated application 3 ′ so that the cracker is forced to crack also the updated application 3 ′
- step S 9 In order to authenticate the secure hardware device 2 generates a random value RS (step 519 in FIG. 6 ) and transmits the random value RS to the application (step S 20 ).
- the application generates an encrypted random value ENC_RS by encrypting the random value RS with the corresponding secret K1, K2, respectively, stored in the application and transmits the encrypted random value ENC_RS to the secure hardware device 2 (step S 21 ).
- the secure hardware device 2 decrypts the encrypted random value ENC_RS with the retrieved secret K1, K2, respectively, of step S 8 or S 17 and compares the decrypted random value with the random value RS generated (step S 22 ). If both values are identical, it can be assumed that the application really includes the first or second secret K1, K2, respectively, and is communicating with the secure hardware device 2 because only if it includes said secret K1 or K2 is the application able to correctly encrypt a value (random value RS) which cannot be influenced by the application.
- the secret sets are assigned to different levels and the secret sets are selected in the steps S 3 and S 10 in the order of the levels, i.e. the lowest level is selected first and the next level is selected in the next selection
- the secure hardware device 2 it is implemented (for example in step S 2 ) that before retrieving a secret it is checked whether the secure hardware device has already retrieved a secret based on an identifier of a secret set of a level higher than the level of the identifier received. If this is true, the secure hardware device 2 stops the communication. If this is not true, the steps S 8 , S 9 ; S 17 , S 18 are carried out.
- a level can be set in the secure hardware device in a secure procedure
- the secure hardware device only accepts secrets based on identifiers of secret sets of a level higher than the set level.
- the vendor or software publisher generates the group of secret sets such that at least two secret sets exist, namely a first secret K1 together with the assigned first identifier I1 and the second secret K2 together with the assigned second identifier I2 and selects a symmetric cryptographic algorithm (step S 23 in FIG. 7 ).
- both secret sets i e. the secrets K1 and K2 and the identifiers I1, I2, are stored in the secure hardware device 2 , e g in the form of a table, and the selected symmetric cryptographic algorithm is implemented in the secure hardware device 2 .
- a first one of the secret sets is selected, e.g. K1 and I1.
- This selected first secret set is stored in the application (step S 25 ).
- the protected application and the secure hardware device 2 are delivered to the user (step S 26 ).
- the application transmits the first identifier I1 as session key indication data to the secure hardware device (S 26 ).
- the secure hardware device 2 compares the received identifier I1 with the stored identifiers and retrieves the first secret K1 as session key (S 28 ). Then, the first secret K1 is used as shared session key for encrypting and decrypting data to be transmitted through the insecure channel 4 .
- the application generates a random value R, encrypts the random value and transmits the encrypted random value together with the first identifier I1 to the secure hardware device 2 .
- the secure hardware device retrieves the first secret K1 by comparing the received first identifier I1 with the identifiers stored in the hardware device and uses the retrieved first secret for decrypting the encrypted random value which can then be used as the shared session key
- steps S 1 -S 3 and S 10 -S 12 of methods of the preferred embodiments as described above can be carried out on a single computer 6 as schematically shown in FIG. 8 , for example.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Storage Device Security (AREA)
Abstract
A group of secret sets is provided, each set including a key and an assigned identifier. The sets are stored in a secure hardware device that can retrieve the key of any of the sets using the key's corresponding identifier. A set is stored in an application, and the application is executed on a computer coupled to the secure device. The application defines a session key, encrypts the session key using the key from the set stored in the application, generates session data including the stored set's identifier and the encrypted session key, and sends the session data to the secure device. The secure device obtains from the session data the encrypted session key and the identifier, retrieves the key corresponding to the identifier, and uses the retrieved key to decrypt the session key. The session key is then used to encrypt and decrypt communications between the secure device and the computer.
Description
- The present invention relates to the field of secure communication in an insecure environment.
- There exists a need for secure communication in an insecure environment between a secure hardware device connected to a computer and the computer. For example for stopping illegal use, copying and distribution of a software application it is known to amend the software application before distribution such that the software application can only be executed on the computer when the secure hardware device is connected to the computer. However, the secure hardware device is connected to the computer via a common interface, e.g. a USB port, which itself is not secure, and a cracker can eavesdrop on the data transmitted through the insecure interface or channel, in order to crack the software application.
- Therefore, it is an object of the present invention to provide an improved method for secure communication between a secure hardware device connected to a computer and the computer.
- It is a further object of the present invention to provide an apparatus for changing a shared secret for generating a session key for secure communication between a secure hardware device connected to a computer and the computer.
- Other objects and advantages of the invention will become apparent as the description proceeds.
- In one aspect, the present invention is directed to a method for secure communication between a secure hardware device connected to the computer and the computer, the method comprising the steps of:
- a) defining a group of secret sets including at least two secret sets, each of which includes a secret and an assigned identifier,
- b) storing the group of secret sets in the secure hardware device in such a manner that the secure hardware device can retrieve the secret of any of said secret sets from the assigned identifier,
- c) selecting a first one of said secret sets and storing said selected first secret set in a first application,
- d) delivering the first application which includes the first secret set to a user who executes the first application on a computer being connected to the secure hardware device,
- e) wherein the first application defines a first session key and generates first session key indication data based on the first secret set, said first session key indication data including the identifier of the first secret set as the only element from the first secret set, and transmits said first session key indication data to the secure hardware device, which retrieves, as a first secret, the secret of the first secret set based on the identifier included in the first session key indication data and further retrieves the first session key from said first session key indication data based on the first secret, so that for secure communication the first session key for encrypting and decrypting of data to be transmitted through the channel is shared.
- With this method it is possible to share the first session key in a secure manner through an insecure communication channel between the secure hardware device and the computer. The thus shared first session key can then be used by the first application and the secure hardware device for encrypting and decrypting of the data to be transmitted through an insecure environment between the secure hardware device and the first application (computer).
- The method can further comprise the steps of:
- f) selecting a second one of said secret sets and storing said selected second secret set in a second application,
- g) delivering said second application to said user executing the second application on a computer connected to the secure hardware device,
- h) wherein the second application defines a second session key and generates second session key indication data based on the second secret set, said second session key indication data including the identifier of the second secret set as the only element from the second secret set, and transmits said second session key indication data to the secure hardware device, which retrieves, as a second secret, the secret of the second secret set based on the identifier included in the second session key indication data and further retrieves the second session key from said second session key indication data based on the second secret.
- With these steps it is possible, to change the shared secret for generating or defining a session key without having to change anything in the secure hardware device Therefore, even if the secure hardware device is in the possession of the user, the shared secret can be changed in a secure manner.
- Further, it is possible that in step e)
-
- the first application encrypts the generated first session key with the secret of the first secret set and transmits the identifier of the first secret set together with the encrypted first session key as said first session key indication data to said hardware device, and
- the secure hardware device decrypts the encrypted first session key using the retrieved first secret.
- It is further possible, that in step h)
-
- the second application encrypts the generated second session key with the secret of the second secret set and transmits the identifier of the second secret set together with the encrypted second session key as said second session key indication data to said hardware device, and
- the secure hardware device decrypts the encrypted second session key using the retrieved second secret.
- Due to the encryption of the session key to be transmitted, it can be ensured that the session key is shared in a secure manner, even if the transmission is carried out in an insecure environment.
- In a preferred embodiment in step a) the group of secret sets is defined by encrypting each of a group of identifiers by a master key using a symmetrical encryption method, and in step b) the master key is stored and the symmetrical encryption method is implemented in the secure hardware device. With these steps it is possible to minimize the processing power compared with an asymmetric encryption/decryption method. Further the storage requirements in the secure hardware device are minimized, since for storing the group of secret sets in the secure hardware device only the master key is to be stored and the encryption method is to be implemented and, for example, no table including all secret sets has to be stored in the secure hardware device.
- In step b) the group of secrets can be stored in a dynamically manner such that the secure hardware device can compute the secret based on the identifier included in the session key indication data. An example for such a dynamically manner is the use of an encryption/decryption method, which can be realized as a symmetrical or asymmetrical method.
- Further, it is possible to use and implement a pseudo random generator, which generates a series of random values which are no predictable, if one knows at least one random value of the series In other words, it is not possible to derive any random value of the series from a known value of the series. However, the series of random values depends on the starting conditions and is always the same for one specific starting condition. Therefore, the starting conditions of the pseudo random generator for defining the group of secrets in step a) are also used as starting conditions for the pseudo random generator implemented in the secure hardware device (both pseudo random generators for steps a) and e) correspond each other in function), so that the identifier, for example, can be used as indicator for the xth random number of the series (for example the first, second, third, random number).
- It is further possible to realize the dynamically stored group of the secrets by a hash function implemented in the secure hardware device and a master key stored in the secure hardware device. The secrets of the group of secrets are defined in step a) by using the same hash function and the same master key and the corresponding identifiers, so that the secret of specific secret set can be derived in the secure hardware device by carrying out the hash function with the transmitted identifier and the stored master key.
- Of course, it is possible to store the group of secret sets in the secure hardware device in a static manner, for example as look-up table In this case, the secure hardware device only reads out the entry in the look-up table which is stored for the transmitted identifier. Therefore, the method can be Implemented even in secure hardware devices having weak processing power.
- The second application delivered in step g) can be an update for the first application running on the computer. Further, it is possible that a second application delivered in step g) is a separate application.
- The secret sets can be assigned to different levels and once a secure hardware device has retrieved a secret based on an identifier of a secret set of a first level the secure hardware device does not accept secrets based on identifiers of secret sets of a level lower than the first level. If the secure hardware device does not accept a secret, the secure hardware device does not use the secret for retrieving a session key so that sharing a session key for a secure communication was not successful.
- Further, the secret sets can be assigned to different levels and in the secure hardware device, which is in the possession of the user, a first level can be set so that the secure hardware device only accepts secrets based on identifiers of secret sets of a level. higher than the said first level
- In the method the first application can generate a random value as the session key. Further, also the second application can generate a random value as a session key. The random value can be a string, a figure, or any other value which can be computed.
- In a further embodiment of the method an authentication procedure for the application communicating with the secure hardware device can be implemented. For authentication the secure hardware device generates an authentication value and transmits the authentication value to the first or second application, the first or second application encrypts the received authentication value with the secret of the first or second secret set, respectively, and transmits the encrypted authentication value to the secure hardware device, which decrypts the encrypted authentication value with the first or second secret, respectively, and compares the decrypted authentication value with the generated authentication value and, only if those authentication values are identical, the secure hardware device uses the session key for encrypting and decrypting By these steps it can be ensured that the secure hardware device is really communicating with the first or second application, respectively.
- The authentication value can be a random value generated by the secure hardware device.
- Preferably, the group of secret sets is defined in step a) such that it is impossible to derive a secret if only the identifier of the secret set is known.
- Further, the secure hardware device can be used to avoid unauthorized use of the first and second application, respectively.
- In another preferred aspect, the present invention is directed to .a method of establishing a secure communication channel in a renewable manner between a secure hardware device connected to a computer and said computer,
- wherein a group of secret sets including at least two secret sets, each of which includes a secret and an assigned identifier, is stored in the secure hardware device in such a manner that the secure hardware device can retrieve the secret of any of said secret sets from the assigned identifier, and
- a first one of said secret sets is stored in a first application running on said computer, said method comprising the steps of:
- A) said first application defining a first session key and generating first session key indication data based on the first secret sets, said first session key indication data including the identifier of the first secret set as the only element from the first secret set, and transmitting said first session key indication data to the secure hardware device,
- B) said secure hardware device retrieving, as a first secret, the secret of the first secret set based on the identifier included in the first session key indication data and further retrieving the first session key from said first session key indication data based on the first secret, so that for the secure communication channel the first session key for encrypting and decrypting of data to be transmitted through the channel is shared, wherein, for renewing the secure communication channel,
- C) a second application with a second one of said secret sets is executed on the computer connected to the secure hardware device,
- D) said second application defining a second session key and generating a second session key indication data based on the second secret set, said second session key indication data including the identifier of the second secret set as the only element from the second secret set, and said second session key indication data is transmitted to the secure hardware device,
- E) said secure hardware device retrieves, as a second secret, the secret of the second secret set based on the identifier included in the second session key indication data and further retrieves the second session key from said second session key indication data based on the second secret, so that for the secure communication channel the second session key for encrypting and decrypting of data to be transmitted through the channel is shared.
- By this method it is possible to renew the shared secret between the application and the secure hardware device which is needed to share the session key in a secure manner.
- In step B) it is possible that the first application encrypts the generated first session key with said first secret and transmits the identifier of the first secret set together with the encrypted first session key as said first session key indication data to said hardware device through an insecure environment, and that the secure hardware device decrypts the encrypted first session key using the retrieved first secret
- Further, it is possible that in step D) the second application encrypts the generated second session key with the secret of the second secret set and transmits the identifier of the second secret set together with the encrypted second session key as said second session key indication data to said secure hardware device through an insecure environment, and that the secure hardware device decrypts the encrypted second session key using the retrieved second secret.
- Further, the group of secret sets can be defined by encrypting each of a group of identifiers with a master key using a symmetrical encryption method and the master key is stored and the symmetrical encryption method is implemented in the secure hardware device.
- The second application of step C) can be an update for the first application or can be a separate application.
- The secret sets can be assigned to different levels and once the secure hardware device has retrieved a secret based on an identifier of a secret set of a first level the secure hardware device does not accept secrets based on identifiers of secret sets of a level lower than the first level
- The secret sets can be assigned to different levels and in the secure hardware device, which is in the possession of the user, a first level can be set so that the secure hardware device only accepts secrets based on identifiers of secret sets of the level higher than the said first level
- As the session key defined in step A) or D) a random value can be used.
- In the method there can be further steps for authentication of the first and second application, respectively.
- For example, the authentication procedure for the application communicating with the secure hardware device can be implemented as follows: The secure hardware device generates an authentication value and transmits the authentication value to the first or second application, the first or second application encrypts the received authentication value with the secret of the first or second secret set, respectively, and transmits the encrypted authentication value to the secure hardware device, which decrypts the encrypted authentication value with the first or second secret, respectively, and compares the decrypted authentication value with the generated authentication value and, only if both authentication values are identical, the secure hardware device uses the session key for encrypting and decrypting. By these steps it can be ensured that the secure hardware device is really communicating with the first or second application, respectively
- The authentication value can be a random value generated by the secure hardware device.
- The group of secret sets is preferably defined such that it is impossible to derive a secret from a secret set if only the identifier of the secret set is known.
- The secure hardware device is preferably used to avoid unauthorized use of the first and second application, respectively.
- In the above described methods it is possible that the secret itself retrieved by the secure hardware device based on the identifier included in the session key indication data is used as session key. In this case the step of retrieving the secret and the step of retrieving the session key from the session key indication data are in fact one single step
- In a further aspect, the present invention is directed to an apparatus for changing a shared secret for generating a session key for secure communication between a secure hardware device connected to a computer and said computer, said apparatus comprising a key generator which generates a group of secret sets including at least two secret sets, each of which includes a secret and an assigned identifier, stores the group of secret sets in the secure hardware device in such a manner that the secure hardware device can retrieve the secret of any of said secret sets from the assigned identifier, and selects a first one of said secret sets and stores said selected first secret set in a first application, wherein the first application which includes the first secret set is delivered to a user who executes the first application on a computer being connected to the secure hardware device, wherein, in order to define and share a session key for secure communication, the first application defines a first session key and generates first session key indication data based on the first secret set, said first session key indication data including the identifier of the first secret set as the only element from the first secret set, and transmits said first session key indication data to the secure hardware device, which can retrieve, as a first secret, the secret of the first secret set based on the identifier include in the first session key indication data, and can further retrieve the first session key from said first session key indication data based on the first secret, and wherein the key generator selects a second one of said secret sets and stores said selected second secret set in a second application, which is delivered to said user executing the second application on a computer connected to the secure hardware device, wherein, in order to define and share a session key for secure communication, the second application defines a second session key and generates second session key indication data based on the second secret set, said second session key indication data including the identifier of the second secret set as the only element from the second secret set, and transmits said second session key indication data to the secure hardware device, which can retrieve, as a second secret, the secret of the second secret set based on the identifier Included in the second secret set indication data and can further retrieve the second session key from said second session key indication data based on the second secret
- In preferred embodiments the apparatus can be further embodied such that the above described methods as well as the further embodiments of the methods can be realized.
- It is understood that the features mentioned above and those yet to be explained below can be used not only in the respective combinations indicated, but also in other combinations or in isolation, without leaving the context of the present invention.
- The present invention may be better understood in conjunction with the following Figures:
-
FIG. 1 schematically illustrates a system for secure communication through an insecure communication channel. -
FIG. 2 is a flowchart explaining steps of a method for secure communication. -
FIG. 3 is a flowchart explaining further steps of the method for secure communication. -
FIG. 4 is a flowchart of another embodiment of the method for secure communication. -
FIG. 5 is a flowchart of further steps of the further embodiment described inFIG. 4 -
FIG. 6 is a flowchart describing an authentication procedure. -
FIG. 7 is a flowchart describing another preferred embodiment of secure communication. -
FIG. 8 schematically illustrates a computer for carrying out steps of the method according to the preferred embodiments. -
FIG. 1 schematically illustrates a system for secure communication in an untrusted and insecure environment. The system comprises acomputer 1 connected to asecure hardware device 2. On the computer 1 asoftware application 3 is running which is communicating with thesecure hardware device 2 through aninsecure communication channel 4. Thecommunication channel 4 is insecure since thesecure hardware device 2 as well as thecomputer 1 are in the possession of a user and thehardware device 2 is connected to thecomputer 1 via acommon interface 5, e.g a USB port. Therefore, the user can eavesdrop on the communication between thehardware device 2 and theapplication 3. - In this embodiment, the
secure hardware device 2 is used to avoid unauthorized use of thesoftware application 3 and uses a symmetric encryption algorithm for communicating through theinsecure channel 4. Thesecure hardware device 2 has a hardware-based encryption engine. During the runtime of the protectedapplication 3 thesecure hardware device 2 receives encrypted strings or data from the protectedapplication 3. The encrypted strings or data are encrypted with a session key defined by thefirst software application 3 using the same symmetric encryption algorithm as implemented in thesecure hardware device 2. Thesecure hardware device 2 decrypts the received encrypted strings or data and uses the decrypted strings or data to check whether or not the user is authorized to use the application 3 (or parts thereof). The necessary authorization is transmitted from thesecure hardware device 2 to theapplication 3 in encrypted form using the session key. - Secure communication can be provided using the session key for encrypting and decrypting data to be transmitted through the
insecure communication channel 4 However, the session key used for encryption has to be shared in a secure manner. - In order to be able to share the session key in a secure manner through the
insecure communication channel 4 the software publisher or vendor of thesoftware application 3 carries out the following steps (FIG. 2 ) before delivering theapplication 3 and thesecure hardware device 2 to the user, who will use thefirst software application 3 and thesecure hardware device 2 in the manner illustrated inFIG. 1 . - As shown in the flow chart of
FIG. 2 a group of secret sets including at least two secret sets (in this embodiment three secret sets), each of which includes a secret and an assigned identifier, is defined. This is done by selecting a symmetric cryptographic algorithm (ENC(,), ENG−1(,)) by selecting a master key MK and by defining a set of identifiers I1, I2, I3. - With the cryptographic algorithm it is possible to generate encrypted data (ENC_data) encrypted with a selected key (ENC(key,data)=ENC_data). The encrypted data ENC_data can be decrypted by the reverse operation ENG− (key,ENC_data)=data. Using the master key MK as key and the identifiers I1, I2, I3 as data it is possible to generate secrets K1, K2, K3 (encrypted identifiers II, I2, I3, e.g. ENC(MK,I1)=ENC_I1=K1). In this manner it is possible to generate three secret sets, namely (K1, I1), (K2, I2) and (K3, I3).
- In the following step S2 the master key MK is stored in the secure hardware device and the symmetric cryptographic algorithm (ENC(,), ENC−1(,)) is implemented in the secure hardware device. The
hardware device 2 is considered to be secure since the master key MK is stored in thehardware device 2 in a place which is secure and is inaccessible for a cracker. - In step S3 a first one of the secret sets is selected (here the secret set including the first secret K1 and the first identifier I1) and is stored In the
first application 3 Further, the symmetric cryptographic algorithm is implemented in thesoftware application 3 - Then, the thus protected
software application 3 and thesecure hardware device 2 are delivered to the user (step S4) who will connect thesecure hardware device 2 with thecomputer 1 on which he will execute thesoftware application 3. - When the user starts the
software application 3 for execution, it will be first checked whether or not the user is authorized to use thesoftware application 3. This check requires communication between thesoftware application 3 and thesecure hardware device 2 through theinsecure communication channel 4. In order to protect this communication against eavesdropping the communication will be encrypted with a session key in the following manner - The
application 3 generates a random value R (step S5 inFIG. 3 ) - The
application 3 encrypts the generated random value R using the first secret K1 stored in theapplication 3 so that an encrypt random value ENC_R is obtained (step S6). - The application transmits the encrypt random value ENC_R together with the identifier I1 as session key indication data to the
secure hardware device 2 through the insecure communication channel 4 (step S7). - The
secure hardware device 2 retrieves the first secret K1 used for encrypting the random value R by encrypting the received first identifier I1 with the master key MK stored in the secure hardware device 2 (step S8). - Using the thus obtained first secret K1 the
secure hardware device 2 decrypts the encrypted random value (ENC−1 (K1, ENC_R)=R; step S9), so that thesecure hardware device 2 knows the random value. - As a result of the steps S5 to S9 the session key (random value R) generated, by the
application 3 is shared with thesecure hardware device 2. Even if an eavesdropper has recorded the transmitted first identifier I1 and the encrypted random ENC_R the eavesdropper cannot retrieve the random value R used as the session key. Therefore, using the session key R for decrypting and encrypting the data to be transmitted to the insecure channel leads to secure communication through theinsecure communication channel 4 between thesecure hardware device 2 and theapplication 3. - Of course, it is possible to limit the validity of the session key with respect to time, transmitted data volume, and so on. In this case, a new session key (new random value) can be generated and shared by carrying out the above described steps S5 to S9.
- In the above described embodiment the first secret K1 stored in the
application 3 is always needed to share the session key generated by theapplication 3 with thesecure hardware device 2 in a secure manner. Since theapplication 3 is in the possession of the user and a first secret K1 cannot be stored in an absolutely secure manner in theapplication 3 it has to be assumed that the secrecy of the secret K1 is limited in time. If, however, secrecy has been compromised by a cracker the encrypted communication through theinsecure communication channel 4 is no longer secure. - In this case it is possible to update the
application 3 such that the updatedapplication 3′ includes a second one of the secret sets of the group of secret sets defined in step S1, e g second secret K2 and second identifier I2. In order to update theapplication 3 and include the second secret set, the vendor or software publisher only needs to generate the updatedapplication 3′ (step S10 inFIG. 4 ), to select a second one of the secret sets defined in step S1, e.g. K2 and I2 (step S11 inFIG. 4 ), store the selected second secret set in the updated application and implement the defined cryptographic algorithm in the updatedapplication 3′ (step S12) and deliver the updatedapplication 3′ to the user (step S13). It is not necessary to carry out any amendments in thesecure hardware device 2 which is already in the possession of the user. An update of thesecure hardware device 2 would lead to a more complicated update procedure compared to a simple update of theapplication 3. - In order to update the
application 3 it is also possible to generate a software update module (instead of a complete updatedsoftware 3′) in which software update module the selected secret set is stored in step S12. In this case the software update module including the second secret set is delivered to the user in step S13 and the software update module, when executed, generates together with the already installedapplication 3 the updatedsoftware application 3′. - Further, it is also possible to use step S10 to generate another software application which is not related to the
software application 3 Thus, it is possible to use thesecure hardware device 2 which is already in the possession of the user, for secure communication between the other software application and thesecure hardware device 2 based on the second secret set without having to carry out any amendment in thesecure hardware device 2. - If the updated
application 3′ is started (cf.FIG. 5 ) and random value R′ is generated (step 14) basically the same steps as described in connection withFIG. 3 are carried out. However, instead of using the first secret K1 for encrypting the random value R′, the random value R′ is encrypted with the second secret K2 (cf. step S15 in the flow chart ofFIG. 5 ). Further, the encrypted random value ENC-R′ is transmitted together with the second identifier I2 to thesecure hardware device 2 in step S16. Thesecure hardware device 2 retrieves the second secret K2 using the second identifier I2 (step S17) and obtains the random value R′ by decrypting the encrypted random value ENC_R′ using the second secret K2 (step S18). - Since the cracker only knows the first secret S1 and it is not possible to derive the second secret S2 from the first secret Si the cracker does not benefit from cracking the
application 3 for the updatedapplication 3′ so that the cracker is forced to crack also the updatedapplication 3′ - It is further possible to include steps in which the application or updated application authenticates itself for the secure hardware device. Such steps can be carried out after step S9 in
FIG. 3 or step S18 inFIG. 5 . In order to authenticate thesecure hardware device 2 generates a random value RS (step 519 inFIG. 6 ) and transmits the random value RS to the application (step S20). The application generates an encrypted random value ENC_RS by encrypting the random value RS with the corresponding secret K1, K2, respectively, stored in the application and transmits the encrypted random value ENC_RS to the secure hardware device 2 (step S21). Thesecure hardware device 2 decrypts the encrypted random value ENC_RS with the retrieved secret K1, K2, respectively, of step S8 or S17 and compares the decrypted random value with the random value RS generated (step S22). If both values are identical, it can be assumed that the application really includes the first or second secret K1, K2, respectively, and is communicating with thesecure hardware device 2 because only if it includes said secret K1 or K2 is the application able to correctly encrypt a value (random value RS) which cannot be influenced by the application. - In a further embodiment the secret sets are assigned to different levels and the secret sets are selected in the steps S3 and S10 in the order of the levels, i.e. the lowest level is selected first and the next level is selected in the next selection In the
secure hardware device 2 it is implemented (for example in step S2) that before retrieving a secret it is checked whether the secure hardware device has already retrieved a secret based on an identifier of a secret set of a level higher than the level of the identifier received. If this is true, thesecure hardware device 2 stops the communication. If this is not true, the steps S8, S9; S17, S18 are carried out. Thus, it is possible to declare secret sets of levels invalid which are lower than the highest level of already used identifiers, by only using an application with secret sets of a certain level. - In a further embodiment a level can be set in the secure hardware device in a secure procedure In this case, the secure hardware device only accepts secrets based on identifiers of secret sets of a level higher than the set level.
- In another preferred embodiment the vendor or software publisher generates the group of secret sets such that at least two secret sets exist, namely a first secret K1 together with the assigned first identifier I1 and the second secret K2 together with the assigned second identifier I2 and selects a symmetric cryptographic algorithm (step S23 in
FIG. 7 ). - In a next step (S24) both secret sets, i e. the secrets K1 and K2 and the identifiers I1, I2, are stored in the
secure hardware device 2, e g in the form of a table, and the selected symmetric cryptographic algorithm is implemented in thesecure hardware device 2. - Then, a first one of the secret sets is selected, e.g. K1 and I1. This selected first secret set is stored in the application (step S25). The protected application and the
secure hardware device 2 are delivered to the user (step S26). - When the user starts the application the application transmits the first identifier I1 as session key indication data to the secure hardware device (S26). The
secure hardware device 2 compares the received identifier I1 with the stored identifiers and retrieves the first secret K1 as session key (S28). Then, the first secret K1 is used as shared session key for encrypting and decrypting data to be transmitted through theinsecure channel 4. - Of course, it is also possible that the application generates a random value R, encrypts the random value and transmits the encrypted random value together with the first identifier I1 to the
secure hardware device 2. The secure hardware device retrieves the first secret K1 by comparing the received first identifier I1 with the identifiers stored in the hardware device and uses the retrieved first secret for decrypting the encrypted random value which can then be used as the shared session key - The above described embodiments can be combined in any suitable manner. In particular any steps described above can be combined in any suitable manner.
- The steps S1-S3 and S10-S12 of methods of the preferred embodiments as described above can be carried out on a
single computer 6 as schematically shown inFIG. 8 , for example. - Although it is mentioned in the above description that a cryptographic algorithm is implemented in the secure hardware device (cf. steps S2 and S24) it is of course possible to use a
secure hardware device 2 which already provides the desired cryptographic algorithm so that implementation of a cryptographic algorithm need not to be carried out (in step S2 and S24) - Those skilled in the art will appreciate that the invention can be embodied in other forms and ways without departing from the scope of the invention. The embodiments described herein should be considered as illustrative and not restrictive.
Claims (17)
1. A method for secure communication between a secure hardware device connected to a computer and said computer, said method comprising:
defining a group of secret sets including at least two secret sets, each of which includes a secret and a corresponding assigned identifier,
storing the group of secret sets in a secure hardware device,
storing a first one of said secret sets in a first application, and
executing the first application on a computer connected to the secure hardware device,
determining a first session key, and encrypting the first session key using the secret from the first secret set stored in the first application to form an encrypted first session key,
generating first session key indication data including the encrypted first session key and the identifier of the first secret, and
transmitting said first session key indication data from the computer to the secure hardware device,
obtaining from the first session key indication data the encrypted first session key and the identifier of the first secret,
retrieving the first secret using the obtained identifier,
decrypting the encrypted first session key using the retrieved first secret, and
using the first session key for encrypting and decrypting data transmitted between the secure hardware device and the computer.
2. The method of claim 1 , comprising the steps of:
storing a second one of said secret sets in a second application,
executing the second application on a computer connected to the secure hardware device,
determining a second session key and encrypting the second session key using the secret from the second secret set stored in the second application to form an encrypted second session key.
generating second session key indication data including the encrypted second session key and the identifier of the second secret,
transmitting said second session key indication data from the computer to the secure hardware device,
obtaining from the second session key indication data the encrypted second session key and the identifier of the second secret;
retrieving the second secret using the obtained identifier,
decrypting the encrypted second session key using the retrieved second secret, and
using the second session key for encrypting and decrypting data transmitted between the secure hardware device and the computer.
3. The method of claim 1 , wherein the first application performs the steps of determining and encrypting the first session key and generating the first session key indication data, and
the secure hardware device performs the steps of obtaining from the first session key indication data the encrypted first session key and the identifier of the first secret, retrieving the first secret using the identifier, and decrypting the encrypted first session key using the retrieved first secret.
4. The method of claim 2 , wherein the second application performs the steps of determining and encrypting the second session key and generating the second session key indication data, and
the secure hardware device performs the steps of obtaining from the second session key indication data the encrypted second session key and the identifier of the second secret, retrieving the second secret using the identifier, and decrypting the encrypted second session key using the retrieved second secret.
5. The method of claim 1 , wherein
the group of secret sets is defined by encrypting each of a group of identifiers with a master key using a symmetrical encryption method, and
the master key is stored, and the symmetrical encryption method is implemented, in the secure hardware device.
6. The method of claim 2 , wherein the second application is an update for the first application.
7. The method of claim 1 , wherein the secret sets are assigned to different levels., and once the secure hardware device has retrieved the first secret using the obtained identifier the secure hardware device does not accept secrets based on identifiers of secret sets of a level lower than that of the first secret set.
8. The method of claim 1 , wherein the secret sets arc assigned to different levels and the secure hardware device only accepts secrets of secret sets of a level higher than a set first level.
9. The method of claim 1 , wherein the first application generates said first session key based on a first random value.
10. The method of claim 2 , wherein the second application generates said second session key based on a second random value.
11. The method of claim 1 , wherein
the secure hardware device transmits an authentication value to the first application,
the first application encrypts the authentication value using the secret of said first secret set and transmits the encrypted authentication value to the secure hardware device,
the secure hardware device decrypts the encrypted authentication value using the retrieved secret of the first secret set and compares the decrypted authentication value with the generated authentication value and, only if both authentication values are identical, the secure hardware device uses the first session key for encrypting and decrypting.
12. The method of claim 2 , wherein the secure hardware device generates a second authentication value and transmits said second authentication value to the second application,
the second application encrypts the received second authentication value with the secret of the second secret set and transmits the encrypted second authentication value to the secure hardware device,
the secure hardware device decrypts the encrypted second authentication value with the retrieved secret of the second secret set and compares the decrypted second authentication value with the generated second authentication value and, only if both authentication values are identical, the secure hardware device uses the second session key for encrypting and decrypting.
13. The method of claim 1 , wherein the group of secret sets is defined such that it is impossible to derive a secret from a secret set if only the identifier of said secret set is known.
14. The method of claim 1 , wherein the secure hardware device is used to prevent unauthorized use of said first application.
15. A method of establishing a secure communication channel in a renewable manner between a secure hardware device connected to a computer and said computer, wherein a group of secret sets including at least two secret sets, each of which includes a secret and a corresponding assigned identifier, is stored in the secure hardware device, and a first one of said secret sets is stored in a first application running on said computer, said method comprising:
said first application determining a first session key, and encrypting the first session key using the secret from the first secret set stored in the first application to form an encrypted first session key, generating first session key indication data including the encrypted first session key and the identifier of the first secret, and transmitting said first session key indication data to the secure hardware device, and
said secure hardware device obtaining from the first session key indication data the encrypted first session key and the identifier of the first secret, retrieving the first secret using the obtained identifier, decrypting the encrypted first session key using the retrieved first secret, and
using the first session key for encrypting and decrypting data transmitted between the secure hardware device and the computer,
wherein, for renewing the session key,
a second application with a second one of said secret sets is executed on a computer connected to the secure hardware device,
said second application determining a second session key and encrypting the second session key using the secret from the second secret set stored in the second application to form an encrypted second session key,
generating second session key indication data including the encrypted second session key and the identifier of the second secret, and
transmitting said second session key indication data to the secure hardware device,
said secure hardware device obtaining from the second session key indication data the encrypted second session key and the identifier of the second secret;
retrieving the second secret using the obtained identifier,
decrypting the encrypted second session key using the retrieved second secret, and
using the second session key for encrypting and decrypting data transmitted between the secure hardware device and the computer.
16. An apparatus for changing a session key for secure communication between a secure hardware device connected to a computer and said computer, said apparatus comprising:
a key generator which generates a group of secret sets including at least two secret sets, each of which includes a secret and a corresponding assigned identifier,
a processor which stores the group of secret sets in the secure hardware device, and
a selector which stores a first one of said secret sets in a first application,
wherein the first application which includes the first secret set executes on a computer connected to the secure hardware device, and determines a first session key, encrypts the first session key using the secret from the first secret set stored in the first application to form an encrypted first session key, and generates first session key indication data including the encrypted first session key and the identifier of said first secret and transmits said first session key indication data to the secure hardware device, and
wherein the secure hardware device obtains from the first session key indication data the encrypted first session key and the identifier of the first secret, retrieves the first secret using the obtained identifier, and decrypts the encrypted first session key using the retrieved secret,
wherein the first session key is used for encrypting and decrypting data transmitted between the secure hardware device and the computer,
and wherein the selector stores a second one of said secret sets in a second application, which is executed on a computer connected to the secure hardware device,
wherein the second application determines a second session key, encrypts the second session key using the secret from the second secret set stored in the second application to form an encrypted second session key, and generates second session key indication data including the encrypted second session key and the identifier of the second secret, and transmits said second session key indication data to the secure hardware device, which obtains from the second session key indication data the encrypted second session key and the identifier of the second secret, retrieves the second secret using the obtained identifier, decrypts the encrypted second session key using the retrieved second secret, and uses the second session key for encrypting and decrypting data transmitted between the secure hardware device and the computer.
17. The method of claim 1 , further comprising:
determining a new session key, and encrypting the new session key using the secret from the first secret set stored in the first application to form an encrypted new session key,
generating new session key indication data including the encrypted new session key and the identifier of the first secret, and
transmitting said new session key indication data from the computer to the secure hardware device,
obtaining from the new session key indication data the encrypted new session key and the identifier of the first secret,
retrieving the first secret using the obtained identifier,
decrypting the encrypted new session key using the retrieved first secret, and
using the new session key for encrypting and decrypting data transmitted between the secure hardware device and the computer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US12/902,869 US20110029774A1 (en) | 2007-03-13 | 2010-10-12 | Secure communication between a hardware device and a computer |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US11/685,223 US7831051B2 (en) | 2007-03-13 | 2007-03-13 | Secure communication between a hardware device and a computer |
| US12/902,869 US20110029774A1 (en) | 2007-03-13 | 2010-10-12 | Secure communication between a hardware device and a computer |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US11/685,223 Continuation US7831051B2 (en) | 2007-03-13 | 2007-03-13 | Secure communication between a hardware device and a computer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| US20110029774A1 true US20110029774A1 (en) | 2011-02-03 |
Family
ID=39762711
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US11/685,223 Active 2029-04-15 US7831051B2 (en) | 2007-03-13 | 2007-03-13 | Secure communication between a hardware device and a computer |
| US12/902,869 Abandoned US20110029774A1 (en) | 2007-03-13 | 2010-10-12 | Secure communication between a hardware device and a computer |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US11/685,223 Active 2029-04-15 US7831051B2 (en) | 2007-03-13 | 2007-03-13 | Secure communication between a hardware device and a computer |
Country Status (1)
| Country | Link |
|---|---|
| US (2) | US7831051B2 (en) |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120204232A1 (en) * | 2011-02-08 | 2012-08-09 | Ratiner Michael | System And Method For Managing Usage Rights Of Software Applications |
| US20150058927A1 (en) * | 2013-08-23 | 2015-02-26 | Oracle International Corporation | Second screen mediation |
| US20150334096A1 (en) * | 2012-11-16 | 2015-11-19 | Siemens Aktiengesellschaft | Method and arrangement for secure communication between network units in a communication network |
| US11082374B1 (en) * | 2020-08-29 | 2021-08-03 | Citrix Systems, Inc. | Identity leak prevention |
| US20210243233A1 (en) * | 2020-02-03 | 2021-08-05 | Citrix Systems, Inc. | Method and sytem for protecting privacy of users in session recordings |
| US11165755B1 (en) | 2020-08-27 | 2021-11-02 | Citrix Systems, Inc. | Privacy protection during video conferencing screen share |
| US11201889B2 (en) | 2019-03-29 | 2021-12-14 | Citrix Systems, Inc. | Security device selection based on secure content detection |
| US20220009444A9 (en) * | 2012-07-17 | 2022-01-13 | Texas Instruments Incorporated | Certificate-based pairing of key fob device and control unit |
| US11361113B2 (en) | 2020-03-26 | 2022-06-14 | Citrix Systems, Inc. | System for prevention of image capture of sensitive information and related techniques |
| US11450069B2 (en) | 2018-11-09 | 2022-09-20 | Citrix Systems, Inc. | Systems and methods for a SaaS lens to view obfuscated content |
| US11539709B2 (en) | 2019-12-23 | 2022-12-27 | Citrix Systems, Inc. | Restricted access to sensitive content |
| US11544415B2 (en) | 2019-12-17 | 2023-01-03 | Citrix Systems, Inc. | Context-aware obfuscation and unobfuscation of sensitive content |
Families Citing this family (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5116325B2 (en) * | 2007-03-15 | 2013-01-09 | 株式会社リコー | Information processing apparatus, software update method, and image processing apparatus |
| DE102007000589B9 (en) * | 2007-10-29 | 2010-01-28 | Bundesdruckerei Gmbh | Method for protecting a chip card against unauthorized use, chip card and chip card terminal |
| DE102009024604B4 (en) * | 2009-06-10 | 2011-05-05 | Infineon Technologies Ag | Generation of a session key for authentication and secure data transmission |
| US10298684B2 (en) | 2011-04-01 | 2019-05-21 | International Business Machines Corporation | Adaptive replication of dispersed data to improve data access performance |
| US11418580B2 (en) | 2011-04-01 | 2022-08-16 | Pure Storage, Inc. | Selective generation of secure signatures in a distributed storage network |
| US8949688B2 (en) * | 2011-04-01 | 2015-02-03 | Cleversafe, Inc. | Updating error recovery information in a dispersed storage network |
| NZ711320A (en) * | 2012-02-13 | 2016-03-31 | Xceedid Corp | Credential management system |
| ES2765892T3 (en) * | 2013-06-26 | 2020-06-11 | Nokia Technologies Oy | Methods and devices for generating passwords in device-to-device communications |
| EP2913955A1 (en) * | 2014-02-28 | 2015-09-02 | Gemalto SA | Method to authenticate two devices to establish a secure channel |
| US9485091B2 (en) * | 2014-05-01 | 2016-11-01 | International Business Machines Corporation | Dual-party session key derivation |
| WO2017030621A1 (en) * | 2015-05-27 | 2017-02-23 | Rubicon Labs, Inc. | Distributed and hierarchical device activation mechanisms |
| CN110176987B (en) * | 2016-02-02 | 2022-08-09 | 斑马智行网络(香港)有限公司 | Method, device, equipment and computer storage medium for equipment authentication |
| CN108933761A (en) * | 2017-05-25 | 2018-12-04 | 深圳市鑫科蓝电子科技有限公司 | A kind of the control flow encryption method and system of Intelligent hardware product |
| EP3506552A1 (en) * | 2017-12-29 | 2019-07-03 | Nagravision S.A. | Secure installation of application keys |
| US11088829B2 (en) | 2018-09-04 | 2021-08-10 | International Business Machines Corporation | Securing a path at a node |
| US11038698B2 (en) | 2018-09-04 | 2021-06-15 | International Business Machines Corporation | Securing a path at a selected node |
| US11991273B2 (en) * | 2018-09-04 | 2024-05-21 | International Business Machines Corporation | Storage device key management for encrypted host data |
| CN111404950B (en) * | 2020-03-23 | 2021-12-10 | 腾讯科技(深圳)有限公司 | Information sharing method and device based on block chain network and related equipment |
| CN114153854B (en) * | 2022-02-09 | 2022-05-10 | 支付宝(杭州)信息技术有限公司 | A method and system for obtaining multi-key grouping information based on secret sharing |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030236987A1 (en) * | 2002-06-25 | 2003-12-25 | Griffin Daniel C. | Base cryptographic service provider (CSP) methods and apparatuses |
| US20040039924A1 (en) * | 2001-04-09 | 2004-02-26 | Baldwin Robert W. | System and method for security of computing devices |
| US20040101141A1 (en) * | 2002-11-27 | 2004-05-27 | Jukka Alve | System and method for securely installing a cryptographic system on a secure device |
| US20050182934A1 (en) * | 2004-01-28 | 2005-08-18 | Laszlo Elteto | Method and apparatus for providing secure communications between a computer and a smart card chip |
| US20060259974A1 (en) * | 2005-05-16 | 2006-11-16 | Microsoft Corporation | System and method of opportunistically protecting a computer from malware |
| US20080008316A1 (en) * | 2006-07-05 | 2008-01-10 | Bea Systems, Inc. | System and Method for Enterprise Security Including Symmetric Key Protection |
| US7688975B2 (en) * | 2001-10-26 | 2010-03-30 | Authenex, Inc. | Method and apparatus for dynamic generation of symmetric encryption keys and exchange of dynamic symmetric key infrastructure |
-
2007
- 2007-03-13 US US11/685,223 patent/US7831051B2/en active Active
-
2010
- 2010-10-12 US US12/902,869 patent/US20110029774A1/en not_active Abandoned
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040039924A1 (en) * | 2001-04-09 | 2004-02-26 | Baldwin Robert W. | System and method for security of computing devices |
| US7688975B2 (en) * | 2001-10-26 | 2010-03-30 | Authenex, Inc. | Method and apparatus for dynamic generation of symmetric encryption keys and exchange of dynamic symmetric key infrastructure |
| US20030236987A1 (en) * | 2002-06-25 | 2003-12-25 | Griffin Daniel C. | Base cryptographic service provider (CSP) methods and apparatuses |
| US7200756B2 (en) * | 2002-06-25 | 2007-04-03 | Microsoft Corporation | Base cryptographic service provider (CSP) methods and apparatuses |
| US20040101141A1 (en) * | 2002-11-27 | 2004-05-27 | Jukka Alve | System and method for securely installing a cryptographic system on a secure device |
| US20050182934A1 (en) * | 2004-01-28 | 2005-08-18 | Laszlo Elteto | Method and apparatus for providing secure communications between a computer and a smart card chip |
| US20060259974A1 (en) * | 2005-05-16 | 2006-11-16 | Microsoft Corporation | System and method of opportunistically protecting a computer from malware |
| US20080008316A1 (en) * | 2006-07-05 | 2008-01-10 | Bea Systems, Inc. | System and Method for Enterprise Security Including Symmetric Key Protection |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8863241B2 (en) * | 2011-02-08 | 2014-10-14 | Michael Ratiner | System and method for managing usage rights of software applications |
| US20120204232A1 (en) * | 2011-02-08 | 2012-08-09 | Ratiner Michael | System And Method For Managing Usage Rights Of Software Applications |
| US20220009444A9 (en) * | 2012-07-17 | 2022-01-13 | Texas Instruments Incorporated | Certificate-based pairing of key fob device and control unit |
| US11909863B2 (en) * | 2012-07-17 | 2024-02-20 | Texas Instruments Incorporated | Certificate-based pairing of key fob device and control unit |
| US20150334096A1 (en) * | 2012-11-16 | 2015-11-19 | Siemens Aktiengesellschaft | Method and arrangement for secure communication between network units in a communication network |
| US9960913B2 (en) * | 2012-11-16 | 2018-05-01 | Siemens Aktiengesellschaft | Method and arrangement for secure communication between network units in a communication network |
| US20150058927A1 (en) * | 2013-08-23 | 2015-02-26 | Oracle International Corporation | Second screen mediation |
| US9148425B2 (en) * | 2013-08-23 | 2015-09-29 | Oracle International Corporation | Second screen mediation |
| US11450069B2 (en) | 2018-11-09 | 2022-09-20 | Citrix Systems, Inc. | Systems and methods for a SaaS lens to view obfuscated content |
| US11201889B2 (en) | 2019-03-29 | 2021-12-14 | Citrix Systems, Inc. | Security device selection based on secure content detection |
| US11544415B2 (en) | 2019-12-17 | 2023-01-03 | Citrix Systems, Inc. | Context-aware obfuscation and unobfuscation of sensitive content |
| US11539709B2 (en) | 2019-12-23 | 2022-12-27 | Citrix Systems, Inc. | Restricted access to sensitive content |
| US20210243233A1 (en) * | 2020-02-03 | 2021-08-05 | Citrix Systems, Inc. | Method and sytem for protecting privacy of users in session recordings |
| US11582266B2 (en) * | 2020-02-03 | 2023-02-14 | Citrix Systems, Inc. | Method and system for protecting privacy of users in session recordings |
| US11361113B2 (en) | 2020-03-26 | 2022-06-14 | Citrix Systems, Inc. | System for prevention of image capture of sensitive information and related techniques |
| US11165755B1 (en) | 2020-08-27 | 2021-11-02 | Citrix Systems, Inc. | Privacy protection during video conferencing screen share |
| US11627102B2 (en) | 2020-08-29 | 2023-04-11 | Citrix Systems, Inc. | Identity leak prevention |
| US11082374B1 (en) * | 2020-08-29 | 2021-08-03 | Citrix Systems, Inc. | Identity leak prevention |
Also Published As
| Publication number | Publication date |
|---|---|
| US20080226065A1 (en) | 2008-09-18 |
| US7831051B2 (en) | 2010-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7831051B2 (en) | Secure communication between a hardware device and a computer | |
| US10803194B2 (en) | System and a method for management of confidential data | |
| RU2718689C2 (en) | Confidential communication control | |
| US11329835B2 (en) | Apparatus and method for authenticating IoT device based on PUF using white-box cryptography | |
| JP2021083076A (en) | Data transmission method, apparatus and system | |
| US20130251152A1 (en) | Key transport protocol | |
| US20080010242A1 (en) | Device authentication method using broadcast encryption (BE) | |
| US20190268145A1 (en) | Systems and Methods for Authenticating Communications Using a Single Message Exchange and Symmetric Key | |
| US11074332B2 (en) | Methods and systems of securely transferring data | |
| CN103678174A (en) | Data safety method, storage device and data safety system | |
| JP2013207376A (en) | Information processing device and program | |
| US20050033963A1 (en) | Method and system for authentication, data communication, storage and retrieval in a distributed key cryptography system | |
| US11870904B2 (en) | Method for encrypting and decrypting data across domains based on privacy computing | |
| CN118337430A (en) | System, method, device, processor and storage medium for realizing trusted transmission and reverse authorization processing for multiparty interaction data | |
| CN115801232A (en) | Private key protection method, device, equipment and storage medium | |
| KR101262844B1 (en) | Apparatus for relaying remote meter data for controlling network access and method thereof | |
| KR101793528B1 (en) | Certificateless public key encryption system and receiving terminal | |
| CN100566239C (en) | The key transmission method of multi-stage intelligent key apparatus and system | |
| CN114124366A (en) | Key generation method of trusted chip and related equipment | |
| CN114760053B (en) | Distribution method, device, equipment and medium of symmetric key | |
| CN120658499A (en) | Key management method, device, medium and product | |
| CN116680710A (en) | Cipher key authentication method and system | |
| CN117560145A (en) | True random number distribution system and method based on traditional network | |
| CN117708843A (en) | Storage medium and data common encryption method | |
| JP2005217665A (en) | COMMUNICATION SYSTEM, TRANSMISSION DEVICE, RECEPTION DEVICE, AND COMMUNICATION METHOD |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |