+
    @i                     j   R t ^ RIt^ RIt^ RIt^ RIHt R t]P                  R8  de   ^ RItR t	R t
]P                  R8  g(   ]P                  R8  g   ]P                  ! 4       R8X  d   R tR tR	 tM	R
 tR tR tR tR tR tRR ltM#R t
R t	R tR tR t]P(                  tR tRR ltR tR# )zD
Common functions for providing cross-python version compatibility.
N)integer_typesc                X    W,          p\        V\        4      '       d   V# \        V4      # )z1Take index'th byte from string, return as integer)
isinstancer   ord)stringindexvals   && K/var/www/html/photoedit/myenv/lib/python3.14/site-packages/ecdsa/_compat.pystr_idx_as_intr
   
   s$    
-C#}%%
s8O    c                    \        V 4      # )#Cast the input into array of bytes.)bufferbuffer_objects   &r	   normalise_bytesr      s     m$$r   c                     V # N )rets   &r	   hmac_compatr          
r   Javac                2    \         P                  ! RRV 4      # ),Removes all whitespace from passed in string\s+ )resubtexts   &r	   remove_whitespacer!   #   s    66&"d++r   c                     \        V 4      # r   )strr   s   &r	   compat26_strr%   '   s    s8Or   c                 J    V ^ 8X  d   ^ # \        \        V 4      4      ^,
          # )    )lenbinr$   s   &r	   
bit_lengthr*   *   s    axs3x=1$$r   c                R    \         P                  ! RRV \         P                  R7      # r   r   r   )flagsr   r   UNICODEr   s   &r	   r!   r!   1   s    66&"d"**==r   c                     V # r   r   r$   s   &r	   r%   r%   5   s    Jr   c                "    V P                  4       # z8Return number of bits necessary to represent an integer.r*   r$   s   &r	   r*   r*   8   s    >>##r   c                 @    \         P                  ! \        V 4      4      # r   )binasciib2a_hexr%   r$   s   &r	   r6   r6   <   s    S 122r   c                      \        \        P                  ! V 4      4      #   \         d   p\	        R T,          4      hRp?ii ; i)base16 error: %sN	bytearrayr5   a2b_hex	Exception
ValueErrorr   es   & r	   r;   r;   ?   s>    	5X--c233 	5/!344	5s   ! A>Ac                    V '       g   ^ # VR8X  d   \        \        V 4      ^4      # VR8X  d    \        \        V RRR1,          4      ^4      # \        R4      h)zConvert bytes to an int.biglittleNz(Only 'big' and 'little' endian supported)intr6   r=   )r   	byteorders   &&r	   bytes_to_intrF   E   sO    ws|R(( ws4R4y)2..CDDr   c           
       a  Vf   \        S 4      pVR8X  d1   \        V 3R l\        \        ^ V^,          ^4      4       4       4      # VR8X  d(   \        V 3R l\        ^ V^,          ^4       4       4      # \	        R4      h)z Return number converted to bytesrA   c              3   D   <"   T F  pSV,	          ^,          x  K  	  R# 5i   Nr   .0ir   s   & r	   	<genexpr>int_to_bytes.<locals>.<genexpr>T   s!      +LaT!!+L    rB   c              3   D   <"   T F  pSV,	          ^,          x  K  	  R# 5irI   r   rK   s   & r	   rN   rO   X   s!      +BaT!!+BrP   z'Only 'big' or 'little' endian supported)byte_lengthr:   reversedranger=   r   lengthrE   s   f&&r	   int_to_bytesrW   O   s    > %F +3E!VaZ4K+L     +0FQJ+B   BCCr   c                     V # r   r   )datas   &r	   r   r   _   s    r   c                6    \        V 4      P                  R4      # )r   B)
memoryviewcastr   s   &r	   r   r   b   s    -(--c22r   c                     V # r   r   r$   s   &r	   r%   r%   f   r   r   c                R    \         P                  ! RRV \         P                  R7      # r,   r.   r   s   &r	   r!   r!   i   s    vvfb$bjj99r   c                      \        \        P                  ! \        V R 4      4      4      #   \         d   p\	        RT,          4      hRp?ii ; i)asciir8   Nr9   r>   s   & r	   r;   r;   m   sE    	5X--iW.EFGG 	5/!344	5s   (+ AAAc                "    V P                  4       # r2   r3   r$   s   &r	   r*   r*   y   s    ~~r   c                    Vf   \        V 4      p\        V \        4      '       g   \        V 4      p \        V P	                  WR7      4      # )zConvert integer to bytes.)rV   rE   )rR   r   rD   r:   to_bytesrU   s   &&&r	   rW   rW   }   s=    > %F#s##c(CVIJJr   c                8    \        V 4      pV^,           ^,          # )z9Return number of bytes necessary to represent an integer.r3   )r   rV   s   & r	   rR   rR      s    _FQJ1r   )   r'   )      )rg   rh      )NrA   )__doc__sysr   r5   sixr   r
   version_infoplatformr   r   systemr!   r%   r*   r6   r;   rF   rW   rD   
from_bytesrR   r   r   r	   <module>rq      s     	   f%
 	6!i'??&	,		%	>		$35ED 3:5 >>L Kr   