Power supply apparatus, method and safety system

By dynamically adjusting the voltage of the power supply equipment, the problems of large charge storage capacitance and high power consumption in existing technologies are solved, achieving a safe and energy-saving power supply solution.

CN115879170BActive Publication Date: 2026-11-24NUVOTON
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210490376.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-04-06
Filing Date
2022-05-07
Publication Date
2026-11-24
Estimated Expiration
2042-05-07

AI Technical Summary

Technical Problem

Existing technologies require large charge storage capacitors and time-consuming circuit designs to prevent hackers from obtaining security information by detecting power and ground pins, and are not energy-efficient.

Method used

By employing safe power supply equipment and a stable voltage source, and by dynamically adjusting the supply voltage and stabilizing the voltage, the driving voltage of the encryption and decryption equipment is ensured to be within a specific range, thereby reducing the size of the charge storage capacitor and the circuit area.

Benefits of technology

It effectively protects the security system, prevents information leakage, and reduces the size, operating time, and current consumption of charge storage capacitors, thereby reducing circuit complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115879170B_ABST
    Figure CN115879170B_ABST
Patent Text Reader

Abstract

A power supply device, method, and safety system. When the encryption / decryption device is operating and the drive voltage is within the voltage range defined by the upper and lower voltage limits, only the supply voltage provided by the safe power supply device is used as the drive voltage for the encryption / decryption device. When the encryption / decryption device is operating and the drive voltage is outside the voltage range defined by the upper and lower voltage limits, both the supply voltage and a stable voltage provided by a stable voltage source are used as the drive voltage simultaneously. The supply voltage is adjusted until the drive voltage falls within the voltage range defined by the upper and lower voltage limits, after which only the supply voltage is used as the drive voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a power supply device, method, and security system, and in particular to a power supply device, method, and security system that can prevent hackers from maliciously stealing security information by detecting changes in the system voltage of the power supply and the corresponding changes in the current value. Background Technology

[0002] In recent years, security applications have been implemented in many fields, including ID cards, credit cards, computer access control, and mobile phones (e.g., SIM cards). These applications typically rely on cryptographic calculations based on keys embedded in memory to achieve high security. Hackers may attempt to extract these keys from the card to generate unauthorized transactions. Side-channel attacks are the most common method for collecting information from a card or computer system during normal operation. They can decrypt keys based on timing information, power consumption, and electromagnetic fields. Therefore, maintaining data security and preventing side-channel attacks are factors that need to be considered when designing secure systems.

[0003] The following describes a power-side channel attack. Hackers can detect changes in the detection current and the resulting power characteristics (typically, the drive voltage applied to the encryption / decryption device also changes with the current) during logic gate switching in an encryption / decryption device (implemented through multiple logic gates). They can monitor these power characteristics via power pins to recover the key. To prevent reading power and ground signals from the logic gates, the power and ground pins are typically isolated from external pads.

[0004] Please refer to Figure 1 , Figure 1 This is a circuit diagram of a prior art security system. Security system 1 includes a power supply 10, a power supply device 12, and an encryption / decryption device 14. The power supply device 12 is electrically connected between the power supply 10 and the encryption / decryption device 14 to prevent hackers from obtaining power characteristics associated with security information by detecting the power supply pins and ground pins of the power supply 10. The power supply device 12 includes multiple switches SW1 to SW5 and a charge storage capacitor CS. One end of switch SW1 is electrically connected to the system voltage of the power supply 10, and the other end of switch SW1 is electrically connected to one end of switch SW2, one end of switch SW5, and one end of the charge storage capacitor CS. The other end of switch SW2 is electrically connected to one end of the encryption / decryption device 14, thereby outputting a supply voltage to the encryption / decryption device 14 as its driving voltage. One end of switch SW3 is electrically connected to the ground voltage of the power supply 10. The other end of switch SW3 is electrically connected to one end of switch SW4, the other end of switch SW5, and the other end of the charge storage capacitor CS. The other end of switch SW4 is electrically connected to the other end of encryption / decryption device 14 to provide ground voltage to encryption / decryption device 14.

[0005] The power supply device 12 provides the supply voltage in the following manner. First, in the first stage, only switch SW5 is turned on, while other switches SW1 to SW4 are turned off, allowing the charge storage capacitor CS to discharge to a specific voltage level; that is, switch SW5 is used as a reset switch. In the second stage, switches SW1 and SW3 are turned on, while other switches SW2, SW4, and SW5 are turned off. Therefore, the system voltage of the power supply 10 can charge the charge storage capacitor CS. Only after charging to the system voltage level does it enter the third stage. In the third stage, switches SW2 and SW4 are turned on, while other switches SW1, SW3, and SW5 are turned off. The charge storage capacitor CS provides the supply voltage to the encryption / decryption device 14 as the driving voltage. Then, in the fourth stage, the encryption / decryption device 14 is allowed to perform encryption and decryption. After the fourth stage ends, it returns to the first stage.

[0006] While the above approach prevents hackers from obtaining security-related power characteristics by detecting the power and ground pins of power supply 10, it requires ensuring that the charge stored in the charge storage capacitor CS is sufficient to supply the large amount of charge consumed by the encryption / decryption device 14 during encryption and decryption. Therefore, the size of the charge storage capacitor CS must be sufficiently large. Furthermore, this approach is not a power-saving solution because the charge storage capacitor CS must be discharged to a predetermined voltage level in the first stage. Additionally, the larger the size of the charge storage capacitor CS, the longer the charging and discharging time, resulting in a more time-consuming overall process. Moreover, this approach requires a total of four stages to ensure the encryption / decryption device 14 functions properly. Summary of the Invention

[0007] This invention provides a power supply device for providing power to an encryption / decryption device in a security system. The device includes a secure power supply unit, a stable voltage source, and a voltage selection device. The secure power supply unit provides a supply voltage, which can be dynamically adjusted according to the operation of the encryption / decryption device. The stable voltage source provides a stable voltage. The voltage selection device is electrically connected to the secure power supply unit, the stable voltage source, and the encryption / decryption device. When the encryption / decryption device is operating and its drive voltage falls within a voltage range defined by an upper and lower voltage limit, the voltage selection device uses only the supply voltage as the drive voltage. When the encryption / decryption device is performing encryption / decryption and its drive voltage is outside the voltage range, the voltage selection device uses both the supply voltage and the stable voltage as the drive voltage, adjusting the supply voltage until it falls within the voltage range.

[0008] This invention also provides a security system, which includes the aforementioned power supply device and encryption / decryption device.

[0009] This invention also provides a power supply method for providing power to an encryption / decryption device in a security system, and includes the following steps: When the encryption / decryption device is operating and its drive voltage is greater than an upper limit voltage, the supply voltage provided by a secure power supply device and the stable voltage provided by a stable voltage source are used as the drive voltage, and the supply voltage is reduced until it is less than the upper limit voltage, at which point only the supply voltage is used as the drive voltage. When the encryption / decryption device is operating and its drive voltage is less than a lower limit voltage, the supply voltage and the stable voltage are used as the drive voltage, and the supply voltage is increased until it is greater than the lower limit voltage, at which point only the supply voltage is used as the drive voltage. When the encryption / decryption device is operating and its drive voltage is neither greater than the upper limit voltage nor less than the lower limit voltage, only the supply voltage is used as the drive voltage.

[0010] This invention provides a power supply device for providing power to an encryption / decryption device in a security system. The device includes a secure power supply unit, a stable voltage source, and a voltage selection unit. The secure power supply unit provides a supply voltage based on the system voltage, wherein the supply voltage can be dynamically adjusted according to the operation of the encryption / decryption device. The stable voltage source provides a stable voltage. The voltage selection unit is electrically connected to the secure power supply unit, the stable voltage source, and the encryption / decryption device. When the encryption / decryption device is operating and its driving voltage is within a voltage range defined by an upper and lower voltage limit, the voltage selection unit uses only the supply voltage as the driving voltage. When the encryption / decryption device is operating and its driving voltage is outside the voltage range, the voltage selection unit uses only the stable voltage as the driving voltage, and adjusts the supply voltage until it falls within the voltage range, then uses only the supply voltage as the driving voltage for the encryption / decryption device.

[0011] In summary, compared to prior art, the various power supply devices, methods, and security systems provided in the embodiments of the present invention can achieve at least one of the technical effects of reducing the size required for charge storage capacitors, operating time, power consumption current, and circuit area. The power supply devices of the embodiments of the present invention can effectively protect security systems and prevent hackers from obtaining security information through power characteristics detected by power pins and ground pins.

[0012] To further understand the technology, means, and effects of the present invention, reference can be made to the following detailed description and accompanying drawings, which will provide a thorough and concrete understanding of the purpose, features, and concepts of the present invention. However, the following detailed description and accompanying drawings are for reference and illustration only and are not intended to limit the present invention. Attached Figure Description

[0013] The accompanying drawings are provided to enable those skilled in the art to further understand the invention, and are incorporated in and constitute a part of the specification of the invention. The drawings illustrate exemplary embodiments of the invention and are used together with the specification to explain the principles of the invention.

[0014] Figure 1 This is a circuit diagram of a safety system based on prior art.

[0015] Figure 2 This is a circuit diagram of the safety system according to an embodiment of the present invention.

[0016] Figure 3 This is a circuit diagram of the switching mode controller according to an embodiment of the present invention.

[0017] Figure 4 This is a waveform diagram of some signals of the security system according to an embodiment of the present invention.

[0018] Figure 5 This is a flowchart of a power supply method according to an embodiment of the present invention.

[0019] The symbols indicated in the diagram are explained as follows: 1, 2: Security system; 10: Power supply; 12, 20: Power supply equipment; 14, 22: Encryption / decryption equipment; 200: Stable voltage source; 202: Switching mode controller; 204: Safe power supply equipment; SW1~SW5: Switches; 206: Switching switch; 208: Ripple suppression unit; CS: Charge storage capacitor; VDIG: Drive voltage; VTG-Δ: Lower limit voltage; VTG+Δ: Upper limit voltage; DVDD, VDD system voltage; CU1~CUn: Switching current unit; CR1~CRn: Current source; SC1~SCn: Switches; R1: Resistor; MP1, MP2: PMOS transistors; CMP1~CMP3: Comparators; C1: Capacitor; VLEED: Fixed bias voltage; T1~T4: Interval; ENCRP: Encryption / decryption working signal; CNT1: Counter; LG1: Logic circuit; OUT1, OUT2: Output signals; S102, S104, S106A, S106B: Steps Detailed Implementation

[0020] Reference will now be made in detail to exemplary embodiments of the invention, which are illustrated in the accompanying drawings. Where possible, the same component reference numerals are used in the drawings and description to refer to the same or similar parts. Furthermore, the exemplary embodiments are merely one way of implementing the design concept of the invention, and the following examples are not intended to limit the invention.

[0021] To address the problems of prior art, the various power supply devices, methods, and security systems provided in the embodiments of the present invention can prevent hackers from obtaining security information through power characteristics detected by power pins and ground pins. In addition to achieving security protection, they can also achieve at least one of the technical effects of reducing the size, operation time, power consumption current, and circuit area required for charge storage capacitors.

[0022] In this embodiment of the invention, the power supply device includes a safe power supply device, a stable voltage source, and a voltage selection device, wherein the voltage selection device is electrically connected to the safe power supply device, the stable voltage source, and the encryption / decryption device. When the encryption / decryption device performs encryption / decryption (i.e., the encryption / decryption device is operating), the voltage selection device monitors the driving voltage of the encryption / decryption device. When the driving voltage is between an upper limit voltage and a lower limit voltage, the voltage selection device selects the supply voltage provided by the safe power supply device as the driving voltage of the encryption / decryption device; and when the driving voltage is greater than the upper limit voltage or less than the lower limit voltage (i.e., outside the voltage range formed by the upper limit voltage and the lower limit voltage), the voltage selection device simultaneously selects the stable voltage provided by the stable voltage source and the supply voltage provided by the safe power supply device as the driving voltage of the encryption / decryption device.

[0023] Furthermore, when the driving voltage is greater than the upper limit voltage, the voltage selection device will also reduce the supply voltage provided by the safety power supply device until the driving voltage drops below the upper limit voltage. Moreover, when the driving voltage is less than the lower limit voltage, the voltage selection device will also increase the supply voltage provided by the safety power supply device until the driving voltage rises above the upper limit voltage.

[0024] The voltage selection device may include a switching mode controller and a switching switch. During startup, the switching mode controller controls the switching switch to be turned on, and only a stable voltage source provides a stable voltage to the encryption / decryption device as its driving voltage. During startup, the driving voltage of the encryption / decryption device gradually increases, and the startup period ends when it reaches a target voltage value (e.g., another system voltage lower than the maximum system voltage) and remains there for a certain period. After the startup period ends, the switching mode controller determines whether the encryption / decryption device should be supplied with a safe power supply voltage or a stable voltage source should provide a stable voltage to the encryption / decryption device as its driving voltage, based on whether the encryption / decryption device needs to be encrypted or decrypted, by turning the switching switch on or off.

[0025] This method maintains a stable driving voltage after the startup period ends, ensuring the stable voltage source keeps the driving voltage stable when the encryption / decryption device is not performing encryption / decryption. Only when the encryption / decryption device is performing encryption / decryption, and the driving voltage is within the voltage range between the upper and lower limits, does the safety power supply device provide the supply voltage to the encryption / decryption device as the driving voltage. When the driving voltage exceeds the voltage range, both the stable voltage and the supply voltage are used as the driving voltage, and the magnitude of the supply voltage is adjusted to ensure the driving voltage falls within the voltage range. Accordingly, the power supply device provided by this embodiment can solve the technical problem of sudden drops in driving voltage caused by the large current consumption of the encryption / decryption device during encryption / decryption. Compared to prior art, this embodiment can still effectively reduce the size of the charge storage capacitor, operating time, current consumption, and circuit area.

[0026] First, please refer to Figure 2 , Figure 2 This is a circuit diagram of a security system according to an embodiment of the present invention. Security system 2 includes a power supply device 20 and an encryption / decryption device 22. The power supply device 20 includes a stable voltage source 200, a switching mode controller 202, a secure power supply device 204, and a switching switch 206. The switching mode controller 202 and the switching switch 206 constitute a voltage selection device. The power supply device 20 provides power to the encryption / decryption device 22 of security system 2. Its main purpose is to prevent hackers from obtaining security information by detecting changes in power characteristics (i.e., changes in the power characteristics of the system voltage) obtained by detecting changes between the power supply pin and the ground pin. In other words, the encryption / decryption device 22 will not allow significant changes in the power characteristics of the system voltage during encryption / decryption.

[0027] The secure power supply device 204 generates and provides a supply voltage based on the system voltage. This supply voltage is applied to the encryption / decryption device 22 as the drive voltage VDIG (associated with the on / off state of the switch 206) for driving the encryption / decryption device 22. The supply voltage can be dynamically adjusted according to the operation of the encryption / decryption device. Through the secure power supply device 204, the power characteristic variation of the system voltage during encryption / decryption by the encryption / decryption device 22 can be less than a certain range, for example, the current or voltage variation is less than 5%, but this is not a limitation of the invention. However, if only the secure power supply device 204 provides the supply voltage as the drive voltage VDIG for the encryption / decryption device 22, it may not be possible to provide sufficient total output current to the encryption / decryption device 22 as the current consumed during encryption / decryption. That is, if the switching current unit activated in the secure power supply device 204 for providing current is insufficient, sufficient total output current cannot be provided to the encryption / decryption device 22. Therefore, a stable voltage source 200, a switching mode controller 202, and a switching switch 206 are provided in the power supply equipment 20 to solve the above-mentioned technical problems.

[0028] The stable voltage source 200 is used to provide a stable voltage that is not easily affected by fluctuations. The stable voltage source 200 can be implemented by DC-DC conversion devices such as bandgap voltage generators and low-dropout regulators, for example, but not limited to, devices that are... Figure 2 The comparator CMP1, resistor R1, and PMOS transistor MP1 are used to implement this. The switching mode controller 202 is electrically connected to the encryption / decryption device 22 and is used to generate a first switching signal and a second switching signal based on the first switching signal and the drive voltage VDIG of the encryption / decryption device 22. The first switching signal is based on the encryption / decryption operation signal ENCRP (e.g., whether the encryption / decryption device 22 is performing encryption / decryption) used to indicate whether encryption / decryption is being performed. Figure 3 and Figure 4 ) and two output signals OUT1 and OUT2 (e.g., OUT1 and OUT2) used to indicate whether the drive voltage VDIG exceeds the voltage range formed by the upper and lower limits of the voltage. Figure 3 The decision is made by [the controller]. One implementation of the switching mode controller 202 is as follows: Figure 3 As shown, details will be described later, and the invention is not intended to be limited thereto. The switch 206 has a first terminal, a second terminal, and a control terminal, wherein the first terminal is electrically connected to a stable voltage source 200, the second terminal is electrically connected to an encryption / decryption device 22, and the control terminal is electrically connected to a switching mode controller 202 to receive a first switching signal. The switching of the switch 206 (i.e., the switching between the first and second terminals) is controlled by the first switching signal.

[0029] The total output current generated by the safe power supply device 204 is controlled by the second switching signal. When the encryption / decryption device 22 performs encryption / decryption, the supply voltage is initially used as the driving voltage VDIG. However, if the current consumption of the encryption / decryption device 22 increases, and the driving voltage VDIG of the encryption / decryption device 22 drops below the lower limit voltage, the first switching signal switches 206, so that the stable voltage and the supply voltage are used as the driving voltage VDIG simultaneously. At the same time, the second switching signal is updated and controls the safe power supply device 204 to increase the total output current of the safe power supply device 204, thereby increasing the supply voltage and the driving voltage VDIG. Then, the driving voltage VDIG returns to the voltage range formed by the upper limit voltage and the lower limit voltage, and the first switching signal switches 206 to use the supply voltage as the driving voltage VDIG. Compared to the previous supply voltage, the supply voltage has been increased this time, so it can be used again only as the driving voltage VDIG.

[0030] On the other hand, when the encryption / decryption device 22 performs encryption / decryption, the supply voltage is initially used as the driving voltage VDIG. However, when the driving voltage VDIG of the encryption / decryption device 22 rises above the upper limit voltage, the first switch signal switching switch 206 uses both the stable voltage and the supply voltage as the driving voltage VDIG. Simultaneously, the second switch signal is updated and controls the safety power supply device 204 to reduce the total output current of the safety power supply device 204, thereby lowering both the supply voltage and the driving voltage VDIG. Then, the driving voltage VDIG returns to the voltage range formed by the upper and lower limits, and the first switch signal switching switch 206 uses the supply voltage as the driving voltage VDIG. Compared to the previous supply voltage, this supply voltage has been reduced, so it can once again use only the supply voltage as the driving voltage VDIG.

[0031] Next, when the encryption / decryption device 22 is not performing encryption / decryption or during startup, the stable voltage source 200 provides a stable voltage to the encryption / decryption device 22 as the drive voltage VDIG. Therefore, the first switching signal generated by the switching mode controller 202 prevents the safety power supply device 204 from providing supply voltage and generating total output current to the encryption / decryption device 22.

[0032] Please refer to the following at the same time Figure 1 and Figure 4 , Figure 4This is a waveform diagram of some signals of the security system according to an embodiment of the present invention. During startup (interval T1), the switching mode controller 202 generates a first switching signal to turn on the switching switch 206 (the first and second terminals of the switching switch 206 are connected), and the security power supply device 204 does not provide supply voltage, so the encryption / decryption device 22 only receives a stable voltage as the driving voltage VDIG. After the driving voltage VDIG reaches or approaches the target value of the driving voltage VDIG, the startup period (interval T1) ends, and the switching mode controller 202 generates a first switching signal to turn on the switching switch 206 (the first and second terminals of the switching switch 206 are connected), and the security power supply device 204 does not provide supply voltage, so that the encryption / decryption device 22 only receives a stable voltage as the driving voltage VDIG.

[0033] After the startup period ends (interval T1), the switching mode controller 202 determines whether to use the supply voltage as the drive voltage VDIG based on the encryption / decryption working signal ENCRP. In interval T2 following interval T1, the encryption / decryption device 22 does not perform encryption / decryption. The first switching signal turns on the switching switch 206 and prevents the safety power supply device 204 from providing supply voltage. Therefore, the encryption / decryption device 22 only receives the stable voltage as the drive voltage VDIG.

[0034] In interval T3, encryption / decryption device 22 performs encryption / decryption (encryption / decryption signal ENCRP is at logic high level). If the driving voltage VDIG is within the voltage range formed by the upper and lower limits, the first switching signal disconnects the switching switch 206, and the second switching signal causes the safety power supply device 204 to output total current and provide supply voltage to the encryption / decryption device 22 as the driving voltage VDIG. In interval T3, if the driving voltage VDIG exceeds the voltage range formed by the upper and lower limits, the first switching signal turns on the switching switch 206 and switches to using the stable voltage and supply voltage as the driving voltage VDIG. Furthermore, when using the stable voltage and supply voltage as the driving voltage VDIG, if the driving voltage VDIG is greater than the upper limit, the second switching signal will cause the supply voltage to decrease until the driving voltage VDIG is less than the upper limit, at which point only the supply voltage is used as the driving voltage VDIG and the decrease in supply voltage stops. Similarly, when using the stable voltage and the supply voltage as the driving voltage VDIG, if the driving voltage VDIG is less than the lower limit voltage, the second switching signal will cause the supply voltage to rise until the driving voltage VDIG is greater than the lower limit voltage. Only then will the supply voltage be used as the driving voltage VDIG and the increase in the supply voltage stop. In the interval T4 after interval T3, the encryption / decryption device 22 does not perform encryption / decryption. The first switching signal turns on the switching switch 206 and causes the safety power supply device 204 to not provide the supply voltage. Therefore, the encryption / decryption device 22 only receives the stable voltage as the driving voltage VDIG.

[0035] Incidentally, although a stable voltage is used as the driving voltage VDIG during both the startup and non-encryption / decryption periods in the embodiments of the present invention, the present invention is not limited thereto. In other cases, a supply voltage may also be used as the driving voltage VDIG.

[0036] Please go back and refer to... Figure 2 The stable voltage source 200 may include a PMOS transistor MP1, a comparator CMP1, and a resistor R1. The source of the PMOS transistor MP1 is electrically connected to the system voltage VDD. The output of the comparator CMP1 is electrically connected to the gate of the PMOS transistor. The negative input of the comparator CMP1 receives a voltage lower than a target voltage value (e.g., another system voltage DVDD lower than the system voltage VDD). The positive input of the comparator CMP1 is electrically connected to the first terminal of the switching switch 206 and the drain of the PMOS transistor MP1. The resistor R1 has two ends electrically connected to the drain of the PMOS transistor MP1 and a low voltage (e.g., ground voltage), respectively. This architecture forms a negative feedback circuit, such that in steady state, the voltage values ​​at the positive and negative inputs of the comparator CMP1 are the same.

[0037] One implementation of the safe power supply device 204 is described below, but the present invention is not limited thereto. The safe power supply device 204 includes a plurality of switching current units CU1 to CUn, wherein a plurality of terminals of the plurality of switching current units CU1 to CUn are electrically connected to the system voltage VDD, and a plurality of other terminals of the plurality of switching current units CU1 to CUn are electrically connected to each other and used to output a supply voltage as a driving voltage VDIG, and the plurality of switching current units CU1 to CUn are controlled by a plurality of third switching signals, wherein the second switching signals include a plurality of third switching signals.

[0038] The current switching unit CU1 includes a current source CR1 and a switch SC1. One end of the current source CR1 is electrically connected to the system voltage VDD, and the two ends of the switch SC1 are electrically connected to the other end of the current source CR1 and the system voltage VDD, respectively. The switch SC1 is controlled by a second switching signal. Similarly, the current switching unit CU2 includes a current source CR2 and a switch SC2, the current switching unit CU3 includes a current source CR3 and a switch SC3, and the current switching unit CUn includes a current source CRn and a switch SCn. The electrical connection between each of the current sources CR2, CR3, and CRn and the corresponding switches SC2, SC3, and SCn is similar to the electrical connection between the current source CR1 and the switch SC1, so it will not be described in detail.

[0039] When the encryption / decryption device 22 performs encryption / decryption, its current consumption increases, causing the drive voltage VDIG to decrease. When the drive voltage VDIG is less than the lower limit voltage VTG-Δ, the second switching signal (including multiple third switching signals) generated by the switching mode controller 202 increases the number of switched current units CU1 to CUn that are turned on, thereby increasing the total output current of the switched current units CU1 to CUn and raising the value of the drive voltage VDIG, where Δ is the differential voltage. The total output current of the switched current units CU1 to CUn may be excessive, causing the drive voltage VDIG to rise. When the drive voltage VDIG is greater than the upper limit voltage VTG+Δ, the second switching signal (including multiple third switching signals) generated by the switching mode controller 202 increases the number of switched current units CU1 to CUn that are turned off, thereby reducing the total output current of the switched current units CU1 to CUn and lowering the value of the drive voltage VDIG.

[0040] Incidentally, the power supply device 2 may also include a capacitor C1 connected in parallel with the encryption / decryption device 22 and / or a ripple suppression unit 208 connected in parallel with the encryption / decryption device 22. By using the capacitor C1 connected in parallel with the encryption / decryption device 22 and / or the ripple suppression unit 208 connected in parallel with the encryption / decryption device 22, the stability of the drive voltage can be maintained more effectively. The ripple suppression unit 208 may be a PMOS transistor MP2 with a gate receiving a fixed bias voltage VLEED. The source and drain of this PMOS transistor MP2 receive the drive voltage VDIG and a low voltage (e.g., ground voltage) respectively, thus reducing ripple when the drive voltage VDIG changes.

[0041] Please refer to the following: Figure 3 , Figure 3 This is a circuit diagram of a switching mode controller according to an embodiment of the present invention. One implementation of the switching mode controller 202 can be as follows: Figure 3 However, this invention is not limited thereto. The switching mode controller 202 includes comparators CMP2 and CMP3, a counter CNT1, and logic circuit LG1. Comparator CMP2 has a positive input terminal and a negative input terminal that respectively receive the upper limit voltage VTG+Δ and the drive voltage VDIG. Comparator CMP3 has a positive input terminal and a negative input terminal that respectively receive the drive voltage VDIG and the lower limit voltage VTG-Δ. Counter CNT1 has two input terminals that are electrically connected to the output terminals of comparators CMP2 and CMP3, respectively. Its enable / disable is determined by a first switching signal, and it is used to count up or down between the output signals of comparators CMP2 and CMP3 to generate a second switching signal.

[0042] Furthermore, when the first switching signal turns on the changeover switch 206, the counter CNT1 is disabled, therefore, the safety power supply device 204 does not provide supply voltage. Furthermore, when the first switching signal turns off the changeover switch 206, the counter CNT1 is enabled, therefore, the safety power supply device 204 increases or decreases the total output current according to the second switching signal output by the counter CNT1 to adjust the magnitude of the drive voltage VDIG.

[0043] Logic circuit LG1 receives the output signals OUT1 and OUT2 of comparators CMP1 and CMP2, and the encryption / decryption signal ENCRP, and generates a first switching signal accordingly. This first switching signal is then transmitted to the toggle switch 206 and the counter CNT1. Please also refer to... Figure 3 and Figure 4 Since the switching switch 206 will not be turned on only when the output signals OUT1 and OUT2 are at logic high level (the driving voltage is within the voltage range) and the encryption / decryption signal ENCRP is at logic high level (encryption / decryption is performed), the logic circuit LG1 can be an AND gate, and the present invention is not limited thereto.

[0044] Please refer to the following: Figure 5 , Figure 5 This is a flowchart of a power supply method according to an embodiment of the present invention. This power supply method is used to provide power to the encryption / decryption device of a security system, and can be executed by the aforementioned power supply device, and includes the following steps. First, in step S102, during startup, a stable voltage source provides a stable voltage to the encryption / decryption device as a driving voltage. After the driving voltage approaches a target voltage value, the startup period ends. After the startup period ends, the stable voltage source continues to provide a stable voltage to the encryption / decryption device as a driving voltage. Next, in step S104, it is determined whether the encryption / decryption device needs to perform encryption / decryption. If it is determined that the encryption / decryption device does not need to perform encryption / decryption, then step S106B is executed; otherwise, step S106A is executed. In step S106A, when the driving voltage falls within the voltage range formed by the upper and lower voltage limits, the security power supply device provides a supply voltage to the encryption / decryption device as a driving voltage. If the driving voltage exceeds the voltage range formed by the upper and lower voltage limits, both the supply voltage and the stable voltage are provided simultaneously as driving voltages, and the supply voltage is adjusted accordingly until the driving voltage falls within the voltage range, and then only the supply voltage is used as the driving voltage. In step S106B, a stable voltage is provided to the encryption / decryption device as the driving voltage by a stable voltage source.

[0045] In another embodiment of the invention, the power supply device includes a safe power supply device, a stable voltage source, and a voltage selection device, wherein the voltage selection device is electrically connected to the safe power supply device, the stable voltage source, and the encryption / decryption device. When the encryption / decryption device performs encryption / decryption, the voltage selection device monitors the driving voltage of the encryption / decryption device. When the driving voltage is between an upper limit voltage and a lower limit voltage, the voltage selection device selects only the supply voltage provided by the safe power supply device as the driving voltage of the encryption / decryption device; and when the driving voltage is greater than the upper limit voltage or less than the lower limit voltage (i.e., exceeding the voltage range formed by the upper and lower limits), the voltage selection device selects only the stable voltage provided by the stable voltage source as the driving voltage of the encryption / decryption device, and simultaneously continuously increases or decreases the supply voltage. This embodiment requires an additional switch to control the supply voltage of the safe power supply device, and may not be able to quickly and instantly adjust the supply voltage to fall within the voltage range. The previous embodiment, however, makes it easier to quickly and instantly adjust the supply voltage to fall within the voltage range (because the driving voltage is provided by the supply voltage and the stable voltage). Immediately and quickly adjusting the supply voltage to fall within the voltage range means that when switching to using only the supply voltage as the drive voltage, the drive voltage is less likely to exceed the voltage range.

[0046] In summary, the various power supply devices, methods, and security systems provided in the embodiments of the present invention can all achieve the technical effect of preventing hackers from obtaining security information by detecting power and ground pins. Moreover, compared with prior art, the various power supply devices, methods, and security systems in the embodiments of the present invention can also effectively reduce the size, operation time, current consumption, and circuit area required for charge storage capacitors. Additionally, it is worth mentioning that the various power supply devices, methods, and security systems in the embodiments of the present invention have low system complexity, are easy to implement, and do not require large manufacturing costs. Therefore, the various power supply devices, methods, and security systems in the embodiments of the present invention have extremely high practicality and market value.

[0047] It should be understood that the examples and embodiments described herein are for illustrative purposes only, and various modifications or changes thereto will be suggested to those skilled in the art and will be included within the spirit and scope of this application and the scope of the appended claims.

Claims

1. A power supply device for providing power to encryption / decryption equipment in a security system, characterized in that, The power supply equipment includes: A secure power supply device for providing a supply voltage, wherein the supply voltage is dynamically adjustable according to the operation of the encryption / decryption device; A stable voltage source is used to provide a stable voltage; and A voltage selection device is electrically connected to the safe power supply device, the stable voltage source, and the encryption / decryption device. When the encryption / decryption device is operating and its driving voltage is within the voltage range formed by the upper and lower limits, the voltage selection device uses only the supply voltage as the driving voltage of the encryption / decryption device. When the encryption / decryption device is not operating and its driving voltage is outside the voltage range, the voltage selection device uses both the supply voltage and the stable voltage as the driving voltage of the encryption / decryption device, and adjusts the supply voltage until the driving voltage falls into the voltage range.

2. The power supply apparatus of claim 1, wherein When the encryption / decryption device is operating and the driving voltage is greater than the upper limit voltage, the voltage selection device reduces the supply voltage until the driving voltage is less than the upper limit voltage, and then uses only the supply voltage as the driving voltage of the encryption / decryption device. Furthermore, when the encryption / decryption device is operating and the driving voltage is less than the lower limit voltage, the voltage selection device increases the supply voltage until the driving voltage is greater than the lower limit voltage, and then only the supply voltage is used as the driving voltage of the encryption / decryption device.

3. The power supply apparatus of claim 1, wherein The voltage selection device includes: A switching mode controller, electrically connected to the encryption / decryption device and the secure power supply device, is configured to generate a first switching signal and, based on the first switching signal and the driving voltage of the encryption / decryption device, generate a second switching signal, wherein the first switching signal indicates whether the encryption / decryption device is operating and whether the driving voltage falls within the voltage range; and A switching switch has a first terminal, a second terminal, and a control terminal, wherein the first terminal is electrically connected to the stable voltage source, the second terminal is electrically connected to the encryption / decryption device, and the control terminal is electrically connected to the switching mode controller to receive the first switching signal; The supply voltage provided by the safe power supply device is controlled by the second switching signal.

4. The power supply device as described in claim 3, characterized in that: During startup: the switching mode controller connects the first terminal to the second terminal and generates the second switching signal to prevent the safe power supply device from providing the supply voltage, so that the encryption / decryption device receives the stable voltage as the driving voltage, and the startup period ends after the driving voltage approaches a specific voltage; as well as After the startup period ends: When the encryption / decryption device is operating and the driving voltage is within the voltage range, the switching mode controller disconnects the first terminal from the second terminal, and the encryption / decryption device only receives the supply voltage as the driving voltage. When the encryption / decryption device is operating and the driving voltage is outside the voltage range, the switching mode controller connects the first terminal and the second terminal. The encryption / decryption device receives the supply voltage and the stable voltage as the driving voltage, and the switching mode controller generates a second switching signal. The safe power supply device adjusts the supply voltage so that the driving voltage falls into the voltage range. as well as When the encryption / decryption device is not operating, the switching mode controller connects the first terminal to the second terminal and generates the second switching signal to prevent the secure power supply device from providing the supply voltage, so that the encryption / decryption device only receives the stable voltage as the driving voltage.

5. The power supply device as described in claim 4, characterized in that, The secure power supply equipment includes: A plurality of switching current units, wherein a plurality of terminals of the plurality of switching current units are electrically connected to the system voltage, and a plurality of other terminals of the plurality of switching current units are electrically connected to each other and used to output the supply voltage, and the plurality of switching current units are controlled by a plurality of third switching signals, wherein the second switching signal includes the plurality of third switching signals.

6. The power supply device as described in claim 5, characterized in that, The stable voltage source includes: PMOS transistor, wherein the source of the PMOS transistor is electrically connected to the system voltage; A comparator, wherein the output of the comparator is electrically connected to the gate of the PMOS transistor, the negative input of the comparator receives a voltage lower than a target voltage value, and the positive input of the comparator is electrically connected to the first terminal and the drain of the PMOS transistor; A resistor having electrical connections to the drain of the PMOS transistor and two low-voltage terminals, respectively.

7. The power supply device as described in claim 6, characterized in that, The switching mode controller includes: A first comparator has a positive input terminal and a negative input terminal that respectively receive the upper limit voltage and the driving voltage, wherein the voltage value of the upper limit voltage is the target voltage value of the driving voltage plus a difference voltage value; The second comparator has a positive input terminal and a negative input terminal that respectively receive the drive voltage and the lower limit voltage, wherein the voltage value of the lower limit voltage is the target voltage value of the drive voltage minus the difference voltage value; and A counter has two input terminals that are electrically connected to the output terminals of the first comparator and the second comparator, respectively, wherein the counter counts up or down according to the output signals of the first comparator and the second comparator to generate the second switching signal; A logic circuit is used to receive the output signal of the first comparator, the output signal of the second comparator, and an encryption / decryption signal, so as to generate the first switching signal accordingly.

8. A security system, characterized in that, The security system includes: The power supply device as described in any one of claims 1 to 7; and The encryption / decryption device.

9. A power supply method for providing power to encryption / decryption equipment in a security system, characterized in that, The power supply method includes: When the encryption / decryption device is operating and the driving voltage of the encryption / decryption device is greater than the upper limit voltage, the supply voltage provided by the safe power supply device and the stable voltage provided by the stable voltage source are used as the driving voltage, and the supply voltage is reduced until the driving voltage is less than the upper limit voltage, then only the supply voltage is used as the driving voltage. When the encryption / decryption device is operating and the driving voltage is less than the lower limit voltage, the supply voltage and the stable voltage are used as the driving voltage, and the supply voltage is increased until the driving voltage is greater than the lower limit voltage, at which point only the supply voltage is used as the driving voltage; and When the encryption / decryption device is operating and the driving voltage is neither greater than the upper limit voltage nor less than the lower limit voltage, the supply voltage is used as the driving voltage.

10. A power supply device for providing power to encryption / decryption equipment in a security system, characterized in that, The power supply equipment includes: A secure power supply device for providing a supply voltage based on the system voltage, wherein the supply voltage can be dynamically adjusted according to the operation of the encryption / decryption device; A stable voltage source is used to provide a stable voltage; and A voltage selection device is electrically connected to the safe power supply device, the stable voltage source, and the encryption / decryption device. When the encryption / decryption device is operating and its driving voltage is within the voltage range formed by the upper and lower limits, the voltage selection device uses only the supply voltage as the driving voltage of the encryption / decryption device. When the encryption / decryption device is operating and its driving voltage is outside the voltage range, the voltage selection device uses only the stable voltage as the driving voltage of the encryption / decryption device, and adjusts the supply voltage until the driving voltage is within the voltage range, then uses only the supply voltage as the driving voltage of the encryption / decryption device.

Citation Information

Patent Citations

  • Methods and systems for thwarting side channel attacks

    CN106415580A

  • Charge distribution control system, crypto system and method of protecting against side channel attack by operating the same

    TW201502854A