ó
Õ{PXc           @` 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
   