US20190312718A1 - Using secure key storage to bind a white-box implementation to one platform - Google Patents

Using secure key storage to bind a white-box implementation to one platform Download PDF

Info

Publication number
US20190312718A1
US20190312718A1 US16/451,221 US201916451221A US2019312718A1 US 20190312718 A1 US20190312718 A1 US 20190312718A1 US 201916451221 A US201916451221 A US 201916451221A US 2019312718 A1 US2019312718 A1 US 2019312718A1
Authority
US
United States
Prior art keywords
key
encryption key
white
processing system
decryption 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.)
Abandoned
Application number
US16/451,221
Inventor
Wilhelmus Petrus Adrianus Johannus Michiels
Jan Hoogerbrugge
Joppe Willem Bos
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.)
NXP BV
Original Assignee
NXP BV
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 NXP BV filed Critical NXP BV
Priority to US16/451,221 priority Critical patent/US20190312718A1/en
Assigned to NXP B.V. reassignment NXP B.V. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BOS, Joppe Willem, HOOGERBRUGGE, JAN, MICHIELS, WILHELMUS PETRUS ADRIANUS JOHANNUS
Publication of US20190312718A1 publication Critical patent/US20190312718A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • 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/002Countermeasures against attacks on cryptographic mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/75Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by inhibiting the analysis of circuitry or operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/16Obfuscation or hiding, e.g. involving white box

Definitions

  • This disclosure relates generally to electronic device security and more specifically to using a secure key storage to bind a white-box implementation to one platform.
  • HCE Host-Card Emulation
  • a rollback attack is an attack in which an attacker restores the software to some earlier state.
  • a user may potentially restore the balance of the card by rolling back the payment application to a time when the balance was higher. This can be done by replacing the payment application having the lower balance by a previously made copy of the application having a higher balance.
  • white-box cryptography Another challenge with white-box cryptography is code lifting. Although white-box implementations aim to hide the encryption key, an attacker may try to copy or isolate the complete cryptographic implementation and run it elsewhere.
  • the most secure way to implement a cryptographic algorithm is to use a secure element that is isolated, closed, and protected.
  • a disadvantage of this approach is that it is relatively costly and not very flexible (e.g. not easy to upgrade or add applications).
  • the disadvantage is its very strong attack model. Generally, it is most realistic to assume the attacker has full access to and full control over the cryptographic implementation.
  • TEE trusted execution environment
  • OS rich operating system
  • TEE does generally not provide tamper resistance, i.e., it does not implement countermeasures against for instance Differential Power Analysis (DPA) or Differential Fault Analysis (DFA).
  • DPA Differential Power Analysis
  • DFA Differential Fault Analysis
  • FIG. 1 illustrates a data processing system in accordance with an embodiment.
  • FIG. 2 illustrates a flow chart of a method for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • FIG. 3 illustrates a flow chart of a method for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • FIG. 4 illustrates a flow chart of a method for encrypting a data value using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • the method includes inputting an encoded encryption key in the white-box implementation in an unsecured execution environment of the data processing system.
  • the encoded encryption key may be encrypted in a key store in a trusted execution environment (TEE) of the data processing system. If a TEE is not available, the key store is used in user space.
  • TEE trusted execution environment
  • the encrypted key is encrypted, stored, and decrypted in a key store in the TEE, but used in the white-box implementation to perform the secure function, such as encrypting a value. Storing the encoded encryption key separately from the white-box implementation makes code lifting more difficult.
  • the encryption key is encoded and stored in the unsecure execution environment and used with a white-box implementation in the TEE to perform a secure function, such as encrypting or decrypting a value.
  • the key is stored separately from the white-box implementation, effectively binding the white-box implementation to the hardware.
  • the encryption key is encrypted and stored in a key store in a TEE. The encryption key is used to encrypt a data value in the key store, but the encrypted data value is stored in the unsecured execution environment. Each time the encryption key is used, it is changed to a new key. This also binds the white-box implementation to the hardware, and in addition, prevents a rollback attack because the new key will not match to the older encrypted value that the attacker tries to substitute for the current value.
  • a method for performing a secure function using a white-box implementation in a data processing system comprising: receiving an encrypted encoded encryption key in the white-box implementation; storing the encrypted encoded encryption key using the TEE; decrypting the encrypted encoded encryption key using the TEE to generated a decrypted encoded encryption key; providing the decrypted encoded encryption key to the white-box implementation in the unsecured execution environment; and using the decrypted encoded encryption key to perform the secure function in the white-box implementation.
  • Using the decrypted encoded encryption key to perform the secure function may further comprise using the decrypted encoded encryption key to encrypt a monetary amount in a payment application.
  • Encoding the encryption key may further comprise encoding the encryption key using an exclusive-OR function.
  • the secure function may comprise decrypting data.
  • the method may further comprise storing the decrypted data in an unsecure memory location of the data processing system.
  • the data processing system may be in a handheld device.
  • Storing the encrypted encoded encryption key by the TEE may further comprise storing the encrypted encoded encryption key using a key store implemented via the TEE.
  • Encrypting the encoded encryption key in a TEE may further comprise using a key store provided by the TEE to encrypt the encoded encryption key.
  • the data processing system may be implemented in an integrated circuit.
  • a method for performing a secure function using a white-box implementation in a data processing system comprising: inputting an encoded encryption key in the white-box implementation; storing the encoded encryption key in the unsecure execution environment; and using the encoded encryption key in a trusted execution environment (TEE) to perform the secure function using the white-box implementation.
  • Encoding the encryption key may further comprise encoding the encryption key using one of a fixed mask, a linear function, or an affine function.
  • the secure function may further comprise encrypting a data value.
  • Storing the encoded encryption key in the unsecure execution environment may further comprise storing the encoded encryption key in a non-volatile memory.
  • the encoded encryption key may be changed each time it is used to perform the secure function.
  • the data processing system may be implemented in an integrated circuit.
  • a method for decrypting a data value in a data processing system comprising: generating a decryption key; encrypting the decryption key in a key store supported by a trusted execution environment (TEE) of the data processing system; using the encrypted decryption key to decrypt a data value in the key store; storing the encrypted data value in unsecured memory of the data processing system; and changing the decryption key to a new decryption key each time it is used to decrypt a data value.
  • Using the encrypted decryption key to decrypt a data value in the key store may further comprise using a software application in the key store to decrypt the data value.
  • the data processing system may be implemented on an integrated circuit.
  • Generating a decryption key may further comprise generating an encryption/decryption key pair, and wherein changing the decryption key to a new decryption key may further comprise changing the encryption/decryption key pair to a new encryption/decryption key pair each time one of the encryption key or decryption key of the pair is used to encrypt or decrypt a data value.
  • the data value may be further protected using one or more of obfuscation and tamper proofing.
  • FIG. 1 illustrates a simple representation of a data processing system 10 in accordance with an embodiment.
  • Data processing system 10 includes communication bus 12 , processor(s) 14 , peripherals 16 , memory 18 , non-volatile memory (NVM) 20 , and TEE 22 .
  • data processing system 10 is a system-on-a-chip (SoC) implemented on a single integrated circuit.
  • SoC system-on-a-chip
  • Communication bus 12 is a conventional bus having a plurality of conductors for communicating address, data, and control information.
  • bus 12 may be an interconnect structure such as for example, a cross-bar switch or other form of SoC interconnect system.
  • Processor(s) block 14 is bi-directionally connected to bus 12 .
  • Processor(s) 14 can include one or more of any type of processing element, such as a central processing unit (CPU), processor core, microprocessor, microcontroller, digital signal processor, and the like. There can be any number of processors. Peripherals 16 is bi-directionally connected to bus 12 . Peripherals 16 add functionality to data processing system 10 . Peripherals 16 can be processors or specialized processing elements, such as audio processors, video processors, modems, security elements, memory, etc. Also, a peripheral may include multiple modules or multiple central processing units or a combination of modules and central processing units. In addition, peripherals 16 may include control circuitry or other circuitry other than central processing units.
  • CPU central processing unit
  • processor core microprocessor
  • microcontroller microcontroller
  • digital signal processor digital signal processor
  • Peripherals 16 is bi-directionally connected to bus 12 . Peripherals 16 add functionality to data processing system 10 . Peripherals 16 can be processors or specialized processing elements, such as audio processors, video processors
  • Memory 18 and NVM 20 are each bi-directionally connected to bus 12 for providing and receiving data from the other blocks of data processing system 10 .
  • Memory 18 may include one or more of any type of memory such as volatile memory including static random access memory (SRAM) and dynamic random access memory (DRAM).
  • Non-volatile memory 20 may include one or more of any type of NVM such as flash, magnetic random access memory (MRAM), electrically erasable programmable read only memory (EEPROM), one time programmable (OTP) memory, and the like.
  • a data processing system may implement a TEE in various ways.
  • One way is to connect a separate external security co-processor to data processing system 10 .
  • Another way is to provide the separate security co-processor on the same integrated circuit as data processing system 10 .
  • the security co-processor is hardware that handles security chores such as device identification and authentication, secure storage, isolated program execution, and platform integrity.
  • the TEE may share the same hardware resources as the unsecure execution environment so that there is not a dedicated separate hardware security platform.
  • ARM® Trustzone® technology is an example of this kind of secure environment.
  • Data processing system 10 may be used in various systems, such as computers, automobiles, communications equipment, and handheld devices such as cell phones, tablets, smart cards, etc.
  • FIG. 2 illustrates a flow chart of a method 28 for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • a white-box implementation in the user space may use, for example, a symmetric-key block cipher called data encryption standard (DES) published by the National Institute of Standards and Technology (NIST).
  • DES data encryption standard
  • NIST National Institute of Standards and Technology
  • an encryption key is generated.
  • the encryption key is encoded. The encoding is usually put on the key by the same party that generates the key. This may not be the device owner of the device on which the white-box implementation is installed. The content owner may generate the key. Ideally, a key is never in the clear on a device that is exposed to a white-box attack.
  • the device itself encodes the key this rule is violated. If, nonetheless, the device generates the key, then the generation of an encoded key should be done in one step (instead of first generating the key, and then encoding the key).
  • An exclusive-OR (XOR) function may be used to encode the encryption key.
  • the encryption key may be XORed with, for example, a fixed mask, a linear function, or an affine function.
  • the encoded encryption key is provided to a key store in the TEE.
  • the encoded encryption key is encrypted using an application of the key store.
  • a key store is not a physical memory or other hardware.
  • a key store is a software component with an API that enables storing keys as well as using keys.
  • an encoded encryption key is stored using a key that is stored in the key store to encrypt and decrypt the encoded encryption key.
  • An example key store is the Android Keystore system.
  • the encrypted encoded encryption key is stored using the key store in the TEE.
  • the encrypted encoded encryption key is decrypted using an application provided by the key store in the TEE.
  • the decrypted encoded encryption key is provided to the white-box implementation in unsecure storage such as for example, memory 18 or NVM 20 .
  • the decrypted encoded encryption key is used to perform the secure function in the white-box implementation in the unsecure execution environment.
  • the secure function may be encrypting a monetary value in a payment application for a mobile device or smart card.
  • the secure function may include encrypting or decrypting a value in, for example, a transit card for use with public transportation.
  • the decrypted value, or other type of data is stored in an unsecure memory location in, for example, NVM 20 . Because the key is encoded, it is never in plaintext, thus making the embodiment more secure.
  • storing the key in the TEE separates the key from the white-box implementation, effectively binding the white-box implementation to the hardware.
  • FIG. 3 illustrates a flow chart of a method 28 for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • an encryption key is generated.
  • the encryption key is encoded. The encoding is usually put on the key by the same party that generates the key. This may not be the device owner of the device on which the white-box implementation is installed. The content owner may generate the key. Ideally, a key is never in the clear on a device that is exposed to a white-box attack. If the device itself encodes the key this rule is violated.
  • an encoded key should be done in one step (instead of first generating the key, and then encoding the key).
  • An exclusive-OR (XOR) function may be used to encode the encryption key.
  • the encryption key may be XORed with, for example, a fixed mask, a linear function, or an affine function.
  • the encoded encryption key may be generated elsewhere and inputted into the white-box implementation in accordance with an embodiment.
  • the encoded encryption key is stored in an unsecure memory location such as NVM 20 .
  • the encryption key is not stored in the unsecure execution environment in plaintext.
  • the encoded encryption key is provided to the TEE.
  • the encoded encryption key is used in the TEE to perform a secure function such as encrypting or decrypting a data value, such as a monetary value stored on a transit card.
  • the encoded encryption key is stored in the unsecure memory while the white-box implementation is in the TEE. This keeps the encryption key separate from the white-box implementation so that the white-box implementation is bound to the data processing system. Also, as discussed above for method 28 , the encryption key may be changed each time it is used to encrypt or decrypt a data value.
  • FIG. 4 illustrates a flow chart of a method 70 for encrypting a data value in the data processing system of FIG. 1 in accordance with an embodiment.
  • an encryption/decryption key pair is generated.
  • the encryption/decryption key pair is encrypted using a software application in a key store supported by a TEE.
  • the key store may be the Android Keystore API. Different key store applications may work differently.
  • the encrypted encryption/decryption key pair is used in the key store in the TEE, using a key store application.
  • the key may be encrypted using, for example, the RSA encryption algorithm.
  • the key store supports various encryption algorithms including DES (Data Encryption Standard) and AES (Advanced Encryption Standard).
  • the encryption key may be used to encrypt a data value in the TEE, or the decryption key or the key pair may be used to decrypt a data value in the TEE.
  • the data value may, for example, be a monetary value on a transit card.
  • the encrypted encryption/decryption key pair is stored in the key store of the TEE, and at step 80 , the encrypted data value is stored in unsecured memory, such as NVM 20 .
  • the encryption/decryption key pair is changed.
  • the encryption/decryption key pair is changed each time one of the encryption key or decryption key is used to encrypt or decrypt a data value.
  • the pair is stored in secured storage such as a key store.
  • U.S. Pat. No. 8,625,794 by Michiels describes a possible approach for efficiently changing keys in a white-box implementation. Because the key is changed after each transaction and secured in a key store, the encryption key is not available to a hacker. Therefore, a rollback attack, where an entire transaction application is replaced by an earlier version, will not work.
  • the data value may be further protected using one or more of obfuscation and tamper proofing of data processing system 10 .
  • Coupled is not intended to be limited to a direct coupling or a mechanical coupling.

Abstract

A method for performing a secure function in a data processing system is provided. In accordance with one embodiment, the method includes generating and encoding an encryption key. The encoded encryption key may be encrypted in a key store in a trusted execution environment (TEE) of the data processing system. The encrypted encryption key may encrypted, stored, and decrypted in the key store in the TEE, but used in a white-box implementation to perform a secure function. The secure function may include encrypting a value in the white-box implementation for securing a monetary value on, for example, a smart card. In one embodiment, each time an encryption key or decryption key is used, it is changed to a new key. The method makes code lifting and rollback attacks more difficult for an attacker because the key is stored separately from, for example, a white-box implementation in secure storage.

Description

    BACKGROUND Field
  • This disclosure relates generally to electronic device security and more specifically to using a secure key storage to bind a white-box implementation to one platform.
  • Related Art
  • More and more functionality in electronic devices is being implemented in software instead of hardware. Software has the advantage of being less costly, better scalability, easier to personalize, and easier to update. This is also true for security-sensitive applications. An important development for security-sensitive applications has been the addition of Host-Card Emulation (HCE) to the Android operating system. This makes it possible to fully implement contactless payment cards, such as transportation payment cards and other smart cards, by an application that runs on an application processor for a mobile phone. The downside, however, is that such an application runs in an unprotected environment, where the most realistic attack model is the so-called white-box attack model. In this attack model the attacker is assumed to have full access to and full control over the execution environment.
  • Several software protection techniques are known to protect a software implementation in the white-box attack model, such as code obfuscation, software tamper proofing, white-box cryptography, and just-in-time decryption. Although these techniques prevent an attacker (to a certain extend) from understanding and changing a software program, they do not protect against a rollback attack. A rollback attack is an attack in which an attacker restores the software to some earlier state. Suppose, for instance, that we have a transportation payment card with a payment application that stores a balance, which is lowered each time the user makes use of public transportation. The user can add money to increase the balance on the card from time-to-time as needed. However, using a rollback attack, a user may potentially restore the balance of the card by rolling back the payment application to a time when the balance was higher. This can be done by replacing the payment application having the lower balance by a previously made copy of the application having a higher balance.
  • Another challenge with white-box cryptography is code lifting. Although white-box implementations aim to hide the encryption key, an attacker may try to copy or isolate the complete cryptographic implementation and run it elsewhere.
  • The most secure way to implement a cryptographic algorithm is to use a secure element that is isolated, closed, and protected. A disadvantage of this approach is that it is relatively costly and not very flexible (e.g. not easy to upgrade or add applications). Alternatively, as a compromise, one can implement a cryptographic algorithm in software and run it on a fully open platform. Unlike the secure element, this solution is low cost and flexible. However, the disadvantage is its very strong attack model. Generally, it is most realistic to assume the attacker has full access to and full control over the cryptographic implementation.
  • An approach to security that falls in between these two solutions is a processor with both an unsecured execution environment for running user applications and a trusted execution environment (TEE). ARM® Trustzone® technology is an example of a TEE. A TEE is a secured execution environment that provides process isolation. The TEE runs in parallel (and may share resources with) a user space execution environment. The user space is fully open, runs a rich operating system (OS), and can interact with the TEE. The TEE does generally not provide tamper resistance, i.e., it does not implement countermeasures against for instance Differential Power Analysis (DPA) or Differential Fault Analysis (DFA). Applications can be installed on the TEE, but to guarantee security, this is limited and requires some effort. Therefore, a need exists for a way to make code lifting and rollback attacks types more difficult while maintaining the flexibility of a processor with a TEE.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The present invention is illustrated by way of example and is not limited by the accompanying figures, in which like references indicate similar elements. Elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale.
  • FIG. 1 illustrates a data processing system in accordance with an embodiment.
  • FIG. 2 illustrates a flow chart of a method for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • FIG. 3 illustrates a flow chart of a method for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • FIG. 4 illustrates a flow chart of a method for encrypting a data value using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment.
  • DETAILED DESCRIPTION
  • Generally, there is provided, a method for performing a secure function in a data processing system that makes code lifting and/or rollback attacks more difficult for an attacker. In one embodiment, the method includes inputting an encoded encryption key in the white-box implementation in an unsecured execution environment of the data processing system. The encoded encryption key may be encrypted in a key store in a trusted execution environment (TEE) of the data processing system. If a TEE is not available, the key store is used in user space. The encrypted key is encrypted, stored, and decrypted in a key store in the TEE, but used in the white-box implementation to perform the secure function, such as encrypting a value. Storing the encoded encryption key separately from the white-box implementation makes code lifting more difficult. Because the key is encoded, it is never in plaintext, thus making the embodiment more secure. Alternately, the encryption key is encoded and stored in the unsecure execution environment and used with a white-box implementation in the TEE to perform a secure function, such as encrypting or decrypting a value. As in the first embodiment, the key is stored separately from the white-box implementation, effectively binding the white-box implementation to the hardware. In another embodiment, the encryption key is encrypted and stored in a key store in a TEE. The encryption key is used to encrypt a data value in the key store, but the encrypted data value is stored in the unsecured execution environment. Each time the encryption key is used, it is changed to a new key. This also binds the white-box implementation to the hardware, and in addition, prevents a rollback attack because the new key will not match to the older encrypted value that the attacker tries to substitute for the current value.
  • In one embodiment, there is provided, a method for performing a secure function using a white-box implementation in a data processing system, the method comprising: receiving an encrypted encoded encryption key in the white-box implementation; storing the encrypted encoded encryption key using the TEE; decrypting the encrypted encoded encryption key using the TEE to generated a decrypted encoded encryption key; providing the decrypted encoded encryption key to the white-box implementation in the unsecured execution environment; and using the decrypted encoded encryption key to perform the secure function in the white-box implementation. Using the decrypted encoded encryption key to perform the secure function may further comprise using the decrypted encoded encryption key to encrypt a monetary amount in a payment application. Encoding the encryption key may further comprise encoding the encryption key using an exclusive-OR function. The secure function may comprise decrypting data. The method may further comprise storing the decrypted data in an unsecure memory location of the data processing system. The data processing system may be in a handheld device. Storing the encrypted encoded encryption key by the TEE may further comprise storing the encrypted encoded encryption key using a key store implemented via the TEE. Encrypting the encoded encryption key in a TEE may further comprise using a key store provided by the TEE to encrypt the encoded encryption key. The data processing system may be implemented in an integrated circuit.
  • In another embodiment, there is provided, a method for performing a secure function using a white-box implementation in a data processing system, the method comprising: inputting an encoded encryption key in the white-box implementation; storing the encoded encryption key in the unsecure execution environment; and using the encoded encryption key in a trusted execution environment (TEE) to perform the secure function using the white-box implementation. Encoding the encryption key may further comprise encoding the encryption key using one of a fixed mask, a linear function, or an affine function. The secure function may further comprise encrypting a data value. Storing the encoded encryption key in the unsecure execution environment may further comprise storing the encoded encryption key in a non-volatile memory. The encoded encryption key may be changed each time it is used to perform the secure function. The data processing system may be implemented in an integrated circuit.
  • In yet another embodiment, there is provided, a method for decrypting a data value in a data processing system, the method comprising: generating a decryption key; encrypting the decryption key in a key store supported by a trusted execution environment (TEE) of the data processing system; using the encrypted decryption key to decrypt a data value in the key store; storing the encrypted data value in unsecured memory of the data processing system; and changing the decryption key to a new decryption key each time it is used to decrypt a data value. Using the encrypted decryption key to decrypt a data value in the key store may further comprise using a software application in the key store to decrypt the data value. The data processing system may be implemented on an integrated circuit. Generating a decryption key may further comprise generating an encryption/decryption key pair, and wherein changing the decryption key to a new decryption key may further comprise changing the encryption/decryption key pair to a new encryption/decryption key pair each time one of the encryption key or decryption key of the pair is used to encrypt or decrypt a data value. The data value may be further protected using one or more of obfuscation and tamper proofing.
  • FIG. 1 illustrates a simple representation of a data processing system 10 in accordance with an embodiment. Data processing system 10 includes communication bus 12, processor(s) 14, peripherals 16, memory 18, non-volatile memory (NVM) 20, and TEE 22. In one embodiment, data processing system 10 is a system-on-a-chip (SoC) implemented on a single integrated circuit. In another embodiment, data processing system 10 may be implemented differently. Communication bus 12 is a conventional bus having a plurality of conductors for communicating address, data, and control information. In other embodiments, bus 12 may be an interconnect structure such as for example, a cross-bar switch or other form of SoC interconnect system. Processor(s) block 14 is bi-directionally connected to bus 12. Processor(s) 14 can include one or more of any type of processing element, such as a central processing unit (CPU), processor core, microprocessor, microcontroller, digital signal processor, and the like. There can be any number of processors. Peripherals 16 is bi-directionally connected to bus 12. Peripherals 16 add functionality to data processing system 10. Peripherals 16 can be processors or specialized processing elements, such as audio processors, video processors, modems, security elements, memory, etc. Also, a peripheral may include multiple modules or multiple central processing units or a combination of modules and central processing units. In addition, peripherals 16 may include control circuitry or other circuitry other than central processing units. Memory 18 and NVM 20 are each bi-directionally connected to bus 12 for providing and receiving data from the other blocks of data processing system 10. Memory 18 may include one or more of any type of memory such as volatile memory including static random access memory (SRAM) and dynamic random access memory (DRAM). Non-volatile memory 20 may include one or more of any type of NVM such as flash, magnetic random access memory (MRAM), electrically erasable programmable read only memory (EEPROM), one time programmable (OTP) memory, and the like.
  • A data processing system may implement a TEE in various ways. One way is to connect a separate external security co-processor to data processing system 10. Another way is to provide the separate security co-processor on the same integrated circuit as data processing system 10. The security co-processor is hardware that handles security chores such as device identification and authentication, secure storage, isolated program execution, and platform integrity. In another embodiment, the TEE may share the same hardware resources as the unsecure execution environment so that there is not a dedicated separate hardware security platform. ARM® Trustzone® technology is an example of this kind of secure environment. Data processing system 10 may be used in various systems, such as computers, automobiles, communications equipment, and handheld devices such as cell phones, tablets, smart cards, etc.
  • FIG. 2 illustrates a flow chart of a method 28 for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment. A white-box implementation in the user space may use, for example, a symmetric-key block cipher called data encryption standard (DES) published by the National Institute of Standards and Technology (NIST). In method 28, at step 30, an encryption key is generated. At step 32, the encryption key is encoded. The encoding is usually put on the key by the same party that generates the key. This may not be the device owner of the device on which the white-box implementation is installed. The content owner may generate the key. Ideally, a key is never in the clear on a device that is exposed to a white-box attack. If the device itself encodes the key this rule is violated. If, nonetheless, the device generates the key, then the generation of an encoded key should be done in one step (instead of first generating the key, and then encoding the key). An exclusive-OR (XOR) function may be used to encode the encryption key. To encode the encryption key, the encryption key may be XORed with, for example, a fixed mask, a linear function, or an affine function. At step 34, the encoded encryption key is provided to a key store in the TEE. The encoded encryption key is encrypted using an application of the key store. A key store is not a physical memory or other hardware. A key store is a software component with an API that enables storing keys as well as using keys. In the described embodiment, an encoded encryption key is stored using a key that is stored in the key store to encrypt and decrypt the encoded encryption key. An example key store is the Android Keystore system. At step 36, the encrypted encoded encryption key is stored using the key store in the TEE. At step 38, in preparation to being used, the encrypted encoded encryption key is decrypted using an application provided by the key store in the TEE. At step 40, the decrypted encoded encryption key is provided to the white-box implementation in unsecure storage such as for example, memory 18 or NVM 20. At step 42, the decrypted encoded encryption key is used to perform the secure function in the white-box implementation in the unsecure execution environment. The secure function may be encrypting a monetary value in a payment application for a mobile device or smart card. For example, the secure function may include encrypting or decrypting a value in, for example, a transit card for use with public transportation. The decrypted value, or other type of data, is stored in an unsecure memory location in, for example, NVM 20. Because the key is encoded, it is never in plaintext, thus making the embodiment more secure. In addition, storing the key in the TEE separates the key from the white-box implementation, effectively binding the white-box implementation to the hardware.
  • FIG. 3 illustrates a flow chart of a method 28 for performing a secure function using a white-box implementation in the data processing system of FIG. 1 in accordance with an embodiment. At step 52, an encryption key is generated. At step 54, the encryption key is encoded. The encoding is usually put on the key by the same party that generates the key. This may not be the device owner of the device on which the white-box implementation is installed. The content owner may generate the key. Ideally, a key is never in the clear on a device that is exposed to a white-box attack. If the device itself encodes the key this rule is violated. If, nonetheless, the device generates the key, then the generation of an encoded key should be done in one step (instead of first generating the key, and then encoding the key). An exclusive-OR (XOR) function may be used to encode the encryption key. To encode the encryption key, the encryption key may be XORed with, for example, a fixed mask, a linear function, or an affine function. The encoded encryption key may be generated elsewhere and inputted into the white-box implementation in accordance with an embodiment. At step 56, the encoded encryption key is stored in an unsecure memory location such as NVM 20. The encryption key is not stored in the unsecure execution environment in plaintext. At step 58, the encoded encryption key is provided to the TEE. At step 60, the encoded encryption key is used in the TEE to perform a secure function such as encrypting or decrypting a data value, such as a monetary value stored on a transit card. The encoded encryption key is stored in the unsecure memory while the white-box implementation is in the TEE. This keeps the encryption key separate from the white-box implementation so that the white-box implementation is bound to the data processing system. Also, as discussed above for method 28, the encryption key may be changed each time it is used to encrypt or decrypt a data value.
  • FIG. 4 illustrates a flow chart of a method 70 for encrypting a data value in the data processing system of FIG. 1 in accordance with an embodiment. At step 72, an encryption/decryption key pair is generated. At step 74, the encryption/decryption key pair is encrypted using a software application in a key store supported by a TEE. The key store may be the Android Keystore API. Different key store applications may work differently. At step 76, the encrypted encryption/decryption key pair is used in the key store in the TEE, using a key store application. The key may be encrypted using, for example, the RSA encryption algorithm. Typically, the key store supports various encryption algorithms including DES (Data Encryption Standard) and AES (Advanced Encryption Standard). The encryption key may be used to encrypt a data value in the TEE, or the decryption key or the key pair may be used to decrypt a data value in the TEE. The data value may, for example, be a monetary value on a transit card. At step 78, the encrypted encryption/decryption key pair is stored in the key store of the TEE, and at step 80, the encrypted data value is stored in unsecured memory, such as NVM 20. At step 82, the encryption/decryption key pair is changed. The encryption/decryption key pair is changed each time one of the encryption key or decryption key is used to encrypt or decrypt a data value. The pair is stored in secured storage such as a key store. U.S. Pat. No. 8,625,794 by Michiels describes a possible approach for efficiently changing keys in a white-box implementation. Because the key is changed after each transaction and secured in a key store, the encryption key is not available to a hacker. Therefore, a rollback attack, where an entire transaction application is replaced by an earlier version, will not work. The data value may be further protected using one or more of obfuscation and tamper proofing of data processing system 10.
  • Because the apparatus implementing the present invention is, for the most part, composed of electronic components and circuits known to those skilled in the art, circuit details will not be explained in any greater extent than that considered necessary as illustrated above, for the understanding and appreciation of the underlying concepts of the present invention and in order not to obfuscate or distract from the teachings of the present invention.
  • Although the invention is described herein with reference to specific embodiments, various modifications and changes can be made without departing from the scope of the present invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of the present invention. Any benefits, advantages, or solutions to problems that are described herein with regard to specific embodiments are not intended to be construed as a critical, required, or essential feature or element of any or all the claims.
  • The term “coupled,” as used herein, is not intended to be limited to a direct coupling or a mechanical coupling.
  • Furthermore, the terms “a” or “an,” as used herein, are defined as one or more than one. Also, the use of introductory phrases such as “at least one” and “one or more” in the claims should not be construed to imply that the introduction of another claim element by the indefinite articles “a” or “an” limits any particular claim containing such introduced claim element to inventions containing only one such element, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an.” The same holds true for the use of definite articles.
  • Unless stated otherwise, terms such as “first” and “second” are used to arbitrarily distinguish between the elements such terms describe. Thus, these terms are not necessarily intended to indicate temporal or other prioritization of such elements.

Claims (20)

1. (canceled)
2. (canceled)
3. (canceled)
4. (canceled)
5. (canceled)
6. (canceled)
7. (canceled)
8. (canceled)
9. (canceled)
10. A method for performing a secure function using a white-box implementation in a data processing system, the method comprising:
inputting an encoded encryption key in the white-box implementation;
storing the encoded encryption key in the unsecure execution environment; and
using the encoded encryption key in a trusted execution environment (TEE) to perform the secure function using the white-box implementation.
11. The method of claim 10, wherein encoding the encryption key further comprises encoding the encryption key using one of a fixed mask, a linear function, or an affine function.
12. The method of claim 10, wherein the secure function further comprises encrypting a data value.
13. The method of claim 10, wherein storing the encoded encryption key in the unsecure execution environment further comprises storing the encoded encryption key in a non-volatile memory.
14. The method of claim 10, wherein the encoded encryption key is changed each time it is used to perform the secure function.
15. The method of claim 10, wherein the data processing system is implemented in an integrated circuit.
16. A method for decrypting a data value in a data processing system, the method comprising:
generating a decryption key;
encrypting the decryption key in a key store supported by a trusted execution environment (TEE) of the data processing system;
using the encrypted decryption key to decrypt a data value in the key store;
storing the encrypted data value in unsecured memory of the data processing system; and
changing the decryption key to a new decryption key each time it is used to decrypt a data value.
17. The method of claim 16, wherein using the encrypted decryption key to decrypt a data value in the key store further comprises using a software application in the key store to decrypt the data value.
18. The method of claim 16, wherein the data processing system is implemented on an integrated circuit.
19. The method of claim 16, wherein generating a decryption key further comprises generating an encryption/decryption key pair, and wherein changing the decryption key to a new decryption key further comprises changing the encryption/decryption key pair to a new encryption/decryption key pair each time one of the encryption key or decryption key of the pair is used to encrypt or decrypt a data value.
20. The method of claim 16, wherein the data value is further protected using one or more of obfuscation and tamper proofing.
US16/451,221 2016-06-27 2019-06-25 Using secure key storage to bind a white-box implementation to one platform Abandoned US20190312718A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/451,221 US20190312718A1 (en) 2016-06-27 2019-06-25 Using secure key storage to bind a white-box implementation to one platform

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US15/194,001 US10389517B2 (en) 2016-06-27 2016-06-27 Using secure key storage to bind a white-box implementation to one platform
US16/451,221 US20190312718A1 (en) 2016-06-27 2019-06-25 Using secure key storage to bind a white-box implementation to one platform

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US15/194,001 Division US10389517B2 (en) 2016-06-27 2016-06-27 Using secure key storage to bind a white-box implementation to one platform

Publications (1)

Publication Number Publication Date
US20190312718A1 true US20190312718A1 (en) 2019-10-10

Family

ID=58489485

Family Applications (2)

Application Number Title Priority Date Filing Date
US15/194,001 Active 2036-12-24 US10389517B2 (en) 2016-06-27 2016-06-27 Using secure key storage to bind a white-box implementation to one platform
US16/451,221 Abandoned US20190312718A1 (en) 2016-06-27 2019-06-25 Using secure key storage to bind a white-box implementation to one platform

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US15/194,001 Active 2036-12-24 US10389517B2 (en) 2016-06-27 2016-06-27 Using secure key storage to bind a white-box implementation to one platform

Country Status (2)

Country Link
US (2) US10389517B2 (en)
EP (1) EP3264316B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021162957A1 (en) * 2020-02-13 2021-08-19 Verifone, Inc. Systems and methods for providing a trusted keystore

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11362824B2 (en) * 2018-05-25 2022-06-14 Intertrust Technologies Corporation Content management systems and methods using proxy reencryption
US10810585B2 (en) * 2018-07-06 2020-10-20 Mastercard International Incorporated Systems and methods for authenticating users in connection with mobile operations
US11206130B2 (en) * 2018-07-31 2021-12-21 Nxp B.V. Customizing cryptographic keys between multiple hosts
US11017090B2 (en) 2018-12-17 2021-05-25 Hewlett Packard Enterprise Development Lp Verification of a state of a platform
US11360784B2 (en) * 2019-09-10 2022-06-14 Hewlett Packard Enterprise Development Lp Integrity manifest certificate
CN110855667B (en) * 2019-11-14 2023-04-07 宁夏吉虎科技有限公司 Block chain encryption method, device and system
CN114679287B (en) * 2020-12-24 2023-05-09 美的集团股份有限公司 Data processing method, system, electronic device and storage medium
US11765142B1 (en) * 2022-08-08 2023-09-19 International Business Machines Corporation Distribution of private session key to network communication device for secured communications
US11916890B1 (en) * 2022-08-08 2024-02-27 International Business Machines Corporation Distribution of a cryptographic service provided private session key to network communication device for secured communications
US11924179B2 (en) * 2022-08-08 2024-03-05 International Business Machines Corporation API based distribution of private session key to network communication device for secured communications

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108171A1 (en) * 2003-11-19 2005-05-19 Bajikar Sundeep M. Method and apparatus for implementing subscriber identity module (SIM) capabilities in an open platform
WO2007105126A2 (en) 2006-03-10 2007-09-20 Koninklijke Philips Electronics N.V. Method and system for obfuscating a cryptographic function
JP4310361B2 (en) * 2006-12-27 2009-08-05 本田技研工業株式会社 Power equipment
EP2227015B1 (en) * 2009-03-02 2018-01-10 Irdeto B.V. Conditional entitlement processing for obtaining a control word
WO2010146140A1 (en) 2009-06-19 2010-12-23 Irdeto B.V. White-box cryptographic system with configurable key using block selection
CA2765622A1 (en) 2009-06-19 2010-12-23 Irdeto B.V. White-box cryptographic system with configurable key using intermediate data modification
US9690941B2 (en) * 2011-05-17 2017-06-27 Microsoft Technology Licensing, Llc Policy bound key creation and re-wrap service
AU2014321178A1 (en) * 2013-09-20 2016-04-14 Visa International Service Association Secure remote payment transaction processing including consumer authentication
US11228427B2 (en) * 2014-02-11 2022-01-18 Ericsson Ab System and method for securing content keys delivered in manifest files
GB2523758A (en) 2014-03-03 2015-09-09 Mastercard International Inc Secure mobile device transactions
US10615967B2 (en) * 2014-03-20 2020-04-07 Microsoft Technology Licensing, Llc Rapid data protection for storage devices
US9485226B2 (en) 2014-04-28 2016-11-01 Nxp B.V. Method for including an implicit integrity or authenticity check into a white-box implementation
US20160036826A1 (en) * 2014-07-29 2016-02-04 Mcafee, Inc. Secure content packaging using multiple trusted execution environments
WO2016026532A1 (en) * 2014-08-21 2016-02-25 Irdeto B.V. User authentication using a randomized keypad over a drm secured video path
US9594927B2 (en) 2014-09-10 2017-03-14 Intel Corporation Providing a trusted execution environment using a processor
US9704160B2 (en) * 2014-09-22 2017-07-11 Mastercard International Incorporated Trusted execution environment for transport layer security key pair associated with electronic commerce and card not present transactions
GB201418815D0 (en) * 2014-10-22 2014-12-03 Irdeto Bv Providing access to content
US20160182472A1 (en) 2014-12-19 2016-06-23 Nxp, B.V. Binding White-Box Implementation To Reduced Secure Element
GB2538773A (en) * 2015-05-28 2016-11-30 Vodafone Ip Licensing Ltd Device key security
US11120436B2 (en) * 2015-07-17 2021-09-14 Mastercard International Incorporated Authentication system and method for server-based payments

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021162957A1 (en) * 2020-02-13 2021-08-19 Verifone, Inc. Systems and methods for providing a trusted keystore
US11356271B2 (en) * 2020-02-13 2022-06-07 Verifone, Inc. Systems and methods for providing a trusted keystore

Also Published As

Publication number Publication date
EP3264316B1 (en) 2019-05-08
EP3264316A1 (en) 2018-01-03
US20170373828A1 (en) 2017-12-28
US10389517B2 (en) 2019-08-20

Similar Documents

Publication Publication Date Title
EP3264316B1 (en) Using secure key storage to bind a white-box implementation to one platform
AU2021203184B2 (en) Transaction messaging
US8213612B2 (en) Secure software download
US9576133B2 (en) Detection of data tampering of encrypted data
US8762742B2 (en) Security architecture for using host memory in the design of a secure element
US7984301B2 (en) Bi-processor architecture for secure systems
CN107078904B (en) Hybrid cryptographic key derivation
US7571329B2 (en) Method of storing unique constant values
CN102156843B (en) Data encryption method and system as well as data decryption method
EP2922235B1 (en) Security module for secure function execution on untrusted platform
CN109726565B (en) Using white boxes in anti-leakage primitives
CN108494546A (en) A kind of whitepack encryption method, device and storage medium
KR20130093557A (en) System, devices and methods for collaborative execution of a software application comprising at least one encrypted instruction
CN106209346B (en) White-box cryptography interleaving lookup table
US10673610B2 (en) System and method for protecting a cryptographic device against fault attacks while performing cryptographic non-linear operations using linear error correcting codes
CN110659506A (en) Replay protection of memory based on key refresh
Garcia et al. Wirelessly lockpicking a smart card reader
CN209103293U (en) Electronic equipment
Park et al. A whitebox cryptography application for mobile device security against whitebox attacks-how to apply WBC on mobile device
Yadav et al. Implementation of white-box cryptography in credit card processing combined with code obfuscation
KR20160090556A (en) On-line/off-line electronic signature system for security of off-line token and its method
CN116188009A (en) National cipher soft encryption mode key acquisition method, system, terminal and readable storage medium
Athena FIPS 140-2 Cryptographic Module Security Policy

Legal Events

Date Code Title Description
AS Assignment

Owner name: NXP B.V., NETHERLANDS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:MICHIELS, WILHELMUS PETRUS ADRIANUS JOHANNUS;HOOGERBRUGGE, JAN;BOS, JOPPE WILLEM;REEL/FRAME:049576/0121

Effective date: 20160622

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION