VIRTUAL ONE-TIME PROGRAMMING (OTP) TO AVOID DEAD CHIP DURING OTP DEVICE PROGRAMMING

Information

  • Patent Application
  • 20230315919
  • Publication Number
    20230315919
  • Date Filed
    March 31, 2022
    2 years ago
  • Date Published
    October 05, 2023
    a year ago
Abstract
Responsive to OTP device not being enabled for an SoC, the RAMBOOT bootup authenticated by the key or key hash of an OTP is precluded and a determination is made whether the RAMBOOT bootup has been authenticated by the key or key hash on the virtual OTP. Responsive to not being authenticated, authentication of the RAMBOOT bootup is initiated. Responsive to being authenticated, enablement of the OTP device is initiated by burning an enable bit. Content of the virtual OTP is verified. The verified content can then be transferred from the virtual OTP to the OTP hardware module. Finally, authenticated RAMBOOT bootup is enabled from the OTP hardware module using the verified content prior to enablement of the OTP hardware module. ROMBOOT is read-only.
Description
FIELD OF THE INVENTION

The invention relates generally to computer networking, and more specifically, for verifying and authenticating a RAMBOOT on a virtual one-time programmable (OTP) device prior to enabling the OTP hardware module for RAMBOOT boot up before permanent installation on the OTP device.


BACKGROUND

An OTP hardware memory is often integrated into a system on a chip (SoC) semiconductor product. An advantage of OTP memory over reprogrammable memory, such as flash memory, are smaller area and no additional wafer processing steps on the SoC. OTP thus has replaced multi-time programmable memory in many low-cost applications.


For security applications, OTP is preferred because it cannot be hacked using passing, semi-invasive and invasive measures. Chips that need encryption keys or other unique identifiers, need to be individually programmed by storing in OTP during chip manufacturing or afterwards.


One problem with OTP arises during programming, when errors arise. For example, when only part of content of an OTP block is programmed due to errors during the programming process, like accidental power loss, a dead chip result.


Therefore, what is needed is a robust technique for verifying and authenticating a RAMBOOT by the key or key hash stored on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot up.


SUMMARY

These shortcomings are addressed by the present disclosure of methods, computer program products, and systems for verifying and authenticating a RAMBOOT boot up by the key or key hash stored on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot up.


In one embodiment, a determination is made whether the key or key hash on the OTP device has been enabled. Responsive to not being enabled, the RAMBOOT bootup authenticated by the key on an OTP is precluded and a determination is made whether the RAMBOOT bootup has been authenticated by the key on the virtual OTP. Responsive to not being authenticated, authentication of the RAMBOOT bootup is initiated. Responsive to being authenticated, enablement of the OTP device is initiated by burning an enable bit. ROMBOOT is read-only.


In another embodiment, content of the virtual OTP is verified. The verified content can then be transferred from the virtual OTP to the OTP hardware module. Finally, authenticated RAMBOOT bootup is enabled from the OTP hardware module using the verified content prior to enablement of the OTP hardware module.


In still another embodiment, keys are extracted from certificates for storage in flash and a key hash is calculated from the extracted keys for programming into the virtual OTP for authenticating the RAMBOOT boot up prior to authenticated RAMBOOT boot up.


Advantageously, semiconductor manufacturing processes are improved by reducing dead chips. Additionally, computer device performance is improved with smaller processors.





BRIEF DESCRIPTION OF THE DRAWINGS

In the following drawings, like reference numbers are used to refer to like elements. Although the following figures depict various examples of the invention, the invention is not limited to the examples depicted in the figures.



FIG. 1 is a block diagram illustrating a system for verifying and authenticating a RAMBOOT on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot up, according to an embodiment.



FIG. 2 is a more detailed block diagram illustrating the system of FIG. 1, according to an embodiment.



FIG. 3 is a high-level flow diagram illustrating a method for verifying and authenticating a RAMBOOT by the key or key hash stored on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot up, according to an embodiment.



FIG. 4 is a high-level flow diagram illustrating a method for enabling the key or key hash on the OTP device for RAMBOOT boot up, according to one preferred embodiment.



FIG. 5 is a more detailed flow diagram illustrating a step of authenticating an unauthenticated RAMBOOT boot up, according to one embodiment.



FIG. 6 is a high-level block diagram illustrating a computing device as an example hardware implementation of the SOC herein, according to an embodiment.





DETAILED DESCRIPTION

The description below provides methods, computer program products, and systems for verifying and authenticating a RAMBOOT by the key or key hash stored on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot up.


One of ordinary skill in the art will recognize many additional variations made possible by the succinct description of techniques below.


I. Systems for Virtual OTP Verification (FIGS. 1-2)



FIG. 1 is a block diagram illustrating an SOC 100 for verifying and authenticating a RAMBOOT by the key or key hash stored on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot up, according to an embodiment. The system includes an SOC 100 and an off-chip memory 199. In other embodiments, memory is on-chip as part of the SOC 100 by integration, or memory on the same motherboard as the SOC 100.


In one embodiment, based on whether or not the enable bit 105 of the OTP hardware 110 has been burned, boot up is sourced from the virtual OTP 101 of the off-chip memory 199 or the on-chip OTP hardware 110. The enable bit 105 is burned once the virtual OTP content is verified in order to activate the OTP hardware 110 as shown in enable bit 106A versus enable bit 106B. One implementation of the enable bit 105 has a lower resistance than standard, such as 50-100 Ohm to allow burn through. Some implementations have multiple enable bits. The enable bit 105 can be triggered by a differential voltage sensor. The memory 199 can comprise a USB (or UART) drive plugged into a USB port that is communicatively connected to the SOC 100. In other embodiments, the off-chip memory 199 comprises SPI flash, eMMC, SD, RAM, and the like.


The SoC 100 can generate or receive content for programming into the virtual OTP 101 and eventually the hardware OTP 110. Circuitry and code changes can be made during initial programming at manufacturing or made during updated programming afterward manufacturing through the enable bit 105. A boot up procedure on the SOC 100 uses the virtual OTP 101 to verify/authenticate the content. Authenticated content is programmed into the OTP hardware 110 on chip by copying the source code. The enable bit 105 is burned to irreversibly activate updates such that boot up subsequently occurs through the OTP hardware 110.


The content can be source code for lower-level drivers and boot up code (e.g., BIOS) to prepare hardware (e.g., RAM), an operating system, or higher-level applications. Source code can be downloaded from an online resource to the memory 101 in real time or be preconfigured. One example of the content is boot up code, a bootloader, a boot manager, or bootstrap loader, that is run by a processor once voltages have been stabilized and hardware is readied for an operating system. The enable bit 105 being in place causes boot up code to be accessed from a predetermined address, while the enable bit 105 being burned causes boot up code to be accessed from a different predetermined address. Boot up brings a computing device incorporating the SoC 100 up and ready for use. Boot up can also fail, such as when key image of the OTP hardware 130 there is any change in content, size, or location of the key image.


The SoC 100 has many different uses, such as a security chip providing a firewall in network device hardware or IPsec VPN (Internet Protocol security Virtual Private Network). Generally, an SoC is an integrated circuit that integrates all or most components of a computer system. The SOC 100 can be a semiconductor device used to operate a network device, a computer, a smartphone, an airplane, as non-limiting examples. After design, the SOC 100 can be etched into a silicon substrate, and then deployed.



FIG. 2 is a more detailed block diagram illustrating the components of the system 100 of FIG. 1, according to an embodiment. Besides the OTP hardware 130, the SoC 100 further comprises a ROMBOOT module 210, RAMBOOT module 220, and SoC hardware 230.


The OTP hardware 110, in one example, is a type of non-volatile memory that comprises of electrical fuse (eFuse) or antifuse. One or more arrays can be arranged using differential paired eFuse cells with single or dual ports with 0.18 micron CMOS technology or the like. Besides cell arrays, a control logic, a column decoder, and a program data driver circuit also add to the operation. An amount of storage is implementation-specific, for example, between 8 bits, 512 bits and 4 kbits.


The ROMBOOT module 210 determines whether the OTP device that is used to authenticate RAMBOOT bootup has been enabled in the OTP hardware 130 for standard booting. Responsive to not being enabled, the ROMBOOT module 210 precludes OTP hardware boot up in favor of the virtual OTP boot up. The ROMBOOT module 210 next determines whether the RAMBOOT bootup is authenticated by the key or key hash stored in the virtual. Responsive to not being authenticated, authentication of the RAMBOOT bootup is initiated, and responsive to being authenticated, enablement of the OTP device is initiated. The ROMBOOT module is read-only.


The RAMBOOT module 220, for unauthenticated RAMBOOT boot up, checks a certificate for validity. Keys are extracted from the certificate and a key image is formed. The key image is programed into storage for recognition by ROMBOOT. A key image hash is calculated and programmed into the virtual OTP. The system will then automatically reboot.


The RAMBOOT module 220, once the RAMBOOT boot up has been authenticated and the system rebooted, copies source code and compares after copying for accuracy. If the content does not match, the RAMBOOT module 220 will retry or notify a user and wait for user commands. For verified matching content, the system will enable the OTP hardware 130. To do so, a low resistance metal in eFuse is blown by electro-migration because the high-density current flows through a narrow metal or poly (e.g., a bone layout). When using high-k metal gate CMOS logic process, there is no polysilicon layer to be used as eFuse, and metal traces can be used. The system will then automatically reboot again.


The SoC hardware 130 comprises additional chip components necessary for implementation on the common die. One or more processors or controllers is needed to coordinate the SoC 100, and memory is needed on chip. Depending on the specifications, wireless transceivers, power management modules, busses and other components can be included within the single die.


II. Methods for Virtual OTP Verification (FIGS. 3-5)



FIG. 3 is a high-level flow diagram illustrating a method 300 for verifying and authenticating a RAMBOOT by the key or key hash on a virtual OTP prior to enabling the OTP hardware module for RAMBOOT boot, according to one preferred embodiment. The method 300 can be implemented, for example, by the ROMBOOT module 210 of SoC 100 or another write once then read-only device. The steps are merely representative groupings of functionality, as there can be more or fewer steps, and the steps can be performed in different orders. Many other variations of the method 300 are possible.


At step 310, it is determined whether the content on OTP device has been enabled, and responsive to not being enabled, normal RAMBOOT bootup is precluded for the on-chip OTP hardware. At step 320, it is determined whether the RAMBOOT boot up has been authenticated. Responsive to not being authenticated, at step 330, authentication of the RAMBOOT bootup is initiated. At step 325, a key is generated and stored for subsequent authentications. Responsive to being authenticated, at step 315, enablement of the RAMBOOT boot up authenticated from on chip OTP hardware is initiated. Responsive to the OTP device being enabled, at step 315, RAMBOOT boot up authenticated from the on-chip OTP is initiated.



FIG. 4 shows further details concerning enablement of OTP hardware boot up step 325. More specifically, at step 410, a certificate is checked for validity. At step 420, keys extracted are from the certificate for storage in flash. At step 430, a key hash is then calculated from the extracted keys for programming into the virtual OTP for authenticating the virtual RAMBOOT boot up prior to authenticated virtual RAMBOOT bootup. Auto-reboot occurs at step 440.



FIG. 5 shows further details about step 315. At step 510, content is transferred from the virtual OTP to the OTP hardware module. At step 520, content of the OTP hardware is verified as being correctly copied and further programmed. At step 530, RAMBOOT bootup is enabled from the OTP hardware module by burning an enablement fuse. Auto-reboot occurs at step 540.


III. Generic Computing Environment (FIG. 6)



FIG. 6 is a block diagram illustrating a computing device 600 capable of implementing components of the system, according to an embodiment. The computing device 600 of the present embodiment, includes a memory 610 with a virtual OTP 612, an SoC 620, a storage drive 630, and an I/O port 640. Each of the components is coupled for electronic communication via a bus 699. Communication can be digital and/or analog and use any suitable protocol. The computing device 600 can be any of components of the system 100, other networking devices (e.g., an access point, a firewall device, a gateway, a router, or a wireless station), or a disconnected device. The example of FIG. 6 is non-limiting as many other example computing devices can be implemented herein.


The memory 610 can store network browsers, daemons communicating with other network devices, network protocol software, and the like. A virtual OTP 612 can execute from the computing device 600, in some off-chip embodiments. An operating system 614 within the computing device 600 executes software, processes. Standard components of the real OS environment 614 include an API module, a process list, a hardware information module, a firmware information module, and a file system. The operating system 614 can be FORTIOS, one of the Microsoft Windows® family of operating systems (e.g., Windows 96, 98, Me, Windows NT, Windows 2000, Windows XP, Windows XP x64 Edition, Windows Vista, Windows CE, Windows Mobile, Windows 6 or Windows 8), Linux, HP-UX, UNIX, Sun OS, Solaris, Mac OS X, Alpha OS, AIX, IRIX32, IRIX64, or Android. Other operating systems may be used. Microsoft Windows is a trademark of Microsoft Corporation.


The SoC 620 includes one or more hardware OTPs.


The storage drive 630 can be any non-volatile type of storage such as a magnetic disc, EEPROM (electronically erasable programmable read-only memory), Flash, or the like. The storage drive 630 stores code and data for applications.


The I/O port 640 further comprises a user interface 642 and a network interface 644. The user interface 642 can output to a display device and receive input from, for example, a keyboard. The network interface 644 (e.g., an RF antennae) connects to a medium such as Ethernet or Wi-Fi for data input and output. Many of the functionalities described herein can be implemented with computer software, computer hardware, or a combination.


Computer software products (e.g., non-transitory computer products storing source code) may be written in any of various suitable programming languages, such as C, C++, C#, Oracle® Java, JavaScript, PHP, Python, Perl, Ruby, AJAX, and Adobe® Flash®. The computer software product may be an independent application with data input and data display modules. Alternatively, the computer software products may be classes that are instantiated as distributed objects. The computer software products may also be component software such as Java Beans (from Sun Microsystems) or Enterprise Java Beans (EJB from Sun Microsystems). Some embodiments can be implemented with artificial intelligence.


Furthermore, the computer that is running the previously mentioned computer software may be connected to a network and may interface with other computers using this network. The network may be on an intranet or the Internet, among others. The network may be a wired network (e.g., using copper), telephone network, packet network, an optical network (e.g., using optical fiber), or a wireless network, or any combination of these. For example, data and other information may be passed between the computer and components (or steps) of a system of the invention using a wireless network using a protocol such as Wi-Fi (IEEE standards 802.11, 802.11a, 802.11b, 802.11e, 802.11g, 802.11i, 802.11n, and 802.11ac, just to name a few examples). For example, signals from a computer may be transferred, at least in part, wirelessly to components or other computers.


In an embodiment, with a Web browser executing on a computer workstation system, a user accesses a system on the World Wide Web (WWW) through a network such as the Internet. The Web browser is used to download web pages or other content in various formats including HTML, XML, text, PDF, and postscript, and may be used to upload information to other parts of the system. The Web browser may use uniform resource identifiers (URLs) to identify resources on the Web and hypertext transfer protocol (HTTP) in transferring files on the Web.


The phrase “network appliance” generally refers to a specialized or dedicated device for use on a network in virtual or physical form. Some network appliances are implemented as general-purpose computers with appropriate software configured for the particular functions to be provided by the network appliance; others include custom hardware (e.g., one or more custom Application Specific Integrated Circuits (ASICs)). Examples of functionality that may be provided by a network appliance include, but is not limited to, layer 2/3 routing, content inspection, content filtering, firewall, traffic shaping, application control, Voice over Internet Protocol (VoIP) support, Virtual Private Networking (VPN), IP security (IPsec), Secure Sockets Layer (SSL), antivirus, intrusion detection, intrusion prevention, Web content filtering, spyware prevention and anti-spam. Examples of network appliances include, but are not limited to, network gateways and network security appliances (e.g., FORTIGATE family of network security appliances and FORTICARRIER family of consolidated security appliances), messaging security appliances (e.g., FORTIMAIL family of messaging security appliances), database security and/or compliance appliances (e.g., FORTIDB database security and compliance appliance), web application firewall appliances (e.g., FORTIWEB family of web application firewall appliances), application acceleration appliances, server load balancing appliances (e.g., FORTIBALANCER family of application delivery controllers), vulnerability management appliances (e.g., FORTISCAN family of vulnerability management appliances), configuration, provisioning, update and/or management appliances (e.g., FORTIMANAGER family of management appliances), logging, analyzing and/or reporting appliances (e.g., FORTIANALYZER family of network security reporting appliances), bypass appliances (e.g., FORTIBRIDGE family of bypass appliances), Domain Name Server (DNS) appliances (e.g., FORTIDNS family of DNS appliances), wireless security appliances (e.g., FORTIWIFI family of wireless security gateways), FORIDDOS, wireless access point appliances (e.g., FORTIAP wireless access points), switches (e.g., FORTISWITCH family of switches) and IP-PBX phone system appliances (e.g., FORTIVOICE family of IP-PBX phone systems).


This description of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form described, and many modifications and variations are possible in light of the teaching above. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications. This description will enable others skilled in the art to best utilize and practice the invention in various embodiments and with various modifications as are suited to a particular use. The scope of the invention is defined by the following claims.

Claims
  • 1. An SOC having an on-die OTP hardware module, for storing the key or key hash to verify and authenticate a RAMBOOT on a storage (like SPI flash) prior to enabling the OTP hardware module for RAMBOOT boot up, the SOC comprising: a substrate for the SOC;a virtual OTP module comprising memory;an OTP module comprising memory that can only be programmed once;a ROMBOOT module, that is read-only, to: determine whether the OTP has been enabled, and responsive to not being enabled from the OTP module, precluding the content of OTP and switching to the virtual OTP module, anddetermine whether the RAMBOOT bootup has been authenticated, and responsive to not being authenticated, initiating authentication of the RAMBOOT bootup, and responsive to being authenticated, initiating enablement of the OTP device;a RAMBOOT module to verify content of the virtual OTP, to transfer verified content from the virtual OTP to the OTP hardware module, and to enable the OTP hardware module using the verified content prior to enablement of the OTP hardware module, wherein the key protected by the enabled OTP is not reversible or able to be updated; andwherein the RAMBOOT module extracts keys from certificates for storage in flash and calculates a key hash from the extracted keys for programming into the virtual OTP for authenticating the RAMBOOT boot up prior to authenticated RAMBOOT boot up.
  • 2. The local network gateway device of claim 1, wherein the load balancing engine uses headers from the outbound data packets to identify the assigned processing blade for the session, wherein contents of the outbound data packets are stored in cleartext.
  • 3. The local gateway device of claim 1, wherein the load balancing engine uses headers from the inbound data packets to identify the assigned processing blade for the session, wherein contents of the inbound data packets are stored in ciphertext.
  • 4. The local gateway device of claim 1, wherein the load balancing engine generates an ESP header with a subnet header and encapsulates the output data packets prior to forwarding to the assigned processing blade for encryption, wherein the ESP header provides a remote gateway address for routing output data packets after encryption.
  • 5. The local gateway device of claim 1, wherein the to negotiate the IPsec tunnel with the remote gateway device.
  • 6. The local gateway device of claim 1, wherein the IKE control engine receives a request from the remote gateway device to set up an IPsec tunnel for a second session with a second local station or a second remote station.
  • 7. A method in local network gateway device having multiple processing blades coupled to a data communication network with a remote network gateway device and a local network with a plurality of stations, for preventing key failure in BSS (Basic Service Set) fast transition of a station attempting to connect from a source access point managed by a Wi-Fi controller to the target access point also managed by the Wi-Fi controller, the method comprising the steps of: assigning a processing blade from the plurality of processing blades to scan data packets;managing a session table and an IPsec routing table by updating the session table with a particular security engine card assigned to the session and by updating the IPsec routing table for storing a remote IP address for a particular session;parsing outbound raw data packets of a particular session are parsed for matching cleartext tuple information prior to IPsec encryption, and inbound encrypted data packets of the particular session are parsed for matching cipher tuple information prior to IPsec decryption;sending information about the IPsec tunnel to the load balancing engine including a remote gateway address and an IPsec tunnel key correlated with a source address and a destination address;updating the session table and the IPsec routing table for handling subsequent data packets in the session;detecting outbound data packets assigned to the assigned processing blade; anddetecting inbound data packets assigned to the assigned processing blade from the session table and forward to the station.
  • 8. The method of claim 7, wherein the load balancing engine uses headers from the outbound data packets to identify the assigned processing blade for the session, wherein contents of the outbound data packets are stored in cleartext.
  • 9. The method of claim 7, wherein the load balancing engine uses headers from the inbound data packets to identify the assigned processing blade for the session, wherein contents of the inbound data packets are stored in ciphertext.
  • 10. The method of claim 7, wherein the load balancing engine generates an ESP header with a subnet header and encapsulates the output data packets prior to forwarding to the assigned processing blade for encryption, wherein the ESP header provides a remote gateway address for routing output data packets after encryption.
  • 11. The method of claim 7, wherein the to negotiate the IPsec tunnel with the remote gateway device.
  • 12. The method of claim 7, wherein the IKE control engine receives a request from the remote gateway device to set up an IPsec tunnel for a second session with a second local station or a second remote station.
  • 13. A method in a non-transitory computer-readable media in local network gateway device having multiple processing blades coupled to a data communication network with a remote network gateway device and a local network with a plurality of stations, the method for preventing key failure in BSS (Basic Service Set) fast transition of a station attempting to connect from a source access point managed by a Wi-Fi controller to the target access point also managed by the Wi-Fi controller, the method comprising the steps of: assigning a processing blade from the plurality of processing blades to scan data packets;managing a session table and a IPsec routing table by updating the session table with a particular security engine card assigned to the session and by updating the IPsec routing table for storing a remote IP address for a particular session;parsing outbound raw data packets of a particular session are parsed for matching cleartext tuple information prior to IPsec encryption, and inbound encrypted data packets of the particular session are parsed for matching cipher tuple information prior to IPsec decryption;sending information about the IPsec tunnel to the load balancing engine including a remote gateway address and an IPsec tunnel key correlated with a source address and a destination address;updating the session table and the IPsec routing table for handling subsequent data packets in the session;detecting outbound data packets assigned to the assigned processing blade; anddetecting inbound data packets assigned to the assigned processing blade from the session table and forward to the station.
  • 14. The method of claim 13, wherein the load balancing engine uses headers from the outbound data packets to identify the assigned processing blade for the session, wherein contents of the outbound data packets are stored in cleartext.
  • 15. The method of claim 13, wherein the load balancing engine uses headers from the inbound data packets to identify the assigned processing blade for the session, wherein contents of the inbound data packets are stored in ciphertext.
  • 16. The method of claim 13, wherein the load balancing engine generates an ESP header with a subnet header and encapsulates the output data packets prior to forwarding to the assigned processing blade for encryption, wherein the ESP header provides a remote gateway address for routing output data packets after encryption.
  • 17. The method of claim 13, wherein the to negotiate the IPsec tunnel with the remote gateway device.
  • 18. The method of claim 13, wherein the IKE control engine receives a request from the remote gateway device to set up an IPsec tunnel for a second session with a second local station or a second remote station.