o
    5hs                     @   s   d Z ddlmZ ede ddlmZ ddlmZmZm	Z	 edddd	eZeddd
d	eZedddd	e	Z	ddl
Z
e
djZedddd	dddZdS )zt
passlib.utils.des - DEPRECATED LOCATION, WILL BE REMOVED IN 2.0

This has been moved to :mod:`passlib.crypto.des`.
    )warnzthe 'passlib.utils.des' module has been relocated to 'passlib.crypto.des' as of passlib 1.7, and the old location will be removed in passlib 2.0)deprecated_function)expand_des_keydes_encrypt_blockdes_encrypt_int_blockz1.7z1.8z!passlib.crypto.des.expand_des_key)
deprecatedremovedreplacementz$passlib.crypto.des.des_encrypt_blockz(passlib.crypto.des.des_encrypt_int_blockNz>Qz1.6z*passlib.crypto.des.des_encrypt_int_block()   c                 C   s8   t | trt| dkrt| } t| d } t| |||S )N   r   )
isinstancebyteslenr   _unpack_uint64r   )keyinputsaltrounds r   e/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/passlib/utils/des.pymdes_encrypt_int_block#   s
   
r   )r   r
   )__doc__warningsr   DeprecationWarningpasslib.utils.decorr   passlib.crypto.desr   r   r   structStructunpackr   r   r   r   r   r   <module>   s8    