Abstract:
A circuit for obscuring gate switching noise includes a synchronous clock source; an asynchronous clock source; at least one current source; and a random number generating circuit for receiving clock inputs from the synchronous clock source and the asynchronous clock source, the random number generating circuit generating randomly changing asynchronous digital control signals for controlling the current source.

Description:
CROSS REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application claims priority from commonly-assigned U.S. Provisional Patent Application Ser. No. 61/784,945 filed Mar. 14, 2013, which is hereby incorporated by reference in its entirety as if fully set forth herein. 
     
    
     TECHNICAL FIELD 
       [0002]    The present disclosure relates to security applications for integrated circuits and, particularly, to systems and methods for preventing monitoring activities. 
       BACKGROUND 
       [0003]    Processors and other devices implementing encryption systems are often provided with code-protected internal memories to store one or more encryption keys. 
         [0004]    In many security application systems today, various attack methods are being used to reveal confidential information stored within code-protected internal memories of devices. These can include mathematical attacks, invasive physical attacks, and non-invasive physical attacks. 
         [0005]    One method of non-invasive physical attack is known as “differential power analysis” (DPA). DPA monitors the current consumption or noise emission signatures of synchronous designs to determine what data is being manipulated, thus revealing confidential information. 
         [0006]    For example,  FIG. 1  illustrates various power consumption traces of an exemplary encryption module.  FIG. 1   a  illustrates power supply current from trigger point to sending.  FIG. 1   b  illustrates power supply current during programming.  FIG. 1   c  illustrates power supply current during encryption, and  FIG. 1   d  illustrates the end of encryption. From such power consumption traces, a DPA may be used to determine, for example, software keys and other encrypted information. In particular, DPA gathers a large number of samples from such traces by repeating encryption over a large number of cycles. The samples are compared and a statistical analysis is performed to determine similarities to identify the encryption key. 
         [0007]    DPA is known to be sensitive to signal-to-noise ratios of monitored systems. Accordingly, techniques are known for introducing noise into such systems to prevent DPA. However, such techniques typically use randomly generated signals derived from a single synchronous clock source. Consequently, a DPA statistical analysis may overcome such approaches. 
       SUMMARY 
       [0008]    These and other drawbacks in the prior art are overcome in large part by a system and method according to embodiments of the present invention. 
         [0009]    Embodiments include an asynchronously controlled current noise generator that randomly generates minor current changes inside a microcontroller to obscure or hide any gate switching noise within the device for additional security protection. The circuit helps to change the current and/or emission characteristics profile of the device to help protect against external switching monitoring activities within the device. 
         [0010]    A circuit for obscuring gate switching noise in accordance with embodiments includes a synchronous clock source; an asynchronous clock source; at least one current source; and a random number generating circuit for receiving clock inputs from the synchronous clock source and the asynchronous clock source, the random number generating circuit generating randomly changing asynchronous digital control signals for controlling the current source. 
         [0011]    In some embodiments, the synchronous clock source comprises a system clock. In some embodiments, the at least one current source comprising a plurality of current sources. In some embodiments, the circuit includes a bitstream buffer for receiving an output of the random number generating circuit and controlling an amplitude of current from the plurality of current sources, wherein the plurality of current sources tap from different bit offsets in the bistream buffer. In some embodiments, the synchronous clock source includes an external clock source. In some embodiments, the asynchronous clock source comprising an internal clock source. 
         [0012]    A method for providing a circuit for obscuring gate switching noise in accordance with embodiments includes providing a synchronous clock source; providing an asynchronous clock source; providing at least one current source; and providing a random number generating circuit for receiving clock inputs from the synchronous clock source and the asynchronous clock source, the random number generating circuit generating randomly changing asynchronous digital control signals for controlling the current source. 
         [0013]    In some embodiments, the synchronous clock sources comprises a system clock. In some embodiments, the at least one current source comprising a plurality of current sources. In some embodiments, the circuit includes a bitstream buffer for receiving an output of the random number generating circuit and controlling an amplitude of current from the plurality of current sources, wherein the plurality of current sources tap from different bit offsets in the bitstream buffer. In some embodiments, the synchronous clock source includes an external clock source. In some embodiments, the asynchronous clock source comprising an internal clock source. 
         [0014]    An integrated circuit in accordance with embodiments includes an encryption processor; and a circuit for obscuring gate switching noise, including: a synchronous clock source; an asynchronous clock source; at least one current source; and a random number generating circuit for receiving clock inputs from the synchronous clock source and the asynchronous clock source, the random number generating circuit generating randomly changing asynchronous digital control signals for controlling the current source. 
         [0015]    In some embodiments, the synchronous clock sources comprises a system clock. In some embodiments, the at least one current source comprising a plurality of current sources. In some embodiments, the circuit includes a bitstream buffer for receiving an output of the random number generating circuit and controlling an amplitude of current from the plurality of current sources, wherein the plurality of current sources tap from different bit offsets in the bitstream buffer. In some embodiments, the synchronous clock source includes an external clock source. In some embodiments, the asynchronous clock source comprising an internal clock source. In some embodiments, the encryption processor comprising a code hopping encryption processor. 
         [0016]    These, and other, aspects of the disclosure will be better appreciated and understood when considered in conjunction with the following description and the accompanying drawings. It should be understood, however, that the following description, while indicating various embodiments of the disclosure and numerous specific details thereof, is given by way of illustration and not of limitation. Many substitutions, modifications, additions and/or rearrangements may be made within the scope of the disclosure without departing from the spirit thereof, and the disclosure includes all such substitutions, modifications, additions and/or rearrangements. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0017]    The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings. The use of the same reference symbols in different drawings indicates similar or identical items. 
           [0018]      FIG. 1A-FIG .  1 D illustrate exemplary power consumption traces. 
           [0019]      FIG. 2  is an exemplary circuit for randomizing current injection. 
           [0020]      FIG. 3  is an exemplary circuit for randomizing current injection. 
           [0021]      FIG. 4  is a processor including randomized current injection. 
       
    
    
     DETAILED DESCRIPTION 
       [0022]    The disclosure and various features and advantageous details thereof are explained more fully with reference to the exemplary, and therefore non-limiting, embodiments illustrated in the accompanying drawings and detailed in the following description. Descriptions of known programming techniques, computer software, hardware, operating platforms and protocols may be omitted so as not to unnecessarily obscure the disclosure in detail. It should be understood, however, that the detailed description and the specific examples, while indicating the preferred embodiments, are given by way of illustration only and not by way of limitation. Various substitutions, modifications, additions and/or rearrangements within the spirit and/or scope of the underlying inventive concept will become apparent to those skilled in the art from this disclosure. 
         [0023]    As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, product, article, or apparatus that comprises a list of elements is not necessarily limited only those elements but may include other elements not expressly listed or inherent to such process, process, article, or apparatus. Further, unless expressly stated to the contrary, “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present). 
         [0024]    Additionally, any examples or illustrations given herein are not to be regarded in any way as restrictions on, limits to, or express definitions of, any term or terms with which they are utilized. Instead these examples or illustrations are to be regarded as being described with respect to one particular embodiment and as illustrative only. Those of ordinary skill in the art will appreciate that any term or terms with which these examples or illustrations are utilized encompass other embodiments as well as implementations and adaptations thereof which may or may not be given therewith or elsewhere in the specification and all such embodiments are intended to be included within the scope of that term or terms. Language designating such non-limiting examples and illustrations includes, but is not limited to: “for example,” “for instance,” “e.g.,” “in one embodiment,” and the like. 
         [0025]    As will be discussed in greater detail below, embodiments provide for a microcontroller with an embedded noise source to protect the security of information stored and/or used within the device. Traditional designs use randomly generated switching signals derived from a single synchronous system clock and do not implement multiple constant current mirrors with different amplitudes. 
         [0026]    Turning now to  FIG. 2 , a diagram of an exemplary randomizing circuit according to embodiments is shown and identified by the reference numeral  200 . In the embodiment illustrated, the circuit  200  includes at least one current source  202 , multiple clock sources  204  (CLK1),  208  (CLK2), and a true random number generator (TRNG) circuit  206 . 
         [0027]    In the embodiment illustrated, CLK1  204  is a synchronous clock, such as the system clock, while CLK2  208  is asynchronous. TRNG  206  receives the clock signals to create a randomly changing asynchronous digital control signal that controls the one or more constant current sources  202 . In some embodiments, the system clock  204  is from an external source, while the asynchronous clock  208  is internal. 
         [0028]    In the embodiment illustrated, an exemplary constant current source  202  includes transistors Q 1 , Q 2  and resistors R 1 , R 2 . The current limit may be set by sizing resistor R 2 . The amplitude of the generator noise signals can be varied by the addition of a bit stream buffer. 
         [0029]    Another embodiment of a randomizing circuit  300  in accordance with embodiments is shown in  FIG. 3 . As shown, the randomizing circuit  300  includes system clock  204 , TRNG circuit  206  and asynchronous oscillator  208 . In addition, a bitstream buffer  301  is provided to buffer the outputs of the TRNG circuit  206 , which can then be provided to one or more current mirror circuits  202   a ,  202   b . In some embodiments, each of the current mirrors may receive a different bit offset from the bitstream buffer  301 . For example, mirror  202   a  may receive an offset from bit  0  while mirror  202   b  may receive an offset from bit  3  (not shown). 
         [0030]    Current mirror circuit  202   a  includes transistors Q 1   1 , Q 21  and resistors R 1   1  and R 2   1 . Again, the current limit may be set by sizing resistor R 1   1 . Current mirror  202   b  is similar, and includes transistors Q 1   2 , Q 2   2  and resistors R 1   2  and R 2   2 . Current limit size may be set by sizing the resistor R 2   1 . 
         [0031]    It is noted that, depending on the particular implementation, more than two current mirrors could be provided, with current limit resistors chosen as desired. Thus, the figures are exemplary only. 
         [0032]    Turning now to  FIG. 4 , a cryptographic integrated circuit  400  is shown that may be used in conjunction with a randomizing current injection circuit in accordance with embodiments. In particular, the cryptographic integrated circuit  400  is representative of an encryption device. A code hopping device, such as a Keeloq code device is one embodiment. The cryptographic integrated circuit  400  includes a controller  402 , such as a microcontroller (MCU) which may include or be in communication with an encryption coder/decoder  404 . The encoder/decoder  404  may, for example, use one or more public or private keys to encode and decode a bitstream received from external to the cryptographic integrated circuit  400 . 
         [0033]    In addition, the cryptographic integrated circuit device  400  may include a system clock  406  and a randomizing current injection circuit  408  in accordance with embodiments. While encryption and decryption may occur using the system clock  406 , the randomizing current injection circuit  408  generates a random current to obscure current traces from such activities. 
         [0034]    Although the foregoing specification describes specific embodiments, numerous changes in the details of the embodiments disclosed herein and additional embodiments will be apparent to, and may be made by, persons of ordinary skill in the art having reference to this description. In this context, 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 this disclosure. Accordingly, the scope of the present disclosure should be determined by the following claims and their legal equivalents.