Skip to content

Commit

Permalink
Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jun 19, 2022
1 parent 45c15be commit 310ce89
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions PyPDF2/_encryption.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
# Copyright (c) 2022, exiledkingcc
# All rights reserved.
#
Expand Down Expand Up @@ -610,6 +609,7 @@ def __init__(
StrF: str,
EFF: str,
) -> None:
# See TABLE 3.18 Entries common to all encryption dictionaries
self.algV = algV
self.entry = entry
self.key_size = entry.get("/Length", 40)
Expand All @@ -624,8 +624,6 @@ def __init__(
self._owner_keys: Dict = {}

def decrypt_object(self, obj: PdfObject, idnum: int, generation: int) -> PdfObject:
"""decrypt object"""

"""
Algorithm 1: Encryption of data using the RC4 or AES algorithms
Expand All @@ -646,9 +644,7 @@ def decrypt_object(self, obj: PdfObject, idnum: int, generation: int) -> PdfObje
If using the AES algorithm, the Cipher Block Chaining (CBC) mode, which requires an initialization vector,
is used. The block size parameter is set to 16 bytes, and the initialization vector is a 16-byte random
number that is stored as the first 16 bytes of the encrypted stream or string.
"""
"""
Algorithm 3.1a Encryption of data using the AES algorithm
1. Use the 32-byte file encryption key for the AES-256 symmetric key algorithm, along with the string or
stream data to be encrypted.
Expand Down

0 comments on commit 310ce89

Please sign in to comment.