�
�(�gs � �H � d dl Z d dlZd dlZ d dlZdd�Zy# e$ r dZY �w xY w)� 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� j j d� }|�+� fd�}� j dz |_ � j
|_ n|j }t �|� � }|� _ � S t j � � �� ��fd�� }|S )N�
setUpClassc �" |