The present invention relates to the field of data protection, and more particularly to the field of encrypting large data files so that they may be readily accessed by a plurality of different users.
Large data files often need to be protected against unauthorized access. As a result, various cryptographic techniques have been proposed and exploited. Many rely on secret binary keys. For example, a public-private cryptographic system has a private key known only to an individual or to a select group of people, and a public key which may be widely distributed. Data encoded according to the public key can be decoded only by those who know the private binary key. Other cryptographic systems are symmetric, and have a single key which is used both for encryption and decryption. In either case, however, managing the secret keys is problematic, especially in a situation where the keys are changed frequently.
Moreover, because the keys are uniquely associated with individuals or with small groups, the encryption and distribution of large files of data is a cumbersome process when the data needs to be accessed by a large number of independent users each having a different key. For example, consider the shooting and editing of a digital motion picture or film. A director in Hollywood may distribute each day's take to assistants at various locations. Because the resulting files have great value to would-be pirates, they need to be encrypted. Because each user has a different key, however, each file must be encrypted many times using the many different keys, and transmitted many times to the many different users, thus requiring massive processing power and communication bandwidth, and consuming a significant period of time. Further, distributing new keys to the multitude of users requires significant effort, and imposes a significant burden on the users themselves, who need to receive and install each update.
Thus there is a need for a method of encrypting large files of data to be accessed by a number of users, so that processing, bandwidth, delay, and key-management requirements are minimized.
The present invention provides a way of encrypting large data files that are to be accessed by a large number of users, and at the same time minimizes the delay involved and the need for mammoth processing and communication resources. Further, the invention is amenable to simple key-management techniques.
According to the invention, a data file is encrypted at a server using a master key according to a symmetric single-key encryption algorithm. Each user who is authorized to access the data has a secret passphrase known to the server and to the user. The passphrase may be of any length. For each user, a key encryption key (KEK) is generated, based on the user's passphrase. The master key is then encrypted a multiplicity of times, using the various key encryption keys. The server posts the encrypted data file and an ancillary file that includes, for each user, a user identifier and the master key encrypted according to the user's passphrase-based key encryption key. In some embodiments of the invention, the ancillary file may be combined with or imbedded within the encrypted data file, so that one file which contains both the ancillary file and the encrypted data file may be posted or distributed.
A user accessing the data enters his or her passphrase into a client. The client then locally derives the user's key encryption key from the user's passphrase, and, by examining the identifiers in the ancillary file posted by the server, finds the master key encrypted with the user's key encryption key. The client then decrypts the master key using the locally derived key encryption key, and decrypts the data file using the master key.
According to the invention, the passphrase is hashed using a collision-resistant hash function, to provide a hashed passphrase. The hashed passphrase is then altered using a predetermined text, for example by concatenating the predetermined text and the hashed passphrase, to provide an altered passphrase. The altered passphrase is then hashed, and the result is truncated, to provide the key encryption key.
The invention also includes verification keys that provide quick assurance that the server has used the intended passphrase to encrypt the data. For each user, the server derives a verification key from the user's passphrase, and posts the verification key in the ancillary file. The verification key may be derived by hashing the passphrase using the collision-resistant hash function, to provide a hashed passphrase, which is then altered using a predetermined text, for example by concatenating the predetermined text and the hashed passphrase, to provide an altered passphrase. The altered passphrase is then hashed, and the result truncated, to provide the verification key. The client may read the verification key from the ancillary file, re-derive the verification key locally, and compare the two. If the two verification keys match, the user may presume with confidence that the server has used the intended passphrase.
Thus according to the invention, a large data file need be encrypted only once, and posted along with its ancillary file for access by the various users. Further, aspects of the invention concerning the generation of the passphrase-based key encryption keys and verification keys allow these keys to be changed easily and frequently, if so desired. These and other aspects of the invention will be more fully appreciated when considered in light of the following drawings and detailed description.
The present invention provides a way of protecting large data files that are to be accessed by a large number of users, and at the same time minimizes the delay involved and the need for mammoth processing and communication resources. Further, the invention is amenable to simple key-management techniques.
As shown in
The encryption may be performed by a server, or performed by special-purpose equipment, or performed in any other suitable way, the purpose being to encrypt the data and make the encrypted result accessible to a plurality of users. Nevertheless, as a descriptive convenience the invention will be described here with reference to an embodiment wherein a server encrypts the data, and makes the encrypted data available over the Internet to clients operated by the users. This particular arrangement is not, however, a necessary condition of the invention.
Each user has a conventional user identifier, which may be public, and also a passphrase, which is known only to the user and the server. A passphrase may be of any length. Users may recall the passphrases from their human memories, and enter them into the clients as the need arises; alternatively, clients may store the passphrases. Thus the invention does not require the frequent distribution of secret 128-bit binary keys, and therefore provides an improvement in the area of key-management convenience from the point of view of the users. On the other hand, the server maintains a table of passphrases. Because the passphrases are sensitive information, care should be taken to protect this table. For example, the table of passphrases held by the server may itself be encrypted so that it cannot be read by a hacker, although this is not a necessary condition of the invention.
For each user, a key encryption key is derived from the user's passphrase (step 110). Further details of the derivation are given below with reference to
The structure shown in
The flowchart of
Otherwise (i.e., the read verification key and the locally derived verification key are the same), the client reads, from the ancillary file 200, the version of the master key that is encrypted with the user's key encryption key (step 530). The client derives the user's key encryption key locally from the passphrase (step 535), decrypts the master key using the locally derived key encryption key (step 540), and decrypts the data using the master key (step 545).
From the foregoing description, those skilled in the art will now appreciate that the present invention provides a way of protecting large data files that are to be accessed by a large number of users, at the same time minimizes the delay involved and the need for mammoth processing and communication resources, and enables the use of simple key-management processes. The foregoing description is illustrative rather than limiting, however, and the invention is limited only by the claims that follow.
Number | Name | Date | Kind |
---|---|---|---|
5495533 | Linehan et al. | Feb 1996 | A |
6016491 | Kou | Jan 2000 | A |
6018583 | Hawthorne | Jan 2000 | A |
6044405 | Driscoll, III et al. | Mar 2000 | A |
6157722 | Lerner et al. | Dec 2000 | A |
6185685 | Morgan et al. | Feb 2001 | B1 |
6199162 | Luyster | Mar 2001 | B1 |
6215878 | Harkins | Apr 2001 | B1 |
6249866 | Brundrett et al. | Jun 2001 | B1 |
6339828 | Grawrock et al. | Jan 2002 | B1 |
6694025 | Epstein et al. | Feb 2004 | B1 |
6819766 | Weidong | Nov 2004 | B1 |
6834112 | Brickell | Dec 2004 | B1 |
6959086 | Ober et al. | Oct 2005 | B2 |
7065214 | Ishiguro et al. | Jun 2006 | B2 |
20020071564 | Kurn et al. | Jun 2002 | A1 |
20020099666 | Dryer et al. | Jul 2002 | A1 |
20030074566 | Hypponen | Apr 2003 | A1 |
20030204732 | Audebert et al. | Oct 2003 | A1 |
Number | Date | Country |
---|---|---|
WO0013162 | Mar 2000 | WO |
WO0198873 | Dec 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20040146164 A1 | Jul 2004 | US |