a fWcs@sdZddlmZededdlmZddlmZmZm Z edddd eZeddd d eZeddd d e Z dd l Z e d j Z edddd dddZd 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_keydes_encrypt_blockdes_encrypt_int_blockz1.7z1.8z!passlib.crypto.des.expand_des_key)Z deprecatedZremovedZ replacementz$passlib.crypto.des.des_encrypt_blockz(passlib.crypto.des.des_encrypt_int_blockNz>Qz1.6z*passlib.crypto.des.des_encrypt_int_block()cCs8t|tr*t|dkrt|}t|d}t||||S)Nr) isinstancebyteslenr_unpack_uint64r)keyinputZsaltroundsr5/usr/lib/python3.9/site-packages/passlib/utils/des.pymdes_encrypt_int_block#s    r)rr)__doc__warningsrDeprecationWarningZpasslib.utils.decorrZpasslib.crypto.desrrrstructStructunpackr rrrrrs6