� H�g>���`�dZddlmZddlZddlZeje��Z ddlmZ e j dkre� d��dZ n #e $rdZ YnwxYwddl Z ddlZddlmZddlmZ ddlmZn #e $rdZYnwxYwdd lmZdd lmZmZmZmZmZmZdd lmZm Z m!Z!m"Z"m#Z#dd l$m%Z%gd �Z&dZ'dZ(gd�Z)dddddddddddddddd�Z*d�Z+iZ,d�Z-d�Z. dId"�Z/e,j0e/_1dJd#�Z2Gd$�d%e��Z3d a4e5gd&���Z6dKd'�Z7eej8�9d(����r e7��ed)�ed*��D����Z:ed+�ed*��D����Z;dLd,�Z<dMd-�Z=ed.��j>Z?dMd/�Zej8�9d0��pd1Z@e"re@d2vrdd3lAmBZBd4�ZCd5�ZDd6ZEn8e@d7vrddlmZdd8lmFZFeFd9kZGiZHd:�ZCd;ZEne@d<vsJ�dd=lImJZKdd>lmLZLd?�ZCd@�ZDdAZEe@eEkrdxZZ dB�erdCnde rdDnddEeEzfD��ZMdCeMvrdFZNdSdDeMvrdGZNdSdHZNdS)Nzlpasslib.crypto.digest -- crytographic helpers used by the password hashes in passlib .. versionadded:: 1.7 �)�divisionN)� pbkdf2_hmac�hashlibz*ignoring pure-python hashlib.pbkdf2_hmac())�Struct)�warn)�exc)� join_bytes� to_native_str�join_byte_values�to_bytes� SequenceMixin�as_bool)�irange� int_types�unicode_or_bytes_types�PY3� error_from)�memoized_property)� lookup_hash�HashInfo�norm_hash_name� compile_hmac�pbkdf1rl��l����) )�md2r)�md5r)�sha1zsha-1)�sha224zsha-224zsha2-224)�sha256zsha-256zsha2-256)�sha384zsha-384zsha2-384)�sha512zsha-512zsha2-512)�blake2bzblake-2b)�blake2szblake-2s)�md4r#)� ripemd160z ripemd-160�ripemd)�@�)� r&)�r&)�r&)�r&)�0r')r+�)r(�)r,�h)r&�H)r)�)r!r"r#rrrrr�sha3_224�sha3_256�sha3_384�sha3_512r �shake128�shake256c��i}ttjtdg��z��D]'}t |��}|j|jf||j<�(|S)z� internal helper used to generate ``_fallback_info`` dict. currently only run manually to update the above list; not invoked at runtime. r#)�sortedr�algorithms_available�setr� digest_size� block_size�name)�out�alg�infos �e/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/passlib/crypto/digest.py�_gen_fallback_inforCzsY�� �C��g�2�S�%��\�\�A�B�B�=�=���3�����*�D�O�<��D�I��� �J�c���|}t|t��st|dd��}tjdd|��������}|�d��r)|dd�}|�d��r |dd �}d �}||��}|r|Stj d |��}|rg|� d d d��\}}}|r||z }|}|r|d|zz }|r|dz }||z }||��}|r|St� d|||��n5|}|� dd��}t�d|||��||fS)aA internal helper used by :func:`lookup_hash` -- normalize arbitrary hash name to hashlib format. if name not recognized, returns dummy record and issues a warning. :arg name: unnormalized name :returns: tuple with 2+ elements: ``(hashlib_name, iana_name|None, ... 0+ aliases)``. zutf-8z hash namez[_ /]�-zscram-�Nz-plus�����c�*�tD] }||vr|cS� dS�N)�_known_hash_names)r>�rows rB� check_tablez&_get_hash_aliases.<locals>.check_table�s2��$� � �C��s�{�{�� � � �� � rDz8(?i)^(?P<name>[a-z]+)-?(?P<rev>\d)?-?(?P<size>\d{3,4})?$r>�rev�size�_z0normalizing unrecognized hash name %r => %r / %rz;normalizing unrecognized hash name and format %r => %r / %r)� isinstance�strr �re�sub�strip�lower� startswith�endswith�match�group�logrA�replace�warning) r>�origrM�result�m� iana_namerNrO� hashlib_names rB�_get_hash_aliasesrc�s��� �D� �d�C� � �9��T�7�K�8�8�� �6�'�3�� � � � � 2� 2� 4� 4� 5� 5�D� ���x� � ���A�B�B�x�� �=�=�� !� !� �����9�D�����[�� � �F� ��� � ��L�d�S�S�A��3� !�w�w�v�u�f�=�=�� �3�� � � �� �I� � � � !� ��t�� #�I�� $���#� � �D� �L���Y�'�'�� � ��M� ���C��|�Y� 0� 0� 0� 0� � ��|�|�C��-�-� � � � �Q��,� � 3� 3� 3� �� "�"rDc�8�����d��s*�dvr& tt���S#t$rYnwxYwtj� ��d��d ��fd� }�|_d|_d�z|_|S#t$rYnwxYw�dkrdd l m }|Sd S) a internal helper used by :func:`lookup_hash` -- lookup hash constructor by name :arg name: name (normalized to hashlib format, e.g. ``"sha256"``) :returns: hash constructor, e.g. ``hashlib.sha256()``; or None if hash can't be located. rP)�new� algorithmsrDc�����|��SrJ�)�msgr>� new_ssl_hashs ��rB�constz_get_hash_const.<locals>.const�s����<��c�*�*� *rDrzMwrapper for hashlib.new(%r), generated by passlib.crypto.digest.lookup_hash()r#r)r#N�rD) rW�getattrr�AttributeErrorre�__name__� __module__�__doc__� ValueError�passlib.crypto._md4r#)r>rkr#rjs` @rB�_get_hash_constrt�s���� �?�?�3� � ��D�0E�$E�$E� ��7�D�)�)� )��� � � � �D� �����;�L��� �T�3����  +� +� +� +� +� +� +����$���L�OS�T�� �� �� � � � � �� ���� �u�}�}�+�+�+�+�+�+�� � �4s�2� ?�?� A<�< B �B FTc��� �t} ||S#ttf$rYnwxYw|rd}d}t|t��rat |��}|d� � sJ�� |krt � |���}|||<|St� ��}|rtr� tvrd � fd� }n|t|t��r|St|��r@|}t |��j ��}|d� t� ��}|�n||urnd}ntj|dd ���t|||� ��}|�|||<|r2|D]/� � r+|�� ��d|fvs Jd � z���||� <�0|S) af Returns a :class:`HashInfo` record containing information about a given hash function. Can be used to look up a hash constructor by name, normalize hash name representation, etc. :arg digest: This can be any of: * A string containing a :mod:`!hashlib` digest name (e.g. ``"sha256"``), * A string containing an IANA-assigned hash name, * A digest constructor function (e.g. ``hashlib.sha256``). Case is ignored, underscores are converted to hyphens, and various other cleanups are made. :param required: By default (True), this function will throw an :exc:`~passlib.exc.UnknownHashError` if no hash constructor can be found, or if the hash is not actually available. If this flag is False, it will instead return a dummy :class:`!HashInfo` record which will defer throwing the error until it's constructor function is called. This is mainly used by :func:`norm_hash_name`. :param return_unknown: .. deprecated:: 1.7.3 deprecated, and will be removed in passlib 2.0. this acts like inverse of **required**. :returns HashInfo: :class:`HashInfo` instance containing information about specified digest. Multiple calls resolving to the same hash should always return the same :class:`!HashInfo` instance. FTr��requiredrDc�(��td�z���)Nz4%r disabled for fips by passlib set_mock_fips_mode())rr)�sourcer>s �rBrkzlookup_hash.<locals>.constAs��� �!W�Z^�!^�_�_�_rDNzdigest name or constructor�digest)rk�namesrwz%r already in cacherl)�_hash_info_cache�KeyError� TypeErrorrQrrcrrt�mock_fips_mode�_fips_algorithmsr�callabler>r�ExpectedTypeError�get) rz�return_unknownrw�cache� cache_by_name� name_listrArk� other_constr>s @rBrr�s!���L �E� ��V�}��� �i� � � � � �� ���� �����M��&�0�1�1�3T�%�f�-�-� ���|��� � �t� �6�>�>��t�h�7�7�7�D� �E�&�M��K� ��%�%�� � `�^� `��4D�(D�(D� `� `� `� `� `� `�� �F�H� %� %�T�� � �&� � �T���%�e�e�g�g�l�3�3� ���|��%�d�+�+� � � � � �E� !� !� � "�M�M��#�F�,H�(�S�S�S� �%�y�8� D� D� D�D� ����e� ��#�� #� #�D�� #��y�y����4��,�6�6�6�8M�PT�8T�6�6�6�"��d� �� �Ks ��&�&c���t|d���}|jr"td|jztj��|dkr|jS|dkr|jStd|�����)a<Normalize hash function name (convenience wrapper for :func:`lookup_hash`). :arg name: Original hash function name. This name can be a Python :mod:`~hashlib` digest name, a SCRAM mechanism name, IANA assigned hash name, etc. Case is ignored, and underscores are converted to hyphens. :param format: Naming convention to normalize to. Possible values are: * ``"hashlib"`` (the default) - normalizes name to be compatible with Python's :mod:`!hashlib`. * ``"iana"`` - normalizes name to IANA-assigned hash function name. For hashes which IANA hasn't assigned a name for, this issues a warning, and then uses a heuristic to return a "best guess" name. :returns: Hash name, returned as native :class:`!str`. Frvznorm_hash_name(): r�ianazunknown format: ) r�unknownr� error_textr�PasslibRuntimeWarningr>rarr)r>�formatrAs rBrrssw��0 �t�e� ,� ,� ,�D� �|�P� � !�D�O� 3�S�5N�O�O�O� �����y�� �6� � ��~���j���9�:�:�:rDc��eZdZdZdZdZdZdZdZdZ dZ dZ d d�Z d�Z d�Zed ���Zed ���Zed ���ZdS) ra� Record containing information about a given hash algorithm, as returned :func:`lookup_hash`. This class exposes the following attributes: .. autoattribute:: const .. autoattribute:: digest_size .. autoattribute:: block_size .. autoattribute:: name .. autoattribute:: iana_name .. autoattribute:: aliases .. autoattribute:: supported This object can also be treated a 3-element sequence containing ``(const, digest_size, block_size)``. NrhFTc������|dx��_|d�_|dd��_���fd�}|�(|tvrd�z}n d�z}d�_||��dS |��}nj#t $r]}d t |�����vrd �z}nd ��d t|��j �d |�d�}||��Yd}~dSd}~wwxYw|�_ |j �_ |j �_ t|�����|j krtd�jz���|j�jkr/t!d�j�d|�d|j��t"j��dSdS)a initialize new instance. :arg const: hash constructor :arg names: list of 2+ names. should be list of ``(name, iana_name, ... 0+ aliases)``. names must be lower-case. only iana name may be None. r��Nc����d��fd� }�r |�� ��_|�_ t�\�_�_dS#t $rYdSwxYw)zc helper that installs stub constructor which throws specified error <msg>. rDc�.��tj�����rJ)r�UnknownHashError)ryrir>s ��rBrkz8HashInfo.__init__.<locals>.use_stub_const.<locals>.const�s����*�3��5�5�5rDzshouldn't get hereNrl)r�rk�_fallback_infor<r=r})rirkr>rw�selfs` ���rB�use_stub_constz)HashInfo.__init__.<locals>.use_stub_const�s����� 6� 6� 6� 6� 6� 6� 6�� ,������+�!�D�O��D�J� �4B�4�4H�1�� �$�/�/�/��� � � ���� ���s�A� A�Azunsupported hash: %rzunknown hash: %rTzdisabled for fipsz%r hash disabled for fipszinternal error in z constructor (z: �)z"%r constructor failed sanity checkzinconsistent digest name: z resolved to z, which reports name as )r>ra�aliasesrKr�rrrRrV�typerorkr<r=�lenrz� RuntimeErrorrrr�) r�rkr{rwr�ri�hash�errr>s ` ` @rB�__init__zHashInfo.__init__�s������!��8�#��t�y��q�����Q�R�R�y�� � � � � � � � �& �=��)�)�)�,�t�3���(�4�/��#�� � �N�3� � � � �F� ��5�7�7�D�D��� � � � #�c�#�h�h�n�n�&6�&6�6�6�1�D�8���7�GK�d�d�D�QT�I�I�L^�L^�L^�`c�`c�`c�d�� �N�3� � � � �F�F�F�F�F����� ������ ��+����/��� �t�{�{�}�}� � ��!1� 1� 1��C�d�i�O�P�P� P� �9�� � !� !� �D��)�)�)�U�U�U�D�I�I�/�03�0I� K� K� K� K� K� "� !s�! A,�, C�6AC�Cc�8�d|j�d|j�d|j�d�S)Nz <lookup_hash(z): digest_size=z block_size=r�)r>r<r=�r�s rB�__repr__zHashInfo.__repr__s*���� � � �4�+�+�+�T�_�_�_�>� >rDc�*�|j|j|jfSrJ)rkr<r=r�s rB� _as_tuplezHashInfo._as_tuples���z�4�+�T�_�<�<rDc��|jduS)zy whether hash is available for use (if False, constructor will throw UnknownHashError if called) N)r�r�s rB� supportedzHashInfo.supporteds�� ��$�&�&rDc�j�tsdS t|jddd��dS#t$rYdSwxYw)z5helper to detect if hash is supported by fastpbkdf2()N�p�sr�TF)�_fast_pbkdf2_hmacr>rrr�s rB�supported_by_fastpbkdf2z HashInfo.supported_by_fastpbkdf2$sS��!� ��4� � �d�i��t�Q� 7� 7� 7��4��� � � ��5�5� ���� �$� 2�2c�j�tsdS t|jddd��dS#t$rYdSwxYw)z>helper to detect if hash is supported by hashlib.pbkdf2_hmac()Nr�r�r�TF)�_stdlib_pbkdf2_hmacr>rrr�s rB�supported_by_hashlib_pbkdf2z$HashInfo.supported_by_hashlib_pbkdf20sS��#� ��4� � �� �4��q� 9� 9� 9��4��� � � ��5�5� ���r��T)rorp� __qualname__rqr>rar�rkr<r=r�r�r�r�r�rr�r�r�rhrDrBrr�s���������* �D��I��G� �E��K��J��J��G�)-�GK�GK�GK�GK�X>�>�>�=�=�=��'�'���'�� � ��� �� � ��� � � rDr) rrrrr r2r3r4r5� shake_128� shake_256c�<�|at���dS)zW UT helper which monkeypatches lookup_hash() internals to replicate FIPS mode. N)rr� clear_cache)�enables rB�_set_mock_fips_moder�_s!�� �N��������rD�PASSLIB_MOCK_FIPS_MODEc#� K�|] }|dz V�� dS)�\Nrh��.0�xs rB� <genexpr>r�q�&����=�=�A�a�$�h�=�=�=�=�=�=rD�c#� K�|] }|dz V�� dS)�6Nrhr�s rBr�r�rr�rDc��� � �t|��}|\}}}|dks Jd���t|t��st|d���}t |��}||kr||�����}|}||kr |d||z zz }||�t����j� ||�t����j� |r� � fd�}n� � fd�}||_ |S)a� This function returns an efficient HMAC function, hardcoded with a specific digest & key. It can be used via ``hmac = compile_hmac(digest, key)``. :arg digest: digest name or constructor. :arg key: secret key as :class:`!bytes` or :class:`!unicode` (unicode will be encoded using utf-8). :param multipart: request a multipart constructor instead (see return description). :returns: By default, the returned function has the signature ``hmac(msg) -> digest output``. However, if ``multipart=True``, the returned function has the signature ``hmac() -> update, finalize``, where ``update(msg)`` may be called multiple times, and ``finalize() -> digest_output`` may be repeatedly called at any point to calculate the HMAC digest so far. The returned object will also have a ``digest_info`` attribute, containing a :class:`lookup_hash` instance for the specified digest. This function exists, and has the weird signature it does, in order to squeeze as provide as much efficiency as possible, by omitting much of the setup cost and features of the stdlib :mod:`hmac` module. r)zblock size too small�key��param�c�8���������fd�}�j|fS)z)generated by compile_hmac(multipart=True)c������}|�������|���SrJ��updaterz)�outer� _outer_copy�inners ��rB�finalizez,compile_hmac.<locals>.hmac.<locals>.finalize�s6���#� � � ��� � �U�\�\�^�^�,�,�,��|�|�~�~�%rD)r�)r�r�� _inner_copyr�s @��rB�hmaczcompile_hmac.<locals>.hmac�s<�����K�M�M�E� &� &� &� &� &� &��<��)� )rDc�������}|�|�����}|�|�����|���S)zgenerated by compile_hmac()r�)rir�r�r�r�s ��rBr�zcompile_hmac.<locals>.hmac�sS����K�M�M�E� �L�L�� � � ��K�M�M�E� �L�L������ (� (� (��<�<�>�>� !rD) rrQ�bytesr r�rz� translate� _TRANS_36�copy� _TRANS_5C� digest_info) rzr�� multipartr�rkr<r=�klenr�r�r�s @@rBrrtsI����@�f�%�%�K�%0�"�E�;� � �� � � �3� � � � �c�5� !� !�)��s�%�(�(�(�� �s�8�8�D� �j����e�C�j�j���!�!���� �j��� �w�*�t�+�,�,���%�� � �i�0�0�1�1�6�K��%�� � �i�0�0�1�1�6�K��"� *� *� *� *� *� *� *� "� "� "� "� "� "�#�D�� �KrDc�(�t|��\}}}t|d���}t|d���}t|t��st j|dd���|dkrt d���|�|}n[t|t��st j|d d ���|d krt d ���||krt d |�d|�����||z}t|��D]} ||�����}� |d|�S)a;pkcs#5 password-based key derivation v1.5 :arg digest: digest name or constructor. :arg secret: secret to use when generating the key. may be :class:`!bytes` or :class:`unicode` (encoded using UTF-8). :arg salt: salt string to use when generating key. may be :class:`!bytes` or :class:`unicode` (encoded using UTF-8). :param rounds: number of rounds to use to generate key. :arg keylen: number of bytes to generate (if omitted / ``None``, uses digest's native size) :returns: raw :class:`bytes` of generated key .. note:: This algorithm has been deprecated, new code should use PBKDF2. Among other limitations, ``keylen`` cannot be larger than the digest size of the specified hash. �secretr��salt�int�roundsr��rounds must be at least 1N� int or None�keylenrzkeylen must be at least 0z keylength too large for digest: z > ) rr rQrrr�rrrrz) rzr�r�r�r�rkr<r=�blockrPs rBrr�sD��<&1��%8�%8�"�E�;� ��f�H� -� -� -�F� �D�� '� '� '�D� �f�i� (� (�=��#�F�E�8�<�<�<� ��z�z��4�5�5�5��~���� �� � *� *�0��#�F�M�8�D�D�D� �!����4�5�5�5� �+� � ��j� �&�&�+�+�/�0�0� 0� �T�M�E� �F�^�^�&�&����e� � �#�#�%�%��� ��&��>�rDz>Lc������ �t|d���}t�d����t|��}|j}t�t��st j�dd����dkrtd���|�|}n@t|t��st j|d d ���|dkrtd ���||zdz |z}|tkrtd ���|j rt|j |��|��S|j rt|j |��|��St||��� t!|���t#�� ��fd �t%d|dz��D����d|�S)apkcs#5 password-based key derivation v2.0 using HMAC + arbitrary digest. :arg digest: digest name or constructor. :arg secret: passphrase to use to generate key. may be :class:`!bytes` or :class:`unicode` (encoded using UTF-8). :arg salt: salt string to use when generating key. may be :class:`!bytes` or :class:`unicode` (encoded using UTF-8). :param rounds: number of rounds to use to generate key. :arg keylen: number of bytes to generate. if omitted / ``None``, will use digest's native output size. :returns: raw bytes of generated key .. versionchanged:: 1.7 This function will use the first available of the following backends: * `fastpbk2 <https://pypi.python.org/pypi/fastpbkdf2>`_ * :func:`hashlib.pbkdf2_hmac` (only available in py2 >= 2.7.8, and py3 >= 3.4) * builtin pure-python backend See :data:`passlib.crypto.digest.PBKDF2_BACKENDS` to determine which backend(s) are in use. r�r�r�r�r�r�r�Nr�r�zkeylen must be at least 1zkeylen too long for digestc 3�d�K�|]*}����t|��z�����V��+dSrJ)� _pack_uint32)r��i� calc_block� keyed_hmacr�r�s ����rBr�zpbkdf2_hmac.<locals>.<genexpr>csZ������� � � �:�z�z�$��a���*@�A�A�6�J�J������rD)r rr<rQrrr�rr� MAX_UINT32� OverflowErrorr�r�r>r�r�r�_get_pbkdf2_looperr r) rzr�r�r�r�r�r<� block_countr�r�s `` @@rBrrs�������H�f�H� -� -� -�F� �D�� '� '� '�D��f�%�%�K��)�K� �f�i� (� (�=��#�F�E�8�<�<�<� ��z�z��4�5�5�5��~���� �� � *� *�6��#�F�M�8�D�D�D� �!����4�5�5�5��K�'�!�+� �;�K��Z����8�9�9�9��*�Q� ��!1�6�4���P�P�P� �.�S�"�;�#3�V�T�6�6�R�R�R��f�f�-�-�J�$�K�0�0�J� ����������;��?�+�+���� � ��v�g� �rD�PASSLIB_PBKDF2_BACKEND�any)r�� from-bytes)�partialc�,�tt|��SrJ)r��_pbkdf2_looper�r<s rBr�r�rs���~�{�3�3�3rDc���tj}d}|||��}t|dz ��D]}||��}||||��z}�|�||��S)zk py3-only implementation of pbkdf2 inner loop; uses 'int.from_bytes' + integer XOR �bigr�)r�� from_bytesrr )r<r�rzr�r��BIG�accumrPs rBr�r�usw�� �^� ���� �6�3�'�'����� �#�#� -� -�A��Z��'�'�F� �Z�Z���,�,� ,�E�E��~�~�k�3�/�/�/rDr�)r��unpackr�)�sys_bitsr&c ��� t|S#t$rYnwxYwtr|dzs |dz }d|z}n9|dzs"tr|dz }d|z}|dz }n|dz }d|z}ntd|z���t |��}t |d �d �t|��D����d �d �t|��D����� ��}d jdi|��}t|��D] }|d||fzz }� |djdi|��z }t|dd��}t t|���}t ��} t||| ��| d} || _ | t|<| S)a) We want a helper function which performs equivalent of the following:: def helper(keyed_hmac, digest, rounds): accum = digest for _ in irange(rounds - 1): digest = keyed_hmac(digest) accum ^= digest return accum However, no efficient way to implement "bytes ^ bytes" in python. Instead, using approach where we dynamically compile a helper function based on digest size. Instead of a single `accum` var, this helper breaks the digest into a series of integers. It stores these in a series of`accum_<i>` vars, and performs `accum ^= digest` by unpacking digest and perform xor for each "accum_<i> ^= digest_<i>". this keeps everything in locals, avoiding excessive list creation, encoding or decoding, etc. :param digest_size: digest size to compile for, in bytes. (must be multiple of 4). :return: helper function with call signature outlined above. ��z=%dQz=%dQIr�r�z=%dIzunsupported digest size: %dz, c3� K�|] }d|zV�� dS)zacc_%dNrh�r�r�s rBr�z%_get_pbkdf2_looper.<locals>.<genexpr>�s&���� E� E�!��A�� E� E� E� E� E� ErDc3� K�|] }d|zV�� dS)zdig_%dNrhrs rBr�z%_get_pbkdf2_looper.<locals>.<genexpr>�s&����!F�!F�1�(�Q�,�!F�!F�!F�!F�!F�!FrD)r<� accum_vars� digest_varsa def helper(keyed_hmac, digest, rounds): '''pbkdf2 loop helper for digest_size={digest_size}''' unpack_digest = struct.unpack {accum_vars} = unpack_digest(digest) for _ in irange(1, rounds): digest = keyed_hmac(digest) {digest_vars} = unpack_digest(digest) z acc_%d ^= dig_%d z% return struct.pack({accum_vars}) z9<generated by passlib.crypto.digest._get_pbkdf2_looper()>�exec)r�struct�helperTrh) � _looper_cacher}� _have_64_bit�NotImplementedErrorr�dict�joinrr��compile�eval� __source__) r<�count�fmtr�tdictryr��code�gdict�ldictrs rBr�r��s��< � ��-� -��� � � � �D� ���� � S� �c� 1� S� �A�%�E��5�.�C�C��s�"� S�� %�$��)����o���� ���%��)���u�n���&�&C�k�&Q�R�R� R������ �#��y�y� E� E�v�e�}�}� E� E� E�E�E�� � �!F�!F��u� � �!F�!F�!F�F�F� � � ���J� ����������� >� >�A� �4��1�v�=� =�F�F� �G�@�G�P�P�%�P�P�P�� �v�Z�\b�c�c���F�6�2�2�2������ �T�5�%� � � ��x��� '� &�F� � &,� �k�"�� s � � �r�)r��hexlify)r)� int_to_bytesc��tSrJ)r�r�s rBr�r��s���rDc���t}t||��d��}t|dz ��D])}||��}|t||��d��z}�*t|t |����S)Nr)r�)�_hexlifyr�rrr�)r�rzr�rr�rPs rBr�r�s|�����G�G�F�O�O�R�(�(����� �#�#� .� .�A��Z��'�'�F� �S������"�-�-� -�E�E��E�3�v�;�;�/�/�/rDrc��g|]}|�|��Srhrh)r��bs rB� <listcomp>rs.������� �1���rD� fastpbkdf2z hashlib-sslzbuiltin-r�gffffff�?r�)FT)rr�)FrJ)Orq� __future__rr�logging� getLoggerror[rr�rp�debug� ImportErrorrS�osrr�warningsrrr��passlibr� passlib.utilsr r r r r r�passlib.utils.compatrrrrr�passlib.utils.decorr�__all__r�� MAX_UINT64rKr�rCr|rcrtr�clearr�rrrr;r�r��environr�r�r�rr�packr��_force_backend� functoolsr�r�r��_builtin_backendr�r r�binasciirrr�PBKDF2_BACKENDS�PBKDF2_SPEED_FACTORrhrDrB�<module>r5s����� ��������������'�g�'��1�1�� �:�:�:�:�:�:��%��2�2� � � �>�?�?�?�"���������������� � � � � � � � ��������������;�;�;�;�;�;�;��������������������1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�[�[�[�[�[�[�[�[�[�[�[�[�[�[�1�1�1�1�1�1� � � ��&� �� �����H�� � � �����������!���( � � ���=#�=#�=#�@-�-�-�b04�s�s�s�s�l+�0� �� ;� ;� ;� ;�Fd�d�d�d�d�}�d�d�d�`�� �3�������(���� �7�2�:�>�>�2� 3� 3�4�4������� � �=�=������=�=�=� =� =� � � �=�=������=�=�=� =� =� �K�K�K�K�`9�9�9�9�~�v�d�|�|� � �a�a�a�a�P���� 8�9�9�B�U���Z!�>�2� 2� 2�!�!�!�!�!�!�4�4�4� 0� 0� 0�$����6�6�6�������&�&�&�&�&�&���N�L��M�d�d�d�L ��� �/� /� /� /� /� -�,�,�,�,�,�*�*�*�*�*�*����0�0�0�!���%�%�%�.2�2��+���%�/�L�L�4�(�2�M�M�d��!�!�������?�"�"������o�%�%��������s#�(A � A�A�-A4�4A>�=A>
Memory