Plural keys encryption single key decryption scheme
A dual-key encryption system addresses the limitations of single-key encryption by allowing secure decryption with either key and reducing storage needs, facilitating user-friendly data access and modification in biometric systems.
Patent Information
- Application Number
- US19/213779
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Existing encryption methods using a single key are inadequate for ensuring data integrity and privacy, as they fail to allow decryption without sharing the key and do not account for user inconveniences such as biometric failures or joint account access without key sharing.
A dual-key encryption system where two keys are generated from user identifiers, combined with a random number to create a cipher key, allowing encryption with one key and decryption with either key, and using message authentication codes for verification.
Enables secure decryption with a single key, reduces storage requirements, and allows users to modify and re-encrypt data without needing all keys, enhancing user confidence and scalability in biometric encryption.
Smart Images

Figure US20260379654A1-D00000_ABST
Abstract
Description
BACKGROUND
[0001] Information and communication network technology is developing rapidly. Currently, encryption is used as a protection scheme mostly to ensure the integrity and privacy of information during transmission and processing. Due to the inevitable occurrence of security problems in an information system, the way of encrypting data with a single key cannot guarantee that information will not be tampered with and stolen during transmission and processing. There are many instances where alternate methods of decrypting encrypted data are desirable.SUMMARY
[0002] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Other features, details, utilities, and advantages of the claimed subject matter will be apparent from the following, more particular written Detailed Description of various implementations as further illustrated in the accompanying drawings and defined in the appended claims.
[0003] The technology disclosed herein provides a method including receiving a first key (K1) and a second key (K2) from a user, wherein the first key K1 is generated from a first user identifier and the second key K2 is generated from a second user identifier, combining K1 and K2 with a random number (R1) to generate a cipher key (K1K2R1), generating a first key (K1R1) based on at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1, generating a second key (K2R1) based on at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K1, encrypting data (text, image, etc.) using the cipher key and a message authentication code (mac) to generate encrypted data, and communicating the encrypted data with the first key, the second key, and a hash.
[0004] These and various other features and advantages will be apparent from a reading of the following Detailed Description.BRIEF DESCRIPTIONS OF THE DRAWINGS
[0005] A further understanding of the nature and advantages of the present technology may be realized by reference to the figures, which are described in the remaining portion of the specification. In the figures, like reference numerals are used throughout several figures to refer to similar components. In some instances, a reference numeral may have an associated sub-label consisting of a lower-case letter to denote one of multiple similar components. When reference is made to a reference numeral without specification of a sub-label, the reference is intended to refer to all such multiple similar components.
[0006] FIG. 1 illustrates an example schematic that discloses the encryption technology disclosed herein.
[0007] FIG. 2 illustrates alternative example operations of the encryption module of the data encryption system disclosed herein.
[0008] FIG. 3 illustrates alternative example operations of the encryption module of the data encryption system disclosed herein.
[0009] FIG. 4 illustrates alternative example operations of the encryption module of the data encryption system disclosed herein.
[0010] FIG. 5 illustrates example operation for decrypting the encrypted data for the data encryption system disclosed herein.
[0011] FIG. 6 illustrates alternative example operation for decrypting the encrypted data for the data encryption system disclosed herein.
[0012] FIG. 7 illustrates alternative example operations of the data encryption system disclosed herein.
[0013] FIG. 8 illustrates example operations for data encryption system disclosed herein
[0014] FIG. 9 illustrates alternative example operations for data encryption system disclosed herein.
[0015] FIG. 10 illustrates example operation of a decryption module when hashes of say are embedded into the package received by the decryption module.
[0016] FIG. 11 illustrates example decryption module for decrypting cipher text with modified content.
[0017] FIG. 12 illustrates an example method where two keys are supplied but only one key is used for encryption.
[0018] FIG. 13 illustrates an example decryption method where two keys are supplied but only one key is used for encryption.
[0019] FIG. 14 illustrates example encryption modules with modified encryption methods to prevent exposure.
[0020] FIG. 15 illustrates alternative example implementations where the information to be stored in packets may be done in alternate manners.
[0021] FIG. 16 illustrates an implementation using multiple keys with randomly generated number.
[0022] FIG. 17 illustrates an alternative implementation using multiple keys with randomly generated number.
[0023] FIG. 18 illustrates another alternative a method that uses multiple keys for encryption where only one key may be required for decryption.
[0024] FIG. 19 illustrates an example processing system that may be useful in implementing the described technology.DETAILED DESCRIPTION
[0025] There are many instances where alternate methods of decrypting encrypted data are desirable. For example, in biometrics encryption, users relying on their fingerprint or veins to encrypt data may be unable to retrieve their data if they accidentally injured the finger that was used to encrypt the data. With the market for biometrics growing rapidly, solving inconveniences like the example above can be immensely valuable. A similar need for an alternative decryption method is present when two or more different user set-up and need access to a single, joint account, but neither needs to know the other users’ key to access the data. This is analogous to a bank joint-alternate account, where only one signature is required to perform a transaction although the bank account is opened and shared with two or more parties.
[0026] For example, at present, a set of encrypted data cannot be decrypted by separate users without having to share the same key with each other. Similarly, when a user forgets a key, the user may not be able to retrieve the encrypted data. This is because in current methods of encryption / decryption, only a single key is used to encrypt data.
[0027] The technology disclosed herein provides a solution where two keys may be used for encryption, but only one of the keys is required for decryption. Specifically, the technology disclosed herein provides a solution where instead of storing multiple ciphertexts of the data under different keys, the storage is utilized on encrypted keys of the users. The implementations disclosed herein allows the users to modify and re-encrypt the content such that the new content is accessible by all users sharing that content without the need of other users to present their keys during re-encryption. Also, since the sizes of keys are much smaller than the sizes of data, this enables massive savings on the storage space.
[0028] For example, when biometrics are used for encryption, the implementations disclosed herein allows users to retrieve data using another finger if the user had encrypted the data using a second key. In case of multiple users having a joint account, the technology disclosed herein allows two different users to decrypt text that is encrypted with both user’s keys, but each user does not necessarily need to know the other’s key. Not only that, if one user modifies the content and re-encrypts it to be stored, the other user will be able to retrieve the newly modified content in the re-encrypted data.
[0029] Specifically, the implementations disclosed herein provides a number of different methods to implement the technology disclosed herein, including:
[0030] A. Keys with a third randomly generated key.
[0031] B. Dual key supplied, single key encryption.
[0032] C. Extending method A using multiple keys with randomly generated number.
[0033] D. Extending method B using multiple keys supplied but require one key to decrypt.
[0034] Specifically, the technology disclosed herein provides a number of technical benefits in the encryption space, particularly in the biometrics space. For example, by providing a secure alternative way to decrypt biometrically encrypted data, trust and user confidence are increased. Users are more likely to use biometric encryption knowing there is a way to retrieve their data if the biometric method fails. This promotes adoption and scalability of biometrics-based encryption, which as noted earlier, is on a significant growth trajectory.
[0035] FIG. 1 illustrates a schematic 100 that discloses the encryption technology disclosed herein. Specifically, as disclosed herein, dual keys may be supplied to encrypt but any of the dual keys may be used to decrypt. Specifically, FIG. 1 illustrates a schematic diagram of an example data encryption system 100 disclosed herein. In the illustrated data encryption system 100, a user may use a device 102, such as mobile pad, mobile device, etc., to generate a number of user identifiers, such as fingerprints. In the illustrated implementation, the user generates two user identifiers, specifically, a first fingerprint using a finger of one hand 104a, and a second finger using another hand 104b. Subsequently keys are generated using these identifiers. For example, a first key K1114 may be generated based on the first fingerprint and a second key K2116 may be generated using the second fingerprint.
[0036] Note that in the illustrated implementation, the user identifiers are fingerprints from two different hands 104a, 104b, in alternative implementation, the user identifiers used to generate the keys K1114 and K2116 may be fingerprints from two different fingers on the same hand. Yet alternatively, the user identifiers used to generate the keys K1114 and K2116 may be alternative user identifiers, such as a first password and a second password. Yet alternatively, the user identifiers used to generate the keys K1114 and K2116 may be an image of first pupil and an image of a second pupil of the user’s eyes. In alternative implementation, a combination of different user identifiers may be used to generate the keys K1114 and K2116.
[0037] The keys K1114 and K2116 may be communicated to a computing system 106 that may process the keys K1114 and K2116 along with other information to perform data encryption in the manner disclosed herein. For example, in one implementation, the computing system 106 may include a random number generator to generate a random number R1. Furthermore, the computing system 106 may also include a message authentication code (mac) generator 110 to generate a mac 126. An encryption module 112 may be implemented on a memory of the computing system 106. The encryption module 112 may use the keys K11114 and K2116, the random number 118, and the mac 126 to encrypt data 124 to generate encrypted data (ED) 128. Using the mac 126 together with the data 124 provides additional message integrity. In one implementation, the data 124 may be plain text (PT) and the encrypted data (ED) 128 maybe cipher text (CT).
[0038] In one implementation, the encryption module 112 may combine keys K1114 and K2116 with the random number 118 to first generate a cipher key K1K2R1120. For example, an XOR operation may be performed on the keys K1114 and K2116 and the random number 118 to generate the cipher key K1K2R1 120. Subsequently, the cipher key K1K2R1120 is used to encrypt combination of the data 124 and the mac 126 to generate encrypted data 128.
[0039] FIG. 2 illustrates example operations 200 of the encryption module of the data encryption system disclosed herein. Specifically, FIG. 2 illustrates generating keys that may be communicated to a user to decrypt encrypted data. As illustrated therein, an XOR operation is performed on the key K1202 with the cipher K1K2R1202 to generate a second key code K2R1 206. Alternatively, an XOR is performed on the key K2212 and the random number R1 to generate the second key code K2R1206.
[0040] Similarly, an XOR is performed on the key K2222 and the cipher K1K2R1 224 to generate a first key 226. Alternatively, an XOR is performed on the key K1 and the random number R1 to generate the first key code K1R1 226.
[0041] FIG. 3 illustrates alternative operations 300 of the encryption module of the data encryption system disclosed herein. Specifically, FIG. 3 illustrates generating packets with keys that are communicated over a network to user with the encrypted data (ED). For example, a packet 312 includes the second key code K2R1, the first key code K1R1, the encrypted data (ED), and hash of the cipher key K1K2R1. The packet 312 may be communicated to a user over a communication network. Alternatively, a packet 214 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), hash of a key K1, and hash of a key K2. Yet alternatively, another packet 316 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), and hash of the random number R1. Any of the packets 312, 314, 316 may be communicated over a communication network. The user may use the any of the keys K1R1 and K2R1 with other information to decrypt the encrypted data (ED) as further illustrated in the following figures. Here the positions of K1R1, K2R1, ED, and hash of K1K2R1, K1, K2, and R1 can be altered compared to their positions shown in FIG. 3.
[0042] FIG. 4 illustrates alternative operations 400 of the encryption module of the data encryption system disclosed herein. Specifically, the operations 400 disclose alternative methods of generating packets with keys that are communicated over a network to user with the encrypted data (ED). As the hashes are for verification purposes, a sub-set of the hash may be employed as shown in FIG. 4 to reduce risk of exposing the keys. For example, a packet 412 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), and a subset or partial hash of the cipher key K1K2R1. For example, the partial hash may be obtained by selecting the first n bits of the full hash output. In one implementation, the value of n is chosen to be sufficiently large such that the likelihood of a false positive verification is negligible. For practical purposes, n can be chosen to be 64.
[0043] Similarly, A packet 414 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), and a subset or partial hash of the key K1. A packet 416 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), and a subset or partial hash of the key K1. A packet 418 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), a subset or partial hash of the key K1, and a subset or partial hash of the key K2. A packet 420 may include the second key code K2R1, the first key code K1R1, the encrypted data (ED), and a subset or partial hash of the random number R1. Here the positions of K1R1, K2R1, ED, and hash of K1K2R1, K1, K2, and R1 can be altered compared to their positions shown in FIG. 4.
[0044] FIG. 5 illustrates operations 500 for decrypting the encrypted data for the data encryption system disclosed herein. Specifically, FIG. 5 illustrates that a user can decrypt the cipher key K1K2R1 using only one key, either K1 or K2. As illustrated at decryption module 512a, if the user wants to retrieve the encrypted data using key K1 such as a first fingerprint, the user can enter the key K1 into the decryption module 512a. The decryption module 512a has access to the keys K2R1 and K1R1, therefore, it uses K1 and performs an XOR operation with K2R1 to generate the cipher key K1K2R1. Alternatively, as shown by decryption module 512b, if the user wants to retrieve the encrypted data using key K2 such as a second fingerprint, the user can enter the key K2 into the decryption module 512b. The decryption module 512b has access to the keys K2R1 and K1R1, therefore, it uses K2 and performs an XOR operation with K1R1 to generate the random number R1. At this point, the decryption modules 512 does not know which one is the correct key.
[0045] Subsequently, as illustrated in implementations 600 of FIG. 6, a decryption module 612 attempts to decrypt the encrypted data ED with each of the K1K2R1 and R1 when the user has decided to use key K1, such as for example a first fingerprint. Specifically, the decryption module 612a attempts to decrypt the encrypted data ED with cipher key K1K2R1, generated using the first key K1, to generate decrypted output 614a. On the other hand, the decryption module 612b attempts to decrypt the encrypted data ED with random number R1, generated using the first key K1, to generate decrypted output 614b. Subsequently, an operation 620 may evaluate the outputs 614a and 614b with the message authentication code (mac) of the plain data (such as the plain text (PT) 124). In the illustrated implementation, the output 614a, which is decrypted with the cipher key K2K1R1, passes the evaluation and therefore, 614a is determined to have the decrypted data (PT). On the other hand, evaluation of the output 614b is not decrypted with the correct cipher key (K1K2R1) and instead it is decrypted with the random number R1. Therefore, 614b evaluation fails and it is determined to not include the correct decrypted data (PT). Thus, as illustrated in FIG. 6, the user is able to decrypt the encrypted data (ED) with only one key, namely key K1 generated from a first fingerprint, even when the ED is encrypted using both the first key K1 generated from a first fingerprint and the second key K2 generated from a second fingerprint.
[0046] FIG. 7 illustrates an implementation 700 including a decryption module 712 that attempts to decrypt the encrypted data ED with each of the K1K2R1 and R1 when the user has decided to use key K2, such as for example a second fingerprint. Specifically, the decryption module 712a attempts to decrypt the encrypted data ED with cipher key K1K2R1, generated using the second key K2, to generate decrypted output 714a. On the other hand, the decryption module 712b attempts to decrypt the encrypted data ED with random number R1, generated using the second key K2, to generate decrypted output 714b. Subsequently, an operation 720 may evaluate the outputs 714a and 714b with the message authentication code (mac) of the plain data (such as the plain text (PT) 124). In the illustrated implementation, the output 714a, which is decrypted with the cipher key K2K1R1, passes the evaluation and therefore, 714a is determined to have the decrypted data (PT). On the other hand, evaluation of the output 714b is not decrypted with the correct cipher key (K1K2R1) and instead it is decrypted with the random number R1. Therefore, 74b evaluation fails and it is determined to not include the correct decrypted data (PT). Thus, as illustrated in FIG. 7, the user is able to decrypt the encrypted data (ED) with only one key, namely key K2 generated from a second fingerprint, even when the ED is encrypted using both the first key K1 generated from a first fingerprint and the second key K2 generated from a second fingerprint.
[0047] As shown above by the decryption modules 512, 612, and 712, only one key, wither K1 or K2, is needed to retrieve PT from encrypted data (ED). Therefore, in this example, if the user injures / loses his index finger, which was used to generate the first key K1, the user may still retrieve the data using the second key K2, which may be generated using a middle fingerprint. Thus, the disclosed technology provides technical advantage over the existing systems using single key encryption / decryption techniques. For example, in such single key system, if the user injures the finger used to generate the key, that user’s data will be lost forever if the user cannot get back the key that he uses to encrypt the data.
[0048] FIG. 8 illustrates example operations 800 for data encryption system disclosed herein. An operation 802 may receive keys K1 and K2, wherein the first key K1 is generated from a first user identifier such as a first fingerprint and the second key K2 is generated from a second user identifier such as a second fingerprint. An operation 804 may combine the keys K1 and K2 with a random number (R1) to generate a cipher key K1K2R1. An operation 806 may generate a first key code K1R1 using at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1. An operation 808 may generate a second key code K2R1 using at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K1. An operation 810 may encrypt the data using the cipher key and a message authentication code (mac). Subsequently, an operation 812 may communicate the encrypted data with the first key, the second key, and a hash. Here the hash may be a hash of the cipher key, a hash of the first key K1 and hash of the second key K2, or a hash of the random number R1.
[0049] FIG. 9 illustrates alternative example operations 900 for data encryption system disclosed herein. An operation 902 receives a packet with the encrypted data (ED), the first key code K1R1, and the second key code K2R1, and a key (K1 or K2). An operation 904 generates a cipher key based on the key generated from the received identifier, for example, the first key (K1) and the second key code K2R1. An operation 906 generates the random number (R1) based on the first key (K1) and the first key code K1R1. An operation 908 decrypts the ED with the cipher key to generate a first decrypted output. An operation 910 decrypts the ED with the R1 to generate a second decrypted output. Subsequently, an operation 912 evaluates the first decrypted output and the second decrypted output using the mac to determine the correct decrypted output.
[0050] The technology disclosed herein provides storage efficient methods to retrieve the original data using key generated from any single user identifier. Specifically, the encryption and combination of each key in ways that enables any legitimate user to retrieve the shared secret key with the verification being performed through the usage of a hash function is technically advantageous. Using this technology, the growth of storage size requirements with the number of users is independent of the data size as opposed to the conventional method. The reduction in storage space requirements of our proposed solution over conventional method are extremely significant. Furthermore, the key length of AES-256 is a mere 256 bits so the increase in storage space with increasing number of users grows by a linear factor of 256 bits. In contrast with the conventional method, with the disclosed technology, the increase in storage space with increasing number of users grows by a linear factor of the data size which far exceeds 256 bits. Furthermore, with the disclosed technology, updates to the content can be readily performed by one user without the requirement of all user keys while yet enabling all other users to access the updates.
[0051] FIG. 10 illustrates operations 1000 of decryption module 1012 when hashes of say K1 and K2 are embedded into the package received by the decryption module 1012. For example, the decryption module may receive packets 412-420, as disclosed above in FIG. 4. Specifically, the decryption module 1012 determines the correct partial key (H(K1) 1004a or (H(K2) 1004b using the embedded hashes. Specifically, the decryption module 1012 hashes the keys (K1 or K2) generated from user identifier supplied by the user (fingerprint) with the received hashes H(K1) 1004a or H(K1) H(K1)1004b to determine which is the key that is being supplied. Subsequently, the decryption module 1012 performs XOR operation on the determined key with the respective key codes K1R1 and K2R1 to generate the cipher key K1K2R1, which is subsequently used to generate the decrypted content 1014 that includes the decrypted data (PT) with the mac.
[0052] Thus, the implementation disclosed in FIG. 10 allows user to decrypt the cipher text, modify it, and encrypt the new content with the same key. In addition, this provides the convenience of using any of the keys K1 and K2 for decrypting the cipher text with the modified content. This is further illustrated below in implementations 1100 of FIG. 11.
[0053] Specifically, as illustrated here, the decryption module 1112 may generate the output 1114. If a user modifies the encrypted data (ED) (such as plain text (PT)) (retrieved from the ciphered text (CT)), the user can send the modified new data (plain text (PT’)) to the system to regenerate a new mac, called mac’, which may be attached to and encrypt the modified PT’+mac’ with cipher key K1K2R1 as shown in FIG. 11. After that, the new CT’ that contains PT’+mac’ can be re-packaged with key codes K1R1 and K2R1 and be stored where the second user could retrieve and get the newly modified data PT’.
[0054] FIG. 12 illustrate a method 1200 where two keys K1 and K2 are supplied but only one key is used for encryption. Specifically, in the illustrated implementation, the encryption module 1202 may use two keys K1 and K2 maybe used. Subsequently an XOR operation on K1 and K2 may generate K1K2. As disclosed, K1 may be used to encrypt data such as plain text (PT) + message authentication code (mac) to get the encrypted data (ED) / cipher text (CT). The ED / CT may be packed with K1K2 and stored as shown in FIG. 12. FIG. 13 below discloses decryption implementations 1300 for the ED as encrypted in FIG. 12.
[0055] Specifically, a decryption module 1312 where a user may supply a first key K1 and as per 1312a tries to decrypt the ED / CT with the user supplied key K1 and with K1K2 stored as per FIG. 12, whereas as per 1312b tries to decrypt the ED / CT with the user supplied key K1. The outputs 1314a and 1314b are evaluated using the mac.
[0056] Similarly, a decryption module 1314 where a user may supply a first key K2 and as per 1322a tries to decrypt the ED / CT with the user supplied key K2 and with K1K2 stored as per FIG. 12, whereas as per 1322b tries to decrypt the ED / CT with the user supplied key K2. The outputs 1324a and 1324b are evaluated using the mac.
[0057] FIG. 14 illustrates encryption modules 1400 with modified encryption methods to prevent exposure. Specifically, the encryption module 1402 illustrates generating a packet 1408 that includes a hashed version of the first key K1 and a hashed version of the second key K2. Here the H(K1) is XOR’d with R1 to generate H(K1)R1 and the H(K2) is XOR’d with R1 to generate H(K2)R1. Subsequently, the packet includes H(K1)R1 and H(K2)R1. The encryption module 1412 also illustrates generating a packet 1408 using hashed versions of the keys K1 and K2. However, a packet 1418 generated therein includes H(K1) and H(K2) directly.
[0058] FIG. 15 illustrates alternative implementations 1500 where the information to be stored in the packet 1508 (called protocol) may be done in alternate manners such as (a) prepending or appending the information to the packet 1508 to generate a weaved packet 1510 or by weaving the information in the packet 1508 to generate the weaved packet 1510. As a result of the weaving (shown in the weaved packet 1510 with shaded sections) makes the packets more secure from hacking.
[0059] FIGS. 16-18 disclosed below illustrate alternative method where multiple (may be more than two) keys are used for encryption but any of these keys may be used for decryption. Specifically, FIGS. 16 and 17 disclose an implementation using multiple keys with randomly generated number. On the other hand, FIG. 18 disclose another implementation using multiple keys used to encrypt but using a single key to decrypt.
[0060] Specifically, FIG. 16 illustrates encryption modules 1600 that disclose using encryption methods using multiple keys with randomly generated number R1. For example, an encryption module 1602 disclosed generating a key Km1 by performing an XOR operation on the two keys K1 and K2 supplied by a user together with the random number R1. Subsequently, an encryption module 1604 generates a key Km2 using two other keys K3 and K4 and another random number R2. Here all of K1, K2, K3, and K4 may be supplied by multiple users or by just one user. For example, a biometric system that takes in four different fingerprints may be used for generating K1, K2, K3, and K4. Subsequently, as disclosed by the encryption module 1610, an XOR operation is performed on Km1, Km2, and a random number R3 to generate Km3.
[0061] FIG. 17 shows additional operations 1700 for using multiple keys to encrypt data that can decrypted by a single key. As shown at 1702 in FIG. 17, Km3 is used to encrypt a data such as plain text with a mac to obtain cipher text (CT).
[0062] As shown at 1710a, keys may be paired together using XOR operation. For example, an XOR operation on K1 with R1 generates K1R1, and an XOR on K2 and R1 generates K2R1. Similarly, for K3 and R2 are paired using XOR to obtain K3R2 and K4 and R2 are paired using XOR to obtain K4R2. Additionally, Km1 and R3 are paired using XOR to generate Km1R3. Finally, Km2 is paired with R3 to generate Km2R3. As shown in 1701a, these six keys may be packed together with CT at an arbitrary location to generate the packet 1710a. Alternatively, one or more of the keys and the CT may be split and rearranged in the packet 1710a in a manner that only the encryption module knows.
[0063] To decrypt CT, only one key is required to be supplied. For example, a user may enter key K1 to a decryption module. The decryption module may perform an XOR of K1 with K2R1 to obtain Km1. Then using Km1, the decryption module may perform an XOR on Km1 andKM2R3 to obtain KM3 that can be used to decrypt CT. Similarly, for a use with key K2, an XOR on K2 with K1R1 provides Km1. Subsequently, an XOR on Km1 and Km2R3 provides Km3, which may be used to decrypt CT. Similarly, for a user with key K3, an XOR on K3 with K4R2 provides Km2. Subsequently, an XOR on Km2 and Km1R3 provides Km3, which may be used to decrypt CT. Finally, for a user with key K4, an XOR on K4 with K3R2 provides Km2. Subsequently, an XOR on Km2 and Km1R3 provides Km3, which may be used to decrypt CT.
[0064] Because the decryption modules do not know which key is supplied, the decryption modules may have to try all combinations until it obtains the correct decrypted data that can be evaluated with the mac. Furthermore, the processing may be further improved by storing a hash (or part of the hash) of the keys to the packet, as illustrated by the packet 1710b. Because these hashes are only used to determine which key is supplied to the system, a partial hash, such as hash of first half or quarter of the key may be sufficient to determine which key is supplied. In this implementation, the decryption module only needs to compare at most four times after hashing the supplied key to determine which key, K1, K2, K3 or K4 is supplied by the user, and then proceed with the relevant steps above to decrypt CT.
[0065] Furthermore, if any user modifies the data such as plain text (PT), the user can do so and re- encrypt the plain text, PT’, with the new mac’ with the same key used to decrypt so as to obtain CT’ with the modified data. The rest of the users can access new PT’ when decrypted with the steps described above. The implementations disclosed above may be further cascaded to employ more keys to encrypt but requiring only one key to decrypt. The number of keys used depends on the number of users to share data with, the performance of the system, and on security as more keys means more exposure and higher chances of any key being accidentally leaked.
[0066] Furthermore, in order to reduce exposure of the actual keys, e.g. K1, K2, K3 or K4 etc., the hash of the keys can be employed instead. For example, using H(K1), H(K2), H(K3) and H(K4) to replace K1, K2, K3 and K4 as disclosed above. And for decryption module to determine which key is supplied for decryption, hash or partial hash of the hashed keys can be used; for example, H(H(K1)), H(H(K2)) etc. Also, any or all randomly generated numbers R1, R2 and R3 can also be the 5th, 6th and 7th user supplied keys and apply the same method described for encryption / decryption.
[0067] FIG. 18 illustrates an alternative a method 1800 that uses multiple keys for encryption where only one key may be required for decryption. For example, as illustrated herein, three keys K1, K2, and K3 are used for encryption. At 1802, an XOR operation on K1 and K2 generates a key K12. Similarly, at 1804, another XOR operation on K1 and K3 generates a key K13. Subsequently, at 1806, any of the keys K1, K2, and K3 is randomly chosen for encryption. In this case, K1 is chosen for encryption of data such as plain text with its mac to generate the encrypted data (ED). A packet 1810 including K12, K13, and ED may be communicated to a user. Here, a decryption module may use K12 to generate K1 if a user supplies K2 and subsequently, K1 is used for decryption of the ED. Specifically, the decryption module may XOR K2 with K12 to generate K1.Similarly, the decryption module may use K13 to generate K1 if a user supplies K3 and subsequently, K1 is used for decryption of the ED. Specifically, the decryption module may XOR K3 with K13 to generate K1.
[0068] Furthermore, in alternative implementation, the packet 1810 may also include partial hash of the keys which assists in determining which key is supplied. Additionally, the keys may also be shielded from direct exposure by using the hash of the keys instead of the key itself. Also, weaving the information within the package 1810 may also help obfuscate the information and will increase the difficulty for an adversary to do a brute force attack on the ED(CT). Furthermore, the partial hashes / hashes of the encryption keys may be stored along with the CT package to improve processing speed, while balancing performance with security of the system.
[0069] The technology disclosed herein provides a number of technical advantages over the existing encryption / decryption systems. For example, the disclosed technology allows more than two users to share a single set of encrypted data where any one of the users can access using only his / her key. This is done without the need for any users to share each other’s key. Additionally, using the disclosed technology, any user of the shared encrypted data can modify the content, re-encrypt the new content and the rest of the users will be able to decrypt and get the new content with the modification without the presents of all users and the need of presenting all users keys during that session.
[0070] Furthermore, the disclosed technology may also be used in a system where the user does not know or need to remember the encryption key. For example, a system where the key is generated from biometric information like fingerprint. In such a system, should a user injure (or lost) the finger that is used to generate the encryption key, the user has an alternative to use the other finger or biometric information which was also used to encrypt the data using the steps described in this invention to retrieve the data. Additionally, keys may be created in different ways. Example, one key may be generated by biometric means while the next key may be a traditional user password.
[0071] FIG. 19 illustrates an example processing system 1900 that may be useful in implementing the described technology. The processing system 1900 is capable of executing a computer program product embodied in a tangible computer-readable storage medium to execute a computer process. Data and program files may be input to the processing system 1900, which reads the files and executes the programs therein using one or more processors (CPUs or GPUs). Some of the elements of a processing system 1900 are shown in FIG. 19 wherein a processor 1902 is shown having an input / output (I / O) section 1904, a Central Processing Unit (CPU) 1906, and a memory section 1908. There may be one or more processors 1902, such that the processor 1902 of the processing system 1900 comprises a single central-processing unit 1906, or a plurality of processing units. The processors may be single core or multi-core processors. The processing system 1900 may be a conventional computer, a distributed computer, or any other type of computer. The described technology is optionally implemented in software loaded in memory 1908, a storage unit 1912, and / or communicated via a wired or wireless network link 1914 on a carrier signal (e.g., Ethernet, 3G wireless, 8G wireless, LTE (Long Term Evolution)) thereby transforming the processing system 1900 in FIG. 19 to a special purpose machine for implementing the described operations. The processing system 1900 may be an application specific processing system configured for supporting a distributed ledger. In other words, the processing system 1900 may be a ledger node.
[0072] The I / O section 1904 may be connected to one or more user-interface devices (e.g., a keyboard, a touchscreen display unit 1918, etc.) or a storage unit 1912. Computer program products containing mechanisms to effectuate the systems and methods in accordance with the described technology may reside in the memory section 1908 or on the storage unit 1912 of such a system 1900.
[0073] A communication interface 1924 is capable of connecting the processing system 1900 to an enterprise network via the network link 1914, through which the computer system can receive instructions and data embodied in a carrier wave. When used in a local area networking (LAN) environment, the processing system 1900 is connected (by wired connection or wirelessly) to a local network through the communication interface 1924, which is one type of communications device. When used in a wide-area-networking (WAN) environment, the processing system 1900 typically includes a modem, a network adapter, or any other type of communications device for establishing communications over the wide area network. In a networked environment, program modules depicted relative to the processing system 1900 or portions thereof, may be stored in a remote memory storage device. It is appreciated that the network connections shown are examples of communications devices for and other means of establishing a communications link between the computers may be used.
[0074] In an example implementation, a user interface software module, a communication interface, an input / output interface module, a ledger node, and other modules may be embodied by instructions stored in memory 1908 and / or the storage unit 1912 and executed by the processor 1902. Further, local computing systems, remote data sources and / or services, and other associated logic represent firmware, hardware, and / or software, which may be configured to assist in supporting a distributed ledger. A ledger node system may be implemented using a general-purpose computer and specialized software (such as a server executing service software), a special purpose computing system and specialized software (such as a mobile device or network appliance executing service software), or other computing configurations. In addition, keys, device information, identification, configurations, etc. may be stored in the memory 1908 and / or the storage unit 1912 and executed by the processor 1902.
[0075] The processing system 1900 may be implemented in a device, such as a user device, storage device, IoT device, a desktop, laptop, computing device. The processing system 1900 may be a ledger node that executes in a user device or external to a user device.
[0076] Data storage and / or memory may be embodied by various types of processor-readable storage media, such as hard disc media, a storage array containing multiple storage devices, optical media, solid-state drive technology, ROM, RAM, and other technology. The operations may be implemented processor-executable instructions in firmware, software, hard-wired circuitry, gate array technology and other technologies, whether executed or assisted by a microprocessor, a microprocessor core, a microcontroller, special purpose circuitry, or other processing technologies. It should be understood that a write controller, a storage controller, data write circuitry, data read and recovery circuitry, a sorting module, and other functional modules of a data storage system may include or work in concert with a processor for processing processor-readable instructions for performing a system-implemented process.
[0077] For purposes of this description and meaning of the claims, the term “memory” means a tangible data storage device, including non-volatile memories (such as flash memory and the like) and volatile memories (such as dynamic random-access memory and the like). The computer instructions either permanently or temporarily reside in the memory, along with other information such as data, virtual mappings, operating systems, applications, and the like that are accessed by a computer processor to perform the desired functionality. The term “memory” expressly does not include a transitory medium such as a carrier signal, but the computer instructions can be transferred to the memory wirelessly.
[0078] In contrast to tangible computer-readable storage media, intangible computer-readable communication signals may embody computer readable instructions, data structures, program modules or other data resident in a modulated data signal, such as a carrier wave or other signal transport mechanism. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, intangible communication signals include wired media such as a wired network or direct- wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.
[0079] The embodiments of the invention described herein are implemented as logical steps in one or more computer systems. The logical operations of the present invention are implemented (1) as a sequence of processor-implemented steps executing in one or more computer systems and (2) as interconnected machine or circuit modules within one or more computer systems. The implementation is a matter of choice, dependent on the performance requirements of the computer system implementing the invention. Accordingly, the logical operations making up the embodiments of the invention described herein are referred to variously as operations, steps, objects, or modules. Furthermore, it should be understood that logical operations may be performed in any order, unless explicitly claimed otherwise or a specific order is inherently necessitated by the claim language.
[0080] The above specification, examples, and data provide a complete description of the structure and use of example embodiments of the disclosed technology. Since many embodiments of the disclosed technology can be made without departing from the spirit and scope of the disclosed technology, the disclosed technology resides in the claims hereinafter appended. Furthermore, structural features of the different embodiments may be combined in yet another embodiment without departing from the recited claims.
Claims
1. A method, comprising: receiving a first key (K1) and a second key (K2) from a user, wherein the first key K1 is generated from a first user identifier and the second key K2 is generated from a second user identifier;combining K1 and K2 with a random number (R1) to generate a cipher key (K1K2R1);generating a first key code (K1R1) based on at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1;generating a second key code (K2R1) based on at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K1;encrypting data using the cipher key and a message authentication code (mac) to generate encrypted data; andcommunicating the encrypted data with the first key code, the second key code, and a hash.
2. The method of claim 1, wherein the is a hash of the cipher key.
3. The method of claim 1, wherein the is a hash includes a hash of K1, and a hash of K2.
4. The method of claim 1, wherein the hash is a hash of the random number (R1).
5. The method of claim 1, wherein generating a first key code (K1R1) further comprising performing an XOR operation on at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1.
6. The method of claim 1, wherein generating a second key code (K2R1) further comprising performing an XOR operation on at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K2.
7. The method of claim 1, wherein communicating the encrypted data with the first key code, the second key code, and a hash further comprising communicating the encrypted data with the first key code, the second key code, and a part of the hash.
8. The method of claim 1, further comprising:generating the cipher key based on first key (K1) and the second key code (K2R1);generating the random number (R1) based on the first key (K1) and the first key code (K1R1);decrypting the encrypted data with the cipher key to generate a first decrypted output;decrypting the encrypted data with the random number (R1) to generate a second decrypted output; andevaluating each of the first decrypted output and the second decrypted output using the mac to determine the correct decrypted data.
9. The method of claim 1, further comprising:generating the cipher key based on second key (K2) and the first key code (K1R1);generating the random number (R1) based on the second key (K2) and the second key code (K2R1);decrypting the encrypted data with the cipher key to generate a first decrypted output;decrypting the encrypted data with the random number (R1) to generate the second decrypted output; andevaluating each of the first decrypted output and the second decrypted output using the mac to determine the correct decrypted data.
10. In a computing environment, a method performed at least in part on at least one processor, the method comprising: receiving a first key (K1) and a second key (K2) from a user, wherein the first key K1 is generated from a first user identifier and the second key K2 is generated from a second user identifier;combining K1 and K2 with a random number (R1) to generate a cipher key (K1K2R1);generating a first key code (K1R1) based on at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1;generating a second key code (K2R1) based on at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K1;encrypting data using the cipher key and a message authentication code (mac) to generate encrypted data; andcommunicating the encrypted data with the first key code, the second key code, and a hash.
11. The method of claim 10, wherein the is a hash of the cipher key.
12. The method of claim 10, wherein the is a hash includes a hash of K1, and a hash of K2.
13. The method of claim 10, wherein the hash is a hash of the random number (R1).
14. The method of claim 10, wherein communicating the encrypted data with the first key code, the second key code, and a hash further comprising communicating the encrypted data with the first key code, the second key code, and a part of the hash.
15. The method of claim 10, further comprising: generating the cipher key based on first key (K1) and the second key code (K2R1);generating the random number (R1) based on the first key (K1) and the first key code (K1R1);decrypting the encrypted data with the cipher key to generate a first decrypted output;decrypting the encrypted data with the random number (R1) to generate the second decrypted output; andevaluating each of the first decrypted output and the second decrypted output using the mac to determine the correct decrypted data.
16. One or more tangible computer-readable storage media encoding computer-executable instructions for executing on a computer system a computer process, the computer process comprising: receiving a first key (K1) and a second key (K2) from a user, wherein the first key K1 is generated from a first user identifier and the second key K2 is generated from a second user identifier;combining K1 and K2 with a random number (R1) to generate a cipher key (K1K2R1);generating a first key code (K1R1) based on at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1;generating a second key code (K2R1) based on at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K1;encrypting data using the cipher key and a message authentication code (mac) to generate encrypted data; andcommunicating the encrypted data with the first key code, the second key code, and a hash.
17. One or more tangible computer-readable storage media of claim 16, wherein communicating the encrypted data with the first key code, the second key code, and a hash further comprising communicating the encrypted data with the first key code, the second key code, and a part of the hash.
18. One or more tangible computer-readable storage media of claim 16, wherein generating a first key code (K1R1) further comprising performing an XOR operation on at least one of (a) the cipher key and the K1 or (b) the random number (R1) and K1.
19. One or more tangible computer-readable storage media of claim 16, wherein generating a second key code (K2R1) further comprising performing an XOR operation on at least one of (a) the cipher key and the K2 or (b) the random number (R1) and K2.
20. One or more tangible computer-readable storage media of claim 16, further comprising: generating the cipher key based on second key (K2) and the first key code (K1R1);generating the random number (R1) based on the second key (K2) and the second key (K2R1);decrypting the encrypted data with the cipher key to generate a first decrypted output;decrypting the encrypted data with the random number (R1) to generate the second decrypted output; andevaluating each of the first decrypted output and the second decrypted output using the mac to determine the correct decrypted data.
