5Xc@sdZddlmZededdlmZddlmZmZm Z edddd d d eZedddd d d eZedddd d d e Z ddl Z e j dj Z edddd d ddddZdS(st passlib.utils.des - DEPRECATED LOCATION, WILL BE REMOVED IN 2.0 This has been moved to :mod:`passlib.crypto.des`. i(twarnsthe '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(tdeprecated_function(texpand_des_keytdes_encrypt_blocktdes_encrypt_int_blockt deprecateds1.7tremoveds1.8t replacements!passlib.crypto.des.expand_des_keys$passlib.crypto.des.des_encrypt_blocks(passlib.crypto.des.des_encrypt_int_blockNs>Qs1.6s*passlib.crypto.des.des_encrypt_int_block()iicCsVt|trCt|dkr0t|}nt|d}nt||||S(Nii(t isinstancetbytestlenRt_unpack_uint64R(tkeytinputtsalttrounds((s5/usr/lib/python2.7/site-packages/passlib/utils/des.pytmdes_encrypt_int_block#s (t__doc__twarningsRtDeprecationWarningtpasslib.utils.decorRtpasslib.crypto.desRRRtstructtStructtunpackR R(((s5/usr/lib/python2.7/site-packages/passlib/utils/des.pyts