+
    ¿Ìj»  ã                   óz   € R t  ! R R]4      t ! R R]]4      t ! R R]4      t ! R R]4      t ! R	 R
]4      tR# )zf
Errors used in several tools to avoid duplication

.. codeauthor:: Intra2net AG <info@intra2net.com>
c                   ó   € ] tR t^tRtRtR# )ÚCryptoErrorBasez'Base class for crypto-based exceptions.© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Úp/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/oletools/common/errors.pyr   r      s   † Ù1Ûr   r   c                   ó6   a a€ ] tR t^t oRtV 3R ltRtVtV ;t# )ÚCryptoLibNotImportedzDException thrown if msoffcrypto is needed but could not be imported.c                ó.   <€ \         \        V `  R 4       R# )z~msoffcrypto-tools is not installed. Please run "pip install msoffcrypto-tool" or see https://github.com/nolze/msoffcrypto-toolN)Úsuperr   Ú__init__)ÚselfÚ	__class__s   &€r   r   ÚCryptoLibNotImported.__init__   s   ø€ ÜÔ" DÑ2ð Mö	Nr   r   ©	r   r   r   r   r	   r   r
   Ú__classdictcell__Ú__classcell__©r   Ú__classdict__s   @@r   r   r      s   ù‡ € ÙN÷Nõ Nr   r   c                   ó:   a a€ ] tR t^t oRtRV 3R lltRtVtV ;t# )ÚUnsupportedEncryptionErrorz>Exception thrown if file is encrypted and cannot deal with it.c                óf   <€ \         \        T `  R P                  Vf   RMVR,           4      4       R# )z-Office file {}is encrypted, not yet supportedNÚ Ú )r   r   r   Úformat©r   Úfilenamer   s   &&€r   r   Ú#UnsupportedEncryptionError.__init__   s,   ø€ ÜÔ(¨$Ñ8Ø;ß‰V˜(Ò*‘B°¸3µÓ?ö	Ar   r   ©Nr   r   s   @@r   r   r      s   ù‡ € ÙH÷A÷ Ar   r   c                   ó:   a a€ ] tR t^t oRtRV 3R lltRtVtV ;t# )ÚWrongEncryptionPasswordzDException thrown if encryption could be handled but passwords wrong.c                óf   <€ \         \        T `  R P                  Vf   RMRV,           4      4       R# )zVGiven passwords could not decrypt office file{}, use option -p to specify the passwordNr   r   )r   r%   r   r   r    s   &&€r   r   Ú WrongEncryptionPassword.__init__   s,   ø€ ÜÔ% tÑ5Ødß‰V˜(Ò*‘B°°hµÓ?ö	Ar   r   r#   r   r   s   @@r   r%   r%      s   ù‡ € ÙN÷A÷ Ar   r%   c                   ó:   a a€ ] tR t^$t oRtRV 3R lltRtVtV ;t# )ÚMaxCryptoNestingReachedz^
Exception thrown if decryption is too deeply layered.

(...or decrypt code creates inf loop)
c                óf   <€ \         \        T `  R P                  Yf   RMRV,           4      4       R# )z?Encountered more than {} layers of encryption for office file{}Nr   r   )r   r)   r   r   )r   Ún_layersr!   r   s   &&&€r   r   Ú MaxCryptoNestingReached.__init__*   s,   ø€ ÜÔ% tÑ5ØMß‰V�HÒ$4™b¸#À½.ÓIö	Kr   r   r#   r   r   s   @@r   r)   r)   $   s   ù‡ € ñ÷
K÷ Kr   r)   N)r	   Ú
ValueErrorr   ÚImportErrorr   r   r%   r)   r   r   r   Ú<module>r/      sP   ðñô	�jô 	ô
N˜?¨Kô NôA ô AôA˜oô Aô	K˜oö 	Kr   