WO2020018644A1 - Flash memory device for storing sensitive information and other data - Google Patents
Flash memory device for storing sensitive information and other data Download PDFInfo
- Publication number
- WO2020018644A1 WO2020018644A1 PCT/US2019/042165 US2019042165W WO2020018644A1 WO 2020018644 A1 WO2020018644 A1 WO 2020018644A1 US 2019042165 W US2019042165 W US 2019042165W WO 2020018644 A1 WO2020018644 A1 WO 2020018644A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- key
- data
- flash memory
- encryption
- memory
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/14—Protection against unauthorised use of memory or access to memory
- G06F12/1408—Protection against unauthorised use of memory or access to memory by using cryptography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/79—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0894—Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
- H04L9/0897—Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage involving additional devices, e.g. trusted platform module [TPM], smartcard or USB
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1041—Resource optimization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1052—Security improvement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/72—Details relating to flash memory management
- G06F2212/7202—Allocation control and policies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/12—Details relating to cryptographic hardware or logic circuitry
Definitions
- the present disclosure relates generally to flash memories, and particularly to a flash memory device for storing critical or sensitive technical Information and other data.
- Rash memories were developed from electronically erasable programmable read only memories (EEPROMs), and are used typically for storing programs and other non-volatile data for access and use by processors in the systems in which they reside. Flash memories may be of either a NAND or a
- NOR type depending on the internal characteristics of the individual memory cells embedded in the memory. All or selected blocks of data stored In a flash memory can be electronically erased and reprogrammed. See,
- data to be stored In a flash memory is proprietary or sensitive, the data may need to be encrypted while at rest in the memory.
- AT current anti-tamper
- DoD United States Department of Defense
- CTI Controlled Technical Information
- Self-encrypting solid state disk drives are commercially available, for example, from Microsemi Corporation, Aliso Viejo, California, US. These devices are not part of an embedded system, however, and they require additional busses (e.g. SATA or USB) and software drivers to operate. As far as is known, however, flash memories that can be part of an embedded system and feature a self-encrypting function without special busses or drivers, have not been previously offered or disclosed. Accordingly, there is a need for an embeddable flash memory device configured so that information or data stored In the memory is kept in an encrypted form while at rest in the memory, without the need for an external cryptographic engine and additional hardware and software.
- the disclosure describes a method for encrypting sensitive program or other data for storage in a flash memory associated with a host system, wherein the host system writes data to and reads data from the memory.
- the method includes providing a flash memory device Including a flash memory, an encryption engine for encrypting data originating from the host system and writing the encrypted data to the memory, and for decrypting data stored in the memory for access such as by the host system.
- a static random access memory (SRAM) is used for supplying the data from the host system to the encryption engine and for receiving the decrypted data from the encryption engine for access by the host system.
- a key store is used for holding an encryption key supplied by either a cryptographic hash engine or a random number generator.
- the device When powered on, the device determines if a valid encryption key is held In the key store. If so, in one example the encrypted data in the flash memory Is decrypted by the encryption engine and stored in the SRAM for access as required by the host system, and data originating from the host system and stored in the SRAM is encrypted by the encryption engine and stored in the flash memory. In one example the entire memory is not decrypted at one time, rather the data is decrypted as needed by the host system which is the way typical flash memory operates.
- a key store holds an encryption key that is either created internally or hashed such as from a password entered by a user.
- a static random access memory (SRAM) supplies the data originating from the host system to the encryption engine, and receives decrypted data from the encryption engine for access by the host system.
- Control circuitry of the device Is configured first to determine if a valid key is held in the key store.
- the flash memory is ready for normal operation.
- the circuitry determines if a program flag has been set to indicate either that encrypted data in the flash memory Is ready for decryption by the encryption engine, or that the flash memory is ready to be programmed with encrypted data from the engine.
- FIG. 1 is a schematic block diagram of the inventive flash memory device according to one embodiment.
- FIG. 2 is a flow diagram illustrating an operation of the memory device in FIG. 1 according to one embodiment
- FIG. 1 shows a flash memory device 10 with an encryption capability to assure data-at-rest protection.
- the device 10 can be used in existing or future host systems that require data, when stored in a memory for access by a processor in the host system, to be encrypted while at rest.
- data refers broadly to any information capable of storage in a memory for access by a processor, whether or not the information is sensitive. This data Includes software applications, personally identifiable information, financial information, technical data and the like.
- the memory device 10 in one example includes a conventional flash memory 12, such as NAND or NOR type memory, and an encryption engine 14 with input and output (I/O) ports that are coupled to corresponding ports of the flash memory 12.
- the encryption engine 14 is configured in a known manner to encrypt data originating from a host system processor and to write the encrypted data to the flash memory 12, and to decrypt data stored in the flash memory 12 when called by the host system processor such as via processor control Instructions.
- the encryption engine 14 in one embodiment implements the 256 bit Advanced Encryption Standard (AES), details of which can be obtained from Federal Information Processing Standards (FIPS) Publication 197 (Nov. 2001), and the random number generator details obtained from NIST Special Publications 800-90A (Jan.
- AES Advanced Encryption Standard
- the encryption engine 14 may be configured to implement either an Internally generated key or externally provided from a user password/key if desired for information that will be stored in the flash memory 12.
- the memory device 10 in one example also includes an
- the device 10 in one example includes an energy source such as a super capacitor or a battery such as the battery backed key store 18 that is coupled to the encryption engine 14, and control circuitry 20 coupled to the key store 18 and to the SRAM 16 as shown in FIG. 1. Terminals or pins associated with the key store 18 and the control circuitry 20 are described below. Further details of the key store 18 and the control circuitry 20 would be apparent to those skilled in the art
- a terminal or pin 22 of the control circuitry 20 is provided to control the key store 18 so that the store will accept either a user supplied encryption key/password, or a self-generated encryption key. For example, If the pin 22 Is set high, the encryption key Is provided from a password provided by the user. If pin 22 is low, the key, such as a 256 bit key, is generated via the random number generator 14a. In one example where pin 22 is high, the key will be provided from the user input by a cryptographic hash engine 14b such as the SHA 256 or MD5 algorithm that will create the unique key by hashing the user Input.
- a cryptographic hash engine 14b such as the SHA 256 or MD5 algorithm that will create the unique key by hashing the user Input.
- the hash output Is a 256 bit number, and satisfies NIST
- the user makes the key type determination based on his or her concept of operations.
- a key derived from a user password will allow encrypted data residing in the flash memory 12 to be processed after a tamper attempt signal Is input to the control circuitry 20 on a pin 24 (see below) by re-entering the password.
- the user supplied password will require the user to manage and be responsible for distribution of the password among authorized personnel.
- An internally generated key will not require the user to manage the key distribution, but any data residing on the flash memory 12 will not be recoverable once a tamper attempt signal Is Input to the circuitry 20.
- a new key whether user supplied or self-generated, will allow the flash memory 12 to be reprogrammed with encrypted data as long as a tamper event is not signaled.
- Key Bus 26 - This is a serial bus for inputting a user supplied encryption key to the key store 18. For example, if the key select pin 22 is set high, the bus 26 is active and the user supplied password is entered via the bus 26 into the SHA 256 engine to be hashed for the key store 18. If the key select pin 22 is set low, however, the bus 26 is disabled. Under no circumstances can an encryption key ever be read out from the device 10 via the bus 26 or otherwise.
- Tamper 24 When a tamper attempt signal is input to the control circuitry 20 on the pin 24, and If main power is present when the signal is detected; the control circuitry 20 is configured to erase all information stored in the SRAM 16 and any key held in the key store 18. If main power is not present when a tamper attempt is signaled, the circuitry 20 will only operate to erase the key (if any) then held by the key store 18, since the SRAM will not contain any data.
- Vbat 28 If voltage from the energy source such as a back-up battery is applied on pin 28 of the key store 18, any key held in the key store 18 is preserved in the event main power fails. Because keys are normally held in the key store when main power is present the battery can be replaced as long as main power is present without affecting the operation or stability of the flash memory device 10. Either the main power or the back-up battery will hold the encryption key in memory. In the absence of both main power and voltage on pin 28 from the back-up battery, the key store 18 will not hold an encryption key.
- At least some of the data from the host system is communicated to the SRAM and then processed by the encryption engine such that the encrypted data Is stored in the flash memory.
- the control circuitry 20 upon power up or reset, is configured to determine if the key store 18 contains a valid key (e.g., not all ones or all zeroes). As described herein, in one example, when powered up and with a valid key held in the store 18, the system will be ready for normal operations. For example, if a valid key is found, the circuitry 20 causes the encryption engine 14 to decrypt the system requested data stored in the flash memory 12 and/or to write the decrypted data to the SRAM 16. In one embodiment, the circuitry 20 looks for a program flag which indicates that the flash memory has been programmed with encrypted data.
- a valid key e.g., not all ones or all zeroes
- the circuitry 20 causes the encryption engine 14 to decrypt the system requested data stored in the flash memory 12 and/or to write the decrypted data to the SRAM 18. If the program flag is not set the circuitry 20 waits for the program flag to be set to indicate the flash memory 12 has been programmed with data to be decrypted by the encryption engine 14. As long as a valid key is determined, the flash memory device 10 will continue to operate. In one example, an additional reset or power-on is not required as the state transitions are automated.
- the control circuitry 20 determines that the key store 18 does not contain a valid key, the state of the key select pin 22 is read. In one example, if there is a program flag, the program flag is cleared (if previously set). If the pin is, e.g., tied high, the circuitry 20 waits for a valid key to be supplied by the cryptographic hash engine 14b such as the SHA 256 implementation to the key store 18. In one example, the flash memory does not know the key or password provided by the user as it only knows the hash. However, since the hash is unique to any particular input, only the correct user input will produce the correct hash. Once such a valid key is loaded, the circuitry is configured to respond as described above for the case where a valid key is present.
- the cryptographic hash engine 14b such as the SHA 256 implementation
- the encryption engine 14 may process encrypted data from the flash memory 12, but the encryption engine 14 will not yield intelligible or usable data.
- the flash memory does not know that the key is incorrect as it sees a valid key (previously defined as not all 1s or all 0s in one example), and a read operation will send the encrypted data through the encryption engine. What will come out will be unintelligible because the wrong key was used.
- the circuitry 20 is configured to generate a key provided by the random number generator 14a.
- the circuitry 20 waits for the flash memory 12 to be programmed with encrypted data, and the program flag is set.
- the program flag is preferably non-volatile so that if power is removed and subsequently restored, the device 10 will return to the state indicated by the program flag.
- control circuitry 20 is configured to operate to distinguish between programmed and unprogrammed states of the flash memory 12, by reading the program flag which can be set after a valid key has been entered in the key store 18 whether by the random number generator 14a or the encryption hash engine 14b implementation.
- program flag which can be set after a valid key has been entered in the key store 18 whether by the random number generator 14a or the encryption hash engine 14b implementation.
- any data residing in the non-volatile flash memory 12 will be decrypted if the program flag is set, and programming of the flash memory 12 will be accepted if the flag is not set
- any data originating from the host system processor to be written in the flash memory 12 will be encrypted by the encryption engine 14 before storing the data in the memory 12. Since the data from the host system is written initially to the SRAM 16 of the memory device 10 (in operation of the device 10, all reads and writes are via the SRAM 16), the process of encrypting and writing the additional data to the flash memory 12 does not affect the access time.
- inventive memory device 10 operates like a standard flash device from a system perspective.
- the memory device 10 can operate In any host system where battery backup and tamper indication are available. It can also operate keyless (generate its own key), or with a user supplied key. In either case, the key cannot be read externally. Importantly, the device 10 obviates the need for a separate encryption step and ensures that data stored in the flash memory 12 will be encrypted at rest without any intervention from the host system In which it is embedded. No external hardware or software is needed to accomplish the encryption function.
- the memory device is a complete unit and can be integrated into new designs as a replacement memory device or be implemented as a new feature.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Storage Device Security (AREA)
Abstract
A flash memory system for encrypting and storing data in a non- volatile flash memory associated with a host system. The device in one example includes flash memory, encryption engine, random number generator, cryptographic hash engine, key store, static random-access memory to interface with the host system, and associated control circuitry. When accessed, the device determines if a valid encryption key is held in the key store, if a valid key is held, encrypted data in the flash memory is ready to be decrypted and stored in the static random access memory for use by the host system, or data originating from the host system and stored in the static random access memory is ready to be encrypted by the engine and programmed into the flash memory. The device can be embedded in any host system wherein data is encrypted while at rest in memory.
Description
FLASH MEMORY DEVICE FOR STORING SENSITIVE INFORMATION AND
OTHER DATA
CLAIM OF PRIORITY
This application claims priority to U.S. Patent Application Serial no. 16/037,822 filed July 17, 2018, the contents of which are incorporated herein by reference. This application is related to U.S. Patent No. 10,025,728.
BACKGROUND
The present disclosure relates generally to flash memories, and particularly to a flash memory device for storing critical or sensitive technical Information and other data.
Rash memories were developed from electronically erasable programmable read only memories (EEPROMs), and are used typically for storing programs and other non-volatile data for access and use by processors in the systems in which they reside. Flash memories may be of either a NAND or a
NOR type, depending on the internal characteristics of the individual memory cells embedded in the memory. All or selected blocks of data stored In a flash memory can be electronically erased and reprogrammed. See,
https://en.wiklpedia.org/wiki/Flash_memory, and references cited therein.
If data to be stored In a flash memory is proprietary or sensitive, the data may need to be encrypted while at rest in the memory. For example, to comply with current anti-tamper (AT) requirements imposed by the United States Department of Defense (DoD) in DFARS 252.204-7012 (Nov. 18, 2013), contractors need to provide adequate security to safeguard unclassified
Controlled Technical Information (CTI) from being compromised. CTI is defined in the cited document as technical information with military or space application that is subject to controls on access, use, reproduction, modification,
performance, display, release, disclosure, or dissemination of the information. See also DoD Instruction No. 5200.44 (Nov. 5, 2012).
Other proprietary applications may also require sensitive software and data to be encrypted before the data is stored in a non-volatile memory of a host system. In order to encrypt such software or data for storage in the memory, an outside cryptographic engine and associated processor must be added to the system. That is, hardware and software external to that originally embedded in the system are required for the encryption. These additional components, which may be contained in multiple enclosures, would need to be imposed between the flash memory and the host system processor that accesses the memory, thus complicating and slowing the overall encryption process.
Self-encrypting solid state disk drives are commercially available, for example, from Microsemi Corporation, Aliso Viejo, California, US. These devices are not part of an embedded system, however, and they require additional busses (e.g. SATA or USB) and software drivers to operate. As far as is known, however, flash memories that can be part of an embedded system and feature a self-encrypting function without special busses or drivers, have not been previously offered or disclosed.
Accordingly, there is a need for an embeddable flash memory device configured so that information or data stored In the memory is kept in an encrypted form while at rest in the memory, without the need for an external cryptographic engine and additional hardware and software.
SUMMARY
The disclosure describes a method for encrypting sensitive program or other data for storage in a flash memory associated with a host system, wherein the host system writes data to and reads data from the memory. The method includes providing a flash memory device Including a flash memory, an encryption engine for encrypting data originating from the host system and writing the encrypted data to the memory, and for decrypting data stored in the memory for access such as by the host system. A static random access memory (SRAM) is used for supplying the data from the host system to the encryption engine and for receiving the decrypted data from the encryption engine for access by the host system. A key store is used for holding an encryption key supplied by either a cryptographic hash engine or a random number generator. When powered on, the device determines if a valid encryption key is held In the key store. If so, in one example the encrypted data in the flash memory Is decrypted by the encryption engine and stored in the SRAM for access as required by the host system, and data originating from the host system and stored in the SRAM is encrypted by the encryption engine and stored in the flash memory. In one example the entire memory is not decrypted at one time, rather the data is decrypted as needed by the host system which is the way typical flash memory operates.
According to another aspect, a flash memory device for storing sensitive information or data includes a flash memory, an encryption engine for
encrypting data originating from a host system and storing the encrypted data in the flash memory, and for decrypting encrypted data stored in the memory. There is an associated random number generator or cryptographic hash engine for creating an encryption key when desired. A key store holds an encryption key that is either created internally or hashed such as from a password entered by a user. A static random access memory (SRAM) supplies the data originating from the host system to the encryption engine, and receives decrypted data from the encryption engine for access by the host system. Control circuitry of the device Is configured first to determine if a valid key is held in the key store. If so, in one example the flash memory is ready for normal operation. In a further example, the circuitry then determines if a program flag has been set to indicate either that encrypted data in the flash memory Is ready for decryption by the encryption engine, or that the flash memory is ready to be programmed with encrypted data from the engine.
For a better understanding, reference is made to the following description taken In conjunction with the accompanying drawing and the appended claims.
BRIEF DESCRIPTION OF THE DRAWING FIGURES
In the drawing:
FIG. 1 is a schematic block diagram of the inventive flash memory device according to one embodiment; and
FIG. 2 is a flow diagram illustrating an operation of the memory device in FIG. 1 according to one embodiment
DETAILED DESCRIPTION
FIG. 1 shows a flash memory device 10 with an encryption capability to assure data-at-rest protection. The device 10 can be used in existing or future host systems that require data, when stored in a memory for access by a processor in the host system, to be encrypted while at rest. As used herein, the term data refers broadly to any information capable of storage in a memory for access by a processor, whether or not the information is sensitive. This data Includes software applications, personally identifiable information, financial information, technical data and the like.
The memory device 10 in one example includes a conventional flash memory 12, such as NAND or NOR type memory, and an encryption engine 14 with input and output (I/O) ports that are coupled to corresponding ports of the flash memory 12. In this example, the encryption engine 14 is configured in a known manner to encrypt data originating from a host system processor and to write the encrypted data to the flash memory 12, and to decrypt data stored in the flash memory 12 when called by the host system processor such as via processor control Instructions. The encryption engine 14 in one embodiment implements the 256 bit Advanced Encryption Standard (AES), details of which can be obtained from Federal Information Processing Standards (FIPS) Publication 197 (Nov. 2001), and the random number generator details obtained from NIST Special Publications 800-90A (Jan. 2012) and the AES Counter mode details can be obtained from 800-38A (2001 ), and the SHA256 hash function details can be obtained from FIPS 180-4 (Mar. 2012), all relevant contents of which are incorporated by reference. The encryption engine 14 may be configured to implement either an Internally generated key or externally provided from a user password/key if desired for information that will be stored in the flash memory 12.
The memory device 10 in one example also includes an
asynchronous volatile memory 16 such as a static random access memory (SRAM) to Interface with the host system. In addition, the device 10 in one example includes an energy source such as a super capacitor or a battery such as the battery backed key store 18 that is coupled to the encryption engine 14, and control circuitry 20 coupled to the key store 18 and to the SRAM 16 as shown in FIG. 1. Terminals or pins associated with the key store 18 and the control circuitry 20 are described below. Further details of the key store 18 and the control circuitry 20 would be apparent to those skilled in the art
Key Select 22 - A terminal or pin 22 of the control circuitry 20 is provided to control the key store 18 so that the store will accept either a user supplied encryption key/password, or a self-generated encryption key. For example, If the pin 22 Is set high, the encryption key Is provided from a password provided by the user. If pin 22 is low, the key, such as a 256 bit key, is generated via the random number generator 14a. In one example where pin 22 is high, the key will be provided from the user input by a cryptographic hash engine 14b such as the SHA 256 or MD5 algorithm that will create the unique key by hashing the user Input. This relieves the user from having to provide the AES 256 bit constrained key and allow the user to provide any input desired, regardless of length and content There are any number of hash algorithms and in one embodiment the hash output Is a 256 bit number, and satisfies NIST
requirements such as FIPS 140-2 certification.
In one example the user makes the key type determination based on his or her concept of operations. A key derived from a user password will allow encrypted data residing in the flash memory 12 to be processed after a tamper attempt signal Is input to the control circuitry 20 on a pin 24 (see below) by re-entering the password. However, the user supplied password will require the
user to manage and be responsible for distribution of the password among authorized personnel. An internally generated key will not require the user to manage the key distribution, but any data residing on the flash memory 12 will not be recoverable once a tamper attempt signal Is Input to the circuitry 20. In either case, a new key, whether user supplied or self-generated, will allow the flash memory 12 to be reprogrammed with encrypted data as long as a tamper event is not signaled.
Key Bus 26 - This is a serial bus for inputting a user supplied encryption key to the key store 18. For example, if the key select pin 22 is set high, the bus 26 is active and the user supplied password is entered via the bus 26 into the SHA 256 engine to be hashed for the key store 18. If the key select pin 22 is set low, however, the bus 26 is disabled. Under no circumstances can an encryption key ever be read out from the device 10 via the bus 26 or otherwise.
Tamper 24 - When a tamper attempt signal is input to the control circuitry 20 on the pin 24, and If main power is present when the signal is detected; the control circuitry 20 is configured to erase all information stored in the SRAM 16 and any key held in the key store 18. If main power is not present when a tamper attempt is signaled, the circuitry 20 will only operate to erase the key (if any) then held by the key store 18, since the SRAM will not contain any data.
Vbat 28 - If voltage from the energy source such as a back-up battery is applied on pin 28 of the key store 18, any key held in the key store 18 is preserved in the event main power fails. Because keys are normally held in the key store when main power is present the battery can be replaced as long as main power is present without affecting the operation or stability of the flash
memory device 10. Either the main power or the back-up battery will hold the encryption key in memory. In the absence of both main power and voltage on pin 28 from the back-up battery, the key store 18 will not hold an encryption key.
According to one embodiment, at least some of the data from the host system is communicated to the SRAM and then processed by the encryption engine such that the encrypted data Is stored in the flash memory.
Operation
According to one embodiment shown in the flow diagram of FIG. 2, upon power up or reset, the control circuitry 20 is configured to determine if the key store 18 contains a valid key (e.g., not all ones or all zeroes). As described herein, in one example, when powered up and with a valid key held in the store 18, the system will be ready for normal operations. For example, if a valid key is found, the circuitry 20 causes the encryption engine 14 to decrypt the system requested data stored in the flash memory 12 and/or to write the decrypted data to the SRAM 16. In one embodiment, the circuitry 20 looks for a program flag which indicates that the flash memory has been programmed with encrypted data.
If the program flag is set the circuitry 20 causes the encryption engine 14 to decrypt the system requested data stored in the flash memory 12 and/or to write the decrypted data to the SRAM 18. If the program flag is not set the circuitry 20 waits for the program flag to be set to indicate the flash memory 12 has been programmed with data to be decrypted by the encryption engine 14. As long as a valid key is determined, the flash memory device 10 will continue to operate. In one example, an additional reset or power-on is not required as the state transitions are automated.
If the control circuitry 20 determines that the key store 18 does not contain a valid key, the state of the key select pin 22 is read. In one example, if
there is a program flag, the program flag is cleared (if previously set). If the pin is, e.g., tied high, the circuitry 20 waits for a valid key to be supplied by the cryptographic hash engine 14b such as the SHA 256 implementation to the key store 18. In one example, the flash memory does not know the key or password provided by the user as it only knows the hash. However, since the hash is unique to any particular input, only the correct user input will produce the correct hash. Once such a valid key is loaded, the circuitry is configured to respond as described above for the case where a valid key is present. Note that if a valid but incorrect key is loaded, for example, after a tamper attempt, the encryption engine 14 may process encrypted data from the flash memory 12, but the encryption engine 14 will not yield intelligible or usable data. According to one example, the flash memory does not know that the key is incorrect as it sees a valid key (previously defined as not all 1s or all 0s in one example), and a read operation will send the encrypted data through the encryption engine. What will come out will be unintelligible because the wrong key was used.
If the pin 22 is, e.g., tied low indicating that a valid key is provided to the key store 18, the circuitry 20 is configured to generate a key provided by the random number generator 14a.
In a further example, once such a valid key is generated, the circuitry 20 waits for the flash memory 12 to be programmed with encrypted data, and the program flag is set. The program flag is preferably non-volatile so that if power is removed and subsequently restored, the device 10 will return to the state indicated by the program flag.
Note that the control circuitry 20 is configured to operate to distinguish between programmed and unprogrammed states of the flash memory 12, by reading the program flag which can be set after a valid key has been
entered in the key store 18 whether by the random number generator 14a or the encryption hash engine 14b implementation. When powered up and with a valid key held In the store 18, any data residing in the non-volatile flash memory 12 will be decrypted if the program flag is set, and programming of the flash memory 12 will be accepted if the flag is not set
During operation, any data originating from the host system processor to be written in the flash memory 12 will be encrypted by the encryption engine 14 before storing the data in the memory 12. Since the data from the host system is written initially to the SRAM 16 of the memory device 10 (in operation of the device 10, all reads and writes are via the SRAM 16), the process of encrypting and writing the additional data to the flash memory 12 does not affect the access time.
It will be appreciated that In one example the inventive memory device 10 operates like a standard flash device from a system perspective.
Therefore, typical address, data, and control signals (see FIG. 1 ) to and from the host system are not described in detail.
The memory device 10 can operate In any host system where battery backup and tamper indication are available. It can also operate keyless (generate its own key), or with a user supplied key. In either case, the key cannot be read externally. Importantly, the device 10 obviates the need for a separate encryption step and ensures that data stored in the flash memory 12 will be encrypted at rest without any intervention from the host system In which it is embedded. No external hardware or software is needed to accomplish the encryption function. The memory device is a complete unit and can be integrated into new designs as a replacement memory device or be implemented as a new feature.
While certain embodiments of the present invention are described and illustrated herein, it will be understood by persons skilled in the art that various modifications, additions, and changes can be made without departing from the spirit and scope of the invention. Accordingly, the Invention encompasses all such modifications, additions, and changes that lie within the bounds of the following claims.
Claims
1. A system for storing and retrieving data, comprising:
a static random access memory configured to hold the data and communicate with at least one host system;
an encryption engine coupled to the static random access memory, the encryption engine configured for encrypting at least some of the data from the host system;
a flash memory coupled to the encryption engine and configured to store the encrypted data, and wherein the encryption engine is configured for decrypting at least some of the data from the flash memory;
a key store coupled to the encryption engine storing one or more encryption keys used by the encryption engine for encrypting and decrypting the data;
a cryptographic hash engine coupled to the key store and configured to generate the encryption keys; and
control circuitry configured to respond to control Instructions from the host system and input signals corresponding to a key select and/or a tamper attempt,
wherein the flash memory, the encryption engine, the cryptographic hash engine, the key store, the static random access memory and the control circuitry reside within the memory device.
2. The system according to claim 1 , further comprising a random number generator coupled to the key store and configured to generate the encryption keys.
3. A memory device for storing data, comprising:
a flash memory;
an encryption engine coupled to the flash memory for encrypting data originating from at least one processor of a host system and storing the encrypted data in the flash memory, and for decrypting encrypted data stored In the flash memory;
a random number generator and a cryptographic hash engine associated with the encryption engine and configured for creating encryption keys;
a key store coupled to the encryption engine, the random number generator and the cryptographic hash engine for storing the encryption keys;
a static random access memory coupled to the encryption engine for supplying the data originating from the host system to the encryption engine, and for receiving and storing the decrypted data from the encryption engine for access by the host system; and
control circuitry coupled to the key store and the static random access memory, wherein the control circuitry is configured to allow operations of the memory device in response to control instructions from the processor as well as input signals corresponding to a key select and/or a tamper attempt,
wherein the flash memory, the encryption engine, the random number generator, the cryptographic hash engine, the key store, the static random access memory and the control circuitry reside within the memory device.
4. The memory device according to claim 3, wherein the key store includes a volatile key store memory region that is securely isolated from operating regions of the static random access memory and the flash memory.
5. The memory device according to claim 4, including a main power supply and a backup battery for powering the key store memory region.
6. The memory device according to claim 4, wherein the control circuitry is configured to determine if a valid key is held in the key store, if a valid key is held in the key store, transition to a first state including writing and/or reading data to and from the flash memory in response to the operation of the host system.
7. The memory device according to claim 6, wherein the control circuitry is configured so that when in the first state, the device accepts data provided to the device by the host system by storing the data in the static random access memory for use by the encryption engine, encrypts the data, and stores the encrypted data in the flash memory.
8. The memory device according to claim 7, wherein the control circuitry is configured so that if the valid key is not held in the key store, the device either transitions to a third state In which the encryption engine creates the valid key and the device then transitions to the second state or the device transitions to a fourth state wherein the device waits for the valid key to be entered by a user, according to the key select signal that is input to the control circuitry.
9. The memory device according to claim 3, wherein the cryptographic hash engine uses a SKA 256 hash algorithm.
10. The memory device according to claim 3, wherein the host system and the flash memory communicate without special busses or drivers.
11. The memory device according to claim 3, wherein the memory device is a replacement for existing system memory.
12. A method of encrypting and decrypting data for non-volatile storage in a memory device, wherein at least one processor In a host system is programmed to write the data to the memory device and to read the data from the memory device, comprising:
providing a flash memory section;
encrypting the data originating from the host system via an encryption engine coupled to the flash memory section and writing the encrypted data to the flash memory section, and decrypting data stored in the flash memory section for access by the host system via the encryption engine;
supplying the data from the host system to the encryption engine via a static random access memory coupled to the encryption engine, and receiving the decrypted data from the encryption engine for access by the host system;
creating at least one encryption key, wherein a random number generator and a cryptographic hash engine associated with the encryption engine are configured for creating the encryption key;
holding the at least one encryption key in a key store;
controlling operation of the memory device by control circuitry further
comprising allowing operation of the memory device in response to input signals corresponding to a key select and/or a tamper attempt;
determining if a valid key is held In the key store;
if the valid key is held in the key store, then
if a valid key is held in the key store, transitioning to a first state including writing and/or reading data to and from the flash memory section; and
wherein the flash memory section, the encryption engine, the key store, the static random access memory, the random number generator, the cryptographic hash engine and the control circuitry reside within the memory device.
13. The method of claim 12, wherein the first state includes accepting data provided to the memory device by the host system by storing the data In the static random access memory for use by the encryption engine, encrypting the data, and storing the encrypted data In the flash memory section.
14. The method of claim 12, further comprising configuring the key store so that if the valid key is not held in the key store, transitioning to a third state Including creating a self-generated encryption key and then transitioning to the second state or transitioning to a fourth state including waiting for a user supplied encryption key, according to the state of a key select input to the control circuitry.
15. The method of claim 12, further comprising storing the encryption key, whether created by the random number generator or the cryptographic hash engine in a volatile key store memory region of the key store, and isolating the volatile key store memory region from operating regions of the static random access memory and the flash memory section.
16. The method of claim 15, further comprising powering the volatile key store memory region, from either a main power supply or a backup battery.
17. The method of claim 12, further comprising communicating between the host system and the flash memory without special busses or drivers.
18. The method of dalm 12, further comprising creating the encryption keys from the random number generator or the cryptographic hash engine.
19. The method of claim 12, further comprising determining by a user whether the encryption keys are supplied externally or internally^
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201980060569.8A CN112703703B (en) | 2018-07-17 | 2019-07-17 | Flash memory device for storing sensitive information and other data |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/037,822 US10387662B2 (en) | 2014-07-16 | 2018-07-17 | Flash memory device for storing sensitive information and other data |
US16/037,822 | 2018-07-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020018644A1 true WO2020018644A1 (en) | 2020-01-23 |
Family
ID=69165118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2019/042165 WO2020018644A1 (en) | 2018-07-17 | 2019-07-17 | Flash memory device for storing sensitive information and other data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112703703B (en) |
WO (1) | WO2020018644A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024120178A1 (en) * | 2022-12-09 | 2024-06-13 | International Business Machines Corporation | Managing access to tape cartridges at tape archival service provider |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160232109A1 (en) * | 2014-07-16 | 2016-08-11 | Bae Systems Information And Electric Systems Integration Inc. | Flash memory device for storing sensitive information and other data |
US20180062835A1 (en) * | 2016-08-30 | 2018-03-01 | Workday, Inc. | Secure storage encryption system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999038078A1 (en) * | 1998-01-21 | 1999-07-29 | Tokyo Electron Limited | Storage device, encrypting/decrypting device, and method for accessing nonvolatile memory |
US20080107275A1 (en) * | 2006-11-08 | 2008-05-08 | Mehdi Asnaashari | Method and system for encryption of information stored in an external nonvolatile memory |
JP5275482B2 (en) * | 2012-01-16 | 2013-08-28 | 株式会社東芝 | Storage medium, host device, memory device, and system |
EP2817916B1 (en) * | 2012-02-21 | 2020-06-10 | Microchip Technology Incorporated | Cryptographic transmission system using key encryption key |
KR102013841B1 (en) * | 2012-08-06 | 2019-08-23 | 삼성전자주식회사 | Method of managing key for secure storage of data, and and apparatus there-of |
KR20140020057A (en) * | 2012-08-07 | 2014-02-18 | 삼성전자주식회사 | Flash memory device including key control logic and method of encryption key thereof |
US10108557B2 (en) * | 2015-06-25 | 2018-10-23 | Intel Corporation | Technologies for memory confidentiality, integrity, and replay protection |
-
2019
- 2019-07-17 WO PCT/US2019/042165 patent/WO2020018644A1/en active Application Filing
- 2019-07-17 CN CN201980060569.8A patent/CN112703703B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160232109A1 (en) * | 2014-07-16 | 2016-08-11 | Bae Systems Information And Electric Systems Integration Inc. | Flash memory device for storing sensitive information and other data |
US20180062835A1 (en) * | 2016-08-30 | 2018-03-01 | Workday, Inc. | Secure storage encryption system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024120178A1 (en) * | 2022-12-09 | 2024-06-13 | International Business Machines Corporation | Managing access to tape cartridges at tape archival service provider |
Also Published As
Publication number | Publication date |
---|---|
CN112703703B (en) | 2024-04-12 |
CN112703703A (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2955144C (en) | Flash memory device for storing sensitive information and other data | |
US20100058073A1 (en) | Storage system, controller, and data protection method thereof | |
US7681024B2 (en) | Secure booting apparatus and method | |
JP4157595B2 (en) | Secure processing apparatus, method, and program | |
US20100058066A1 (en) | Method and system for protecting data | |
US20080072071A1 (en) | Hard disc streaming cryptographic operations with embedded authentication | |
US11222144B2 (en) | Self-encrypting storage device and protection method | |
JPH09259045A (en) | Security system device for memory card and the memory card | |
JP4869337B2 (en) | Safe processing of data | |
EP3096259B1 (en) | Security ram block with multiple partitions | |
KR20140075848A (en) | Nonvolatile memory module and method for operating thereof | |
CN112703703B (en) | Flash memory device for storing sensitive information and other data | |
US11586775B2 (en) | Securing data | |
US11468159B2 (en) | Memory system | |
US10387662B2 (en) | Flash memory device for storing sensitive information and other data | |
EP3964965B1 (en) | Secure flash controller | |
US11113399B2 (en) | Electronic apparatus and control method of electronic apparatus | |
US12067155B2 (en) | Fuse-based system on a chip disconnection in a storage device | |
EP4339790A1 (en) | Storage device deleting encryption key, method of operating the same, and method of operating electronic device including the same | |
US20230274037A1 (en) | Secure Flash Controller | |
US20240086336A1 (en) | Storage device deleting encryption key, method of operating the same, and method of operating electronic device including the same | |
WO2024175920A1 (en) | Method and apparatus for secure management of data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19838405 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19838405 Country of ref document: EP Kind code of ref document: A1 |