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
09 Jul, 2025
11 commits
  • 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 »

26 Jul, 2022
1 commit
  • Code tidy : replace 0 with nullptr or true
    073808aa
    m-holger authored
    2022-07-26 13:40:13 +0100  
    Browse File »

24 Jul, 2022
2 commits
  • QPDFObjGen : tidy QPDF private methods ...
    f7978db1
    Change method signatures to use QPDFObjGen.
    Use QPDFObjGen methods where possible.
    Remove redundant QPDF::objGenToIndirect.
    m-holger authored
    2022-07-24 16:02:35 +0100  
    Browse File »
  • Add optional parameter separator to QPDFObjGen::unparse ...
    eeb6162f
    Also, revert inlining of unparse and operator << from commit 4c6640c in
    order to avoid exposing QUtil.
    m-holger authored
    2022-07-24 15:41:48 +0100  
    Browse File »

03 May, 2022
4 commits
  • Make use of the new Pipeline methods in some places
    21d6e323
    Jay Berkenbilt authored
    2022-05-03 18:31:23 -0400  
    Browse File »
  • Make Pipeline::write take an unsigned char const* (API change)
    59f3e09e
    Jay Berkenbilt authored
    2022-05-03 18:31:22 -0400  
    Browse File »
  • Make assert handling less error-prone ...
    62bf296a
    Prevent my future self or other contributors from using assert in
    tests and then having that assert not do anything because of the
    NDEBUG macro.
    Jay Berkenbilt authored
    2022-05-03 18:31:22 -0400  
    Browse File »
  • Remove remaining incorrect assert calls from implementation
    92b69246
    Jay Berkenbilt authored
    2022-05-03 18:31:22 -0400  
    Browse File »