%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyo

�
�֫[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(Nsunsigned char[](Rtnewt.crypto_secretstream_xchacha20poly1305_KEYBYTESRt,crypto_secretstream_xchacha20poly1305_keygentbuffer(tkeybuf((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyR	,s
	
t+crypto_secretstream_xchacha20poly1305_statecB`s eZdddgZd�ZRS(tstatebuftrawbufttagbufcC`s+tjdt�|_d|_d|_dS(Nsunsigned char[](RRt0crypto_secretstream_xchacha20poly1305_STATEBYTESR
tNoneRR(tself((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyt__init__As
	(t__name__t
__module__t	__slots__R(((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/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(NsBState 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((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyRLs&



	c	C`sdtt|t�ddtj�tt|t�ddtj�tt|�tkddtj�t|dkp{t|t�ddtj�t|�t
}|jdks�t|j�|kr�tj
d|�|_n|dkr�tj}d}nt|�}tj|j|jtj|t|�|||�}t|dkddtj�tj|j|�S(	NsBState must be a crypto_secretstream_xchacha20poly1305_state objectRsMessage is not bytessMessage is too longs%Additional data must be bytes or Nonesunsigned char[]isUnexpected failure(RRRRRRRt6crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAXRRt,crypto_secretstream_xchacha20poly1305_ABYTESRRRtNULLRt*crypto_secretstream_xchacha20poly1305_pushR
R R
(R!tmtadttagtclentadlenR$((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyR(us8


$			cC`s�tt|t�ddtj�tt|t�ddtj�tt|�tkddtj�tt|t�ddtj�tt|�t	kddtj�|j
dkr�tj
d�|_
ntj|j||�}t|dkd	dtj�dS(
NsBState must be a crypto_secretstream_xchacha20poly1305_state objectRsHeader must be a bytes sequencesInvalid header lengthsKey must be a bytes sequencesInvalid key lengthsunsigned char *isUnexpected failure(RRRRRRRRRRRRRRRt/crypto_secretstream_xchacha20poly1305_init_pullR
R (R!theaderR"R$((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyR.�s2




c	C`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(NsBState 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 failure(RRRRRRRRRRR&R%RRRR'Rt*crypto_secretstream_xchacha20poly1305_pullR
R R
tint(R!tcR*tmlenR-R$((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyR0�sR



	

$		cC`s3tt|t�ddtj�tj|j�dS(NsBState must be a crypto_secretstream_xchacha20poly1305_state objectR(RRRRRRt+crypto_secretstream_xchacha20poly1305_rekeyR
(R!((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyR41s


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RRR(R.R0R4(((sX/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/bindings/crypto_secretstream.pyt<module>s(		,<	0L

Zerion Mini Shell 1.0