This invention relates to cryptography, and more particularly to cryptosystems that enable enforcement of syntactical and/or semantic requirements on encrypted data.
As computer technology has advanced, so too has the need for computer security. One significant area of concern with computer security is the security of data stored by a user of the computer. Such security can include, for example, security against another user reading the data, another user modifying the data (either maliciously or unintentionally), etc. One manner in which such security is currently provided is through encryption. Using encryption, only those users who are supposed to have access to the data (e.g., those users with the decryption key) are able to decrypt and read (and/or modify) the data.
However, situations arise in which encryption creates additional problems. One such situation is in the case where the data is to be verified as being in accordance with a certain set of rules (e.g., a naming syntax), while at the same time maintaining the security/privacy of the data. Current systems typically cannot perform such verifications without reading the underlying data.
For example, in some situations where computers are networked together it would be desirable to have a distributed file system in which different files could be stored on different machines in the network. However, in order to maintain security of the data in the files, it would be beneficial to be able to render both the data and the filename itself unreadable at the computer on which the file is stored, thereby preventing another unauthorized user from gathering information about the data by either reading the data file or the filename. However, maintaining a directory of such encrypted/protected filenames can lead to difficulties, especially due to the fact that the user of the computer on which the data file or filename is stored may not be authorized to read the file. Care must be taken to ensure that the filename syntax is not violated and that duplicate filenames do not exist. Current systems do not have the ability to maintain such a directory of non-duplicate filenames that do not violate the naming syntax while at the same time can be verified by a component that is not authorized to read the filenames.
The invention described below addresses these disadvantages, providing methods and systems for encryption that excludes syntactically illegal plaintext from being encrypted and that enables a party without access to encryption keys to exclude more than one item of ciphertext that decrypts to the same plaintext. For this reason, the invention is referred to as “exclusive encryption.”
Methods and systems for exclusive encryption are described herein.
According to one aspect, an exclusive encryption system is established using multiple computing devices. The exclusive encryption system allows for the exclusion of certain plaintext (e.g., by one of the computing devices) and ciphertext (e.g., by another of the computing devices) while at the same time maintaining the privacy created by the encryption (e.g., so the other computing device cannot see the plaintext).
According to another aspect, an exclusive encryption system is established as part of a serverless distributed file system. The file system is distributed among multiple computing devices, and each directory entry (e.g., a file name or folder name) is encrypted by the device creating (or otherwise using) the entry. The encryption process used ensures that the directory entry is syntactically legal and cannot be read by the device on which the entry is stored. Additionally, the device on which the entry is stored is able to verify the legality of the directory entry, and ensures that duplicate entries are not stored in the same directory.
The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings. The same numbers are used throughout the figures to reference like components and/or features.
Cryptographic methods and systems including exclusive encryption are described herein. Exclusive encryption is used herein to refer to encryption that allows for the exclusion of certain plaintext and ciphertext while at the same time maintaining the privacy created by the encryption. In certain embodiments, these exclusions include the exclusion of syntactically illegal plaintext (e.g., exclusion from being encrypted) and the exclusion of multiple ciphertexts that decrypt to the same plaintext.
The discussions herein assume a basic understanding of cryptography by the reader. For a basic introduction of cryptography, the reader is directed to a text written by Bruce Schneier and entitled “Applied Cryptography: Protocols, Algorithms, and Source Code in C,” published by John Wiley & Sons with copyright 1994 (or second edition with copyright 1996).
Another computing device 108 coupled to computing device 104 may also be able to access, and obtain the ciphertext 106 from, computing device 104. If computing device 108 is not authorized to access the plaintext corresponding to ciphertext 106, then computing device 108 would not be able to decrypt ciphertext 106 (e.g., device 108 would not have the appropriate cryptographic key(s)) and the corresponding plaintext would thus be secure from being viewed by device 108. However, if computing device 108 is authorized to access the plaintext corresponding to ciphertext 106 (e.g., computing device has the appropriate key(s) to decrypt ciphertext 106), then device 108 will be able to obtain the plaintext by decrypting ciphertext 106. Additionally, computing device 108 is assured that the decrypted plaintext will be syntactically legal, regardless of what encrypted bits it receives and regardless of what key(s) it uses.
The methods and systems of the exclusive encryption cryptosystem are discussed herein primarily with reference to a directory service that uses exclusive encryption. However, the invention is not limited to use with directory services and can be used in any of a wide variety of other situations. One example of such a situation is a secure courier service in which a courier guarantees to the message recipient that it will only deliver syntactically valid messages, and it will never deliver a duplicate message, even though the courier is not permitted access to the unencrypted contents of the messages it carries. Another example is a secret-ballot election, in which one wishes to transmit a vote in encrypted form while demonstrating that the vote is of a valid form. Yet another example is “secret sharing”, in which portions of a key are distributed; in such situations, one may want to encrypt the “shares” of the key for transmission while demonstrating that the shares are valid.
Network 128 represents any of a wide variety of data communications networks. Network 128 can include public portions (e.g., the Internet) as well as private portions (e.g., an internal corporate Local Area Network (LAN)), as well as combinations of public and private portions. Network 128 can be implemented using any one or more of a wide variety of conventional communications media including both wired and wireless media. Any of a wide variety of communications protocols can be used to communicate data via network 128, including both public and proprietary protocols. Examples of such protocols include TCP/IP, IPX/SPX, NetBEUI, etc.
Computing devices 120-126 represent any of a wide range of computing devices, and each device 120-126 may be the same or different. By way of example, devices 120-126 may be desktop computers, laptop computers, handheld or pocket computers, personal digital assistants (PDAs), cellular phones, Internet appliances, consumer electronics devices, gaming consoles, etc.
Two or more of devices 120-126 operate to implement a serverless distributed file system 130. The actual devices included in the serverless distributed file system 130 can change over time, allowing new devices to be added to the system 130 and other devices to be removed from the system 130. Each device 120-126 that is part of the distributed file system 130 has different portions of its mass storage device(s) (e.g., hard disk drive) allocated for use as either local storage or distributed storage. The local storage is used for data that the user desires to store on his or her local machine and not in the distributed file system structure. The distributed storage portion is used for data that the user of the device (or another device) desires to store within the distributed file system structure. In the illustrated example of
The distributed file system 130 operates to store one or more copies of files on different computing devices 120-124. When a new file is created by the user of a computer 120-126, he or she has the option of storing the file on the local portion of his or her computing device, or alternatively in the distributed file system 130. If the file is stored in the distributed file system 130, then the file will be stored in the distributed system portion of the mass storage device(s) of one or more of devices 120-124. The user creating the file typically has no ability to control which device 120-124 the file is stored on, nor any knowledge of which device 120-124 the file is stored on. Additionally, duplicate copies of the file will typically be saved, allowing the user to subsequently retrieve the file even if one of the computing devices 120-124 on which the file is saved is unavailable (e.g., is powered-down, is malfunctioning, etc.).
The distributed file system 130 is implemented by one or more components on each of the devices 120-124, thereby obviating the need for any centralized server to coordinate the file system. These components operate to determine where particular files are stored, how many copies of the files are created for storage on different devices, etc. Exactly which device will store which files depends on numerous factors, including the number of devices in the distributed file system 130, the storage space allocated to the file system from each of the devices, a number of copies of the file are to be saved, the number of files already stored on the devices, etc. Thus, the distributed file system 130 allows the user to create and access files (as well as folders or directories) without any knowledge of exactly which other computing device(s) the file is being stored on.
The files stored by the file system 130 are distributed among the various devices 120-124 and stored in encrypted form. When a new file is created, the device on which the file is being created encrypts the file prior to communicating the file to other device(s) for storage. The directory entry (e.g., the file name) for a new file is also communicated to the other device(s) for storage. Additionally, if a new folder or directory is created, the directory entry (e.g., folder name or directory name) is also communicated to the other device(s) for storage. As used herein, a directory entry refers to any entry that can be added to a file system directory, including both file names and directory (or folder) names.
The distributed file system 130 is designed to prevent unauthorized users from reading data stored on one of the devices 120-124. Thus, a file created by device 122 and stored on device 124 is not readable by the user of device 124 (unless he or she is authorized to do so). In order to implement such security, the contents of files as well as all directory entries are encrypted, and only authorized users are given the decryption key. Thus, although device 124 may store a file created by device 122, if a user of device 124 is not an authorized user of the file then the user of device 124 cannot decrypt (and thus cannot read) either the contents of the file or its directory name (e.g., filename).
The exclusive encryption described herein allows the directory entry to be stored in an encrypted form, thereby preventing unauthorized users from improperly gaining any information based on the filename. Additionally, the exclusive encryption assures that various properties are maintained. In the illustrated example, the following three properties are maintained:
Computing device 150 is intended to be used in a serverless distributed file system, and as such includes both server component 152 and client component 154. Server component 152 handles requests when device 150 is responding to a request involving a file or directory entry stored (or to be stored) in storage device 158 (although files and corresponding directory entries need not be stored on the same device 150), while client component 154 handles the issuance of requests by device 150 for files stored (or to be stored) in the distributed file system. Client component 154 and server component 152 operate independent of one another. Thus, situations can arise where the serverless distributed file system causes files being stored by client component 154 to be stored in mass storage device 158 by server component 152.
Client component 154 includes a storage and retrieval control module 160, a mapping module 162, a decasifying module 164, an encoding module 166, an encryption module 168, a decryption module 170, a decoding module 172, a recasifying module 174, and a demapping module 176. Control module 160 (in combination with interface 200 discussed below) manages accesses to the serverless distributed file system for the creation, storage, retrieval, and any other modification of files and directories on behalf of computing device 150. Due to the distributed nature of the file system, directory information such as file names and directory names (plaintext names) are modified by computing device 150 prior to being stored in the file system so that the modified names themselves reveal very little information about the original plaintext name, while at the same time allowing the device at which the names will be stored to verify that they are syntactically legal names and are not duplicates. The modified names do leak information about the approximate length of the original plaintext name (although this leak can be avoided in an alternate embodiment discussed below). The modules 162-168 are used to modify plaintext names prior to communicating them to the serverless distributed file system, while modules 170-176 are used to reconstruct the plaintext name when a modified name is received from the serverless distributed file system. The use of these modules and their operation will be discussed with additional reference to
The decasified name is then made available to encoder 166 which encodes the decasified name (act 186). The encoded name is then made available to encryptor 168 which encrypts both the encoded name from act 186 and the case information from act 184 (act 188). Control module 160 then communicates the encrypted name and encrypted case information to another device for verification and storage (act 190). This encrypted name and case information are also referred to as ciphertexts.
The process of
After the directory entry is modified per the process of
The decoded name and decrypted case information are then made available to recasifier 174 which uses the case information to recasify the decoded name (act 216). The recasified name is then made available to demapper 176 which demaps the recasified name into the plaintext name (act 218).
The process of
An exemplary implementation of the modules 162-176 will now be discussed.
Mapping module (mapper) 162 maps a received plaintext name into a mapped name.
Mapping module 162 then checks whether the input plaintext name is an illegal name (act 242). Mapping module 162 includes a record of illegal names, which may be pre-programmed or defined in module 162 or alternatively provided to module 162 by some other component (e.g., module 160). In one implementation, the following strings (regardless of case) are illegal names: CONIN$, CONOUT$, CON, PRN, AUX, NUL, LPTn, COMn (where n represents any digit 0 through 9). Alternatively, the illegal names may include more or fewer (and/or different) strings. Additionally, the set of illegal names may be the empty set, which is equivalent to there being no illegal names. If there are no illegal names, then neither mapping module 162 (nor mapping act 242) need be included, and demapping module 176 and any demapping acts (discussed in more detail below) also need not be included.
If the plaintext name is equal to any one of these illegal names then an indication that no valid mapping exists is given to module 160 (act 244) and the modification process of
Alternatively, other characters may be used by mapping module 162 other than an underscore. Any character (e.g., letter, number, other symbol, etc.) can be used in place of the underscore, so long as adding a string of zero or more such characters to an illegal name does not result in another illegal name.
Once mapped, the mapped name is decasified by decasifying module (decasifier) 164.
Module 164 then initializes two strings, referred to as the L and the I strings, to null (act 272). At the end of the decasifying process, the L string will be the decasified version of the input name received in act 270, and the I string will be a set of bits that identify the appropriate case for each of the characters in the L string. Module 164 operates to decasify names based on the Unicode standard including current and future versions of the standard. Additionally information regarding the Unicode standard is available from The Unicode Consortium of Mountain View, Calif. The Unicode standard uses sixteen bits to identify each character, but it is an evolving standard, so not all 65,536 combinations are defined. However, the conventional ASCII character set (which includes the uppercase and lowercase English alphabet, numbers, and many symbols commonly used in English) is defined using the last seven bits of the sixteen Unicode bits (with the first nine bits being all zeroes). Thus, characters with Unicode values between 0 and 127 are equivalent to characters with identical ASCII values. Furthermore, characters with Unicode values between 128 and 255 have all been defined, and they include characters that, together with the first 128 Unicode characters, are sufficient to display text in most Latinate languages. These 256 characters are sometimes referred to as the “extended ASCII” character set. Due to the evolving nature of the Unicode standard, module 164 is implemented so as to decasify only those characters with Unicode values less than or equal to 255 (that is, the extended ASCII character set). Module 164 does not attempt to decasify any character in the input mapped name having a Unicode value greater than 255. Alternatively, additional characters may be decasified, such as any characters which are defined in the Unicode standard.
To decasify the received name, module 164 selects the first character from the input name (act 274). Module 164 then checks whether the leading eight bits of the selected character are zero (act 276). If the leading eight bits are not all zero (that is, the character has a Unicode value greater than 255) then module 164 appends the selected character to the L string and a zero bit to the I string (act 278). Module 164 then checks whether there are any additional characters in the input name (act 280). If there are no additional characters, then module 164 outputs the decasified name as the L string and the corresponding case information as the I string (act 282). However, if there are additional characters, then module 164 selects the next character in the input name (act 284) and returns to check whether each of the leading eight bits of the selected character is zero (act 276).
Returning to act 276, if the leading eight bits of the selected character are all zeroes, then module 164 checks whether the selected character is not a lower-case character (act 286). It should be noted that the phrase “not a lower-case character” is not equivalent to the phrase “an upper-case character”. For example, the asterisk symbol (*) has no case distinction and thus would not be a lower-case character, but also would not be an upper-case character.
If the selected character is not a lower-case character, then the selected character is appended to the L string and a zero bit is appended to the I string (act 288), and the process continues to act 280 to check whether any additional characters are in the input name. However, if the selected character is a lower-case character, then the upper-case form of the selected character is appended to the L string and a one bit is appended to the I string (act 290), and the process continues to act 280 to check whether any additional characters are in the input name.
By way of example, following the process of
In the illustrated example of
Once decasified, the decasified name is encoded by encoding module (encoder) 166.
The characters of the input name are then reversed (act 304) and the number of trailing underscores in the reversed name counted and removed (act 306). An encoded bit stream B (which will be the output encoded name at the end of the encoding process) is then initialized with a string of one bits equal to the number of underscores removed in act 306, followed by a zero (act 308). If there are no trailing underscores, then the encoded bit stream B is initialized with a single zero bit. Alternatively, rather than relying on underscores, different characters may be used. In one implementation, the character that is Huffman coded to zero is the character that is counted and removed from the end of the reversed name (Huffman coding is discussed in more detail below).
Module 166 then checks whether the leading eight bits of the first character in the reversed name are all zero (act 310). If the leading eight bits are not all zero, then the sixteen bits of the first character are appended to the encoded bit stream B (act 312). However, if the leading eight bits of the first character are all zero, then the character (based on the last eight bits) is encoded using a first coding table (act 314), and then eight zero bits followed by the bits from the coding table are appended to the encoded bit stream B (act 316).
The coding table in act 314 can be generated in any of a wide variety of conventional manners using any of a wide variety of prefix coding schemes. In one implementation, conventional Huffman coding is used, although other coding schemes could alternatively be used. In the illustrated example, the coding table in act 314 codes an underscore to all zeroes and has codes for all valid non-lower case characters with Unicode values less than 256 and greater than 31, except for the following: space, period, quotation mark, asterisk, forward slash, colon, greater than symbol, less than symbol, question mark, back slash, or vertical line. If module 166 is given an input name with a character that is the first character in act 308 and is not in the coding table, then the coding process fails, as does the modification process of
Regardless of the bits added to encoded bit stream B in either act 312 or 316, module 166 proceeds to check whether there is an additional character in the reversed name (act 318). If there are no more characters in the reversed name, then module 166 removes any trailing zero bits and the one bit preceding the trailing zero bits from the encoded bit string B (act 320). Module 166 then outputs the encoded bit string B as the encoded name (act 322).
Returning to act 318, if there are additional characters in the reversed name, then the next character in the reversed name is selected (act 324) and a check made as to whether the leading eight bits of the selected character are all zero (act 326). If the leading eight bits are not all zero, then the sixteen bits of the selected character are appended to the encoded bit stream B (act 328). However, if the leading eight bits of the selected character are all zero, then the character (based on the last eight bits) is encoded using another coding table (act 330), and then eight zero bits followed by the bits from the coding table are appended to the encoded bit stream B (act 332).
Analogous to the coding table discussed in act 314 above, the coding table used in act 330 can be generated in any of a wide variety of conventional manners using any of a wide variety of prefix coding schemes. In one implementation, conventional Huffman coding is used, although other coding schemes could alternatively be used. In the illustrated example, the coding table in act 330 codes an underscore to all zeroes and has codes for all valid non-lower case characters with Unicode values less than 256 and greater than 31, except for the following: quotation mark, asterisk, forward slash, colon, greater than symbol, less than symbol, question mark, back slash, or vertical line. These codes may be the same as those in the table of act 314, or alternatively different. If module 166 is given an input name with a character that is the selected character in act 324 and is not in the coding table, then the coding process fails, as does the modification process of
Regardless of the bits added to encoded bit stream B in either act 328 or 332, module 166 proceeds to check whether there is an additional character in the reversed name (act 318), and proceeds accordingly. In the illustrated example of
Once encoded, the encoded name (encoded bit string B of
Given that the encoded bit string B can be of varying length, additional bits are added to the bit string B as necessary to bring the bit string up to a length that is a multiple of the block size for the block cipher. In one implementation, this addition (also referred to as padding) to bit string B is accomplished by prepending to the bit string B (adding to the beginning of the bit string B) a one bit preceded by as many zero bits as necessary to bring the length of the bit string up to a multiple of the cipher block size. Encryption module 168 then encrypts the padded bit string B on a per-block (x) basis according to the following three rules:
(1) if the block x of bit string B has the value of zero, then the encrypted block has a value of zero;
(2) otherwise, if the result of encrypting block x with a block cipher encryption E is zero, then the encrypted block has a value equal to the encryption E of the value zero; and
(3) if neither rule (1) nor (2) applies, then the encrypted block has a value equal to the encryption E of the block.
Any of a wide variety of conventional block ciphers can be used as block cipher encryption E. In one implementation, block cipher encryption E is the well-known RC2 block cipher. Other conventional block ciphers can alternatively be used, such as DES, RC5, AES/Rijndael, and so forth.
It should also be noted that encryption module 168, using these rules, will not result in an encrypted name with a first block equaling zero. This is true even if the encryption uses a feedback mechanism such as cipher block chaining (CBC) to increase the security of the encrypted data. In CBC mode, the plaintext of each block is exclusively ORed (XORed) with the ciphertext of the previous block before it is encrypted, thereby making each ciphertext block dependent not only on the corresponding plaintext block but also on all previous plaintext blocks.
The resulting encrypted blocks are the encrypted name to be communicated to another device (act 190 of
In addition to encrypting the name, the case information I is also encrypted. The case information I is encrypted using any of a wide variety of conventional block ciphers. The block cipher may be the same as used for encrypting the encoded name, or alternatively a different block cipher. Additionally, the case information may be prepended with a one bit preceded by as many zero bits as necessary to bring the length of the case information up to a multiple of the size of the block cipher, analogous to the padding of the encoded bit string B discussed above. Alternatively, additional random padding may be added to the end of the case information I to bring it up to a multiple (not necessarily the next closest multiple) of the block cipher size. Any such additional information is ignored when recasifying the decoded name as discussed in more detail below.
Once generated, the encrypted directory entry is communicated to one or more other computing devices 150. As discussed above, this is typically a different device 150 than the device that generated the encrypted directory entry, although it could be the same device. Regardless of the source of the encrypted directory entry, the distributed system interface 200 at the receiving device 150 communicates the directory entry to server component 152.
Server component 152 includes a distributed system control module 350, a syntax verifier 352, and a duplication identifier 354. Distributed system control module 350 receives the encrypted directory entry and communicates the entry to syntax verifier 352 to verify that the entry is syntactically legal, and duplication identifier 354 to verify that the entry is not a duplicate of another entry in the distributed file system. Distributed system control module 350 maintains a record 356 of the encrypted directory entries that are stored at computing device 150 (or alternatively that are stored in all of the serverless distributed file system). In addition to having record 356 available in memory 156, if memory 156 is a volatile memory then record 356 is also stored in a nonvolatile memory (such as mass storage device 158) in order to preserve record 356 if computing device 150 is powered-down. Additionally, distributed system control module 350 communicates with mass storage device 158 to store and retrieve encrypted files corresponding to encrypted directory entries in record 356.
Syntax verifier 352 verifies that the syntax of a received directory entry is valid. In the illustrated example, syntax verifier 352 checks whether the first block of the encrypted directory entry is zero. If the first block is zero, then the directory entry is not syntactically legal; otherwise, the directory entry is syntactically legal.
Duplication identifier 354 compares the received encrypted directory entry to the other encrypted directory entries stored in record 356. If the received encrypted entry matches any of the encrypted entries stored in record 356 in the same folder as the received encrypted entry will be placed in, then the received entry is a duplicate; otherwise the received entry is not a duplicate. Note that the serverless distributed file system prevents multiple files or folders within the same directory or folder from having the same name, but does not prevent different files in different folders from having the same name. For example, two files in the same directory could not be named “memo.doc”, but two files in two different directories could be named “memo.doc”. Record 356 maintains an indication, for each entry, of which folder or directory the entry is in.
As mentioned above, the exclusive encryption described herein maintains the following three properties:
The encryption process does not result in an encrypted name having a first block that equals zero. Thus, any encrypted name having a first blocker equal to zero is an illegal entry and is detected by syntax verifier 352. Additionally, in one implementation a directory entry must satisfy the following criteria in order to be syntactically legal:
Given that the directory entries are stored in an encrypted manner, when a computing device 150 retrieves the entries from another device in the serverless distributed file system, the entries need to be converted to plaintext to be useable by other components in the device. The general process for converting the received encrypted name and case information into a plaintext name is discussed above with reference to
Initially, the encrypted name (bit string B discussed above) and the encrypted case information are decrypted by decryption module (decryptor) 170. The decryption process is the reverse of the encryption process discussed above. Initially, the prepended encoded name B is decrypted on a per-block (x) basis according to the following rules:
(1) if the block x of bit string B has the value of zero, then the decrypted block has a value of zero;
(2) otherwise, if the result of decrypting block x with a block cipher decryption E−1 is zero, then the decrypted block has a value equal to the decryption E−1 of the value zero; and
(3) if neither rule (1) nor (2) applies, then the decrypted block has a value equal to the decryption E−1 of the block.
The block cipher decryption E−1 is the decryption that corresponds to block cipher encryption E.
The result of this decryption process is the prepended encoded name B, from which decryption module 170 discards all leading bits up to and including the first one bit.
Decryption module 170 decrypts case information analogous to the decryption of prepended encoded name B. However, if any additional random padding was added to the end of the case information prior to encryption, this additional padding remains part of the decrypted case information and is simply ignored during the recasification process discussed below.
Once decrypted, decoding module (decoder) 172 decodes the encoded name B.
The number of leading one bits that precede the first zero bit in the encoded name B are then counted (act 404) and a pointer initialized to point to the first bit of the encoded name following the zero bit that follows the leading one bit (act 406). Decoding module 172 then checks whether the leading eight bits pointed to by the pointer are all zeroes (act 408). If the leading eight bits are not all zeroes, then module 172 appends the leading sixteen bits pointed to by the pointer to the name string L (act 410), updates the pointer to point to the first bit after the leading sixteen bits (act 412), and proceeds to check whether the leading eight bits pointed to by the pointer are all zeroes (act 414).
Returning to act 408, if the leading eight bits pointed to by the pointer are all zeroes, then module 172 decodes the next eight bits after the leading eight bits using a coding table (act 416). The coding table used in act 416 is the same as the coding table used in act 314 of
Returning to acts 414 and 418, if the decoded character is not an underscore (act 418) or more one bits remain in the encoded name (act 420), then the decoded character is appended to L (act 428). Decoding module 172 then updates the pointer to point to the next bit after the decoded character (act 430), and then checks whether the leading eight bits pointed to by the pointer are all zeroes (act 414). If the leading eight bits pointed to by the pointer are not all zeroes, then module 172 returns to act 410. However, if the leading eight bits pointed to by the pointer are all zeroes, then module 172 decodes the next eight bits after the leading eight bits using another coding table (act 432) and returns to act 418. The coding table used in act 432 is the same as the coding table used in act 330 of
Upon completion of the decoding process, a decoded and decasified name remains, along with corresponding case information. Recasifying module (recasifier) 174 uses the decoded name and the corresponding case information to recasify the name.
Recasifying module 174 then initializes a decoded name string M to be a null bit string (act 452). Recasifying module 174 outputs string M as the recasified name upon completing the process of
If the selected case information bit is zero, then the selected character is appended to string M (act 458). However, if the selected case information is not zero, then module 174 checks whether the leading eight bits of the selected character are all zeroes (act 460). If the leading eight bits of the selected character are not all zero, then the selected character is appended to string M (act 458); otherwise, module 174 checks whether the selected character has case distinction (act 462). If the selected character does not have case distinction then the selected character is appended to string M (act 458); otherwise, the lower-case form of the selected character is appended to string M (act 464).
After acts 458 and 464, module 174 checks whether any additional characters are in the input name (act 466). If there are no more characters in the input name then the value of string M is output as the recasified name (act 468). Any bits remaining in the case information are simply ignored. However, if there are additional characters in the input name, then module 174 selects the next character in the input name (act 470) and checks whether there is case information corresponding to the selected character (act 472). If there is case information corresponding to the selected character, then the corresponding case information is selected (act 474) and module 174 returns to act 456; otherwise, the value zero is used as the selected case information corresponding to the selected character (act 476) and module 174 returns to act 456.
After recasifying module 174 recasifies the decode name, demapping module (demapper) 176 demaps the recasified name.
Demapping module 176 then checks whether the input name is equal to an illegal name followed by zero or more underscores (act 502). If the input name is equal to an illegal name followed by zero or more underscores, then the demapped name is formed by appending one underscore to the input name (act 504). However, if the input name is not equal to an illegal name followed by zero or more underscores, then the input name is used as the demapped name (act 506). Thus, if the input name is not equal to an illegal name followed by zero or more underscores, then the input name demaps to itself.
The system and process described above with reference to
The decoding and encoding processes (discussed above with reference to
Encryption module 168 of
(1) if the encoded bit string B equals W×Q zero bits followed by a single one bit, then remove the trailing one bit from string B and encrypt the remaining bits of string B with block cipher E;
(2) if rule (1) does not apply and if the length of the encoded bit string B is greater than W×Q, then the procedure is aborted (the bit string is too long to be encrypted); and
(3) if neither rule (1) nor (2) applies, then append as many zero bits as necessary to the end of encoded bit string B so that bit string B has a length of W×Q bits, and encrypt the bit string B with block cipher E.
Encryption module 168 is also altered to encrypt the case information I as follows. The case information I is extended to include as many bits as necessary to bring the total length of the case information string I up to a fixed value V. The value V can vary, and in one implementation is equal to the largest number of characters that can be in a valid name (optionally plus additional space for additional random padding). The case information I can be extended using any bit values (e.g., random values). The case information I is then encrypted with block cipher E (or alternatively a different block cipher).
Decryption module 170 is similarly modified so that the decryption is performed as follows. Decryption module 170 sets the encoded name B equal to the decryption E−1 of the encrypted name. If the encoded name thus decrypted is all zero bits, then a one bit is appended to encoded name B. The encrypted case information is similarly decrypted using the decryption corresponding to the block cipher encryption used to encrypt the case information I.
The validation process (discussed above with reference to
The system and process described above with reference to
Another such alternative is to encode each plaintext character using Huffman coding (or other prefix coding) and then encrypt the encoded name. However, due to variances in lengths of encoded names, it is not always possible to determine whether an encrypted name represents a legally complete encoded name. Another alternative that solves part of this problem is to discard any final partial character during decryption or to treat all missing bits as zeroes for the final character when running out of characters during decryption. However, both of these can also result in multiple directory entries that are the same.
The bus 548 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. The system memory 546 includes read only memory (ROM) 550 and random access memory (RAM) 552. A basic input/output system (BIOS) 554, containing the basic routines that help to transfer information between elements within computer 542, such as during start-up, is stored in ROM 550. Computer 542 further includes a hard disk drive 556 for reading from and writing to a hard disk, not shown, connected to bus 548 via a hard disk drive interface 557 (e.g., a SCSI, ATA, or other type of interface); a magnetic disk drive 558 for reading from and writing to a removable magnetic disk 560, connected to bus 548 via a magnetic disk drive interface 561; and an optical disk drive 562 for reading from and/or writing to a removable optical disk 564 such as a CD ROM, DVD, or other optical media, connected to bus 548 via an optical drive interface 565. The drives and their associated computer-readable media provide nonvolatile storage of computer readable instructions, data structures, program modules and other data for computer 542. Although the exemplary environment described herein employs a hard disk, a removable magnetic disk 560, and a removable optical disk 564, it will be appreciated by those skilled in the art that other types of computer readable media which can store data that are accessible by a computer, such as magnetic cassettes, flash memory cards, random access memories (RAMs), read only memories (ROM), and the like, may also be used in the exemplary operating environment.
A number of program modules may be stored on the hard disk, magnetic disk 560, optical disk 564, ROM 550, or RAM 552, including an operating system 570, one or more application programs 572, other program modules 574, and program data 576. A user may enter commands and information into computer 542 through input devices such as keyboard 578 and pointing device 580. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are connected to the processing unit 544 through an interface 568 that is coupled to the system bus (e.g., a serial port interface, a parallel port interface, a universal serial bus (USB) interface, etc.). A monitor 584 or other type of display device is also connected to the system bus 548 via an interface, such as a video adapter 586. In addition to the monitor, personal computers typically include other peripheral output devices (not shown) such as speakers and printers.
Computer 542 operates in a networked environment using logical connections to one or more remote computers, such as a remote computer 588. The remote computer 588 may be another personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to computer 542, although only a memory storage device 590 has been illustrated in
When used in a LAN networking environment, computer 542 is connected to the local network 592 through a network interface or adapter 596. When used in a WAN networking environment, computer 542 typically includes a modem 598 or other means for establishing communications over the wide area network 594, such as the Internet. The modem 598, which may be internal or external, is connected to the system bus 548 via a serial port interface 568. In a networked environment, program modules depicted relative to the personal computer 542, or portions thereof, may be stored in the remote memory storage device. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
Computer 542 also includes a broadcast tuner 600. Broadcast tuner 600 receives broadcast signals either directly (e.g., analog or digital cable transmissions fed directly into tuner 600) or via a reception device (e.g., via antenna or satellite dish).
Computer 542 typically includes at least some form of computer readable media. Computer readable media can be any available media that can be accessed by computer 542. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology; CD-ROM, digital versatile disks (DVD), or other optical storage; magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices; or any other media which can be used to store the desired information and which can be accessed by computer 542. Communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. 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, communication media includes wired media such as wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.
The invention has been described in part in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Typically the functionality of the program modules may be combined or distributed as desired in various embodiments.
For purposes of illustration, programs and other executable program components such as the operating system are illustrated herein as discrete blocks, although it is recognized that such programs and components reside at various times in different storage components of the computer, and are executed by the data processor(s) of the computer.
Alternatively, the invention may be implemented in hardware or a combination of hardware, software, and/or firmware. For example, one or more application specific integrated circuits (ASICs) could be designed or programmed to carry out the invention.
Although the description above uses language that is specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the invention.
This application is a continuation application of U.S. patent application Ser. No. 09/764,962, filed Jan. 17, 2001, entitled “Exclusive Encryption” to John R. Douceur, Atul Adya, Josh D. Benaloh, and Gideon A. Yuval, which is hereby incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
4979188 | Kotzin et al. | Dec 1990 | A |
5202982 | Gramlich et al. | Apr 1993 | A |
5285497 | Thatcher, Jr. | Feb 1994 | A |
5317728 | Tevis et al. | May 1994 | A |
5371794 | Diffie et al. | Dec 1994 | A |
5452447 | Nelson et al. | Sep 1995 | A |
5483652 | Sudama et al. | Jan 1996 | A |
5553235 | Chen et al. | Sep 1996 | A |
5564037 | Lam | Oct 1996 | A |
5586330 | Knudsen et al. | Dec 1996 | A |
5588147 | Neeman et al. | Dec 1996 | A |
5627996 | Bauer | May 1997 | A |
5680611 | Rail et al. | Oct 1997 | A |
5692178 | Shaughnessy | Nov 1997 | A |
5740361 | Brown | Apr 1998 | A |
5745902 | Miller et al. | Apr 1998 | A |
5758359 | Saxon | May 1998 | A |
5778395 | Whiting et al. | Jul 1998 | A |
5794042 | Terada et al. | Aug 1998 | A |
5812776 | Gifford | Sep 1998 | A |
5873085 | Enoki et al. | Feb 1999 | A |
5901227 | Perlman | May 1999 | A |
5907673 | Hirayama et al. | May 1999 | A |
5909540 | Carter et al. | Jun 1999 | A |
5913217 | Alger et al. | Jun 1999 | A |
5915096 | Rosenzweig et al. | Jun 1999 | A |
5940841 | Schmuck et al. | Aug 1999 | A |
5950198 | Falls et al. | Sep 1999 | A |
5950209 | Carrier, III et al. | Sep 1999 | A |
5953729 | Cabrera et al. | Sep 1999 | A |
5960446 | Schmuck et al. | Sep 1999 | A |
5963963 | Schmuck et al. | Oct 1999 | A |
5968121 | Logan et al. | Oct 1999 | A |
5974141 | Saito | Oct 1999 | A |
5978805 | Carson | Nov 1999 | A |
5987477 | Schmuck et al. | Nov 1999 | A |
5991414 | Garay et al. | Nov 1999 | A |
5991771 | Falls et al. | Nov 1999 | A |
6023506 | Ote et al. | Feb 2000 | A |
6026474 | Carter et al. | Feb 2000 | A |
6029168 | Frey | Feb 2000 | A |
6032151 | Arnold et al. | Feb 2000 | A |
6032216 | Schmuck et al. | Feb 2000 | A |
6047283 | Braun | Apr 2000 | A |
6067545 | Wolff | May 2000 | A |
6098079 | Howard | Aug 2000 | A |
6122378 | Yoshiura et al. | Sep 2000 | A |
6122631 | Berbec et al. | Sep 2000 | A |
6125372 | White | Sep 2000 | A |
6137885 | Totaro et al. | Oct 2000 | A |
6145094 | Shirriff et al. | Nov 2000 | A |
6160552 | Wilsher et al. | Dec 2000 | A |
6167449 | Arnold et al. | Dec 2000 | A |
6173293 | Thekkath et al. | Jan 2001 | B1 |
6185304 | Coppersmith et al. | Feb 2001 | B1 |
6185569 | East et al. | Feb 2001 | B1 |
6185574 | Howard et al. | Feb 2001 | B1 |
6208659 | Govindarajan et al. | Mar 2001 | B1 |
6233606 | Dujari | May 2001 | B1 |
6240416 | Immon et al. | May 2001 | B1 |
6259723 | Miyashita | Jul 2001 | B1 |
6260040 | Kauffman et al. | Jul 2001 | B1 |
6263348 | Kathrow et al. | Jul 2001 | B1 |
6269080 | Kumar | Jul 2001 | B1 |
6295538 | Cooper et al. | Sep 2001 | B1 |
6311165 | Coutts et al. | Oct 2001 | B1 |
6324544 | Alam et al. | Nov 2001 | B1 |
6338057 | Weeks | Jan 2002 | B1 |
6345288 | Reed et al. | Feb 2002 | B1 |
6370547 | Eftink | Apr 2002 | B1 |
6389433 | Bolosky et al. | May 2002 | B1 |
6405315 | Burns et al. | Jun 2002 | B1 |
6415280 | Farber et al. | Jul 2002 | B1 |
6415372 | Zakai et al. | Jul 2002 | B1 |
6463535 | Drews | Oct 2002 | B1 |
6466978 | Mukherjee et al. | Oct 2002 | B1 |
6477544 | Bolosky et al. | Nov 2002 | B1 |
6484186 | Rungta | Nov 2002 | B1 |
6484204 | Rabinovich | Nov 2002 | B1 |
6493804 | Soltis et al. | Dec 2002 | B1 |
6510426 | Cohen et al. | Jan 2003 | B1 |
6516350 | Lumelsky et al. | Feb 2003 | B1 |
6522423 | Cohen et al. | Feb 2003 | B2 |
6535894 | Schmidt et al. | Mar 2003 | B1 |
6556998 | Mukherjee et al. | Apr 2003 | B1 |
6560706 | Carbajal et al. | May 2003 | B1 |
6577734 | Etzel et al. | Jun 2003 | B1 |
6671821 | Castro et al. | Dec 2003 | B1 |
6704730 | Moulton et al. | Mar 2004 | B2 |
6711559 | Kogota et al. | Mar 2004 | B1 |
6718360 | Jones et al. | Apr 2004 | B1 |
6721880 | Pike | Apr 2004 | B1 |
6725373 | Carbajal et al. | Apr 2004 | B2 |
6738797 | Martin | May 2004 | B1 |
6742114 | Carter et al. | May 2004 | B1 |
6748538 | Chan et al. | Jun 2004 | B1 |
6751627 | Sternin | Jun 2004 | B2 |
6766367 | Stevenson et al. | Jul 2004 | B1 |
6775703 | Burns et al. | Aug 2004 | B1 |
6788769 | Waites | Sep 2004 | B1 |
6928426 | Dake | Aug 2005 | B2 |
6947556 | Matyas, Jr. et al. | Sep 2005 | B1 |
6952737 | Coates et al. | Oct 2005 | B1 |
6988124 | Douceur et al. | Jan 2006 | B2 |
6990578 | O'Brien et al. | Jan 2006 | B1 |
6993653 | Guski et al. | Jan 2006 | B1 |
6996714 | Halasz et al. | Feb 2006 | B1 |
7000141 | Karlsson et al. | Feb 2006 | B1 |
7010689 | Matyas, Jr. et al. | Mar 2006 | B1 |
7043637 | Bolosky et al. | May 2006 | B2 |
7051028 | Shi et al. | May 2006 | B2 |
7092380 | Chen et al. | Aug 2006 | B1 |
7146377 | Nowicki et al. | Dec 2006 | B2 |
7152165 | Maheshwari et al. | Dec 2006 | B1 |
7249382 | Kawell, Jr. et al. | Jul 2007 | B2 |
7272630 | Douceur et al. | Sep 2007 | B2 |
7296039 | Chandrasekaran et al. | Nov 2007 | B2 |
20010039548 | Shinkai et al. | Nov 2001 | A1 |
20020016174 | Gibson et al. | Feb 2002 | A1 |
20020038296 | Margolus et al. | Mar 2002 | A1 |
20020066022 | Calder et al. | May 2002 | A1 |
20020073082 | Duvillier et al. | Jun 2002 | A1 |
20020088011 | Lamkin et al. | Jul 2002 | A1 |
20020095590 | Douceur | Jul 2002 | A1 |
20020097878 | Ito et al. | Jul 2002 | A1 |
20020099784 | Tran | Jul 2002 | A1 |
20020103818 | Amberden | Aug 2002 | A1 |
20020111996 | Jones et al. | Aug 2002 | A1 |
20020120839 | Hein, III | Aug 2002 | A1 |
20030028519 | Burgess | Feb 2003 | A1 |
20030046533 | Olkin et al. | Mar 2003 | A1 |
20030070071 | Riedel et al. | Apr 2003 | A1 |
20030088515 | Cooper et al. | May 2003 | A1 |
20030135586 | Minborg et al. | Jul 2003 | A1 |
20040068652 | Carpentier et al. | Apr 2004 | A1 |
20040078596 | Kent, Jr. et al. | Apr 2004 | A1 |
20040111608 | Oom Temudo de Castro et al. | Jun 2004 | A1 |
20040143743 | Margolus et al. | Jul 2004 | A1 |
20040143744 | Margolus et al. | Jul 2004 | A1 |
20040162808 | Margolus et al. | Aug 2004 | A1 |
20040249902 | Tadayon et al. | Dec 2004 | A1 |
20050071315 | Douceur et al. | Mar 2005 | A1 |
20050071330 | Douceur et al. | Mar 2005 | A1 |
20050071339 | Douceur et al. | Mar 2005 | A1 |
20050071340 | Douceur et al. | Mar 2005 | A1 |
20050131903 | Margolus et al. | Jun 2005 | A1 |
20050131961 | Margolus et al. | Jun 2005 | A1 |
20050172124 | Carpentier et al. | Aug 2005 | A1 |
20050222994 | Douceur et al. | Oct 2005 | A1 |
20050246393 | Coates et al. | Nov 2005 | A1 |
20060129807 | Halasz et al. | Jun 2006 | A1 |
20060251246 | Matsui | Nov 2006 | A1 |
Number | Date | Country |
---|---|---|
0663640 | Jul 1995 | EP |
1052805 | Nov 2000 | EP |
Number | Date | Country | |
---|---|---|---|
20070076881 A1 | Apr 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09764962 | Jan 2001 | US |
Child | 11275186 | US |