ó ö 5Xc@sþdZddlmZedeƒddlmZddlmZmZm Z edddd d d ƒeƒZedddd d d ƒeƒZedddd d d ƒe ƒZ ddl Z e j dƒj Z edddd d dƒddd„ƒZdS(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|tƒrCt|ƒ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