Logo white

OpenSystemsDevelopment / qpdf

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 4,691
  • Compare
  • Branches 1
  • Tags 0
  • qpdf
  • libqpdf
  • QPDF_encryption.cc
31 Aug, 2025
1 commit
  • Refactor: replace `isNull` calls with `null` in `QPDF` and remove redundant `QTC::TC` calls.
    fe92a61d
    m-holger authored
    2025-08-31 13:47:15 +0100  
    Browse File »

09 Aug, 2025
1 commit
  • Refactor: replace `getArrayNItems` with `size`, simplify array traversal, centra… ...
    eee05a0c
    …lize type conversions, and improve clarity across multiple modules.
    m-holger authored
    2025-08-09 17:26:32 +0100  
    Browse File »

19 Jul, 2025
1 commit
  • Refactor `Pl_AES_PDF` and `Pl_RC4` constructors to simplify key handling ...
    9faffb74
    Replaced raw key pointer and length parameters with a `std::string` in `Pl_AES_PDF` and `Pl_RC4` constructors for improved safety and clarity. Updated all usage sites accordingly, reducing reliance on manual memory management and redundant conversions.
    m-holger authored
    2025-07-19 19:43:33 +0100  
    Browse File »

09 Jul, 2025
15 commits
  • Refactor `QPDF_encryption` and `RC4` to replace raw arrays with `std::string`, c… ...
    04cc9df2
    …onsolidate `iterate_rc4` logic, and streamline RC4 key processing.
    m-holger authored
    2025-07-09 17:46:09 +0100  
    Browse File »
  • Refactor `QPDF_encryption` and `MD5` to streamline digest handling, replace raw … ...
    e81abdcc
    …arrays with `std::string`, and simplify key computation logic.
    m-holger authored
    2025-07-09 16:02:40 +0100  
    Browse File »
  • Refactor `QPDF_encryption` to inline `truncate_password_V5`, replace it with dir… ...
    0d68cd73
    …ect `substr` calls, and simplify password handling logic.
    m-holger authored
    2025-07-09 14:49:10 +0100  
    Browse File »
  • Refactor `compute_O_rc4_key` to return `std::string`, replace raw character arra… ...
    e623caf2
    …ys with `std::string`, and simplify related password handling logic.
    m-holger authored
    2025-07-09 14:48:39 +0100  
    Browse File »
  • Refactor `QPDF_encryption` to replace raw character arrays with `std::string`, s… ...
    aab00a1a
    …implify padding logic, and streamline password handling across methods.
    m-holger authored
    2025-07-09 14:40:59 +0100  
    Browse File »
  • Refactor encryption handling to streamline key computation, centralize version-b… ...
    20c2f021
    …ased logic in `setEncryptionMinimumVersion`, and reduce redundancy across `QPDFWriter` methods.
    m-holger authored
    2025-07-09 14:23:36 +0100  
    Browse File »
  • Refactor encryption permissions handling to replace `std::set` with `std::bitset… ...
    2055837e
    …`, simplify method signatures, and centralize logic in `QPDF::EncryptionData` for improved maintainability.
    m-holger authored
    2025-07-09 14:18:34 +0100  
    Browse File »
  • Refactor encryption data methods to reduce redundancy, streamline parameter hand… ...
    c8fd2f9b
    …ling, and improve maintainability.
    m-holger authored
    2025-07-09 14:17:59 +0100  
    Browse File »
  • Remove redundant `compute_U_UE_value_V5`, `compute_O_OE_value_V5`, and `compute_… ...
    4635a59e
    …Perms_value_V5` methods; inline their logic into `setV5EncryptionParameters` to simplify encryption data processing.
    m-holger authored
    2025-07-09 14:17:53 +0100  
    Browse File »
  • Refactor `QPDF_encryption` to simplify random string generation using `util::ran… ...
    11266b14
    …dom_string`, improve readability of salts and keys handling, and streamline `compute_Perms_value_V5_clear` logic by returning strings directly.
    m-holger authored
    2025-07-09 14:17:45 +0100  
    Browse File »
  • Refactor encryption permissions handling by replacing integer-based logic with `… ...
    8417be17
    …std::bitset`, reorganizing related methods, and simplifying access to improve clarity and maintainability.
    m-holger authored
    2025-07-09 14:17:35 +0100  
    Browse File »
  • Refactor `QPDF::isEncrypted` methods to simplify logic, reduce redundancy, and d… ...
    34142a6c
    …irectly access encryption parameters for improved clarity and maintainability.
    m-holger authored
    2025-07-09 14:17:27 +0100  
    Browse File »
  • Refactor `EncryptionParameters` to encapsulate crypt filter interpretation logic… ...
    09df3969
    …, transition `interpretCF` to a class method, and eliminate redundant parameter passing for improved clarity and maintainability.
    m-holger authored
    2025-07-09 14:17:20 +0100  
    Browse File »
  • Refactor encryption initialization by encapsulating logic in `EncryptionParamete… ...
    a051a162
    …rs::initialize` and replacing shared pointers with references for improved clarity and maintainability.
    m-holger authored
    2025-07-09 14:14:41 +0100  
    Browse File »
  • Refactor `QPDF::EncryptionData` to encapsulate encryption logic, reduce redundan… ...
    cb3c4c55
    …t parameter passing, and improve maintainability. Change static functions and QPDF methods to EncryptionData methods.
    m-holger authored
    2025-07-09 09:46:52 +0100  
    Browse File »

13 May, 2025
1 commit
  • In QPDF::interpretCF refactor crypt filter lookup for clarity and efficiency ...
    4a4b9456
    Replace `count` method with iterator-based lookup to improve readability and reduce redundancy. Simplify conditional logic for determining the encryption filter, ensuring the default case remains clear.
    m-holger authored
    2025-05-13 10:10:50 +0100  
    Browse File »

05 Apr, 2025
1 commit
  • Fix logic around cleartext metadata (fixes #1368) ...
    8720065c
    Only top-level XMP metadata is supposed to be left unencrypted. All
    other metadata is not treated specially.
    Jay Berkenbilt authored
    2025-04-05 18:06:19 -0400  
    Browse File »

06 Mar, 2025
1 commit
  • Move QPDF inner class definitions to new QPDF_private.hh
    5c866633
    m-holger authored
    2025-03-06 14:12:27 +0000  
    Browse File »

16 Feb, 2025
1 commit
  • Pass QPDFObjGen by value ...
    d8e4a081
    Except for virtual functions to avoid the need for users to update code.
    m-holger authored
    2025-02-16 11:56:39 +0000  
    Browse File »

08 Feb, 2025
1 commit
  • Bump clang-format to version 20 and reformat ...
    38d8cc7f
    This improves indentation of long strings. This commit also fixes some
    trailing whitespace in ChangeLog.
    Jay Berkenbilt authored
    2025-02-08 11:17:57 -0500  
    Browse File »

16 Jan, 2025
2 commits
  • Revert "Merge pull request #1272 from m-holger/xref_table" ...
    0d5c57c1
    This reverts commit ff2a78f579ebdd06b417e34260a17dba06e71137, reversing
    changes made to 8f54319f7a6514110f4b05cbbf1cb1c9fc8cb6a0.
    m-holger authored
    2025-01-16 16:40:08 +0000  
    Browse File »
  • Revert "Merge pull request #1297 from m-holger/qpdf_objects" ...
    efb2e8f6
    This reverts commit c648b9a018105a3c30b3e7f3c5f8a058d3ddd92c, reversing
    changes made to 12b67a3227df6b6df3a4f5f098e11cce173ff7d5.
    m-holger authored
    2025-01-16 16:15:11 +0000  
    Browse File »

09 Oct, 2024
1 commit
  • Make Xref_table an inner class of QPDF::Objects
    b5a57800
    m-holger authored
    2024-10-09 09:53:57 +0100  
    Browse File »

18 Sep, 2024
3 commits
  • Make all QPDF::Xref_table data members private
    39abb113
    m-holger authored
    2024-09-18 10:25:38 +0100  
    Browse File »
  • Add new class QPDF::Xref_table
    0ac37bc9
    m-holger authored
    2024-09-18 10:25:37 +0100  
    Browse File »
  • Move QPDF inner class definitions to new QPDF_private.hh
    f8e6274a
    m-holger authored
    2024-09-18 10:25:37 +0100  
    Browse File »

26 Nov, 2023
1 commit
  • In QPDF::pipeStreamData use unique_ptr as heap
    ddad5ad5
    m-holger authored
    2023-11-26 13:06:12 +0000  
    Browse File »

18 Nov, 2023
1 commit
  • Add new method Pl_Buffer::getString
    3237ef70
    m-holger authored
    2023-11-18 16:34:17 +0000  
    Browse File »

09 Jun, 2023
1 commit
  • Code tidy - Clang-Tidy rule modernize-return-braced-init-list
    320bbb98
    m-holger authored
    2023-06-09 15:35:56 +0100  
    Browse File »

27 May, 2023
2 commits
  • Fix doc typos
    db6c09b6
    m-holger authored
    2023-05-27 11:06:37 +0100  
    Browse File »
  • Code tidy - reflow comments and strings
    698a70e6
    m-holger authored
    2023-05-27 10:54:19 +0100  
    Browse File »

21 May, 2023
2 commits
  • Rerun clang-format
    60965d5f
    Jay Berkenbilt authored
    2023-05-21 13:35:09 -0400  
    Browse File »
  • Globally replace 'this->m->' with 'm->' ...
    85d78495
    Using search and replace.
    m-holger authored
    2023-05-21 14:42:34 +0100  
    Browse File »

20 May, 2023
1 commit
  • Replace deprecated C++ includes
    e28f4efb
    m-holger authored
    2023-05-20 15:41:25 +0100  
    Browse File »

01 Oct, 2022
2 commits
  • Code tidy: use QPDF::toS and QPDF::toI where possible
    cb0a6be9
    m-holger authored
    2022-10-01 11:17:39 -0400  
    Browse File »
  • Add private methods QPDF::damagedPDF
    5ccab4be
    m-holger authored
    2022-10-01 11:17:39 -0400  
    Browse File »

21 Sep, 2022
1 commit
  • Replace calls to QUtil::int_to_string with std::to_string
    2e686948
    m-holger authored
    2022-09-21 15:57:14 -0400  
    Browse File »