ó
KÖVc           @` s`   d  d l  m Z m Z m Z d  d l Z d  d l m Z e e d  rS d   Z n	 d   Z d S(   i    (   t   absolute_importt   divisiont   print_functionN(   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(    (    sP   /usr/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.pyt   bytes_eq   s     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
   (    (    sP   /usr/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.pyR      s
     (	   t
   __future__R    R   R   R   t+   cryptography.hazmat.bindings._constant_timeR   t   hasattrR   (    (    (    sP   /usr/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.pyt   <module>   s
   