U
    çe¨]s  ã                   @   sj   d dl mZmZmZ d dlZd dlZd dlmZ d dlm	Z	 e
edƒrPdd„ Zne dej¡ d	d„ ZdS )
é    )Úabsolute_importÚdivisionÚprint_functionN)Úutils)ÚlibÚcompare_digestc                 C   s(   t | tƒrt |tƒstdƒ‚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ƒrt |tƒstdƒ‚t | t| ƒ|t|ƒ¡dkS )Nr   é   )r	   r
   r   r   Z#Cryptography_constant_time_bytes_eqÚlenr   r   r   r   r      s       ÿþ)Z
__future__r   r   r   r   ÚwarningsZcryptographyr   Z+cryptography.hazmat.bindings._constant_timer   Úhasattrr   ÚwarnZPersistentlyDeprecated2018r   r   r   r   Ú<module>   s   

ü