%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.12/test/support/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.12/test/support/__pycache__/hashlib_helper.cpython-312.pyc

�

���fs��H�ddlZddlZddlZ	ddlZdd�Zy#e$rdZY�wxYw)�Nc����������fd���S)a�Decorator raising SkipTest if a hashing algorithm is not available

    The hashing algorithm could be missing or blocked by a strict crypto
    policy.

    If 'openssl' is True, then the decorator checks that OpenSSL provides
    the algorithm. Otherwise the check falls back to built-in
    implementations. The usedforsecurity flag is passed to the constructor.

    ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS
    ValueError: unsupported hash type md4
    c�F���t�t�rn�jjd�}|�+�fd�}�jdz|_�j
|_n|j}t�|��}|�_�Stj������fd��}|S)N�
setUpClassc�"��t�|��y)N)�superr)�cls�
func_or_classs ��2/usr/lib/python3.12/test/support/hashlib_helper.pyrz:requires_hashdigest.<locals>.decorator.<locals>.setUpClasss����-��8�:�z.setUpClassc����	�rt�tj����ntj�����|i|��S#t$rt	j
d��d���wxYw)N)�usedforsecurityz
hash digest 'z' is not available.)�_hashlib�new�hashlib�
ValueError�unittest�SkipTest)�args�kwargs�
digestnamer	�opensslr
s  ����r
�wrapperz7requires_hashdigest.<locals>.decorator.<locals>.wrapper&so���
��x�3��L�L��_�M��K�K�
�O�L�
!�$�1�&�1�1��	�
��'�'�#�J�<�/B�C���
�s�7A�#A%)�
isinstance�type�__dict__�get�__qualname__�
__module__�__func__�classmethodr�	functools�wraps)r	rr�	decoratorrrr
s`  ����r
r#z&requires_hashdigest.<locals>.decorators�����m�T�*�&�/�/�3�3�L�A�J��!�;�*7�*D�*D�}�*T�
�'�(5�(@�(@�
�%�'�0�0�
�$�Y�z�%:�;�J�'1�M�$� � �	����	'�
	2�
(�
	2��r�)rrr
r#s```@r
�requires_hashdigestr%s����6�r)NT)r!rrr�ImportErrorr%r$rr
�<module>r's1�������
(��	���H��s��!�!

Zerion Mini Shell 1.0