System and Method for Providing Hardware Based Fast and Secure Expansion and Compression Functions
20170359083 · 2017-12-14
Assignee
Inventors
Cpc classification
H04L9/0838
ELECTRICITY
H04L9/0861
ELECTRICITY
H03M7/30
ELECTRICITY
H04L9/065
ELECTRICITY
International classification
H03M7/30
ELECTRICITY
H04L9/06
ELECTRICITY
H04L9/12
ELECTRICITY
Abstract
A system and method for encoding data by providing data expansion and compression functions for arbitrary input and output lengths. The input is partitioned into groups of sequential bits. A subkey is selected from secret key material for each group of the input bits. A tree of XOR gates applies XOR operations between the subkeys to generate the output. The XOR gates are arranged in layers and all the XOR gates within a layer switch at about the same time. A compression function is performed if the input length is greater than or equal to the output length and an expansion function is performed if the input length is less than or equal to the output length. There is no statistical correlation between the input and the output. A nonlinear function can be applied to the output such as an invertible S-Box, non-invertible S-Box, or series of Rotate-Add-XOR operations.
Claims
1. A method for encoding data comprising the steps of: receiving an input having a first length of input data bits (block 202); partitioning the input data bits into groups of input data bits (block 204), each group comprising at least one bit; selecting subkeys from key material for the groups of input data bits (block 206), such that one subkey is selected for each group of input data bits (block 208); and applying at least one XOR operation between the subkeys to generate an output having a second length of output data bits.
2. The method of claim 1 wherein the groups of input data bits are sequential.
3. The method of claim 1 wherein there is no statistical correlation between the first length data and the second length data.
4. The method of claim 1 wherein a data expansion function is performed if the first length is less than or equal to the second length.
5. The method of claim 1 wherein a data compression function is performed if the first length is greater than or equal to the second length.
6. The method of claim 1 wherein the subkeys share some bits of the key material.
7. The method of claim 1 wherein the key material is secret material that is stored in a storage device selected from the group consisting of an electronic storage device, a magnetic storage device, and an optical storage device.
8. The method of claim 7 wherein the key material is stored in an electronic flip-flop.
9. The method of claim 1 wherein the at least one XOR operation is implemented by a tree of XOR gates.
10. The method of claim 9 wherein the tree of XOR gates is symmetrically arranged in layers such that the XOR gates in each layer are at the same distance from the input with respect to the number of XOR gates leading to them.
11. The method of claim 10 wherein the XOR gates within a layer switch at about the same time.
12. The method of claim 1 further comprising the step of applying a nonlinear function to the output, the nonlinear function being selected from the group consisting of an invertible S-Box, a non-invertible S-Box, and series of Rotate-Add-XOR operations (block 210).
13. A system for encoding data comprising: an input having a first length of input data bits (block 202); groups of input data bits that are partitioned from the input data bits (block 204), each of the groups comprising at least one bit; subkeys that are selected from key material for each of the groups of input data bits (block 206) such that one subkey corresponds with each group of input data bits; and an output having a second length of output data bits, the output being generated by application of at least one XOR operation between the subkeys (block 208).
14. The system of claim 13 wherein the groups of input data bits are sequential.
15. The system of claim 13 wherein the subkeys share bits of the key material.
16. The system of claim 13 wherein the key material is secret material that is stored in a storage device selected from the group consisting of an electronic storage device, a magnetic storage device, and an optical storage device.
17. The system of claim 16 wherein the key material is stored in an electronic flip-flop.
18. The system of claim 13 further comprising a tree of XOR gates that implements the at least one XOR operation.
19. The system of claim 18 wherein the tree of XOR gates is symmetrically arranged in layers such that the XOR gates in each layer are at the same distance from the input with respect to the number of XOR gates leading to them.
20. The system of claim 19 wherein the XOR gates within a layer switch at about the same time.
Description
BRIEF DESCRIPTION OF THE DRAWING(S)
[0012] Having thus described example implementations of the disclosure in general terms, reference will now be made to the accompanying drawings, which are not necessarily drawn to scale, and wherein:
[0013]
[0014]
[0015]
[0016]
DETAILED DESCRIPTION
[0017] Some implementations of the present disclosure will now be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all implementations of the disclosure are shown. Indeed, various implementations of the disclosure may be embodied in many different forms and should not be construed as limited to the implementations set forth herein; rather, these example implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. For example, unless otherwise indicated, reference something as being a first, second or the like should not be construed to imply a particular order. Also, something may be described as being above something else (unless otherwise indicated) may instead be below, and vice versa; and similarly, something described as being to the left of something else may instead be to the right, and vice versa. Like reference numerals refer to like elements throughout.
[0018] Example implementations of the present disclosure will be primarily described in conjunction with aviation applications. It should be understood, however, that example implementations may be utilized in conjunction with a variety of other applications, both in the aviation industry and outside of the aviation industry.
[0019] According to example implementations of the present disclosure, an improved system and method provides data expansion and compression functions having arbitrary input and output sizes.
[0020] As shown in
[0021] A subkey 106a, 106b, 106c is selected from secret key material 104 by a multiplexer for each of the groups of bits (block 206). The key material 104 can be stored in various types of electronic, magnetic or optical storage devices such as electronic flip-flops, electronic fuses, flash memory, dynamic random-access memory (DRAM), or static random-access memory (SRAM). When the key material 104 is stored in electronic flip-flops, physical security of the data is enhanced because the synthesis tool of the electronic design process disperses the flip-flops among regular gates such that there are no large memory blocks holding the secret key material 104. This is desirable because large memory blocks can be identified by microscopic inspection and subject to attack by probing, such as with focused ion beams.
[0022] The subkeys 106a, 106b, 106c taken from the key material 104 can share some bits, as long the same bit does not appear in the same bit position of different subkeys 106a, 106b, 106c (because the XOR operation on the subkeys 106a, 106b, 106c would cancel such bit). One example of shared bits is when a subkey is a bitwise rotated version of another subkey. Other complex mapping functions of the key material 104 to the subkeys is possible. This can be particularly useful when the size of the storage for the key material 104 is limited.
[0023] Referring again to the
[0024] The data expansion and compression functions as just described with respect to
[0025] The data expansion and compression functions of the present disclosure additionally reduce side channel leakage based their implementation in electronic hardware with simple XOR gates 108a, 108b, 110a, 110b, 112. Accordingly, no flip-flops or data registers are needed to store the changing data, which are typically a main source of side channel leakage. As shown in
[0026] The system for providing the data expansion and compression functions as shown in
[0027] There are several advantages to use of system and method for arbitrarily expanding and compressing data as described above. Such expansion and compression functions are orders of magnitude faster than prior art cryptographic methods, they consume much less power when they are implemented in electronic hardware, and they are more secure than prior art methods because they leak much less information about the data they are processing on side channels. Thus, deployed systems can use slower electronic components, thereby reducing costs and power consumption of the computing system, yet while improving speed (operation time). Such improved systems can be used for scientific and engineering computations, as well as for security subsystems of aircraft computers, military and space programs, corporate networks, personal and laptop computers, smart mobile devices, and secure communication networks.
[0028] According to example implementations of the present disclosure, the various components of the improved system and method for expanding and compressing data of the present disclosure may be implemented by various means including hardware, alone or under direction of one or more computer program code instructions, program instructions or executable computer-readable program code instructions from a computer-readable storage medium.
[0029] In one example, one or more apparatuses may be provided that are configured to function as or otherwise implement the system and method for arbitrarily expanding and compressing data shown and described herein. In examples involving more than one apparatus, the respective apparatuses may be connected to or otherwise in communication with one another in a number of different manners, such as directly or indirectly via a wireline or wireless network or the like.
[0030] Generally, an apparatus of exemplary implementation for the system and method of the present disclosure may include one or more of a number of components such as a processor (e.g., processor unit) connected to a memory (e.g., storage device), as described above. The processor is generally any piece of hardware that is capable of processing information such as, for example, data, computer-readable program code, instructions or the like (generally “computer programs,” e.g., software, firmware, etc.), and/or other suitable electronic information. More particularly, for example, the processor may be configured to execute computer programs, which may be stored onboard the processor or otherwise stored in the memory (of the same or another apparatus). The processor may be a number of processors, a multi-processor core or some other type of processor, depending on the particular implementation. Further, the processor may be implemented using a number of heterogeneous processor systems in which a main processor is present with one or more secondary processors on a single chip. As another illustrative example, the processor may be a symmetric multi-processor system containing multiple processors of the same type. In yet another example, the processor may be embodied as or otherwise include one or more application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or the like. Thus, although the processor may be capable of executing a computer program to perform one or more functions, the processor of various examples may be capable of performing one or more functions without the aid of a computer program.
[0031] The memory is generally any piece of hardware that is capable of storing information such as, for example, data, computer programs and/or other suitable information either on a temporary basis and/or a permanent basis. The memory may include volatile and/or non-volatile memory, and may be fixed or removable. Examples of suitable memory include random access memory (RAM), read-only memory (ROM), a hard drive, a flash memory, a thumb drive, a removable computer diskette, an optical disk, a magnetic tape or some combination of the above. Optical disks may include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W), DVD or the like. In various instances, the memory may be referred to as a computer-readable storage medium which, as a non-transitory device capable of storing information, may be distinguishable from computer-readable transmission media such as electronic transitory signals capable of carrying information from one location to another. Computer-readable medium as described herein may generally refer to a computer-readable storage medium or computer-readable transmission medium.
[0032] In addition to the memory, the processor may also be connected to one or more interfaces for displaying, transmitting and/or receiving information. The interfaces may include a communications interface (e.g., communications unit) and/or one or more user interfaces. The communications interface may be configured to transmit and/or receive information, such as to and/or from other apparatus(es), network(s) or the like. The communications interface may be configured to transmit and/or receive information by physical (wireline) and/or wireless communications links. Examples of suitable communication interfaces include a network interface controller (NIC), wireless NIC (WNIC) or the like.
[0033] The user interfaces may include a display and/or one or more user input interfaces (e.g., input/output unit). The display may be configured to present or otherwise display information to a user, suitable examples of which include a liquid crystal display (LCD), light-emitting diode display (LED), plasma display panel (PDP) or the like. The user input interfaces may be wireline or wireless, and may be configured to receive information from a user into the apparatus, such as for processing, storage and/or display. Suitable examples of user input interfaces include a microphone, image or video capture device, keyboard or keypad, joystick, touch-sensitive surface (separate from or integrated into a touchscreen), biometric sensor or the like. The user interfaces may further include one or more interfaces for communicating with peripherals such as printers, scanners or the like.
[0034] As indicated above, program code instructions may be stored in memory, and executed by a processor, to implement functions of the system and method for arbitrarily expanding and compressing data as described herein. As will be appreciated, any suitable program code instructions may be loaded onto a computer or other programmable apparatus from a computer-readable storage medium to produce a particular machine, such that the particular machine becomes a means for implementing the functions specified herein. These program code instructions may also be stored in a computer-readable storage medium that can direct a computer, a processor or other programmable apparatus to function in a particular manner to thereby generate a particular machine or particular article of manufacture. The instructions stored in the computer-readable storage medium may produce an article of manufacture, where the article of manufacture becomes a means for implementing functions described herein. The program code instructions may be retrieved from a computer-readable storage medium and loaded into a computer, processor or other programmable apparatus to configure the computer, processor or other programmable apparatus to execute operations to be performed on or by the computer, processor or other programmable apparatus.
[0035] Retrieval, loading and execution of the program code instructions may be performed sequentially such that one instruction is retrieved, loaded and executed at a time. In some example implementations, retrieval, loading and/or execution may be performed in parallel such that multiple instructions are retrieved, loaded, and/or executed together. Execution of the program code instructions may produce a computer-implemented process such that the instructions executed by the computer, processor or other programmable apparatus provide operations for implementing functions described herein.
[0036] Execution of instructions by a processor, or storage of instructions in a computer-readable storage medium, supports combinations of operations for performing the specified functions. It will also be understood that one or more functions, and combinations of functions, may be implemented by special purpose hardware-based computer systems and/or processors which perform the specified functions, or combinations of special purpose hardware and program code instructions.
[0037] As referenced above, examples of the present disclosure may be described in the context of aircraft manufacturing and service. As shown in
[0038] Each of the processes of illustrative method 500 may be perfoimed or carried out by a system integrator, a third party, and/or an operator (e.g., a customer). For the purposes of this description, a system integrator may include, without limitation, any number of aircraft manufacturers and major-system subcontractors; a third party may include, without limitation, any number of vendors, subcontractors, and suppliers; and an operator may be an airline, leasing company, military entity, service organization, and so on.
[0039] As shown in
[0040] Apparatus(es) and method(s) shown or described herein may be employed during any one or more of the stages of the manufacturing and service method 500. For example, components or subassemblies corresponding to component and subassembly manufacturing 506 may be fabricated or manufactured in a manner similar to components or subassemblies produced while aircraft 602 is in service. Also, one or more examples of the apparatus(es), method(s), or combination thereof may be utilized during production stages 506 and 508, for example, by substantially expediting assembly of or reducing the cost of aircraft 602. Similarly, one or more examples of the apparatus or method realizations, or a combination thereof, may be utilized, for example and without limitation, while aircraft 602 is in service, e.g., maintenance and service stage (block 514).
[0041] Different examples of the apparatus(es) and method(s) disclosed herein include a variety of components, features, and functionalities. It should be understood that the various examples of the apparatus(es) and method(s) disclosed herein may include any of the components, features, and functionalities of any of the other examples of the apparatus(es) and method(s) disclosed herein in any combination, and all of such possibilities are intended to be within the spirit and scope of the present disclosure.
[0042] Many modifications and other implementations of the disclosure set forth herein will come to mind to one skilled in the art to which this disclosure pertains having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. Therefore, it is to be understood that the disclosure is not to be limited to the specific implementations disclosed and that modifications and other implementations are intended to be included within the scope of the appended claims. Moreover, although the foregoing descriptions and the associated drawings describe example implementations in the context of certain example combinations of elements and/or functions, it should be appreciated that different combinations of elements and/or functions may be provided by alternative implementations without departing from the scope of the appended claims. In this regard, for example, different combinations of elements and/or functions than those explicitly described above are also contemplated as may be set forth in some of the appended claims. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.