Not Applicable.
Certain embodiments of the invention relate to security functionalities in integrated circuits. More specifically, certain embodiments of the invention relate to a method and system for allowing no code download in a code download scheme.
In an increasingly security-conscious world, protecting access to information and/or to systems from unwanted discovery and/or corruption is a major issue for both consumers and businesses. Many consumer or business systems may be vulnerable to unwanted access when the level of security provided within the system is not sufficient for providing the appropriate protection. In this regard, consumer systems, such as multimedia systems, for example, may require the use of integrated architectures that enable security management mechanisms for defining and administering user rights or privileges in order to provide the necessary protection from unwanted access.
An example of a multimedia system that may be accessed by many different users may be a set-top box where manufacturers, vendors, operators, and/or home users may have an interest in accessing at least some limited functionality of the system. In some instances, a single device, such as a security processor for example, may be utilized to administer security operations in the multimedia system. The security processor may operate independently of other components in the multimedia system when determining rights or privileges of different users such as vendors and/or end users to various features in the multimedia system. For example, vendors may have limited access to some of the functions that may be accessible by the manufacturer. End users such as home users may only have access to a subset of the vendors' access rights. Also, some vendors may only have access to a subset of the access rights that may be provided by a manufacturer. In some instances, secure operations may be managed by specifying, in a single location, secure conditions for each security component supported by the system.
However, there are still users of multimedia systems who may have limited or no security requirements in their applications. Nevertheless, these users may utilize multimedia systems with integrated architectures that enable security management mechanisms for defining and administering user rights or privileges. Security-enabled multimedia systems may require boot up code that may be significantly more complex than what may be generally needed for non-secure applications. Moreover, the technical and maintenance support that may be needed for security-enabled multimedia systems may be more costly and/or may be provided in a more limited capacity to a user who utilizes them in non-secure applications.
Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with some aspects of the present invention as set forth in the remainder of the present application with reference to the drawings.
A system and/or method is provided for allowing no code download in a code download scheme, substantially as shown in and/or described in connection with at least one of the figures, as set forth more completely in the claims.
These and other advantages, aspects and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings.
Certain embodiments of the invention may be found in a method and system for allowing no code download in a code download scheme. Aspects of the invention may comprise a multimedia system-on-a-chip (SoC) that comprises a security processor, a ROM, and a one-time-programmable (OTP) memory. The security processor may enable fetching code from a restricted function portion of the ROM. The restricted functions may comprise code for booting up the SoC and/or code that prevents enabling security algorithms within the SoC. The security processor may then enable booting of at least a portion of the SoC based on the fetched code. The remaining portion of the ROM may comprise code for downloading security code from an external memory, such as a FLASH memory, to an internal memory, such as a RAM, to boot up the SoC. Access to the restricted function portion or the remaining portion of the ROM may be based on at least one bit from the OTP memory.
The ROM 130 may comprise suitable logic, circuitry, and/or code that may enable storing information. For example, the ROM 130 may be utilized to store instructions that may be utilized by the security processor 102 for enabling steps utilized in booting up the SoC 100. In this regard, the ROM 130 may be partitioned into a plurality of portions wherein each partition may correspond to a different booting mode for the SoC 100. The RAM 132 may comprise suitable logic, circuitry, and/or code that may be utilized for storing information. For example, the RAM 132 may be utilized for storing security code fetched from external memory by the security processor 102 for enabling steps utilized in booting up the SoC 100.
A memory controller 106 may comprise suitable logic, circuitry, and/or code that may enable accessing data from memory and/or storing data to memory. In this regard, the plurality of memory controllers MC1 1061, . . . , MCK 106K, described with regard to
The security processor 102 may comprise suitable logic, circuitry, and/or code that may enable control, configuration, and/or management of security operations and/or functionalities in the SoC 100. In this regard, the security processor 102 may communicate security information to memory controllers, I/O modules, and/or processing units via at least one of the secure key bus 112 and the secure control bus 114. The security processor 102 may also communicate with the host processor 104 via at least one of the control bus 116 and the data bus 118. In some instances, the security processor 102 may be disabled and the SoC 100 may be operated as a multimedia device with minimum security features controlled by the host processor 104. In other instances, the security processor 102 may be utilized to restrict or limit the operation of the SoC 100 to that of a multimedia device with minimum security features. In some instances, for example, minimum security features may correspond to enabling the security processor 102 to boot up the SoC 100 without enabling proprietary security applications integrated within the SoC 100. For example, the security processor 102 may enable operations within the SoC 100 that may be supported by the data bus 118 and/or the control bus 116 but that may not be supported by the secure key bus 112 and/or the secure control bus 114. Notwithstanding, the invention need not be so limited.
The processor 104 may comprise suitable logic, circuitry, and/or code that may enable control and/or management of operations in the SoC 100. In this regard, the processor 104 may be utilized for configuring SoC 100 components, such as memory controllers, I/O modules, and/or processing units, for example. The processor 104 may communicate with SoC 100 components via at least one of the control bus 116 and the data bus 118. In this regard, the processor 104 may communicate with the security processor 102 via the control bus 116 and the data bus 118.
The data bus 118 may be utilized for multimedia data transfer between components in the SoC 100. The control bus 116 may be utilized for control and configuration data transfer. For example, the control bus 116 may be utilized to read and/or write to registers. The secure control bus 114 may be utilized for security control and configuration data transfer. For example, the secure control bus 114 may be utilized to read and/or write to secure registers. In this regard, the secure control bus 114 may be communicatively coupled to components of the SoC 100 that may require secure registers and/or secure data access. The secure key bus 112 may be a dedicated bus, which may be utilized for delivering encryption and/or decryption keys to functional units that may require keys for cryptographic operations, such as block cipher operations, for example. For example, the processing unit PUP 100p in
The bus architecture of the SoC 100 need not be limited to the exemplary architecture described in
In some instances, there may be users that utilize the secure multimedia SoC 100 who may have limited or no security requirements in their applications. In this regard, the boot up code for the secure multimedia SoC 100 may be significantly more complex than what may be generally needed for multimedia systems with limited or no security features that are utilized in non-secure applications. Moreover, the technical and maintenance support that may be needed for the secure multimedia SoC 100 may be more costly and/or may be provided in a more limited capacity to a user who utilizes the secure multimedia SoC in non-secure applications.
The secure register 202 may comprise suitable logic, circuitry, and/or code that may enable communication of information with the security processor 102 via the secure control bus 114. In this regard, the secure register 202 may only be read and/or be written by the security processor 102. The secure register 202 may be implemented as a single register or as set of registers, for example. The secure register 202 may be specified based on its functionalities. For example, at least one bit in the security register 202 may be utilized for enabling and/or disabling control of security functions in the processing unit 200. At least one bit in the security register 202 may be utilized for activating and/or deactivating control of security functions in the processing unit 200. At least one bit in the security register 202 may be utilized for controlling a mode of operation. The mode of operation may indicate an input and/or output data routing, allowing and/or disallowing key loading by the security processor 102 and/or the host processor 104, and/or selection of a security algorithm, for example. The key memory 204 may comprise suitable logic, circuitry, and/or code that may enable storing decryption and/or encryption keys communicated from the security processor 102 via the secure key bus 112 and/or from the host processor 104 via the control bus 116. In this regard, the key memory 204 may be implemented utilizing a write-only random access memory (RAM).
The secure register 222 and the key memory 224 in the interface block 210 may be the same as or substantially similar to the secure register 202 and the key memory 204 in
The OTP 304 may comprise suitable logic, circuitry, and/or code that may enable storage of at least one bit that may be utilize to control portions of the operation of the secure multimedia SoC 300. In this regard, at least one bit in the OTP 304 may be utilized to determine whether the security processor 102 may access the first portion 130a or the second portion 130b of the ROM 130. For example, a single bit in the OTP 304 may be utilized to enable access to half of the storage addresses in the ROM 130 by the security processor 102 via an address bus. When the single bit is high, the security processor 102 may access the upper half of addresses in the ROM 130. When the single bit is low, the security processor 102 may access the lower half of addresses in the ROM 130. Notwithstanding, more than one bit may be utilized to more specifically determine one or more portions of the ROM 130, which the security processor 102 may access via the address bus.
The first portion 130a of the ROM 130 may comprise code or instructions for enabling booting up the secure multimedia SoC 300 and code or instructions for preventing the security processor 102 from enabling proprietary security algorithms that may be integrated within the secure multimedia SoC 300. The first portion 130a of the ROM 130 may be referred to as the restricted functionality ROM, for example. The second portion 130b may comprise code or instructions for enabling the secure multimedia SoC 300 to download proprietary security code from the external memory 302 into local memory for booting up the secure multimedia SoC 300. In this regard, the security code from the external memory 302 may be stored locally in the RAM 132, for example. The second portion 130b may be referred to as the download ROM, for example.
When the security processor 102 accesses the ROM 130 to fetch the appropriate code or instructions to initiate the boot up process, the programmed bit or bits in the OTP 304 may restrict which portion of the ROM 130 is accessed. When the OTP 304 restricts access by the security processor 102 to the first portion 130a, the security processor 102 may receive via a data bus code or instructions for enabling booting up the secure multimedia SoC 300 and code or instructions for preventing the security processor 102 from enabling proprietary security algorithms that may be integrated within the secure multimedia SoC 300. However, when the OTP 304 restricts access by the security processor 102 to the second portion 130b, the security processor 102 may receive via the data bus code or instructions for enabling the secure multimedia SoC 300 to download proprietary security code from the external memory 302 into the RAM 132 for booting up the secure multimedia SoC 300.
In some instances, at least a portion of the code or instructions comprised within the ROM 130 may be provided separately from the secure multimedia SoC 300. Separately provided code or instructions may refer to code or instructions that may not be programmed within the ROM 130 but may be provided via a storage medium. For example, a user may program the information into the external storage medium, such as the external memory 302, for later download by the download ROM into internal RAM 132. In this regard, a user may be the chip vendor's customer. In these instances, the code or instructions are said to be visible to the user. In other instances, the code or instructions may be programmed into the secure multimedia SoC 300 by, for example, a manufacturer before it is shipped to the user. In these instances, the code or instructions is said to be invisible to the user.
Returning to step 404, when the code for the ROM 130 is to be provided separately by, for example, a manufacturer, for shipping the secure multimedia SoC 300 to a user, the process may proceed to step 408. In step 408, encrypted download codeset created for later download onto the SoC 300 may be programmed and at least one bit may be programmed into the OTP 304 to lock the specified version of download code. In this regard, the user code may be copied to internal RAM 132 by utilizing the contents in the download ROM 130b, and may be allowed to logically replace the contents associated with the restricted download ROM 130a, based on at least one programmed bit in the OTP 304. The downloaded code stored in the internal RAM 132 need not be utilized to replace code stored in the ROM 130, instead it may be utilized for performing operations associated with at least portions of the code stored in the ROM 130. After step 408, the process may proceed to step 410.
In step 506, the security processor 102 may fetch security code from, for example, the external memory 302 disclosed in
The security code in the external memory 302 may be updated as part of the maintenance and/or support efforts that may be provided to the user by the manufacturer or producer of the secure multimedia SoC 300. In this regard, the same download ROM in the ROM 130 may be utilized by the security processor 102 to enable fetching original and/or updated versions of the security code stored in the external memory 302.
In step 606, the security processor 102 may verify the code in the restricted functionality ROM for booting up the secure multimedia SoC 300. In step 608, the security processor 102 may utilize the verified code in the restricted functionality ROM to boot the secure multimedia SoC 300 so that a limited or restricted portion of the proprietary security algorithms supported by the secure multimedia SoC 300 may be enabled. After step 608, the process may proceed to end step 610.
Since the approach disclosed in
Aspects of the invention may comprise a system for operating an integrated circuit, the system comprising a system-on-a-chip (SoC), such as the SoC 300 disclosed in
A remaining portion of the ROM 130 may comprise code for downloading security code from an external memory, such as the external memory 302, to the SoC 300. The remaining portion of the ROM 130 may correspond to the download ROM 130b disclosed in
Accordingly, the present invention may be realized in hardware, software, or a combination of hardware and software. The present invention may be realized in a centralized fashion in at least one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods described herein is suited. A typical combination of hardware and software may be a general-purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein.
The present invention may also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which when loaded in a computer system is able to carry out these methods. Computer program in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; b) reproduction in a different material form.
While the present invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiment disclosed, but that the present invention will include all embodiments falling within the scope of the appended claims.