1 //========================================================================
5 // Copyright 1996 Derek B. Noonburg
7 //========================================================================
19 //------------------------------------------------------------------------
21 //------------------------------------------------------------------------
26 // Initialize the decryptor object.
27 Decrypt(Guchar *fileKey, int objNum, int objGen);
33 Guchar decryptByte(Guchar c);
35 // Generate a file key. The <fileKey> buffer must have space for
36 // at least 16 bytes. Checks user key and returns gTrue if okay.
37 // <userPassword> may be NULL.
38 static GBool makeFileKey(GString *ownerKey, GString *userKey,
39 int permissions, GString *fileID,
40 GString *userPassword, Guchar *fileKey);