ó
/<õ\c           @` s   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  ro d   Z n e j d e j  d   Z d S(	   i    (   t   absolute_importt   divisiont   print_functionN(   t   utils(   t   libt   compare_digestc         C` s?   t  |  t  s  t  | t  r/ t d   n  t j |  |  S(   Ns   a and b must be bytes.(   t
   isinstancet   bytest	   TypeErrort   hmacR   (   t   at   b(    (    sK   lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.pyt   bytes_eq   s     sĄ   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` sW   t  |  t  s  t  | t  r/ t d   n  t j |  t |   | t |   d k S(   Ns   a and b must be bytes.i   (   R   R   R   R   t#   Cryptography_constant_time_bytes_eqt   len(   R
   R   (    (    sK   lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.pyR      s
     (   t
   __future__R    R   R   R	   t   warningst   cryptographyR   t+   cryptography.hazmat.bindings._constant_timeR   t   hasattrR   t   warnt   PersistentlyDeprecated2018(    (    (    sK   lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.pyt   <module>   s   
