US20070076866A1 - Secure interface for versatile key derivation function support - Google Patents

Secure interface for versatile key derivation function support Download PDF

Info

Publication number
US20070076866A1
US20070076866A1 US11/272,151 US27215105A US2007076866A1 US 20070076866 A1 US20070076866 A1 US 20070076866A1 US 27215105 A US27215105 A US 27215105A US 2007076866 A1 US2007076866 A1 US 2007076866A1
Authority
US
United States
Prior art keywords
module
function
sha
key
private key
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.)
Granted
Application number
US11/272,151
Other versions
US8335317B2 (en
Inventor
Scott Vanstone
Robert Gallant
Daniel Brown
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Malikie Innovations Ltd
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US11/272,151 priority Critical patent/US8335317B2/en
Assigned to CERTICOM CORP. reassignment CERTICOM CORP. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BROWN, DANIEL R.L., GALLANT, ROBERT P., VANSTONE, SCOTT A.
Publication of US20070076866A1 publication Critical patent/US20070076866A1/en
Priority to US13/618,451 priority patent/US8634562B2/en
Application granted granted Critical
Publication of US8335317B2 publication Critical patent/US8335317B2/en
Assigned to BLACKBERRY LIMITED reassignment BLACKBERRY LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CERTICOM CORP.
Assigned to MALIKIE INNOVATIONS LIMITED reassignment MALIKIE INNOVATIONS LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BLACKBERRY LIMITED
Assigned to MALIKIE INNOVATIONS LIMITED reassignment MALIKIE INNOVATIONS LIMITED NUNC PRO TUNC ASSIGNMENT (SEE DOCUMENT FOR DETAILS). Assignors: BLACKBERRY LIMITED
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0838Key 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
    • H04L9/0841Key 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 involving Diffie-Hellman or related key agreement protocols

Definitions

  • the invention relates generally to the field of cryptography.
  • the invention relates to providing versatile key derivation function support.
  • DH Diffie-Hellman
  • each party has a respective private key x, y from which a public key ⁇ x , ⁇ y respectively, can be derived.
  • each party can compute a shared secret key ⁇ xy by combining the private and public keys.
  • the function used to derive a public key from a private key is a one way function that makes computation of the public key relatively simple but renders it infeasible to extract the private key from the public key. Such a function is based on the difficulty of factoring large numbers which are the product of two large primes or the discrete log problem over finite fields.
  • DH Diffie-Hellman
  • IPSec Diffie-Hellman
  • VPNs Virtual Private Networks
  • TLS Transport Layer Security
  • Static DH key agreement is a variant of DH key agreement in which one of the private keys is static, which means that it is a long term key to be used multiple times.
  • a private key module which is an implementation that includes the private key operation.
  • modules include measures to prevent extraction of the private key, and to a much more limited extent, abuse of the private key operation.
  • these modules can be implemented in specialized hardware that does not admit the loading of malicious software such as viruses, worms and Trojan horses.
  • anti-tampering measures are expensive to implement. Therefore, to reduce costs, modules are generally designed with a minimum functionality. That way, the least amount of functionality needs anti-tampering protection.
  • a module may be a smart card.
  • the smart card is owned by a user.
  • a destination such as a home computer from some remote computer.
  • the user enters the smart card into a smart card reader attached to the remote computer.
  • a connection is made to the home computer.
  • the home computer authenticates the user by sending a challenge.
  • the remote computer forwards the challenge to the smart card.
  • the smart card signs the challenge, which is then forwarded back to the home computer.
  • the home computer verifies the challenge and then provides the necessary access to the user via the remote computer. This allows the user to move around to different remote computers.
  • the remote computers should not be able to extract the user's private key from the smart card.
  • the smart card may need to perform regular authentication of traffic or even encryption and decryption of all of the traffic.
  • KDF key derivation function
  • the ANSI X9.63 key derivation is computed as follows.
  • the input has three components.
  • the first input component is Z, which is a secret value shared between the private key module and the destination, for example, the home computer in the simple example above. This shared secret value Z is not to be revealed to any gateway, such as the remote computer in the example above.
  • the second input component is an integer key datalen, which is the length in octets of the keying data to be generated.
  • the optional third input component is an octet string SharedInfo, which consists of some data shared by the entities who share the shared secret value Z.
  • SharedInfo can also optionally be given an encoding of the Abstract Syntax Notation One (ASN.1), which includes 5 fields: an algorithm identifier, optional identifiers for each of the two entities, optional public shared information and optional private shared information. Evaluation of the KDF on this input then proceeds as follows.
  • ASN.1 Abstract Syntax Notation One
  • the first steps of the ANSI X9.63 key derivation function are certain consistency checks made on the lengths of the inputs and the desired output length keydatalen. Then a 4-octet integer counter j is initialised with value 1.
  • the octet string is truncated to a shorted octet string K by taking the leftmost keydatalen octets.
  • the output of the ANSI X9.63 KDF is K.
  • the HMAC construction can be built on any hash function.
  • a hash function such as MD5 and SHA-1
  • HMAC-Hash the resulting function is labelled HMAC-Hash, where Hash is the name of the hash function.
  • the TLS PRF uses HMAC-SHA-1 and HMAC-MD5.
  • HMAC-Hash operates as follows.
  • the inputs to HMAC are a secret key K and a message M.
  • the output is a tag T.
  • P_Hash can be iterated as many times as necessary to produce the necessary amount of data As with the ANSI X9.63, the truncation of the final (rightmost) bytes is used when the resulting concatenation of HMAC tags is longer than the amount of data needed.
  • the values S 1 and S 2 are obtained by partitioning the octet string secret Z into two halves, the left half being S 1 and right half S 2 , with the left half being large secret has an odd number of octets.
  • the function P_MD5 will generally use more iterations than P_SHA-1.
  • the TLS PRP is used extensively in the TLS protocol. For example, it is used to derive a master secret from a pre-master secret, and it is also used to derive an encryption key from the master key, and so on.
  • the standard FIPS 140-2 also specifies requirement for private key modules. It explicitly requires that the cryptographic values such as raw DH shared secret values do not depart the security boundary of the private key module, but it does not provide a precise mechanism for key derivation.
  • the inventors have discovered that improper re-use of a static DH private key can ultimately result in recovery of the private key by an adversary, More precisely, when a shared secret established via static DH key agreement is used without application of a key derivation function (KDF), an adversary can launch an attack where multiple different shared keys are established and used, thereby recovering the static DH private key.
  • KDF key derivation function
  • the inventors' recent discovery means that the option of implementing DH without KDF can be a security risk. Supporting a reduced number of KDF's may be too limiting: for example, it may require hardware upgrade just to use a new application standard.
  • the module for performing a DH private key operation must somehow support multiple different KDP standards.
  • One approach is for the module to implement all the KDF algorithms, which can be expensive because the module must support multiple different KDFs and limiting because the module cannot support new KDFs when these arise.
  • the opposite approach is for the module to provide unprotected access to the raw DH private key operation, and let the application using the module apply the KDF. However, this renders the private key vulnerable to the recently discovered attacks.
  • the present invention permits the module to perform parts of the KDF algorithms, as indicated by the application using the module. This saves the module from implementing the entire KDF for each KDF needed. Instead, only re-usable parts are implemented that are common to most KDFs. Furthermore, when new KDFs are required, the module may be able to support them if they are built on the KDF parts that the module has implemented.
  • the module provides an interface flexible enough to support all existing KDFs of interest as well as all foreseeable KDFs. This is done by implementing the common parts of the existing and foreseeable KDFs on a secure private key module, Most KDFs today are built on hash functions. Conveniently, most private key modules need to implement at least a hash function. This is also important for anti-tampering considerations because a hash function is crucial to the security of many algorithms, such as digital signatures.
  • the module can also simply provide access to the compression function of SHA-1.
  • the application can use this compression function to compute SHA-1 just by adding some necessary padding and doing some appropriate chaining. This further simplifies the implementation module and also makes it more flexible. For example, some additional flexibility is that certain ANSI deterministic random number generators use the SHA-1 compression function instead of the whole of the function SHA-1. More generally, random number generation, like key derivation, generally involves a combination of hash function evaluations upon a mixture of secret and non-secret inputs. Therefore the present invention is not just limited to supporting multiple KDFs, it can also support multiple deterministic random number generators.
  • the module could support more atomic operations, such as some of the sub-operations of the SHA-1 compression function.
  • these sub-operations will be re-used for some purpose other than the SHA-1 compression function.
  • these individual sub-operations do not provide the full security of SHA-1, and may therefore expose secrets on the module to the application, which is to be avoided.
  • An exception to this principle are the two pairs of new hash functions: the pair SHA-384 and SHA-512, and the pair SHA-224 and SHA-256. Each of these pairs has much in common and could essentially be implemented with a single common function. The application would process the inputs and outputs only to the common function to obtain the desired hash function.
  • pseudo-random function In the case of the TLS key derivation, known as pseudo-random function (PRF) in TLS terminology, two hash functions are used. One is SHA-1 and the other is MD5. To apply the PRF-TLS to a secret Z, the secret is split into two halves, S 1 and S 2 . Then a PRF based on MD5 is applied to S 1 and a function based on SHA1 is applied to S 2 . To save the module from implementing both MD5 and SHA1, which is potentially costly, the module could instead provide a mechanism to reveal S 1 to the application and keep S 2 within the module. The module could perform the SHA1 calculation on S 2 and the application could perform the MD5 calculation on S 1 .
  • PRF pseudo-random function
  • the interface for the module therefore includes a mechanism whereby the application can request that part of a secret is made public.
  • the module is implemented in a way such that enough of the secret remains secret, and that the application cannot make multiple request for different parts of the secret.
  • a method of computing a cryptographic function involving a shared secret comprises the steps of performing on the first module, at least one operation of the cryptographic function utilizing the shared secret; and providing a result of the at least one operation to an application running on a second module to complete computation of the cryptographic function.
  • a cryptographic apparatus comprising a first module having a shared secret and a processor to perform at least one cryptographic operation using the shared secret and produce a result therefrom; a second module running an application to compute a cryptographic function; and a data connection between the first and second modules to transfer the result from the first module to the second module to enable the second module to complete computation of the cryptographic function using the result.
  • FIG. 1 is a block diagram showing a connection between a user device and a destination secured with a private key module
  • FIG. 2 is a schematic diagram illustrating implementation of a key derivation function in the user device and the private key module shown in FIG. 1 .
  • FIG. 3 is a schematic diagram illustrating a private key module device.
  • FIG. 4 is a flow chart illustrating one example of a key derivation function.
  • FIG. 5 is a flow chart illustrating another example of a key derivation function.
  • connection between a user device 40 and a destination 100 secured with a private key module device 50 is generally not secure and is open.
  • the connection may consist of a link 70 to a public network 80 , such as Internet, and a link 90 from the public network to destination 100 .
  • Either link may be a wired link, wireless link or a combination of both.
  • private key module device 50 is a self-contained device, such as a smart card or token, which may be inserted into some local device, or user device 40 , on which the application runs.
  • the module device S 0 cooperates with the user device 40 when invoked by an application to secure a communication over the link 70 .
  • the private key module device 50 provides a private key functionality to secure the connection between user device 40 and the destination device 100 .
  • private key module device 50 is a custom private key module, it would need some additional protection beyond that of a typical user computer like user device 40 , such as anti-tampering protection.
  • KDF key derivation function
  • user device 40 and private key module device 50 are described as distinct devices here, they may be integrated into a single physical device.
  • private key module device 50 may reside on user device 40 as a special embedded chipset.
  • the user device 40 typically will run multiple applications and perform different functions utilizing a CPU 42 and memory device 44 .
  • the user device 40 includes a communication module 45 to manage the link 70 under direction of a communication application running on the CPU 42 .
  • the communication application implements an established secure protocol, such as one of those discussed above, that requires a private key functionality, such as a KDF.
  • KDF private key functionality
  • FIG. 2 there is shown an exemplary implementation of a security system that has a key derivation function (KDF) implemented partly in an application 10 running on the user device 40 and partly in an application 20 running on a private key module 50 .
  • KDF key derivation function
  • the KDF is divided into two parts.
  • Private key module 50 generates components 24 of the KDF and application 10 uses those components to compute the balance 22 of the KDF.
  • Private key module 20 has a module interface 26 for exchanging data and communicating with application 10 .
  • Module interface 26 further has two interface functions, a first interface function 28 and a second interface function 30 .
  • some secret value such as a Diffie-Hellman shared secret value Z
  • Z some secret value, such as a Diffie-Hellman shared secret value Z
  • the length of Z is made known to application 10 , but the value of Z is not.
  • Application 10 has a handle whereby it can reference the secret Z and thus ask private key module 20 to derive values from Z.
  • the first interface function 28 has input consisting of an integer and the handle of secret Z. This integer defines the number of octets of Z that shall be revealed to application 10 . This is the S 1 value in the TLS PRF.
  • private key module 20 can enforce a minimum number of octets of the secret to be retained as S 2 , so that application 10 does not learn the entire secret. The minimum number is chosen to be appropriate for the intended security level of the application. It may be 10 octets for a security level of 80 bits.
  • the secret may be permanently truncated to S 2 , and private key module 20 will not allow further truncation of S 2 .
  • a handle or pointer for referencing S 2 is provided to application 10 .
  • the handle or pointer referencing Z may be re-used as Z is not used in further computation.
  • private key module 20 can create a new handle that points to just S 2 and output this new handle to application 10 , enabling application 10 to refer to S 2 later on.
  • the value S 1 is always part of the output of first interface function 28 , so that application 10 , i.e., first part 22 of the KDF contained in application 10 , can perform any calculations it needs to on S 1 , such as the MD5 calculations used in the TLS PRF.
  • the second interface function 30 has input consisting of two values X and Y and the handle of the secret Z.
  • the first value is an octet string of length identical to the secret Z.
  • the output of second interface function 30 is: SHA-1(X+Z ⁇ Y).
  • Second interface function 30 is the fundamental cryptographic operation from which both the ANSI X9.63 KDF and the TLS PRF can be built. From the output S 1 of first interface function 28 and the output of second interface function 30 , namely, the hash value of SHA-1, application 10 can complete the KDF computation and derive a key.
  • User device 40 generally has a CPU 42 , memory device 44 accessible to CPU 42 storage media 46 , also accessible to CPU 20 , and some input and output devices (not shown). As will be appreciated, user device 40 may also be some other programmable computation device.
  • Application 10 executes on CPU 42 .
  • Application 10 may be stored on storage media 46 , which may be permanently installed in user device 40 , removable from user device 40 or remotely accessible to user device 40 .
  • Application 10 may also be directly loaded to CPU 42 . Output of the KDF is required for securing the connection from user device 40 to destination 100 .
  • Private key module device 50 generally has a CPU or a microprocessor 52 , memory device 54 accessible to CPU 52 and storage media 56 , also accessible to CPU 52 .
  • Private key module 20 executes on CPU 52 .
  • Private key module 50 may be stored on storage media 56 or directly loaded to memory device 52 .
  • Private key module 50 may store the secret private key in its memory device 54 or its storage media 56 .
  • private key module 50 may also have input means, such as a keyboard where private key module device 50 is a smart card with keyboard, for users to enter a secret private key.
  • private key module device 50 may have only a single data storage device for storing both volatile and persistent data.
  • user device 40 may have only a single data storage device for storing both volatile and persistent data.
  • Data link 60 provides a communication channel between application 10 and private key module 50 when needed.
  • Data link 60 may be wired, or wireless. It may be a direct connection between user device 40 and private key module device 50 .
  • the data link 60 may be permanent, or more preferably, a connection that is established on demand. In general, data link 60 is not an open link but instead is a protected link.
  • private key module 20 does not implement an entire KDF.
  • Components 24 of the KDF generated in private key module 50 implements only those re-usable portions and only the part that performs the cryptographic operations that are fundamental to security. This promotes flexibility without compromising security.
  • raw access to the static DH private key operation is not permitted on the module.
  • the module provides an interface flexible enough to support all existing KDFs of interest as well as all foreseeable KDFs. One way to do this most efficiently is to implement the common parts of the existing and foreseeable KDFs.
  • Most KDFs today are built on hash functions, although it is also foreseeable that some in the future will be built from block ciphers.
  • hash function SHA-1 can be re-used to support several different KDFs, such as the distinct ANSI, IPSec and TLS key derivation functions.
  • the TLS key derivation also uses another hash function, MD5, but this can be handled outside of the module 50 , as explained further below.
  • the application 10 instructs the private key module 50 what input to supply as the input to the hash function.
  • Some of the input is a secret and unknown to the application.
  • the application 10 refers to such secret input via a handle or pointer 57 .
  • Public input may be provided directly by the application 10 . Formatting of the input, which is custom to each KDF, is specified by generic formatting interface provided by the module.
  • the hash outputs that private key module 50 provides to the application 10 may be re-used by the application 10 as further inputs to more hash function calls. This is because many KDFs are based on a chaining mechanism where the output of one hash call is fed into the input of another hash call.
  • ANSI X9.63 KDF derives a key from a shared secret value by computing a series of hash values computed from hash function SHA-1 based on the shared secret value and then truncating an octet string formed from the concatenation of the hash values, while TLS PRF has a much more complicated construction, involving the computation of both hash function MD5 and hash function SHA-1.
  • a goal of the module interface 26 is to not implement the hash function MD5.
  • Only the hash function SHA-1 is implemented on private key module 20 , namely on the second part 24 of the KDF.
  • the application 10 using private key module 20 is therefore responsible for implementing MD5 in its first part 22 of the KDF. From a security perspective, this may not present a significant drawback. This is because the MD5 hash function is not universally considered to provide adequate security, whereas the SHA-1 hash function tends to be universally accepted to provide adequate security for the purposes of key derivation, for all but the highest security levels (these higher levels require the use of SHA-256 or another successor to SHA-1).
  • FIG. 4 The operation in support of ANSI X9.63 KDF is generally shown in FIG. 4 .
  • Application 10 may then call function 30 with X, Y and the handle for Z.
  • the application 20 of the private key module 50 may then use the values for X and Y and the handle for Z supplied by application 10 to compute the SHA-1 according to the expression described above and shown in FIG. 4 .
  • the application 10 may then obtain the computed SHA-1 value and use this for building the ANSI X9.63 KDF and deriving a key.
  • the operation of applications 10 and 20 in support of the TLS PRF is shown in FIG. 5 .
  • the application 10 calls the first interface function 28 in order to divide the shared secret Z into two halves S 1 and S 2 (part 1 of FIG. 5 ) and described above regarding function 28 .
  • the application 10 then calls the second interface function 30 to compute a hash value based on S 2 (part 2 of FIG. 5 ), and then uses the construction above to compute P_SHA-1 from the outputs of the first and second interface functions 28 , 30 (part 3 of FIG. 5 ). Parts 2 and 3 are explained below.
  • the application 10 now uses S 1 provided as an output in part 1 and the construction above for computing HMAC-SHA-1, where the secret key is confined to private key module 20 .
  • the output P_SHA-1 may then be used to build the KDF and derive a key.
  • private key module 20 has an even greater degree of flexibility.
  • Private key module 20 supports some simple execution language, such as javascript or java, which enables a vast generality of operations to be performed on the card.
  • application 10 supplies a program to private key module 20 , which private key module 20 then executes.
  • the program while in the module, can access secrets freely.
  • private key module 20 ensures all outputs from the module go though approved secure algorithms, such as a hash algorithm like SHA-1 or as part of symmetric encryption operation like AES. This prevents most abuses that a malicious program could attempt.
  • private key module 20 may require that the program be digitally signed by a signer whose public verification key has already been securely loaded onto private key module 20 . This is one way to authenticate the program loaded into private key module 20 .
  • Program authentication ensures that the program is not a malicious executable with the objective of compromising the module's secrets. With program authentication it is not as necessary to restrict the module output to certain hashes or other algorithms, because program itself is trustworthy enough to perform any algorithm.

Abstract

Improper re-use of a static Diffie-Hellman (DH) private key may leak information about the key. The leakage is prevented by a key derivation function (KDF), but standards do not agree on key derivation functions. The module for performing a DH private key operation must somehow support multiple different KDF standards. The present invention provides an intermediate approach that neither attempts to implement all possible KDP operations, nor provide unprotected access to the raw DH private key operation. Instead, the module performs parts of the KDF operation, as indicated by the application using the module. This saves the module from implementing the entire KDF for each KDF needed. Instead, the module implements only re-usable parts that are common to most KDFs. Furthermore, when new KDFs are required, the module may be able to support them if they built on the parts that the module has implemented.

Description

  • This application claims priority from PCT Application No. PCT/IB2004/003705 filed Nov. 11, 2004 and U.S. Provisional Patent Application No. 60/626,921 filed Nov. 12, 2004.
  • FIELD OF INVENTION
  • The invention relates generally to the field of cryptography. In particular, the invention relates to providing versatile key derivation function support.
  • BACKGROUND OF INVENTION
  • Diffie-Hellman (DH) key agreement is a fundamental development in cryptography. It is the first workable method of public-key cryptography, that made key distribution feasible without setting up pre-arranged secrets.
  • In the simplest form of the DH key agreement, each party has a respective private key x, y from which a public key αx, αy respectively, can be derived. By exchanging public keys, each party can compute a shared secret key αxy by combining the private and public keys. The function used to derive a public key from a private key is a one way function that makes computation of the public key relatively simple but renders it infeasible to extract the private key from the public key. Such a function is based on the difficulty of factoring large numbers which are the product of two large primes or the discrete log problem over finite fields.
  • Diffie-Hellman (DH) key agreement is in wide use today. The IPSec protocol uses DH key agreement, and IPSec is used in most Virtual Private Networks (VPNs) that most corporations use for allowing employees to connect remotely to the corporate network, as well as for connecting separate offices over the open Internet.
  • Diffie-Hellman key agreement is also a NIST recommended option in the Transport Layer Security (TLS) protocol. The TLS protocol is the successor to the SSL protocol. These protocols are used widely today for securing sensitive web traffic, such as online banking.
  • Static DH key agreement is a variant of DH key agreement in which one of the private keys is static, which means that it is a long term key to be used multiple times.
  • Because of the sensitivity of the private key, particularly where it is used multiple times, it is usually located in a private key module, which is an implementation that includes the private key operation. Generally, such modules include measures to prevent extraction of the private key, and to a much more limited extent, abuse of the private key operation. For example, these modules can be implemented in specialized hardware that does not admit the loading of malicious software such as viruses, worms and Trojan horses. Generally, such anti-tampering measures are expensive to implement. Therefore, to reduce costs, modules are generally designed with a minimum functionality. That way, the least amount of functionality needs anti-tampering protection.
  • By way of a simple example, a module may be a smart card. The smart card is owned by a user. Suppose that the user wishes to make a secure connection to a destination, such as a home computer from some remote computer. The user enters the smart card into a smart card reader attached to the remote computer. Then a connection is made to the home computer. The home computer authenticates the user by sending a challenge. The remote computer forwards the challenge to the smart card. The smart card signs the challenge, which is then forwarded back to the home computer. The home computer verifies the challenge and then provides the necessary access to the user via the remote computer. This allows the user to move around to different remote computers. The remote computers, however, should not be able to extract the user's private key from the smart card. That is, they should only be able to connect to the home computer while the user leaves the smart card in the reader. (For this to be achieved, a more sophisticated method than simple challenge and response is needed. Instead, the smart card may need to perform regular authentication of traffic or even encryption and decryption of all of the traffic.)
  • To enhance security further, a key derivation function (KDF), which is a one-way function applied to the raw DH shared secret, is often specified. Some standards specify that a KDF is to be used with DH key agreement. Different standards recommend different KDFs, however. For example, ANSI specifies several different KDFs, as does IEEE, as do SSL and TLS, and different yet again is IPSec.
  • The following provides a simplified description of the details behind two standardized key derivation functions. These are the ANSI X9.63 key derivation and the TLS key derivation functions.
  • The ANSI X9.63 key derivation is computed as follows. The input has three components. The first input component is Z, which is a secret value shared between the private key module and the destination, for example, the home computer in the simple example above. This shared secret value Z is not to be revealed to any gateway, such as the remote computer in the example above. The second input component is an integer key datalen, which is the length in octets of the keying data to be generated. The optional third input component is an octet string SharedInfo, which consists of some data shared by the entities who share the shared secret value Z. Furthermore, SharedInfo can also optionally be given an encoding of the Abstract Syntax Notation One (ASN.1), which includes 5 fields: an algorithm identifier, optional identifiers for each of the two entities, optional public shared information and optional private shared information. Evaluation of the KDF on this input then proceeds as follows.
  • The first steps of the ANSI X9.63 key derivation function are certain consistency checks made on the lengths of the inputs and the desired output length keydatalen. Then a 4-octet integer counter j is initialised with value 1. A series of hash values Kj are computed as follows: Kj=SHA-1 (Z∥j∥[SharedInfo]), where ∥ indicates concatenation and [] indicates that the bracketed input is optional. The number t of these outputs depends on keydatalen. The hash values are concatenated to form a octet string K′=K1∥K2∥ . . . ∥Kt. The octet string is truncated to a shorted octet string K by taking the leftmost keydatalen octets. The output of the ANSI X9.63 KDF is K.
  • In the TLS standard, key derivation functions are called pseudorandom functions (PRF). The construction of the TLS PRF is quite different from the ANSI X9.63 KDF, and is given as follows. The construction makes use of an auxiliary construction HMAC, which is described first.
  • The HMAC construction can be built on any hash function. When the HMAC construction is used with a hash function, such as MD5 and SHA-1, then the resulting function is labelled HMAC-Hash, where Hash is the name of the hash function. The TLS PRF uses HMAC-SHA-1 and HMAC-MD5. The generic form of HMAC, namely HMAC-Hash, operates as follows.
  • The inputs to HMAC are a secret key K and a message M. The output is a tag T. The HMAC tag is computed as T=Hash ((C+K)∥Hash((D+K)∥M)) where ∥ indicates concatenation, + indicates the well-known bit-wise exclusive-or (XOR) operation, and C and D are constant bit strings as determined by the HMAC algorithm. More precisely, the key K is padded with zero bits until its length matches that of C and D, except if K is longer than C and D, in which case, K is replaced with the hash of the key. This is written as:
    T=HMAC-Hash(K,M).
  • The function HMAC-Hash is used in another auxiliary hash-generic construction in TLS PRF, called P_Hash. The construction for P_Hash is as follows:
    P_Hash(Z,seed)=HMAC-Hash(Z,A(1)∥seed)∥HMAC-Hash(Z,A(2)∥seed)∥HMAC-Hash(Z,A(3)∥seed)∥
    where ∥ indicates concatentation and A( ) is defined as follows:
    A(0)=seed; A(j)=HMAC_Hash (Z, A(j−1)).
  • P_Hash can be iterated as many times as necessary to produce the necessary amount of data As with the ANSI X9.63, the truncation of the final (rightmost) bytes is used when the resulting concatenation of HMAC tags is longer than the amount of data needed.
  • The TLS PRF is defined as follows:
    PRF(Z,label,seed)=P MD5(S1,label∥seed)+P SHA-1(S2,label∥seed)
    where, as usual, + indicates exclusive-or and ∥ indicates concatenation. The values S1 and S2 are obtained by partitioning the octet string secret Z into two halves, the left half being S1 and right half S2, with the left half being large secret has an odd number of octets.
  • Because the MD5 outputs as specified by the algorithm are 16 octets while the SHA-1 outputs are 20 octets, the function P_MD5 will generally use more iterations than P_SHA-1.
  • The TLS PRP is used extensively in the TLS protocol. For example, it is used to derive a master secret from a pre-master secret, and it is also used to derive an encryption key from the master key, and so on.
  • The disharmony between standards on KDF creates a large incentive to module implementers either to support DH key agreement without the KDF, or to support just a limited number of KDFs.
  • The standard Public Key Cryptography Standard (PKCS) #11: Cryptographic Token Interface (cryptoki) addresses an interface for tokens such as smart cards, which are a class of private key modules. In this standard, a few KDFs are supported, but the interface provided are generally not KDE-flexible. The standard FIPS 140-2 also specifies requirement for private key modules. It explicitly requires that the cryptographic values such as raw DH shared secret values do not depart the security boundary of the private key module, but it does not provide a precise mechanism for key derivation.
  • The inventors have discovered that improper re-use of a static DH private key can ultimately result in recovery of the private key by an adversary, More precisely, when a shared secret established via static DH key agreement is used without application of a key derivation function (KDF), an adversary can launch an attack where multiple different shared keys are established and used, thereby recovering the static DH private key.
  • The inventors' recent discovery means that the option of implementing DH without KDF can be a security risk. Supporting a reduced number of KDF's may be too limiting: for example, it may require hardware upgrade just to use a new application standard.
  • As standards do not agree on key derivation functions, the module for performing a DH private key operation must somehow support multiple different KDP standards. One approach is for the module to implement all the KDF algorithms, which can be expensive because the module must support multiple different KDFs and limiting because the module cannot support new KDFs when these arise. The opposite approach is for the module to provide unprotected access to the raw DH private key operation, and let the application using the module apply the KDF. However, this renders the private key vulnerable to the recently discovered attacks.
  • It is an object of the present invention to obviate or mitigate the above disadvantages.
  • SUMMARY OF INVENTION
  • In general terms, the present invention permits the module to perform parts of the KDF algorithms, as indicated by the application using the module. This saves the module from implementing the entire KDF for each KDF needed. Instead, only re-usable parts are implemented that are common to most KDFs. Furthermore, when new KDFs are required, the module may be able to support them if they are built on the KDF parts that the module has implemented.
  • In this manner, raw access to the static DH private key operation is not permitted on the module, because this generally tends to be too much of a security risk. Instead, the module provides an interface flexible enough to support all existing KDFs of interest as well as all foreseeable KDFs. This is done by implementing the common parts of the existing and foreseeable KDFs on a secure private key module, Most KDFs today are built on hash functions. Conveniently, most private key modules need to implement at least a hash function. This is also important for anti-tampering considerations because a hash function is crucial to the security of many algorithms, such as digital signatures.
  • As an alternate to this, the module can also simply provide access to the compression function of SHA-1. The application can use this compression function to compute SHA-1 just by adding some necessary padding and doing some appropriate chaining. This further simplifies the implementation module and also makes it more flexible. For example, some additional flexibility is that certain ANSI deterministic random number generators use the SHA-1 compression function instead of the whole of the function SHA-1. More generally, random number generation, like key derivation, generally involves a combination of hash function evaluations upon a mixture of secret and non-secret inputs. Therefore the present invention is not just limited to supporting multiple KDFs, it can also support multiple deterministic random number generators.
  • For even greater flexibility, the module could support more atomic operations, such as some of the sub-operations of the SHA-1 compression function. However, it does not seem likely that these sub-operations will be re-used for some purpose other than the SHA-1 compression function. Also, these individual sub-operations do not provide the full security of SHA-1, and may therefore expose secrets on the module to the application, which is to be avoided. An exception to this principle, however, are the two pairs of new hash functions: the pair SHA-384 and SHA-512, and the pair SHA-224 and SHA-256. Each of these pairs has much in common and could essentially be implemented with a single common function. The application would process the inputs and outputs only to the common function to obtain the desired hash function.
  • In the case of the TLS key derivation, known as pseudo-random function (PRF) in TLS terminology, two hash functions are used. One is SHA-1 and the other is MD5. To apply the PRF-TLS to a secret Z, the secret is split into two halves, S1 and S2. Then a PRF based on MD5 is applied to S1 and a function based on SHA1 is applied to S2. To save the module from implementing both MD5 and SHA1, which is potentially costly, the module could instead provide a mechanism to reveal S1 to the application and keep S2 within the module. The module could perform the SHA1 calculation on S2 and the application could perform the MD5 calculation on S1.
  • Although it is not anticipated that any other KDF than the one in TLS will divide up secrets in such a manner, it tends to be difficult to predict which way standards will go. Therefore it may be useful for a module to support a generic method of dividing up a secret. The interface for the module therefore includes a mechanism whereby the application can request that part of a secret is made public. The module is implemented in a way such that enough of the secret remains secret, and that the application cannot make multiple request for different parts of the secret.
  • Because new standards keep arising, and because standards keep re-designing KDFs and random number generators, a flexible and secure interface to a hardware module provides considerable value for extending the usability of the module. Otherwise the module risks becoming obsolete too quickly.
  • In one aspect, a method of computing a cryptographic function involving a shared secret is provided, the shared secret being accessible to a first module. The method comprises the steps of performing on the first module, at least one operation of the cryptographic function utilizing the shared secret; and providing a result of the at least one operation to an application running on a second module to complete computation of the cryptographic function.
  • In another aspect, a cryptographic apparatus is provided comprising a first module having a shared secret and a processor to perform at least one cryptographic operation using the shared secret and produce a result therefrom; a second module running an application to compute a cryptographic function; and a data connection between the first and second modules to transfer the result from the first module to the second module to enable the second module to complete computation of the cryptographic function using the result.
  • BRIEF DESCRIPTION OF DRAWINGS
  • An embodiment of the invention will now be described by way of example only with reference to the accompanying drawings, in which:
  • FIG. 1 is a block diagram showing a connection between a user device and a destination secured with a private key module; and
  • FIG. 2 is a schematic diagram illustrating implementation of a key derivation function in the user device and the private key module shown in FIG. 1.
  • FIG. 3 is a schematic diagram illustrating a private key module device.
  • FIG. 4 is a flow chart illustrating one example of a key derivation function.
  • FIG. 5 is a flow chart illustrating another example of a key derivation function.
  • DETAILED DESCRIPTION OF EMBODIMENTS
  • The description which follows, and the embodiments described therein, are provided by way of illustration of an example, or examples, of particular embodiments of the principles of the present invention. These examples are provided for the purposes of explanation, and not limitation, of those principles and of the invention. In the description which follows, like parts are marked throughout the specification and the drawings with the same respective reference numerals.
  • Referring to FIG. 1, there is shown a connection between a user device 40 and a destination 100 secured with a private key module device 50. The connection between user device 40 and destination 100 is generally not secure and is open. For example, the connection may consist of a link 70 to a public network 80, such as Internet, and a link 90 from the public network to destination 100. Either link may be a wired link, wireless link or a combination of both. In general, private key module device 50 is a self-contained device, such as a smart card or token, which may be inserted into some local device, or user device 40, on which the application runs. The module device S0 cooperates with the user device 40 when invoked by an application to secure a communication over the link 70.
  • In this mode of operation, the private key module device 50 provides a private key functionality to secure the connection between user device 40 and the destination device 100. However, since private key module device 50 is a custom private key module, it would need some additional protection beyond that of a typical user computer like user device 40, such as anti-tampering protection. Implementing a key derivation function (KDF) partly in an application running on user device 40 and partly in a module executing on private key module device 50 enhances the security. It will be appreciated that although user device 40 and private key module device 50 are described as distinct devices here, they may be integrated into a single physical device. For example, private key module device 50 may reside on user device 40 as a special embedded chipset.
  • The user device 40 typically will run multiple applications and perform different functions utilizing a CPU 42 and memory device 44. The user device 40 includes a communication module 45 to manage the link 70 under direction of a communication application running on the CPU 42. To establish a secure communication, the communication application implements an established secure protocol, such as one of those discussed above, that requires a private key functionality, such as a KDF. To facilitate computation of a selected KDF, whilst maintaining flexibility, the KDF derivation is separated into discreet subroutines and those that require operation on a private key are performed by the private key module 50. The balance are performed by the user device 40 so that the raw private key data is not accessible through the user device 40.
  • Referring to FIG. 2, there is shown an exemplary implementation of a security system that has a key derivation function (KDF) implemented partly in an application 10 running on the user device 40 and partly in an application 20 running on a private key module 50. The KDF is divided into two parts. Private key module 50 generates components 24 of the KDF and application 10 uses those components to compute the balance 22 of the KDF. Private key module 20 has a module interface 26 for exchanging data and communicating with application 10. Module interface 26 further has two interface functions, a first interface function 28 and a second interface function 30.
  • Advantageously, some secret value, such as a Diffie-Hellman shared secret value Z, are determined in private key module 20. The length of Z is made known to application 10, but the value of Z is not. Application 10 has a handle whereby it can reference the secret Z and thus ask private key module 20 to derive values from Z.
  • The first interface function 28 has input consisting of an integer and the handle of secret Z. This integer defines the number of octets of Z that shall be revealed to application 10. This is the S1 value in the TLS PRF. When executing this function, private key module 20 can enforce a minimum number of octets of the secret to be retained as S2, so that application 10 does not learn the entire secret. The minimum number is chosen to be appropriate for the intended security level of the application. It may be 10 octets for a security level of 80 bits. Once first interface function 28 is called, the secret may be permanently truncated to S2, and private key module 20 will not allow further truncation of S2. A handle or pointer for referencing S2 is provided to application 10. Preferably, the handle or pointer referencing Z may be re-used as Z is not used in further computation. Henceforth, private key module 20 sets the secret Z=S2 after first interface function 28 is called. Optionally private key module 20 can create a new handle that points to just S2 and output this new handle to application 10, enabling application 10 to refer to S2 later on. The value S1 is always part of the output of first interface function 28, so that application 10, i.e., first part 22 of the KDF contained in application 10, can perform any calculations it needs to on S1, such as the MD5 calculations used in the TLS PRF.
  • The second interface function 30 has input consisting of two values X and Y and the handle of the secret Z. The first value is an octet string of length identical to the secret Z. The output of second interface function 30 is:
    SHA-1(X+Z∥Y).
  • Second interface function 30 is the fundamental cryptographic operation from which both the ANSI X9.63 KDF and the TLS PRF can be built. From the output S1 of first interface function 28 and the output of second interface function 30, namely, the hash value of SHA-1, application 10 can complete the KDF computation and derive a key.
  • User device 40 generally has a CPU 42, memory device 44 accessible to CPU 42 storage media 46, also accessible to CPU 20, and some input and output devices (not shown). As will be appreciated, user device 40 may also be some other programmable computation device. Application 10 executes on CPU 42. Application 10 may be stored on storage media 46, which may be permanently installed in user device 40, removable from user device 40 or remotely accessible to user device 40. Application 10 may also be directly loaded to CPU 42. Output of the KDF is required for securing the connection from user device 40 to destination 100.
  • Private key module device 50 generally has a CPU or a microprocessor 52, memory device 54 accessible to CPU 52 and storage media 56, also accessible to CPU 52. Private key module 20 executes on CPU 52. Private key module 50 may be stored on storage media 56 or directly loaded to memory device 52. Private key module 50 may store the secret private key in its memory device 54 or its storage media 56. As will be appreciated, private key module 50 may also have input means, such as a keyboard where private key module device 50 is a smart card with keyboard, for users to enter a secret private key.
  • While the distinction is made here that there are memory device 54 which tends to be used for storing more volatile data and storage media 56 which tends to be used to store more persistent data, private key module device 50 may have only a single data storage device for storing both volatile and persistent data. Similarly, user device 40 may have only a single data storage device for storing both volatile and persistent data.
  • Data link 60 provides a communication channel between application 10 and private key module 50 when needed. Data link 60 may be wired, or wireless. It may be a direct connection between user device 40 and private key module device 50. The data link 60 may be permanent, or more preferably, a connection that is established on demand. In general, data link 60 is not an open link but instead is a protected link.
  • As noted above, private key module 20 does not implement an entire KDF. Components 24 of the KDF generated in private key module 50 implements only those re-usable portions and only the part that performs the cryptographic operations that are fundamental to security. This promotes flexibility without compromising security. When implementing a DH protocol, for example, raw access to the static DH private key operation is not permitted on the module. Instead, the module provides an interface flexible enough to support all existing KDFs of interest as well as all foreseeable KDFs. One way to do this most efficiently is to implement the common parts of the existing and foreseeable KDFs. Most KDFs today are built on hash functions, although it is also foreseeable that some in the future will be built from block ciphers. Most private key modules ought to support at least a hash function, because a hash function is crucial to the security of many algorithms, such as digital signatures. Fortunately, fewer hash functions are standardized than KDFs. For example, the hash function SHA-1 can be re-used to support several different KDFs, such as the distinct ANSI, IPSec and TLS key derivation functions. The TLS key derivation also uses another hash function, MD5, but this can be handled outside of the module 50, as explained further below.
  • Referring to FIG. 3, for KDFs that are generated using SHA-1 operations, the application 10 instructs the private key module 50 what input to supply as the input to the hash function. Some of the input is a secret and unknown to the application. To specify this, the application 10 refers to such secret input via a handle or pointer 57. Public input may be provided directly by the application 10. Formatting of the input, which is custom to each KDF, is specified by generic formatting interface provided by the module. The hash outputs that private key module 50 provides to the application 10, may be re-used by the application 10 as further inputs to more hash function calls. This is because many KDFs are based on a chaining mechanism where the output of one hash call is fed into the input of another hash call.
  • The operation in support of the ANSI X9.63 KDF and TLS PRF, ANSI X9.63 KDF derives a key from a shared secret value by computing a series of hash values computed from hash function SHA-1 based on the shared secret value and then truncating an octet string formed from the concatenation of the hash values, while TLS PRF has a much more complicated construction, involving the computation of both hash function MD5 and hash function SHA-1.
  • A goal of the module interface 26 is to not implement the hash function MD5. Only the hash function SHA-1 is implemented on private key module 20, namely on the second part 24 of the KDF. The application 10 using private key module 20 is therefore responsible for implementing MD5 in its first part 22 of the KDF. From a security perspective, this may not present a significant drawback. This is because the MD5 hash function is not universally considered to provide adequate security, whereas the SHA-1 hash function tends to be universally accepted to provide adequate security for the purposes of key derivation, for all but the highest security levels (these higher levels require the use of SHA-256 or another successor to SHA-1).
  • The operation in support of ANSI X9.63 KDF is generally shown in FIG. 4. In such operation, application 10 chooses X=0 and Y=j∥[SharedInfo], where j is the 4-octet counter that the application maintains. Application 10 may then call function 30 with X, Y and the handle for Z. The application 20 of the private key module 50 may then use the values for X and Y and the handle for Z supplied by application 10 to compute the SHA-1 according to the expression described above and shown in FIG. 4. The application 10 may then obtain the computed SHA-1 value and use this for building the ANSI X9.63 KDF and deriving a key.
  • The operation of applications 10 and 20 in support of the TLS PRF is shown in FIG. 5. The application 10 calls the first interface function 28 in order to divide the shared secret Z into two halves S1 and S2 (part 1 of FIG. 5) and described above regarding function 28. The application 10 then calls the second interface function 30 to compute a hash value based on S2 (part 2 of FIG. 5), and then uses the construction above to compute P_SHA-1 from the outputs of the first and second interface functions 28, 30 (part 3 of FIG. 5). Parts 2 and 3 are explained below.
  • To build the function HMAC-SHA-1 used in part 2 of the TLS-PRF operation shown in FIG. 5, application 10 first calls second interface function 30 with X=D and Y=M and the handle for key K, which gives T1=SHA-1 ((D+K)∥M). (The value of D is a publicly known constant, so is available to application 10.) Then application 10 sets X=C and Y=T with the same handle for K, to get T=SHA-1 ((C+K)∥T1)=HMAC-SHA(K, M). (The value of C is public like D.)
  • If the key K needs to be padded with zero bits, then application 10 will account for this by prepending the second input Y with the necessary zero bits as XORed with the appropriate octets of the constant C and D. If the key K is long enough to require compression first, then application 10 can do this by setting X=0 and Y=0, to get the hashed key. In this case, application 10 may be optionally able to perform the rest of the computation on its own, because it has all the information necessary, or it may be use yet a third interface feature to designate the above hash output as another secret with a new handle.
  • To build the function P_SHA-1 in part 3 of the operation supporting TLS-PRF shown in FIG. 3, the application 10 now uses S1 provided as an output in part 1 and the construction above for computing HMAC-SHA-1, where the secret key is confined to private key module 20. This involves computing A(0), A(1), A(2), using iterated applications of HMAC_SHA-1 which are then used in turn to form the output of P_SHA-1 by further application of HMAC_SHA-1.
  • The output P_SHA-1 may then be used to build the KDF and derive a key.
  • The example above assumes that the keys derived in private key module 20 are delivered as output to application 10. An alternative to this is the keys derived remain within private key module 20, and the outputs are just handles or pointers to the said keys. An advantage of this is that all keys can be retained on private key module 20, which gives the module holder greater assurance that application cannot abuse even the derived session keys, let alone the long-term private keys.
  • In an alternative embodiment, private key module 20 has an even greater degree of flexibility. Private key module 20 supports some simple execution language, such as javascript or java, which enables a vast generality of operations to be performed on the card. In other words, application 10 supplies a program to private key module 20, which private key module 20 then executes. The program, while in the module, can access secrets freely. For security, private key module 20 ensures all outputs from the module go though approved secure algorithms, such as a hash algorithm like SHA-1 or as part of symmetric encryption operation like AES. This prevents most abuses that a malicious program could attempt.
  • To further enhance security, private key module 20 may require that the program be digitally signed by a signer whose public verification key has already been securely loaded onto private key module 20. This is one way to authenticate the program loaded into private key module 20. Program authentication ensures that the program is not a malicious executable with the objective of compromising the module's secrets. With program authentication it is not as necessary to restrict the module output to certain hashes or other algorithms, because program itself is trustworthy enough to perform any algorithm.
  • The advantages of this alternative embodiment over the first embodiment are that it offers greater flexibility, such as allowing a variety of hashes, both existing and new, to be executed on the module. The disadvantage is that the module needs to support a general execution language, and possibly a portion of a public key infrastructure.
  • It will be appreciated that although the above examples are provided in the context of key derivation functions, the principles outlined herein are applicable to other cryptographic functions such as random number generators.
  • Various embodiments of the invention have now been described in detail. Those skilled in the art will appreciate that numerous modifications, adaptations and variations may be made to the embodiments without departing from the scope of the invention. Since changes in and or additions to the above-described best mode may be made without departing from the nature, spirit or scope of the invention, the invention is not to be limited to those details but only by the appended claims.

Claims (18)

1. A method of computing a cryptographic function involving a shared secret, said shared secret being accessible to a first module, the method comprising the steps of:
performing on the first module, at least one operation of the cryptographic function utilizing said shared secret; and
providing a result of said at least one operation to an application running on a second module to complete computation of said cryptographic function.
2. A method according to claim 1 wherein said cryptographic function is a key derivation function.
3. A method according to claim 1 wherein said shared secret is a Diffie-Hellman (DH) shared secret.
4. A method according to claim 2 wherein said at least one operation includes a hash function.
5. A method according to claim 4 wherein said hash function is SHA-1.
6. A method according to claim 5 wherein said key derivation function is ANSI X9.63 and wherein said function operates having said second module instruct said first module to compute SHA-1 using inputs provided by said second module; said first module producing said result, said result being the output of said SHA-1; and said second module obtaining said result to complete said function and derive a key therefrom.
7. A method according to claim 5 wherein said key derivation function is TLS PRF and wherein said function operates having said second module instruct said first module to divide said shared secret into a first half and a second half; said first module providing a pointer to said second half and said first half as a first output; said second module instructing said first module to perform a first SHA-1 using a first set of inputs and instructing said first module to perform a second SHA-1 based on the result of said first SHA-1 and a second set of inputs, the result of said second SHA-1 being a second output; and said second module using said first and second outputs to compute P_SHA-1, complete said function, and derive a key therefrom.
8. A method according to claim 1 wherein said first module is secured by anti-tampering protection.
9. A method according to claim 1 wherein said first module is provided a program having a java execution language from said second module for executing a plurality of cryptographic functions wherein said first module ensures the outputs of operations performed thereon undergo secure algorithms.
10. A method according to claim 9 wherein said program is digitally signed by said second module and said first module accesses a public verification key for verifying digital signatures of said program.
11. A cryptographic apparatus comprising:
a first module having a shared secret and a processor to perform at least one cryptographic operation using said shared secret and produce a result therefrom;
a second module running an application to compute a cryptographic function; and
a data connection between said first and second modules to transfer said result from said first module to said second module to enable said second module to complete computation of said cryptographic function using said result.
12. An apparatus according to claim 11 wherein said first and second modules are comprised by a single device.
13. An apparatus according to claim 11 wherein said first module is secured by anti-tampering protection.
14. An apparatus according to claim 11 wherein said first module comprises a program having a java execution language provided by said second module, said program for executing a plurality of cryptographic functions wherein said first module ensures the outputs of operations performed thereon undergo secure algorithms.
15. An apparatus according to claim 14 wherein said second module further comprises a digital signature module for digitally signing said program and said first module further comprises a public verification key for verifying signatures generated by said digital signature module.
16. An apparatus according to claim 11 wherein said cryptographic function is a key derivation function and said at least one operation is a hash function.
17. An apparatus according to claim 16 wherein said hash function is SHA-1 and said shared secret is a DH shared secret.
18. An apparatus according to claim 16 wherein said key derivation function is one of ANSI X9.63 and TLS PRF.
US11/272,151 2004-11-11 2005-11-14 Secure interface for versatile key derivation function support Active 2029-08-20 US8335317B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US11/272,151 US8335317B2 (en) 2004-11-11 2005-11-14 Secure interface for versatile key derivation function support
US13/618,451 US8634562B2 (en) 2004-11-11 2012-09-14 Secure interface for versatile key derivation function support

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
WOPCT/IB04/03705 2004-11-11
WOPCT/IB2004/003705 2004-11-11
IB2004003705 2004-11-11
US62692104P 2004-11-12 2004-11-12
US11/272,151 US8335317B2 (en) 2004-11-11 2005-11-14 Secure interface for versatile key derivation function support

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/618,451 Continuation US8634562B2 (en) 2004-11-11 2012-09-14 Secure interface for versatile key derivation function support

Publications (2)

Publication Number Publication Date
US20070076866A1 true US20070076866A1 (en) 2007-04-05
US8335317B2 US8335317B2 (en) 2012-12-18

Family

ID=36336860

Family Applications (2)

Application Number Title Priority Date Filing Date
US11/272,151 Active 2029-08-20 US8335317B2 (en) 2004-11-11 2005-11-14 Secure interface for versatile key derivation function support
US13/618,451 Active US8634562B2 (en) 2004-11-11 2012-09-14 Secure interface for versatile key derivation function support

Family Applications After (1)

Application Number Title Priority Date Filing Date
US13/618,451 Active US8634562B2 (en) 2004-11-11 2012-09-14 Secure interface for versatile key derivation function support

Country Status (4)

Country Link
US (2) US8335317B2 (en)
EP (1) EP1825632B1 (en)
CA (1) CA2586816C (en)
WO (1) WO2006051404A2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100278331A1 (en) * 2009-05-01 2010-11-04 Harris Corporation Secure hashing device using multiple different sha variants and related methods
US7904946B1 (en) 2005-12-09 2011-03-08 Citicorp Development Center, Inc. Methods and systems for secure user authentication
US20110197266A1 (en) * 2005-12-09 2011-08-11 Citicorp Development Center, Inc. Methods and systems for secure user authentication
US9002750B1 (en) * 2005-12-09 2015-04-07 Citicorp Credit Services, Inc. (Usa) Methods and systems for secure user authentication
US10754983B2 (en) * 2017-03-31 2020-08-25 Interset Software Inc. Anonymization of sensitive data for use in user interfaces

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8353871B2 (en) * 2010-07-05 2013-01-15 Roller Jet Ltd. Drug delivery device with needles and roller
FR2987711A1 (en) * 2012-03-05 2013-09-06 France Telecom Method for accelerating cryptographic calculations in cloud computing, involves providing encrypted coded message with information, and utilizing calculation server for performing encrypted coding of message during application phase
US10218496B2 (en) 2014-08-04 2019-02-26 Cryptography Research, Inc. Outputting a key based on an authorized sequence of operations
US11593249B2 (en) * 2015-12-23 2023-02-28 Oracle International Corporation Scalable points-to analysis via multiple slicing
US11425123B2 (en) 2020-04-16 2022-08-23 Bank Of America Corporation System for network isolation of affected computing systems using environment hash outputs
US11423160B2 (en) 2020-04-16 2022-08-23 Bank Of America Corporation System for analysis and authorization for use of executable environment data in a computing system using hash outputs
US11481484B2 (en) 2020-04-16 2022-10-25 Bank Of America Corporation Virtual environment system for secure execution of program code using cryptographic hashes
US11263109B2 (en) 2020-04-16 2022-03-01 Bank Of America Corporation Virtual environment system for validating executable data using accelerated time-based process execution
US11528276B2 (en) 2020-04-16 2022-12-13 Bank Of America Corporation System for prevention of unauthorized access using authorized environment hash outputs
US11372982B2 (en) 2020-07-02 2022-06-28 Bank Of America Corporation Centralized network environment for processing validated executable data based on authorized hash outputs

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937066A (en) * 1996-10-02 1999-08-10 International Business Machines Corporation Two-phase cryptographic key recovery system
US5953420A (en) * 1996-10-25 1999-09-14 International Business Machines Corporation Method and apparatus for establishing an authenticated shared secret value between a pair of users
US6009177A (en) * 1994-01-13 1999-12-28 Certco Llc Enhanced cryptographic system and method with key escrow feature
US6061791A (en) * 1997-05-09 2000-05-09 Connotech Experts-Conseils Inc. Initial secret key establishment including facilities for verification of identity
US6226383B1 (en) * 1996-04-17 2001-05-01 Integrity Sciences, Inc. Cryptographic methods for remote authentication
US6304658B1 (en) * 1998-01-02 2001-10-16 Cryptography Research, Inc. Leak-resistant cryptographic method and apparatus
US20020073319A1 (en) * 2000-12-07 2002-06-13 Nec Corporation Contents data supplying system capable of protecting copyright of contents effectively and method of supplying the same
US20040005061A1 (en) * 2002-07-08 2004-01-08 Buer Mark L. Key management system and method
US20040073795A1 (en) * 2002-10-10 2004-04-15 Jablon David P. Systems and methods for password-based connection
US6862696B1 (en) * 2000-05-03 2005-03-01 Cigital System and method for software certification
US20050120213A1 (en) * 2003-12-01 2005-06-02 Cisco Technology, Inc. System and method for provisioning and authenticating via a network
US7382882B1 (en) * 1998-07-03 2008-06-03 Nokia Corporation Secure session set up based on the wireless application protocol

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5046094A (en) 1989-02-02 1991-09-03 Kabushiki Kaisha Toshiba Server-aided computation method and distributed information processing unit
JPH0372737A (en) 1989-05-31 1991-03-27 Toshiba Corp Request calculation system
JPH0619393A (en) 1992-03-31 1994-01-28 Toshiba Corp Request calculating device
US5369708A (en) 1992-03-31 1994-11-29 Kabushiki Kaisha Toshiba Fast server-aided computation system and method for modular exponentiation without revealing client's secret to auxiliary device
WO2003065169A2 (en) * 2002-01-30 2003-08-07 Tecsec, Inc. Access system utilizing multiple factor identification and authentication
CA2319538C (en) * 1998-02-20 2016-09-06 Digital Video Express L.P. Information access control system and method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6009177A (en) * 1994-01-13 1999-12-28 Certco Llc Enhanced cryptographic system and method with key escrow feature
US6226383B1 (en) * 1996-04-17 2001-05-01 Integrity Sciences, Inc. Cryptographic methods for remote authentication
US5937066A (en) * 1996-10-02 1999-08-10 International Business Machines Corporation Two-phase cryptographic key recovery system
US5953420A (en) * 1996-10-25 1999-09-14 International Business Machines Corporation Method and apparatus for establishing an authenticated shared secret value between a pair of users
US6061791A (en) * 1997-05-09 2000-05-09 Connotech Experts-Conseils Inc. Initial secret key establishment including facilities for verification of identity
US6304658B1 (en) * 1998-01-02 2001-10-16 Cryptography Research, Inc. Leak-resistant cryptographic method and apparatus
US7382882B1 (en) * 1998-07-03 2008-06-03 Nokia Corporation Secure session set up based on the wireless application protocol
US6862696B1 (en) * 2000-05-03 2005-03-01 Cigital System and method for software certification
US20020073319A1 (en) * 2000-12-07 2002-06-13 Nec Corporation Contents data supplying system capable of protecting copyright of contents effectively and method of supplying the same
US20040005061A1 (en) * 2002-07-08 2004-01-08 Buer Mark L. Key management system and method
US20040073795A1 (en) * 2002-10-10 2004-04-15 Jablon David P. Systems and methods for password-based connection
US20050120213A1 (en) * 2003-12-01 2005-06-02 Cisco Technology, Inc. System and method for provisioning and authenticating via a network

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7904946B1 (en) 2005-12-09 2011-03-08 Citicorp Development Center, Inc. Methods and systems for secure user authentication
US20110197266A1 (en) * 2005-12-09 2011-08-11 Citicorp Development Center, Inc. Methods and systems for secure user authentication
US9002750B1 (en) * 2005-12-09 2015-04-07 Citicorp Credit Services, Inc. (Usa) Methods and systems for secure user authentication
US9768963B2 (en) * 2005-12-09 2017-09-19 Citicorp Credit Services, Inc. (Usa) Methods and systems for secure user authentication
US11394553B1 (en) 2005-12-09 2022-07-19 Citicorp Credit Services, Inc. (Usa) Methods and systems for secure user authentication
US11917069B1 (en) 2005-12-09 2024-02-27 Citicorp Credit Services, Inc. (Usa) Methods and systems for secure user authentication
US20100278331A1 (en) * 2009-05-01 2010-11-04 Harris Corporation Secure hashing device using multiple different sha variants and related methods
US9680637B2 (en) * 2009-05-01 2017-06-13 Harris Corporation Secure hashing device using multiple different SHA variants and related methods
US10754983B2 (en) * 2017-03-31 2020-08-25 Interset Software Inc. Anonymization of sensitive data for use in user interfaces

Also Published As

Publication number Publication date
CA2586816C (en) 2013-03-26
EP1825632A2 (en) 2007-08-29
US20130246805A1 (en) 2013-09-19
WO2006051404A3 (en) 2006-06-22
WO2006051404A2 (en) 2006-05-18
US8335317B2 (en) 2012-12-18
EP1825632A4 (en) 2011-01-05
CA2586816A1 (en) 2006-05-18
EP1825632B1 (en) 2016-01-20
US8634562B2 (en) 2014-01-21

Similar Documents

Publication Publication Date Title
US8335317B2 (en) Secure interface for versatile key derivation function support
KR101999188B1 (en) Secure personal devices using elliptic curve cryptography for secret sharing
CN108885741B (en) Tokenization method and system for realizing exchange on block chain
CN108292402B (en) Determination of a common secret and hierarchical deterministic keys for the secure exchange of information
RU2718689C2 (en) Confidential communication control
CA2071413C (en) Method to establish and enforce a network cryptographic security policy in a public key cryptosystem
JP3872107B2 (en) Encryption key recovery system
US7516321B2 (en) Method, system and device for enabling delegation of authority and access control methods based on delegated authority
JP4856080B2 (en) Secure loading and storage of data to data processing equipment
EP2651094B1 (en) Apparatuses and method for distributed security
US8775794B2 (en) System and method for end to end encryption
CN109600350A (en) System and method for the secure communication between the controller in vehicle network
CN109951276B (en) Embedded equipment remote identity authentication method based on TPM
Kehret et al. Integration of hardware security modules into a deeply embedded TLS stack
EP4260514A1 (en) Cryptographic platform system and method
US9800410B1 (en) Data encryption system and method
US10230532B2 (en) Entity authentication in network
JP4937921B2 (en) A secure interface for generic key derivation function support
Tsudik et al. On simple and secure key distribution
Jain Enhancing security in Tokenization using NGE for storage as a service
de Boer Secure communication channels for the mTask system
Papageorgiou et al. Self-sovereign, verifiable, ubiquitous and privacy preserving public entity documents through the use of blockchain technology
van Oorschot et al. Cryptographic Building Blocks
CN114936380A (en) Block chain private data sharing method and system based on chameleon hash
Daswani et al. MACs and Signatures

Legal Events

Date Code Title Description
AS Assignment

Owner name: CERTICOM CORP., CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:VANSTONE, SCOTT A.;BROWN, DANIEL R.L.;GALLANT, ROBERT P.;REEL/FRAME:017333/0879

Effective date: 20060228

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

AS Assignment

Owner name: BLACKBERRY LIMITED, ONTARIO

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:CERTICOM CORP.;REEL/FRAME:050610/0937

Effective date: 20190930

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8

AS Assignment

Owner name: MALIKIE INNOVATIONS LIMITED, IRELAND

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:BLACKBERRY LIMITED;REEL/FRAME:064104/0103

Effective date: 20230511

AS Assignment

Owner name: MALIKIE INNOVATIONS LIMITED, IRELAND

Free format text: NUNC PRO TUNC ASSIGNMENT;ASSIGNOR:BLACKBERRY LIMITED;REEL/FRAME:064270/0001

Effective date: 20230511