Computer system for protecting a file and a method for protecting a file

Abstract: According to the invention there is provided a computer system comprising a protection mechanism for protecting the contents of a file, the protection mechanism comprising at least one Viewer program, at least one challenge means associated with said Viewer program and said file, and at least one response means with private keying material that it can access, wherein: a) the challenge means has no access to the private keying material, b) the response means comprises means for proving that it has access to the private keying material by interacting with the challenge means using an asymmetric cryptographic scheme, c) the challenge means comprises means for instructing the Viewer program to avoid using some or all said file's content unless said proof is successful.

Description: Background to the Invention This invention relates to mechanisms for protecting electronic documents (files) against unauthorized use, in particular against unauthorized copying or printing. An electronic document is an electronic information container. The information stored in the container may include, but is not limited to, characters, graphic images, moving pictures, sound, and animation. It is quite difficult to protect against unauthorized leaks of information. Photocopy machines, facsimiles, and other technologies permit information that has been fixed on a paper medium to be easily copied and distributed. In the case of electronically stored information, computers can instantly construct a virtually unlimited number of identical copies of electronically stored information. One object of the invention is to designate one or more people as authorized distributors. A further object of the invention is to designate one or more people as authorized customers with the following constraints: i) The authorized distributor may designate itself or others as authorized customers. ii) The authorized distributors may distribute an electronic document to one or more authorized customers. iii) For each electronic document distributed to each authorized customer, the authorized distributor may assign one or more document handling rules. Example document handling rules are permitting read-only access, or permitting read and print access. iv) Authorized customers may not distribute documents unless the are also authorized distributors. It is possible that zero or more authorized customers are also authorized distributors. Consider the situation described in Figure 1. In Figure 1, an authorized distributor 101 sends information 106 (electronic documents) to each of several authorized customers 102, 103, 104. The distributor 101 sends the information 106 in encrypted form to ensure that no unauthorized intruder can view the information while the information is in-transit. Many of the customers, e.g., an authorized first customer 102 and an authorized second customer 103 use the documents 106 as intended. That is the customers who use the document correctly do not forward the documents to others. However, some customers, e.g., an authorized third customer 104, may attempt to perform actions beyond his or her authorization. That is, the third customer 104 may attempt to forward the documents 106 to one or more unauthorized customers 105. Our invention prohibits the third customer 104 from forwarding the documents 106 to any unauthorized customer 105 unless the authorized third customer 104 is also an authorized distributor. Some example requirements that a security mechanism may potentially satisfy are listed below: The authorized customers should not be prohibited from making backups. Only standard hardware and software assumptions should be made. For example, although hardware dongles provide copy protection services, many vendors do not wish to limit the sale of the software to the collection of customers who own or are willing to install a dongle. When a customer legitimately obtains a document, the customer should be able to use the document on any machine regardless of ownership. The customer should optionally be able to authorize simultaneous using of the document in multiple machines. The distributor should be permitted to distribute an identical version of the document software to all authorized customers. This requirement permits the documents to be distributed through normal channels such as, for example, CD-ROMs, floppy disks, or network bulletin boards. It should be excessively difficult and/or computationally infeasible for a potential pirate to circumvent the security mechanism. The security mechanism should not disclose the customer's private keying material to the distributor, any program distributed produced by the distributor, or any potential Trojan horse program. Though the primary functionality is to protect the document vendor and distributor, one must not do so at the expense of the customer. Our invention complies with the example requirements by providing a special copy protected program called the Viewer program that displays the contents of the protected document (file). The term "display" is used liberally in order to include showing, audio-broadcasting, or printing. The invention's security mechanism ensures that one cannot view the protected file without using the Viewer program. Furthermore, the Viewer program prohibits viewing by anyone other than an authorized user. The invention can be used for any file which is used via a program, independent from the content of the file. The protection of such files is important in very different scenarios, some of them are explained below: Micro publishers: A micro publisher is a home hobbyist or small business who is willing to experiment with Internet publishing. An example micro publisher is a photographer who takes pictures at a sporting event and then sells the pictures to a newspaper. Legacy electronic publishers: The Legacy electronic publishers publish electronic documents. An example Legacy electronic publisher is a major encyclopedia company. Copyright enforcers and direct marketers: Some organisations are more interested in preventing copyright infringement rather than generating revenue. Advertisers: Advertisers are willing to pay advertising fees when they are sure that the advertisement is in fact in embedded in the file and cannot be changed without authorization. Document Labelers: A document labeler inserts a label on a document, e.g., company confidential. The document labeler also inserts a document handling rule. For example, no non-company employee is an authorized customer of any company confidential document. In [1], there is described an application layer cryptographic encapsulation mechanism. The basic mechanism is as illustrated in Figure 2. The mechanism initiates when a vendor 201 generates a file (e.g. a document with the content of a newspaper, magazine, music, etc.) and encrypts the file using a symmetric key K. The vendor encrypts the symmetric key using the vendor's public key 204. The vendor sends 202 both the encrypted document 203 and the encrypted symmetric key 204 to a customer 209. Subsequently, the customer 209 and the vendor 201 coordinate payment information. During this coordination, the customer sends 206 a purchase request which includes the encrypted symmetric key 205 (copied from the encrypted symmetric key 204) and a certificate containing the customer's public key 207. Next, the vendor 201 decrypts the symmetric key using the vendor's private key and then re-encrypts the symmetric key using the customer's public key 207 (obtained from the customer's certificate). The vendor 201 sends 210 the re-encrypted symmetric key 208 back to the customer 209. Using the customer's private key, the customer 209 decrypts the original file. All of the customer's functionality described above is performed by a special Viewer program. In the above mentioned mechanism, the customer 209 must perform an asymmetric decryption operation to obtain a symmetric file encryption key K. The intent is that the customer must have his or her asymmetric private key in order to perform the asymmetric decryption operation. However, the above mentioned mechanism is vulnerable to attack, e.g. by the following attack scenario as illustrated in Figure 3: 1. After completing the correctly authorized scenario of Figure 2, an authorized customer 209 obtains an encrypted file 203. The file is encrypted using the symmetric key K. 2. The encrypted symmetric key 208 is provided to the customer 209. 3. The customer's decryption mechanism, e.g., smart card, performs the decryption operation. The customer saves the plaintext symmetric key K. 4. If the customer 209 wishes to perform an unauthorized copy of the file, the customer 209 passes 314 the encrypted file 313 (copied from the encrypted file 203), the encrypted symmetric key 311 (copied from the encrypted symmetric key 208) the plaintext symmetric key K 312 to an unauthorized customer 315. 5. The unauthorized customer's Viewer program which uses the file, provides the encrypted symmetric key 311 to the unauthorized customer 315 (the Viewer program does not know that the customer 315 is not authorized). 6. The unauthorized customer's decryption mechanism fakes the decryption operation because the unauthorized customer 315 does not have the customer's private key. Instead, the unauthorized customer's decryption mechanism returns the plaintext symmetric key 312 obtained in step 4. Since this is the correct symmetric key, the Viewer believes that the unauthorized customer knows how to perform the required decryption operation. As a result, the Viewer permits the unauthorized customer 315 to view or use the file. As can be seen from this attack, the known mechanism does not prove that the customer 315 has the correct asymmetric private key. As a result, this mechanism does not protect against unauthorized document redistribution. International Patent Application WO 88 05941 teaches a software regulation system for regulating the use of a software program in a host digital data processing system. The software regulation system includes one or more checkpoint routines processed by the software program and a software regulation device, which may be part of the computer system or connected externally thereto. The checkpoint routines generate random checkpoint messages, which are enciphered and transmitted to the software regulation device. The software regulation device deciphers the checkpoint message, performs a processing operation to generate a response message, enciphers the response and sends the enciphered response to the checkpoint routine. The checkpoint routine then determines whether the enciphered response is correct and either allows the software program to proceed or terminates it. An overview on asymmetric cryptography, for example on the RSA scheme, and probabilistic encryption, for example the Blum-Goldwasser probabilistic public-key encryption scheme can be found in [2]. An overview over different probabilistic proof schemes, for example zero knowledge proof schemes (e.g. Feige-Fiat-Shamir scheme, Guillou-Quisquater scheme, Blum-Feldmann-Micali scheme, Brassard scheme, Crepau scheme, etc.) or witness hiding proof schemes (e.g. Feige-Shamir scheme, etc.) can be found in [2]. An overview of digital signature schemes (e.g. Rivest-Shamir-Adleman, etc.,) and a formal mathematical definition of digital signatures can be found in [2]. An example of a message digest function (otherwise known as a one-way hash function) is MD5 [3]. It is computationally infeasible or very difficult to compute the inverse of a message digest. In [4], cryptographic randomness from air turbulence in disk drives is described. The Chi-Square Test, the Kolmogorov-Smirnov Test, and the Serial Correlation Test are described in [5]. The object of the present invention is to provide an improved mechanism to protect a file that is able to satisfy most, if not all of the example requirements described above. An asymmetric cryptographic mechanism includes public keying material and corresponding private keying material. It is computationally infeasible to compute the private keying material when given no more information other than the corresponding public keying material. In this invention, we use asymmetric cryptography in interactions between two parties, A and B. A proves to B that A has access to private keying material and B validates the proof. A does not disclose the private keying material to B. Some important asymmetric cryptographic algorithms that may be used in the invention are listed below. Asymmetric confidentiality scheme An asymmetric confidentiality protocol involves two parties, A and B. A possesses private keying material and B has no access to A's private keying material without disclosing the private keying material itself. At the beginning, A and B have no shared secret. During the method, a shared secret becomes known to A and B. An example of an asymmetric confidentiality proof is public key encryption. As illustrated in the asymmetric confidentiality protocol below. A proves to B that A has access to the private keying material. A ← B: h(r), B, P A (r, B) A → B: r The protocol scheme described above uses the following notation: A → B denotes that A sends a message to B; and A ← B denotes that B sends a message to A. r denotes a random number used as a nonce h(r) is a message digest of the nonce P A (r,B) is encryption of the nonce and B's identity using A's public keying material Here, B generates a nonce and encrypts the nonce (together with B's identity) using A's public keying material, i.e., P A (r,B). Additionally B computes the message digest of the nonce, h(r). B sends the information described above, along with a value representing B's identity, to A. Next, A uses its private keying material to decrypt P A (r,B) obtaining r,B. A computes the message digest of the decrypted random value, r, and compares the result against h(r)obtained from B. At this point, the random number is a shared secret known by both A and B. In order to complete the protocol, A returns the random number to B in order to demonstrate that A knows the secret. Of course, once A provides the disclosure, the secrecy of the random number is lost. B validates A's proof by checking for equality A's returned secret against the one that B originally generated. A second example of an asymmetric confidentiality protocol is a probabilistic encryption scheme, e.g. the Blum-Goldwasser probabilistic public key encryption scheme. Here, the encryption or decryption mechanism uses random numbers or other probabilistic means. Digital signature scheme A digital signature is an electronic analog of a handwritten signature. A digital signature proof involves at least two parties, A and B. After posting his or her public keying material to a public location, A encrypts a message using the private keying material. Since anyone may access the public keying material, there is no message secrecy. However, since A is the only customer with access to the private keying material, no one else can "forge A's signature" by performing the encryption. Anyone may validate A's signature using the public keying material. Probabilistic Proof Scheme A probabilistic proof involves at least two-parties, A and B. A possesses private keying material and B has no access to A's private keying material without disclosing the private keying material itself. A's proof is probabilistic rather than absolute because B forces A to demonstrate that A probably has access to the private keying material by supplying evidence. There are two variants of probabilistic proofs: a) zero-knowledge-proofs, where it is provable, that B or any observer of the proof learns nothing from the proof, except the fact that A possesses the private keying material. b) witness-challenge-response-proofs, which comprise the following 4 elements in a sequence: 1. A sends information which is not constant for all invocations of the proof, to B. This information is called the witness. For many protocols, the witness is generated randomly, and should never be repeated. 2. B sends information to A, called the challenge. For many protocols, the challenge is generated randomly. 3. A sends a response to B. 4. B verifies, whether A indeed knows the private keying material by executing computations involving the witness, the challenge, and the response. In fact, many zero-knowledge-proofs are witness-challenge-response-proofs. Zero knowledge proof schemes are e.g. the Feige-Fiat-Shamir [2] scheme or the Guillou-Quisquater scheme [2], but also the Mono-directional zero knowledge proof schemes, e.g. the Blum-Feldmann-Micali scheme, or Statistical zero knowledge proof schemes, e.g. the Brassard scheme or the Crepau scheme, etc. Witness hiding proof schemes are e.g. the Feige-Shamir scheme, etc. One should not confuse probabilistic public-key encryption (for the purpose of providing confidentiality) with probabilistic proofs. In the first case, probabilistic means are used to execute the encryption algorithm. In the second case, probabilistic means are used to define a degree of assurance for a service such as identification. In the following, one possible general structure of a zero-knowledge protocol is described (cp. [2]). For illustrative purposes, this general structure is also of the witness-challenge-response-proof format. The protocol involves two parties, A and B. 1. The prover claiming to be A selects a random element from a pre-defined set as its secret commitment (providing hidden randomization), and from this computes an associated (public) witness. This provides initial randomness for variation from other protocol runs, and defines a set of questions all of which the prover claims to be able to answer, thereby a priori constraining his or her forthcoming response. Only the legitimate party A, with knowledge of A's secret, is truly capable of answering all the questions, and the answer to any one of these provides no information about A's long-term secret. 2. B's subsequent challenge selects one of these questions. 3. A provides its response. 4. B checks the response for correctness. The protocol may be iterated to improve the bound limiting the probability of successful cheating. A digital watermark scheme discourages unauthorized document distribution by embedding in a document a unique identification symbol. A chosen-plaintext attack is one where the adversary chooses plaintext and is then given corresponding ciphertext. Subsequently, the adversary uses any information deduced in order to recover plaintext corresponding to previously unseen ciphertext [2]. An adaptive chosen-plaintext attack is a chosen-plaintext attack wherein the choice of plaintext may depend on the ciphertext received from previous results [2]. A zero knowledge proof protocol resists both chosen-plaintext attacks and adaptive chosen-plaintext attacks. In all asymmetric cryptographic schemes, each customer may post his or her public keying material to a publicly accessed directory without compromising the corresponding private keying material. The customer usually should guard his or her private keying material as a close secret; otherwise, the cryptographic system may not guarantee correctness (secrecy). The best known mechanism for protecting one's private keying material is through the use of a smart card. In this case, the smart card is a device with no interface for releasing private keying material (in a non-cryptographically protected form). Although smart cards provide the best protection, social factors of electronic commerce may provide a role in ensuring private keying material protection. One of the significant difficulties associated with asymmetric encryption services is authentication. For example, if A posts his or her public keying material to a public directory, then how does B assess validity? That is, a pirate may attempt to masquerade as A but post the pirate's keying material. Some commercial organizations provide solutions to this problem by acting as Certification Authorities (CA). For (possibly) a fee, the CA solicits identifying material from potential customers such as a driver's license or passport. After validating the identifying material, the CA posts the customer's public keying material to a public directory, and the CA signs a certificate (using a digital signature with the CA's private key) that holds the customer's public keying material. Standardized services, for example X.500, may be adopted to help facilitate the use of directories that contain public keying material. Once a customer posts his or her public keying material to the CA, the customer will probably make an extensive effort to protect his or her private keying material. For some asymmetric keys, if the customer's private keying material were to become unknowingly compromised, then the customer would have cause for significant concern. For example, in the case of RSA keys that can also be used for digital signatures, networked vendors could potentially authorize electronic commerce transactions. The object of the present invention is to provide an improved mechanism that is able to satisfy most, if not all of the example requirements described above. Summary of the Invention The invention is defined by the features of the accompanying independent claims 1, 25 and 26. Further aspects of the invention are defined by the features of the dependent claims 2 to 24 and 27 to 49. An important technical differentiation between the invention and the mechanism described in [1] is a difference in the respective mechanisms for authenticating a customer. The invention uses cryptographic proofs to distinguish between customers, while the mechanism described in [1] uses decryption technology to distinguish between customers. As described above, the protocol in [1] does not prove that the customer has the correct asymmetric private key as illustrated in the above described attack scenario. The invention does not suffer from this vulnerability. As a result, the invention protects against unauthorized file redistribution, while the protocol in [1] does not. We define a Viewer as a computer program that accepts a file as input and then displays the contents of the file to a user in a meaningful way. For example, if the file contains a graphic image, then the Viewer could display the graphic image on a computer monitor. We use the terms 'Viewer' and 'display' liberally. If the file contains audio information, then the Viewer sends the information to the computer system's speakers in a manner that permits the user to hear the recorded information. If the file contains a moving picture or animation, then the Viewer may display a movie or animation on a computer monitor. Some Viewers may potentially display the contents of the file by making some or all of the contents available to a printer. In some cases, one may wish to construct a Viewer so that the Viewer only passes low-quality information to the printer. In the remainder of this document, when we say that the Viewer displays a file, we mean that the Viewer presents the information in the file in a meaningful way, e.g., audio, graphics, movies. The invention references two file formats, Unprotected Format (UF) and Protected Format (PF). We use the term Unprotected Format UF as a placeholder of some document format. Often, one defines an Unprotected Format UF without reference to security. An example of an Unprotected Format UF format is the Rich Text Format (RTF). Many word processors available today can store the contents of a document in the RTF format or other some proprietary Unprotected Format. Another example of an Unprotected Format UF is a digital format for storing recorded audio. Another example of an Unprotected Format UF is a digital format for storing animation or a movie. Normally, the designers of an Unprotected Format UF do not attempt to prohibit others from building a Viewer that displays or generates a UF formatted file. The Protected Format PF has the property that the Protected Format PF only gives meaningful information to specially constructed Viewer programs. For example, if the Protected Format PF file contains music, then a user could not listen to the music unless the Protected Format PF file were given to a special Viewer program. It is exceedingly difficult to build a Viewer program without proper documentation that describes the Protected Format PF. This documentation should be a closely guarded secret. For example, a single vendor may define the Protected Format PF and then construct the associated Viewer program. The vendor never explains to other parties any information concerning the Protected Format PF. Consider for example a file that contains information stored in the RTF format. Further consider a second file that was constructed by encrypting the RTF file. The decryption key of the second file is a closely-guarded secret, and the decryption key is embedded in a special Viewer program. In this example, the RTF formatted document is in an Unprotected Format UF and the encrypted document is in a Protected Format PF. An unauthorized attacker could not construct a rogue Viewer program that understands the Protected Format PF file unless the attacker were able to discover the Protected Format PF file's decryption key. Later in this paper we discuss some other ways in which one may construct a Protected Format PF from an Unprotected Format UF file. Brief Description of the Drawings Figure 1 is a block diagram showing a distribution scenario. Figure 2 is a block diagram showing a detailed distribution scenario. Figure 3 is a block diagram showing an attack scenario. Figure 4 is a block diagram showing a document generation. Figure 5 is a diagram of a purchasing protocol. Figure 6 is a block diagram showing a certificate authority. Figure 7 is a block diagram showing a scenario with a participating customer. Figure 8 is a block diagram showing the software components that are required to be installed in the customer's machine to enable the customer to use the protected file. Figure 9 is a block diagram illustrating example attacks. Figure 10 is a flowchart showing the operation of a random number generator used to generate nonces. Figure 11 is a block diagram showing the architecture of the software rental system. Figure 12 is a block diagram showing a rental software purchase scenario. Figure 13 is a block diagram showing the smart card architecture. Figure 14 is a block diagram showing an example audit trail. Description of an Embodiment of the Invention One protection mechanism in accordance with the invention will now be described by way of example with reference to the accompanying drawings. Figure 4 shows the components used by the vendor's computer system 201 to create a protected document. The vendor first uses a Document Generating Tool (DGT) 401, e.g., a word processor, to generate a UF document 402. The Document Translator (DT) 403 accepts the UF 402 document and translates the contents of the document into a PF format 404 (PF document). The vendor should hold the UF document as a closely guarded secret. The Document Translator 403 operates in a proprietary and secret manner. One possible way to build the Document Translator 403 is as follows. 1. Append a trailer at the end of the UF document 402. The trailer is a well-known string of characters (unique to this UF document 402) such as a copyright notice and serial number which we denote by the symbol: str. 2. Compute a message digest, muf over the UF document 402 (including the trailer), muf = h(UF + str (h denotes the message digest function, e.g., MD5 [3]). 3. Sign muf using the vendor's private keying material. We denote this signature by smuf. 4. Build a temporary file that consists of a header which includes smuf. The remainder of the temporary file is the UF document 402 (including the trailer). 5. Generate a random number, K, to be used as an encryption key. 6. The PF document 404, is computed by encrypting the temporary file using K. A symmetric encryption algorithm such as the known D ata E ncryption S tandard (DES) in C ipher B lock C haining Mode (CBC mode) or Triple-DES in CBC mode can be used. Figure 5 shows a purchasing protocol used when a customer wishes to purchase a PF file 404 that is protected by a protection mechanism in accordance with the invention. The vendor 201 posts the PF document 404 in a network bulletin board 501 in the Internet 502 (Step 504). A customer 503 downloads the PF file 504 from the network bulletin board 501 (Step 505). In a further step 506 the customer 503 and the vendor 201 negotiate for a customer's authorization to display the PF file 404, i.e. to watch or read the content of the PF file 404 or listen to the content of the PF file 404. Step 506 is described in detail later. Figure 6 shows a detailed scenario including a Certificate Authority 603. The purpose of the Certificate Authority 603 is to securely associate the vendor 201 with the PF files 404 that the vendor 201 generates. The order of the steps are: 1. step 606 (performed once for the document) 2. step 607 (performed once for the document) 3. step 504 (performed once for the document) 4. step 505 (performed for each customer) step 506 (performed for each customer) which comprises a. b. step 702 (described below) c. step 704 (described below) The vendor 201 sends a certificate that contains vendor's public keying material 601, a message digest 602 of the PF file 404, and a signature 608 of the message digest to the Certificate Authority 603 (step 606). The message digest 602 is computed by executing a one-way hash function such as MD5 [3] over a PF file 404 that the vendor wishes to distribute. The signature 608 of the message digest is computed by the vendor by performing a digital signature operation over the message digest 602. This digital signature operation is computed using the vendor's private keying material. The vendor carefully ensures that others have no access to his private keying material. The vendor's public key certificate 601 contains the vendor's public key. The vendor's public key certificate 601 is signed by the CA. 1. The Certificate Authority (CA) 603 validates the vendor's digital signature 608. The Certificate Authority 603 uses the vendor's public keying material extracted from the certificate 601 to perform this validation step. Additionally, the Certificate Authority 603 checks its internal database to ensure that Certificate Authority 603 has never before been presented with the same message digest. If the validation and/or check fails, then the Certificate Authority 603 stops processing the vendor's request. 2. Otherwise, the Certificate Authority 603 validates the vendor's public key certificate 601. The Certificate Authority 603 performs this validation by ensuring that the certificate is signed by the Certificate Authority 603. The Certificate Authority 603 uses the CA's public keying material to perform this validation. If the validation fails, then the Certificate Authority 603 stops processing the vendor's request. 3. The Certificate Authority 603 checks its internal database to determine whether or not the Certificate Authority 603 permits the vendor 201 to publish documents. The Certificate Authority 603 does not permit unauthorized vendors to publish documents. If the vendor is not authorized, the Certificate Authority 603 stops processing the vendor's request. 4. Otherwise, the Certificate Authority 603 concatenates the certificate 601, the message digest 602, and possibly other information into a single string S. The Certificate Authority 603 computes a digital signature over the string S, using the CA's private keying material. The Certificate Authority 603 is careful to ensure that the CA's private keying material is a closely guarded secret. 5. The Certificate Authority 603 sends a message back to the vendor (step 607). In this message the CA returns the digital signature 604 computed over string S. 6. The vendor validates the CA's digital signature 604 using the CA's public keying material 605. The vendor 201 checks the vendor's internal database to ensure that the vendor 201 is using the correct Certificate Authority 603. If the vendor does not wish to continue to use the Certificate Authority 603, then the vendor stops. 1. The customer 209 sends a certificate 701 that contains the customer's 209 public keying material to the vendor 201 in step 702 (see Figure 7). This certificate 701 is signed by a second certificate authority CA'. The second certificate authority CA' does not need to be the same as the certificate authority 603 although we do not prohibit that the second certificate authority CA' and certificate authority 603 may be the same. 2. The vendor 201 validates the signature of the customer's certificate and then extracts the customer's public keying material. If any aspect of this step fails, then the vendor 201 stops. 3. As step 702 concludes, using some authorization criteria, the vendor authorizes the customer. For example, the vendor 201 may refrain from authorizing a customer 209 until the vendor 201 receives a payment from the customer 209. If the vendor 201 does not authorize the customer 209, then the vendor 201 stops. 4. The vendor 201 creates a keyfile 705 for the customer 209. Included in the keyfile 705 is a representation of the customer's public keying material that the vendor 201 extracted from the customer's certificate, the document encryption key, K, and user access rights (described later). The creation of the keyfile 705 is performed by a keyfile generator, which is a program that executes at the vendor's facility. The vendor 201 must take care to guard this program. In use of the keyfile generator, an operator enters the following information: Vendor name: Vendor name is the name of the vendor's company. Vendor password: Vendor password is the password that unlocks the vendor company's private keying material. Company employees who do not know the password cannot generate keyfiles. Customer name: The customer name is the distinguished name of a customer (defined in [2]) for whom to generate a keyfile. The name indexes into a database of public keying material. Keyfile name: The keyfile name is the name of a new keyfile. After obtaining this information, the keyfile generator builds a keyfile 705, containing the Customer Information String (CIS) described later. Portions of the keyfile 705 appear to the customer 703 as a completely random sequence of values. Building of the keyfile 705 involves the following operations. First, the keyfile generator creates a file and inserts the customer's public keying material into the file, along with thousands of decoy bits. In the present example, each keyfile 705 contains approximately 480,000 decoy bits. This number of bits represents a significant amount of decoy material, yet can fit into a standard e-mail message. Each keyfile 705 stores the CIS in a different location. Additionally, each keyfile 705 has encrypted customer information embedded in it without disclosing the required encryption key. This encrypted customer information permits a vendor to easily identify the owner of a keyfile 705 in the event that the keyfile 705 appears in a public location such as a bulletin board. The keyfile generator then encrypts and re-encrypts the keyfile (or portions of the keyfile) 705 multiple times, using different algorithms. Finally, the keyfile generator signs the keyfile 705 using the vendor's private keying material by applying a digital signature algorithm. A keyfile is said to be validated if the challenge means of the Viewer application (described below) can validate the vendor's signature using the public keying material stored in the challenge means' binary and access the decrypted CIS stored in the keyfile. Additionally, the challenge means must discover key K decrypt the PF file 404, validate the hash and signature of the decrypted file's header using the vendor's public keying material extracted from the keyfile 705, and validate that the trailer of the decrypted document is the well-known string str. After having created the keyfile 705, the vendor's computer 305 sends the keyfile 705 to the customer 209 by electronic mail. The CIS is a string that contains the customer's public keying material, document encryption key K, and the ustomer's access rights. The access rights provide information to the Viewer program that selectively enables functionality. For example, an access right may potentially authorize the Viewer to display a graphic picture on a monitor. A different access right could potentially permit the Viewer to play an audio file through the customer's speakers. In some cases, one could build a Viewer program with complex access rights. For example, a Viewer could potentially recognize an access right that permits a customer to view the first 10 minutes of a movie. Presumably, highly trusted customers, or customers who pay more money obtain better access rights in their keyfiles 705. Additionally, the CIS contains any other information required by the proof scheme. The intent is that the keyfile 705 has a dual use - authorization for the Viewer to display the PF file 404 and copy protection, licensing, or rental of the Viewer program. Customer software Once the customer 305 installs the keyfile 705, the protection mechanism permits the customer 305 to execute a Viewer program that uses the PF 404 file. The Viewer program is copy protected, licensed, and/or rented in accordance to the scenarios described below. The Viewer only executes if permitted by the copy protection, licensing, or rental mechanism. If the Viewer program fails to validate the keyfile in any way, or if the Viewer program cannot correctly extract the CIS, then the Viewer fails to execute. Figure 8 shows the software components that are required to be installed in the customer's machine, a computer, to enable the customer 209 to display the PF file 404. These consist of a protection server 804 and a Viewer 803, where the Viewer contains an embedded challenge means 802. Also shown are the keyfile 705, the private keying material of the customer 801, and the PF file 404. The protection server 804 is a program that the customer 209 executes when the system initially boots. The customer 209 enables the system by inserting a floppy disk that contains an encrypted copy of the customer's private keying material 801. The protection server 804 then prompts the customer 209 for a pass phrase used to decrypt the floppy. The protection software does not continue executing if the customer 209 cannot supply the correct pass phrase. The protection server 804 then executes in the background waiting for requests for executing an asymmetric proof protocol, e.g., asymmetric confidentiality, probabilistic proof, or digital signature. The purpose of the asymmetric proof protocol is to prove that the protection server has access to the customer's private keying material 801. It should be noted that the protection server 804 never releases the customer's private keying material 801 out of its process boundary. The protection server 804 relies on operating system protections to ensure its own integrity. The protection server 804 executes in its own address space and communicates with external processes. When the Viewer's challenge mechanism executes the copy protection, software licensing, and/or software rental mechanism as described below, the challenge mechanism determines if the Viewer may continue to execute. If the copy protection, software licensing, and/or software rental protocol fails, then the Viewer stops executing or executes in a limited mode. Otherwise, the Viewer continues by performing the services described below. 1. Obtain the vendor's public keying material.If this step fails, then stop. 2. Use the vendor's public keying material to revalidate the digital signature of the keyfile. If this step fails, then stop. 3. Extract the CIS from the keyfile. If this step fails, then stop. 4. Extract the CA's public keying material that is hardcoded in the challenge mechanism. If this step fails, then stop. 5. Extract the CA's signature 704 of the vendor's public key and the message digest of PF file 404. Validate this signature using the CA's public keying material that is hardcoded in the challenge mechanism. If this step fails, then stop. 6. Extract the access rights from the CIS. 7. Subsequently, do not permit any functionality that is not explicitly enabled in one or more of the access rights extracted from the CIS. Thus, it can be seen that the Viewer does not permit any display of the PF file that is not explicitly allowed in the author-created keyfile. Furthermore, as illustrated in Figure 9, the security mechanism prohibits a customer who is authorized to display a document from forwarding the document to unauthorized customers. Figure 9 illustrates example attacks: 901 denotes all possible attacks. 902 denotes an attack where the customer extracts the UF file and then modifies the UF file. The customer then claims to be the vendor of the modified file. This attack is prevented because the Viewer does not release to the customer, the document decryption key K (903). 904 denotes an attack where the customer does not modify the UF file; however, the customer modifies the header. This attack is prevented because the customer cannot create his or her own signature because the customer does not know the document decryption key. Additionally, the customer cannot modify the existing header due to the same reason (905). 906 denotes an attack where the customer does not change the UF or the header. However, the customer changes the PF. This attack is prevented because any change to the PF, without knowing the document decryption key causes the trailer validation to fail (CBC is a forward error correcting code) (907). 908 denotes an attack where the customer claims that he or she is the vendor of the original document. The CA prevents this attack by checking against multiple requests for the same PF message digest. Additionally, the Viewer will eventually reject the document because the header validation would fail. 909 denotes an attack where the customer simply forwards the keyfile and the PF file to others. In this case, the others do not possess the private keying material required to validate the keyfile. The description provided above explains how the Viewer program obtains and displays a PF file 404. The embodiments below explain how the Viewer program can be copy protected or rented. Embodiment using serial number In this embodiment, the response means accesses both private keying material and a publicly known serial number. The challenge and response means operate as described in the embodiment using digital signature with one exception. The response means, i.e. the protection server, has a unique serial number that is publicly known but appears in no other response means. The response means is programmed such that the response means ALWAYS computes its digital signature over the input string and the unique serial number. The challenge means' validation step ensures that the response means computes the digital signature over information which includes the correct serial number. The challenge means obtains the unique serial number from the keyfile. The vendor had previously inserted the unique serial number into keyfile after this unique serial number had been supplied by the customer. Thus, it can be seen that the PF file cannot be viewed unless the customer possesses the proper private keying material and keyfile. Nevertheless, all customers could potentially have identical copies of the same private keying material. Embodiment using asymmetric confidentiality The challenge and response means execute the asymmetric confidentiality protocol as illustrated below. A ← B: h(r), B, P A (r, B) A → B: r The Figure uses the following notation: Challenge means (challenge mechanism) denoted by B (also denotes B's identity), e.g., "copy protected PF file x") Response means (protection server) denoted by A (also denotes A's identity), e.g., "protection server version 1". r denotes a random number used as a nonce h(r) is a message digest of the nonce P A (r,B) is encryption of the nonce and B's identity using A's public keying material The challenge means of the protected format document generates an unguessable nonce (random number). Next, the challenge means computes h(r) (the message digest of r). The challenge mechanism then calls an encryption function in the challenge mechanism to encrypt the nonce and challenge means' identity with the customer's public keying material. The challenge mechanism passes the message digest of the nonce h(r), challenge means' identity (B's identity), and the result of the encryption E(r) to the protection server with a request for participating in an asymmetric confidentiality proof. When the protection server receives the request, it first decrypts the encrypted portion of the message using the customer's private keying material. Next, the protection server validates h(r) against the decrypted value. Next, the protection server validates that the challenge means' identity B appears in the message and the decrypted value correctly. If any validation fails, the protection server returns failure without returning the decrypted nonce. However, if the validation succeeds, then the protection server returns the decrypted nonce r. The challenge mechanism compares the received decrypted nonce with the nonce that the challenge mechanism originally encrypted. If they are not the same, the challenge mechanism hangs the protected program, or otherwise disturbs normal program execution. Thus, it can be seen that the protected format document 404 may be displayed only if the customer possesses the proper private keying material and keyfile 705. Embodiment using probabilistic proof The challenge and response means execute the probabilistic proof protocol as illustrated below (in this embodiment, the Guillou-Quisquater identification protocol is described). In the following protocol description, the protection server is named as party A and the challenge mechanism is named as party B. Calculate System parameters: a. Using the prime factorization, p and q, suitable for use in the computation of an RSA-like key pair compute n p·q and Φ = (p - 1)(q - 1. b. A defines a public exponent υ ≥ 3 with gcd(υ,Φ)=1 where gcd is the gretest common divisor. c. A computes a private exponent s = υ -1 (mod Φ) d. System parameters (υ, n) are made available as the public keying material. Calculate User parameters: a. A selects and publishes a well known identity I and the redundant identity J = f(I satisfying 1 < J < n using a known redundancy function f. An example of the redundancy function f is the redundancy mapping of the preprocessing stage of ISO/IEC 9796. b. A retains as the private keying material s A = J -s (mod n). The GQ key pair is (private key = s A ) and (public key = (υ, n)). A makes known to B, I,f, and J = f(I . B validates that J = f(I . The protocol messages of the GQ proof protocol are presented below: A → B: I,x = r υ (mod n) (1) B → A: e (where 1 ≤ e ≤ υ) (2) A → B: y = r · s e / A(mod n) (3) A proves its identity to B by t executions of the following steps where B accepts A's identity only if all t executions are successful. a. A selects a random secret integer r (the commitment), 1 ≤ r ≤ n - 1, and computes (the witness) x = r υ (mod n) b. A sends to B the pair of integers (I, x) c. B selects and sends to A, a random integer e (the challenge ), 1 ≤ e ≤ υ d. A computes and sends to B (the response ) y = r · s e / A(mod n) B receives y, constructs J from I using f, computes z = J e - y υ (mod n) and accepts A's proof of identity if both z = x and z ≠ 0. If the challenge mechanism as party B does not accept A's proof of identity, then the challenge mechanism hangs the protected program, or otherwise disturbs normal program execution. Thus, it can be seen that the protected format document 404 continues executing normally only if the customer possesses the proper private keying material and keyfile 705. Embodiment using digital signature Using the digital signature, the mechanism is as follows. The challenge mechanism of the protected format document generates an unguessable nonce and passes the nonce to the protection server with a request for a digital signature. When it receives the nonce, the protection server first checks that the nonce presented to it corresponds to a given format. If it does not, the protection server denies the signature request. Assuming that the nonce is in the correct format, the protection server uses a cryptographic engine to sign the nonce using the customer's private keying material. The protection server then returns the signed nonce to the challenge mechanism in the program using the protected format document. When it receives the signed nonce, the challenge mechanism accesses the keyfile associated with the protected format document and calls a signature validation function in the challenge mechanism to validate the vendor's signature of the keyfile, using the vendor's public keying material that is embedded in the challenge mechanism. As in the case of all embodiments in this invention, this validation of the keyfile signature ensures that an attacker cannot modify the keyfile or its digital signature without additionally modifying the challenge mechanism. The vendor may optionally augment this protection using additional proprietary lines of defence. If the keyfile has been modified, the challenge mechanism hangs the program. Assuming the signature is validated, the challenge mechanism then parses the keyfile, using a proprietory author-specific algorithm, to locate the customer's public keying material. The challenge mechanism then calls its signature validation function, to validate the digital signature computed over the nonce using the customer's public keying material. If the signature is not valid, the challenge mechanism hangs or operates in a limited manner. Thus, it can be seen that the protected format document may be displayed only if the customer possesses the proper private keying material and keyfile. Nonce generator Generation of a nonce is performed by a nonce generator included in the challenge mechanism. Operation of the nonce generator is as follows (see figure 10). First, the nonce generator queries a large number of system parameters, e.g. the system time, the amount of space remaining free in the page table, the number of logical disk drives, the names of the files in the operating system's directory, etc. Next, the nonce generator builds a random number, using a random number generator. The random number generator consists of two process threads, referred to herein as Thread 1 and Thread 2. Figure 10 shows the operation of Thread 1, which is the main thread of the random number generator. (Box 1001) Thread 1 first creates a data structure value_list, for holding a list of counter values. The list is initially empty. (Box 1002) Thread 1 sets a current counter value to zero, and sets a done_test flag to FALSE. (Box 1003) Thread 1 then forks Thread 2. Thread 2 posts an asynchronous disk access, and then sleeps until the disk access is complete. When the disk access is complete, Thread 2 sets the done_test flag to TRUE. Note that Thread 1 and Thread 2 share the done_test flag. (Box 1004) Thread 1 increments the counter value by one. (Box 1005) Thread 1 then tests whether the done_test flag is now TRUE, indicating that the disk access initiated by Thread 2 is complete. If done_test flag is FALSE, the thread returns to box 54. Thus it can be seen that, while waiting for the disk access to complete, Thread 1 continually increments the counter value. (Box 1006) When done_test flag is TRUE, Thread 1 terminates Thread 2, and saves the counter value in the first free location in value_list. (Box 1007) Thread 1 then calls a Statstest function, which estimates the degree of randomness of the counter values (or portions of counter values, e.g., low-order bits) saved in value_list. This function may use the Chi-Square Test, the Kolmogorov-Smirnov Test, or the Serial Correlation Test, which are described in [5]. The Statstest function may be optimized to ensure that complicated calculations are not repeated for each disk access. The Statstest function returns a value which indicates how many low-order bits of each saved counter value should be considered random. (Box 1008) Thread 1 compares the value returned by the Statstest function when combined with the length of the value_list with a predetermined threshold value, to determine whether enough random bits have now been generated. If not enough random bits have been generated, the process returns to box 1002 above, so as to generate and save another counter value. (Box 1009) When the required number of random bits has been generated, Thread 1 extracts the specified number of low-order bits from each counter value in the value_list, and returns this sequence of bits as the output random number. In summary, it can be seen that the random number generator exploits the unpredictability in the timing of a series of disk accesses as a source of randomness in the generation of nonces (see [4]). By forking new threads on each disk access, the random number generator also exploits unpredictabilities in the operation of the operating system's scheduler as a second source of randomness. The analysis performed by the Statstest function permits the random number generator to self-tune for any speed processor and disk, by computing the number of low-order bits of each saved counter value to return. For example, a system with a high-variance disk access time will generate more random bits per-disk access than a system with a low-variance disk access time. For example, for a Quantum 1080s disk (6ms average write time), and a 486 66 Mhz processor, the system generates approximately 45 bits per second. Alternatively, one may hard code the number of bits per-disk access and use a de-skewing technique to ensure a good degree of randomness. The nonce generator also queries the operating system to ensure that it posts each disk access to an actual disk. The final output nonce is formed by combining the output random number from the random number generator with the result of querying the system parameters as described above using a message digest. The nonce generator described above works best when executing on an operating system that provides direct access to the disk, e.g., Windows 95 or Windows NT 4.0. In such an operating system, special operating system calls available to programs executing in user space permit a program to bypass the operating system's internal buffering mechanism and write directly to the disk. Most programs do not take advantage of these special operating system calls because they may be relatively inefficient and difficult to use. On Windows 95 and Windows NT, a program may only use these special calls if the program accesses data that is a multiple of the disk's sector size by querying the operating system. If the operating system does not provide direct access to the disk, then the challenge mechanism 24 could still use the disk timing random number generator. However, in this case, the quality of the generated values would have a greater reliance upon unpredictabilities in the operating system's scheduler as opposed to the variance inherent to the disk access time. The example of the invention described above assumes that the operating system permits a program to fork multiple threads within a single address space. Additionally, the example of the invention assumes that the operating system permits the threads to access synchronization variables such as semaphores. Most modern operating systems provide these services. The example of the invention uses multiple threads to implement a mechanism which quantifies each disk access time. However, if an implementation of the invention were to execute on a system that does not provide multiple threads or synchronization variables, then the nonce generator could substitute other mechanisms, e.g. querying a physical clock. Software rental mechanism Figure 11 illustrates the system's 1100 architecture. Potentially multiple applications (programs) of software reside on the system where each application has its own keyfile. Figure 11 illustrates three applications, a Word Processor 1104, a Spread Sheet 1105, and another application 1106 which access keyfiles 1101, 1102, and 1103, respectively. In some cases multiple applications 1104, 1105, 1106 may share a common keyfile. Each of the applications 1104, 1105, 1106 accesses its keyfile 1101, 1102, and 1103 to extract the customer's public keying material from the CIS. Each application vendor inserts rental instructions into a copy protected program. These rental instructions create log records, e.g., 1109, 1110, 1111. For example, every fifteen minutes that Word Processor 1104 executes, Word Processor 104 creates the following log record: Word Process WP with public key 9828a8c12a5873654bac684517d3afé3 executed for 15 minutes" (note that the record could store the message digest of the public keying material rather than the public keying material itself). Next, the application sends its log record to a Rental Server 1107. The Rental Server 1107 inserts the log record at the end of a secure audit trail 1108 stored at a potentially unsecured storage location, e.g., a file on a disk. The Rental Server 107 relies on the assistance of a Smart Card 1112 for security. An application, e.g., 1104, 1105, or 1106, may choose to create a log record that contains any arbitrary string of bits with arbitrary length. In addition, or in lieu of recording time, an application could potentially log the number of times that the application or some of its modules executes. For example, SS 105 could potentially append a single log record each time SS boots: "Application SS with public key 768230aac8239d9df88cfe3c7b832a is executing". Different types of audit records, e.g., time of usage or number of times that usage occurred, may appear in the same audit trail. Multiple rented applications may simultaneously use the same audit trail. One obtains software rental by matching thresholds against the audit trail. Figure 12 illustrates a customer 209, who rents software from a vendor 201. First, the customer 209 sends a request to rent the software to the vendor 201 in an order request 1203. In this example, the customer purchases six hours of application 1104. After receiving payment, the vendor sends to the customer a keyfile 1101 that contains a usage authorization. In this case, the keyfile 1101 permits six hours of execution by application 1104. The later described keyfile 1101 may potentially contain other information, e.g., copy protection or licensing information. Periodically, the rented application, e.g., word processor (application) 1104, examines the audit trail 1108. If the audit trail 1108 is not valid, then word processor 1104 does not permit itself to be rented. However, if the audit trail 1108 is valid, then the application 1104 analyzes the audit trail and compares the analysis against the keyfile 1101. For example, application 1104 counts the number of log records that describe 15 minute intervals. Next, application 1104 looks into the keyfile 1101 to locate a rental threshold which in this present example is 6 hours (24 x 15 minute intervals). If application 1104 locates fewer than 24 of its log records denoting 15 minute intervals, then application 104 continues executing. Otherwise, application 1104 does not permit itself to be rented. In the latter case, the customer must purchase a new keyfile in order to continue renting application 1104. If application 1104 were to exceed its rental threshold, then other applications, e.g., spread sheet 1105 and other application 106 would not be effected. That is, each rented application views its own records from the audit trail without interpreting records created by other applications. From the discussion above, we can see that the architecture implements software rental provided that the rented applications, e.g., 1104, 1105, 1106, can unequivocally validate the audit trail 1108. The following properties should be satisfied: 1. Holes: A rented application, e.g. word processor 1104, in this present example validates that the audit trail contains all of the records that have ever been written regardless of application. If an application has previously written ten log records, then the rented application, e.g., word processor 1104, would not validate the audit trail if the rented application could not locate all ten log records. We require an absence of holes, because we do not wish to permit an attacker to delete individual log records in order to destroy a record of usage. 2. Modification: An application, e.g., word processor 1104, must unequivocally conclude that no unauthorized attacker modified any of WP's log records. Otherwise, for example, the attacker could modify all of the 15 minute log records to 15 second log records in order to dramatically increase the amount of time that the software may execute. 3. Current: A rented application, must be able to validate that the audit trail 1108 is current. Otherwise, the audit trail 1108 could potentially be old, thus hiding relatively new audit records 1109, 1110, 1111. One would not wish, for example, an attacker to perform the backup and restore attack. These three properties remove all incentive for an attacker to corrupt, delete, lose, or otherwise abuse an audit trail 1108. If the attacker were to render the audit trail 1108 invalid, then all of the rented applications 1104, 1105, 1106 would identify the abuse and subsequently refuse rental. In order to provide security, the architecture requires a smart card 1112 that performs asymmetric cryptography. In this present example, the smart card 1112 executes digital signatures. The smart card 1112 contains private keying material 1301 and a counter 1302 (see Figure 13). When the customer obtains the smart card 1112, the smart card 1112 is in a secure state. The smart card provides exactly two services that access either the private keying material or the counter: SignAndIncrement () and GetCounter (), described in pseudo program code hereinafter (note that the symbol // denotes a comment and ← denotes the assignment operator): Signature SignAndIncrement (HASH h) // h is a message digest BEGIN [1] Compute the message digest of h and the smart card's counter, i.e., h' ← hash(h,counter) [2] Sign h' with the private keying material [3] Increment the smart card's counter by 1 [4] return the digital signature computed in step [2] END integer GetCounter () BEGIN [1] return the current value of the smart card's counter END Consider the following example trace. Suppose that the smart card's counter has an initial value of 6 and that one executes the following operations: (i) Signature1 ← SignAndIncrement(hash("m1")) (ii) Signature2 ← SignAndIncrement(hash("m2")) (iii) int1 ← GetCounter() The results of this example are: Signature1 gets the digital signature (using the smart card's private keying material) of hash(hash("m1"),6) Signature2 gets the digital signature (using the smart card's private keying material) of hash(hash("m2"),7) int1 gets 8 The audit trail 1108 contains a list of records, where each record has four fields: nonce, string, counter, and signature. The data input into the signature is hash(hash(nonce,string),counter). Figure 14 illustrates an example audit trail with four records. In the first record, the nonce has the value 96, the string is WP 15 minutes public key 9828a8c12a5873654bac684517d3afe3" (where 9828a8c12a5873654bac684517d3afe3 denotes the message digest of a real public key), the counter's value is 0, and the digital signature is of hash(hash(96,"WP 15 minutes public key 9828a8c12a5873654bac684517d3afe3"),0). Here, the digital signature was provided using private keying material which corresponds to public keying material 9828a8c12a5873654bac684517d3afe3. This public keying material may be extracted from WP's keyfile. The counter never rolls over from its highest value to zero. When the counter reaches its highest value, e.g., 2 128 -1, the system stops. A rented application appends a record to the audit trail by executing the Write routine, where the Write routine is embedded within the rented applications. This routine generates an audit record and then sends the audit record to the Rental Server 1107. The Rental Server 1107 writes the audit record into a non-volatile, stable image of the audit trail, e.g., on one or more files. The Rental Server 1107 synchronizes access to the smart card 1112 and the audit trail. The Rental Server 1107 cannot execute in a manner that thwarts system security, i.e., the rented applications do not trust the Rental Server 1107. If the Rental Server 1107 were to act incorrectly, then there could potentially be a denial of service because it may be the case that the rented applications could not validate the audit trail. The Write routine is provided below in pseudo program code: Boolean Write (String str) BEGIN [1] n ← generate a new nonce [2] h1 ← hash( n,str) [3] s ← SigaAndIacrement (h1) // below, c is a local copy of value in the smart card [4] c ← GetCounter() // below, decrement by 1 has no affect on smart card [5] decrement c by 1 [6] h2 ← hash(h1,c) [7] validate that s is the signature of h2 against the public key found in the keyfile (if the validation fails, then return failure immediately without executing any further steps). [8] create the rental record r ← <n,str,c,s> [9] append r to the audit trail [10] return TRUE if all of the preceding steps succeed, otherwise return failure END The ValidateTrail routine is also embedded in the rented application and should be executed periodically and is provided below in pseudo program code (assume that the system started with an initial counter value of zero): Boolean ValidateTrail () BEGIN [1] c ← GetCounter() [2] Write ( c ) // use the Write routine above, exit if // failure [3] r ← Last record in the audit trail // this is the record that we just wrote in step [2] [4] Validate the signature stored in r against the public key stored in the keyfile [5] Validate that c is the same as the counter stored in r [6] FOR i←0 UNTIL there are no more records, INCREMENT i by 1 [6.1] r ← i th record from the audit trail [6.2] Validate the signature stored in r against the public key stored in the keyfile [6.3] Validate that i is the same as the counter stored in r [7] END FOR LOOP [8] if all of the above steps succeed, then return TRUE, otherwise return FALSE END In steps [4] and [6.2], all of the input for the validation is from the audit record itself. By carefully analyzing all of the steps in the Write and ValidateTrail routines, it is clear that any attack that thwarts the intended use of these routines causes failure. In this case, the rented applications notice the failure and do not permit themselves to be rented. The mechanism for recovering from a failure depends upon the vendor for each particular rented application. The vendor may, for example, issue a new keyfile upon some customers' requests. Perhaps, the most significant issue is recovery from accidental loss of the audit trail that may occur due to a disk error. In order to protect against this situation, the Rental Server 1107 should be responsible for writing all records to the audit trail on behalf of all rented applications. The Rental Server should maintain a primary audit trail on the local fixed disk and at least one backup audit trail on a separate medium, e.g., a floppy or a network file server. One may, for example, provide a service that permits the Rental Server to e-mail audit trails to a secured network backup service. In this case, one can ensure privacy by permitting the rental server to encrypt the audit trail before transmission. Some possible modifications In an alternative embodiment of the invention, the customer's public keying material held in said keyfile may be cryptographically secured, whereby it is computationally infeasible to alter any portion of the keyfile, including the customer's public keying material, without altering the challenge means. That is, the keyfile is signed with the vendor's private keying material and the vendor's public keying material is coded in the challenge means. Furthermore, the keyfile may include information identifying the customer to which the protected PF file has been supplied. Rather than in the Internet, or in general in a communication network, the PF file(s) may also be stored on a different medium, e.g. the CD-ROM. Furthermore, the translator can mark the UF file using digital watermarking (fingerprinting). Different types of watermarking are described in [7], e.g. using slightly different spacing between letters or modified fonts or unusual line spacing. The Viewer does not accept a PF unless the Viewer can first obtain the UF file and then locate and validate the watermark. This watermark is a secret. After extracting the UF file from the PF file, the Viewer may insert a watermark that is unique to the customer. In this way, if the customer were to make an unauthorized copy of the document, then the unauthorized copy would contain a watermark that uniquely identifies the customer. While this invention prevents simple construction of unauthorized electronic copies, the customer could potentially use a camera to take pictures of a display and then distribute copies of these pictures. The keyfile may contain more that one CIS pieces, which when combined, form a single CIS. As a result, the vendor need not concatenate all of the customer information, e.g., customer's public key and access rights, into a single contiguous string. The CA and the vendor could either reside in a single administrative domain, or different administrative domains. In the first case, the vendor can distribute documents without the continual assistance of a third party CA. In the latter case, the third party CA provides extra security assurances. In the case of a third party CA, all vendors should be required to sign a legally binding agreement prohibiting the use of the CA for the purposes of committing fraud. The translator can encrypt the UF twice when creating the PF file. Each encryption uses a different symmetric key K, and K'. The vendor places key, K, in the CIS. The vendor encrypts K' using the customer's public keying material and then places the encrypted result in the keyfile. The Viewer cannot decrypt to discover K' unless the customer has the correct private keying material. No attacker can discover key K, unless the attacker defeats the security mechanisms that protect the keyfile. Since the customer's private keying material is securely stored in a smart card or protection server, the Viewer cannot obtain access to the private keying material. Thus, the Viewer must present the encrypted K' to the smart card or protection server for decryption. The customer could potentially listen to the result of the decryption and obtain K'. Nevertheless, by using two keys this mechanism increases the overall security of the system. Before encrypting, computing message digests, and computing signatures, the translator could modify the UF file in a manner that hides special semantics of the UF file. For example, if standard Viewers for the UF file exist, then the translator could insert non-standard commands that break these standard Viewers. Thus, if an attacker were to break all of the security mechanisms of this invention and obtain the UF file, then the attacker could not easily use any standard Viewer to display the UF file. Any or all private keying material described in this invention could be stored securely on a smart card. The smart card has the property that the smart card performs asymmetric cryptographic operations using the private keying material. The smart card never releases the private keying material out of the smart card's perimeter in an unencrypted form. Thus, it can be seen that a smart card does not disclose the private keying material. In order to improve performance of the rental embodiment, one may augment the system with a trusted audit trail validation service. Here, the trusted service periodically validates an audit trail and then appends a new audit record, the validator record, that securely vouches for the previous records. Example information that the validator record may contain is a digital signature of the message digest (hash) of all preceding audit records in the audit trail (the digital signature uses the private key of the audit validation service). Henceforth, rented applications need not validate digital signatures of records that precede the validator record. The audit trail validation service could be implemented by a third party that is accessible via a network or e-mail connection. In the ValidateTrail procedure's steps [5] and [6.3], it is possible that the counter value of the initial record is not zero. In this case, the counter value starts at offset, and steps [5] and [6.3] must take offset into account in the comparison. Note that the vendor of the rented application trusts the smart card to avoid releasing the private keying material. Additionally, the vendor of the rented application trusts that the smart card uses its private keying material in no functions other than SignAndIncrement and GetCounter. The vendor of the rented application may wish to validate the smart card manufacturer and/or personalizer. A vendor may create and distribute an application after a customer obtains a smart card. In this case, the vendor simply creates a software rental keyfile for the customer and sends the keyfile to the customer (possibly after receiving payment). Universal Private Keying Material In a variant to the example mechanism, all customers rent the software using the same public/private key pair. Here, the vendor trusts that the smart card operates correctly, and never releases the value of the private keying material outside of the smart card. As in the case of Figure 13, the smart card contains both private keying material 1301 and a counter 1302. Additionally, the smart card contains a unique serial number, where no two smart cards have the same serial number. Step [1] of the SignAndIncrement routine implemented on the smart card differs from the one described above as follows: [1] Compute the message digest of h and the serial number and the smart card's counter, i.e., h' ← hash(h,serial_number, counter) In addition to the SignAndIncrement and the GetCounter routines, the smart card additionally provides the GetSerialNumber routine: string GetSerialNumber() BEGIN [1] return the smart card's serial number END In the step depicted by 1203, the customer additionally sends his or her smart card's serial number. The keyfile 705 contains the following information: The universal public keying material shared by all customers The unique serial number of the customer's smart card The hash records stored in the log file, take into account the serial number. For example, the first hash record of Figure 14 has the following information for a message signature: Signature of hash(hash(96,WP...),serial_number,0) The Write routine step [6] has the following modification: [6] h2 ← hash(h1,serial_number,c) The ValidateTrail routine's steps [4] and [6.2] must use the serial number (otherwise they would always fail). We do not specify the vehicle that the Write and ValidateTrail routines use to obtain the serial number of the local smart card. One could, for example, query the smart card a single time and then store the serial number in a file in the local file system. A software vendor could potentially provide a rented application with a complex threshold calculation. For example, the vendor may rent blocks of 1000 units . For each hour that the software executes between 20.00 (8:00 PM) and 6.00 (6:00 AM) the next morning, the log record defines one unit; and for each hour in a different portion of the day, the log record defines two units. So, for example, a customer could potentially use the software for 1000 nighttime hours, 500 daytime hours, or some calculated combination of nighttime and daytime hours. Note that as described in this invention, the vendor authorizes a customer to view a file by giving the customer a keyfile with the customer's public keying material. Additionally, the vendor may authorize a distributor to 1. authorize distribution and/or 2. authorize others to be distributors by giving to the distributor the vendor's private keying material. The vendor may additionally authorize at least a second distributor to 1. authorize distribution but not 2. authorize other's to distribute by using the following technique. The vendor signs a certificate that comprises the second distributor's public keying material. The second distributor signs keyfiles with the second distributor's private keying material (in lieu of vendor's signature of keyfiles). In the challenge means' keyfile validation step, the challenge means validates the second distributor's certificate using the vendor's public keying material embedded in the challenge means. The challenge means subsequently uses the second distributor's public keying material to validate keyfiles. The following publications are cited in this document: [1] Cryptolope Container Technology, International Business Machines, available on the World Wide Web 3/3/97 http://www.cryptolope.ibm.corn/white.htm. [2] A. Menezes et al, Handbook of Applied Cryptography, CRC Press, Inc. ISBN 0-8493-8523-7, S. 22-23, 224 -233, 250 - 259, 308 - 311, 405 - 424, 433 - 438, 572 - 577, 1997 [3] R. Rivest, The MD5 message-digest algorithm, RFC 1321, April 1992. [4] P. Fenstermacher et al, Cryptographic randomness from air turbulence in disk drives, Advances in Cryptology: Crypto '94, pp. 114 - 120, Springer Verlag, 1994 [5] D. Knuth, The Art of Computer Programming, Vol. 2, Seminumerical Algorithms, Addison-Wesley Publishing Co., Reading MA, 2nd Edition, 1981, pp. 38-73, ISBN 0-201-03822-6. [6] ISO/IEC 9594-1, "Information technology - Open Systems Interconnection - The Directory: Overview of concepts, models, and services", International Organization for Standardization, Geneva, Switzerland, 1995 (equivalent to ITU-T Rec. X.509, 1993). [7] J. Brasil et al, Electronic marking and identification techniques to discourage document copying, IEEE INFOCOM 94, S. 1278 - 1287, 1994

Claims: A computer system comprising a protection mechanism for protecting the contents of a file, the protection mechanism comprising at least one Viewer program, at least one challenge means associated with said Viewer program and said file, and a response means with private keying material that it can access, wherein: a) the challenge means has no access to the private keying material and uses public keying material stored in it, b) the response means comprises means for proving that it has access to the private keying material by interacting with the challenge means using an asymmetric cryptographic scheme, c) the challenge means comprises means for prohibiting use of some or all said file's content unless said proof is successful. A computer system according to claim 1, wherein said use is a displaying or printing. A computer system according to one of the claims 1 to 2, comprising a Certificate Authority for making availiable a public key pair. A computer system according to claim 3, wherein said Certificate Authority signs public keying material and/or said file with a Certificate Authority's private keying material, sends it to a vendor's computer, and said vendor's computer validating said public keying material and/or said file. A computer system according to one of the aforementioned claims, wherein said asymmetric cryptographic scheme is one of the following schemes: a probabilistic proof scheme, an asymmetric confidentiality scheme, or a digital signature scheme. A computer system according to one of claims 1 to 9, wherein said probabilistic proof scheme is one of the following schemes: a zero knowledge proof scheme, or a witness hiding proof scheme. A computer system according to one of the aforementioned claims, wherein said challenge means comprises means for issuing a random challenge. A computer system according to claim 7, wherein said means for issuing a random challenge includes means for generating a random challenge by repeatedly timing responses to device accesses. A computer system according to claim 8, wherein said means for generating a random challenge includes means for forking new threads in such a manner as to introduce an additional degree of randomness into said random challenge by exploiting unpredictabilities in the operating system's scheduler. A computer system according to claim 8, wherein said means for generating a random challenge includes means for performing a statistical test to determine the number of random bits obtained by each of said disk accesses, and means for causing disk accesses to be repeated until a predetermined number of random bits has been obtained. A computer system according to one of the aforementioned claims, wherein said challenge means is embedded in said program. A computer system according to one of the aforementioned claims, wherein the system includes a keyfile for holding the public keying material and/or document handling rules. A computer system according to one of the aforementioned claims, wherein the contents of the keyfile is physically stored in one or more files. A computer system according to claim 13, wherein the public keying material held in said keyfile is cryptographically secured, whereby it is computationally infeasible to alter any portion of the keyfile, including the public keying material, without altering the challenge means. A computer system according to claim 14, wherein said keyfile includes information identifying the customer to which the protected item of software has been supplied. A computer system according to claim 14, wherein said keyfile includes decoy bits for disguising the first public keying material held therein. A computer system according to claim 14, wherein said keyfile includes information concerning selective activation of services of the protected file. A computer system according to one of the aforementioned claims, wherein said file is accessible over one of the following media: communication network, CD-ROM. A computer system according to one of the aforementioned claims, wherein said file is marked using digital watermarking. A computer system according to one of the aforementioned claims, wherein said file is encrypted. A computer system according to one of the aforementioned claims, comprising a distribution system having access to a vendor's private keying material, wherein said distribution system is authorized to distribute said file. A computer system according to claim 21, wherein said distribution system makes at least one further distribution system having access to said vendor's private keying material, wherein said further distribution system is authorized to distribute said file. A computer system according to claim 22, wherein said distribution system prohibits said further distribution system from making other distribution systems having access to said vendor's private keying material, wherein said further distribution system signs said keyfile using a further distribution system's private keying material, said challenge means validates a further distribution system's certificate signed using said vendor's private keying material, said certificate comprising a further distribution system's public keying material, using a vendor's public keying material, said challenge means validates said keyfile using said further distribution system's public keying material. A computer system according to claim 1, with means for inputting a Viewer program which uses said file and for embedding said challenge means in the Viewer program which uses said file. Use of a computer system according to claim 1 in the distribution of a protected file to a plurality of customers wherein each customer has a computer system according to claim 1, and wherein every customer receives an identical copy of said protected file and of said Viewer program with associated challenge means. A method for protecting the contents of a file, wherein at least one challenge means is associated with a Viewer program which uses said file, the at least one challenge means is associated with said file, and at least one response means accesses private keying material, a) the challenge means has no access to the private keying material, and uses public keying material stored in it b) the response means proves to the challenge means that it has access to the private keying material by interacting with the challenge means using an asymmetric cryptographic scheme, c) the challenge means prohibits use of some or all said file's content unless said proof is successful. A method according to claim 26, wherein said use is a displaying or printing. A method according to one of the aforementioned claims, wherein a Certificate Authority makes a public key pair availiable. A method according to claim 28, wherein said Certificate Authority signs a public keying material and/or said file with a Certificate Authority's public keying material, sends it to a vendor's computer, and said vendor's computer validating said first public keying material and/or said file. A method according to one of the aforementioned claims, wherein said asymmetric cryptographic scheme is one of the following schemes: a probabilistic proof scheme, an asymmetric confidentiality scheme, or a digital signature scheme. A method according to claim 30, wherein said probabilistic proof scheme is one of the following schemes: a zero knowledge proof scheme, or a witness hiding proof scheme. A method according to one of the aforementioned claims, wherein said challenge means issues a random challenge, and wherein said information comprises said random challenge. A method according to claim 32, wherein said means for issuing a random challenge generates a random challenge by repeatedly timing responses to device accesses. A method according to claim 33, wherein said means for generating a random challenge forks new threads in such a manner as to introduce an additional degree of randomness into said random challenge by exploiting unpredictabilities in the operating system's scheduler. A method according to claim 34, wherein said means for generating a random challenge performs a statistical test to determine the number of random bits obtained by each of said disk accesses, and causes disk accesses to be repeated until a predetermined number of random bits has been obtained. A method according to one of the aforementioned claims, wherein said challenge means is embedded in said program. A method according to one of the aforementioned claims, wherein said challenge means uses the first public keying material for encrypting the information. A method according to one of the aforementioned claims, wherein the system includes a keyfile for holding the public keying material. A method according to claim 38, wherein the first public keying material held in said keyfile is cryptographically secured, whereby it is computationally infeasible to alter any portion of the keyfile, including the first public keying material, without altering the challenge means. A method according to claim 39, wherein said keyfile includes information identifying the customer to which the protected item of software has been supplied. A method according to claim 39, wherein said keyfile includes decoy bits for disguising the first public keying material held therein. A method according to claim 41, wherein said keyfile includes information concerning selective activation of services of the protected file. A method according to one of the aforementioned claims, including a plurality of protected files, each having its own challenge means, and a single response means, shared between all of said protected items. A method according to one of the aforementioned claims, wherein the file is accessible over one of the following media: communication network, CD-ROM. A method according to one of the aforementioned claims, wherein the file is marked using digital watermarking. A method according to one of the aforementioned claims, wherein the file is encrypted. A method according to one of the aforementioned claims, wherein a distribution system has access to a vendor's private keying material, and wherein said distribution system is authorized to distribute said file. A method according to claim 47, wherein said distribution system makes at least one further distribution system having access to said vendor's private keying material, and wherein said further distribution system is authorized to distribute said file. A method according to claim 48, wherein said distribution system prohibits said further distribution system from making other distribution systems having access to said vendor's private keying material, wherein said further distribution system signs said keyfile using a further distribution system's private keying material, said challenge means validates a further distribution system's certificate signed using said vendor's private keying material, said certificate comprising a further distribution system's public keying material, using a vendor's public keying material, said challenge means validates said keyfile using said further distribution system's public keying material.

Inventors: BENSON GLENN DR, BENSON, GLENN, DR.
Applicants: SIEMENS AG, SIEMENS AKTIENGESELLSCHAFT
Application year: 1997
Main classification: G06F1
IPC codes: G06F21, G06F1