File: //lib/python3/dist-packages/cryptography/hazmat/primitives/__pycache__/constant_time.cpython-38.pyc
U
�e�]s � @ sj d dl mZmZmZ d dlZd dlZd dlmZ d dlm Z e
ed�rPdd� Zne�dej
� d d� ZdS )
� )�absolute_import�division�print_functionN)�utils)�lib�compare_digestc C s( t | t�rt |t�std��t�| |�S )N�a and b must be bytes.)�
isinstance�bytes� TypeError�hmacr ��a�b� r �N/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/constant_time.py�bytes_eq s r z�Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a release (2.7.7+) that supports hmac.compare_digest as soon as possible.c C s8 t | t�rt |t�std��t�| t| �|t|��dkS )Nr � )r r
r r Z#Cryptography_constant_time_bytes_eq�lenr
r r r r s ��)Z
__future__r r r r �warningsZcryptographyr Z+cryptography.hazmat.bindings._constant_timer �hasattrr �warnZPersistentlyDeprecated2018r r r r �<module> s
�