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 :  /usr/lib64/python2.7/site-packages/nacl/bindings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/nacl/bindings/crypto_aead.pyc
�
y�\c@`s^ddlmZmZmZddlmZddlmZm	Z	ddl
mZe	j�Z
e	j�Ze	j�Ze	j�Ze	j�ZeeZe	j�Ze	j�Ze	j�Ze	j�Ze	j�Z e eZ!e	j"�Z#e	j$�Z%e	j&�Z'e	j(�Z)e	j*�Z+e+e)Z,d�Z-d�Z.d�Z/d�Z0d	�Z1d
�Z2dS(i(tabsolute_importtdivisiontprint_function(t
exceptions(tffitlib(tensurec
C`s�tt|t�ddtj�t|�}t|tkdjt�dtj�tt|t�pk|dkddtj�tt|t�o�t|�t
kdjt
�dtj�tt|t�o�t|�tkdjt�dtj�|r
|}t|�}ntj
}d}|t}tjd�}tjd	|�}	tj|	|||||tj
||�	}
t|
dkd
dtj�tj|	|d�S(sP
    Encrypt the given ``message`` using the IETF ratified chacha20poly1305
    construction described in RFC7539.

    :param message:
    :type message: bytes
    :param aad:
    :type aad: bytes
    :param nonce:
    :type nonce: bytes
    :param key:
    :type key: bytes
    :return: authenticated ciphertext
    :rtype: bytes
    s Input message type must be bytestraisings&Message must be at most {0} bytes longs%Additional data must be bytes or Nones-Nonce must be a {0} bytes long bytes sequences+Key must be a {0} bytes long bytes sequenceisunsigned long long *sunsigned char[]sEncryption failed.N(Rt
isinstancetbytestexct	TypeErrortlent2crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAXtformatt
ValueErrortNonet+crypto_aead_chacha20poly1305_ietf_NPUBBYTESt*crypto_aead_chacha20poly1305_ietf_KEYBYTESRtNULLt(crypto_aead_chacha20poly1305_ietf_ABYTEStnewRt)crypto_aead_chacha20poly1305_ietf_encrypttCryptoErrortbuffer(tmessagetaadtnoncetkeytmlent_aadtaalentmxouttclent
ciphertexttres((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyRFsN
	

	
	
	
		c
C`s�tt|t�ddtj�t|�}t|tkdjt�dtj�tt|t�pk|dkddtj�tt|t�o�t|�t
kdjt
�dtj�tt|t�o�t|�tkdjt�dtj�|t}t
jd�}t
jd|�}|r5|}t|�}	nt
j}d	}	tj||t
j||||	||�	}
t|
d	kd
dtj�t
j||d	�S(sH
    Decrypt the given ``ciphertext`` using the IETF ratified chacha20poly1305
    construction described in RFC7539.

    :param ciphertext:
    :type ciphertext: bytes
    :param aad:
    :type aad: bytes
    :param nonce:
    :type nonce: bytes
    :param key:
    :type key: bytes
    :return: message
    :rtype: bytes
    s#Input ciphertext type must be bytesRs)Ciphertext must be at most {0} bytes longs%Additional data must be bytes or Nones-Nonce must be a {0} bytes long bytes sequences+Key must be a {0} bytes long bytes sequencesunsigned long long *sunsigned char[]isDecryption failed.N(RRR	R
RRt*_aead_chacha20poly1305_ietf_CRYPTBYTES_MAXRRRRRRRRRRt)crypto_aead_chacha20poly1305_ietf_decryptRR(R"RRRR!R RRRRR#((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyR%�sP
	

	
	

			c
C`s�tt|t�ddtj�t|�}t|tkdjt�dtj�tt|t�pk|dkddtj�tt|t�o�t|�t
kdjt
�dtj�tt|t�o�t|�tkdjt�dtj�|r
|}t|�}ntj
}d}t|�}|t}tjd�}tjd	|�}	tj|	|||||tj
||�	}
t|
dkd
dtj�tj|	|d�S(sQ
    Encrypt the given ``message`` using the "legacy" construction
    described in draft-agl-tls-chacha20poly1305.

    :param message:
    :type message: bytes
    :param aad:
    :type aad: bytes
    :param nonce:
    :type nonce: bytes
    :param key:
    :type key: bytes
    :return: authenticated ciphertext
    :rtype: bytes
    s Input message type must be bytesRs&Message must be at most {0} bytes longs%Additional data must be bytes or Nones-Nonce must be a {0} bytes long bytes sequences+Key must be a {0} bytes long bytes sequenceisunsigned long long *sunsigned char[]sEncryption failed.N(RRR	R
RRt-crypto_aead_chacha20poly1305_MESSAGEBYTES_MAXRRRt&crypto_aead_chacha20poly1305_NPUBBYTESt%crypto_aead_chacha20poly1305_KEYBYTESRRRRRt$crypto_aead_chacha20poly1305_encryptRR(RRRRRRRR R!R"R#((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyR)�sP
	

	
	
	
		c
C`s�tt|t�ddtj�t|�}t|tkdjt�dtj�tt|t�pk|dkddtj�tt|t�o�t|�t
kdjt
�dtj�tt|t�o�t|�tkdjt�dtj�|t}t
jd�}t
jd|�}|r5|}t|�}	nt
j}d	}	tj||t
j||||	||�	}
t|
d	kd
dtj�t
j||d	�S(sb
    Decrypt the given ``ciphertext`` using the "legacy" construction
    described in draft-agl-tls-chacha20poly1305.

    :param ciphertext: authenticated ciphertext
    :type ciphertext: bytes
    :param aad:
    :type aad: bytes
    :param nonce:
    :type nonce: bytes
    :param key:
    :type key: bytes
    :return: message
    :rtype: bytes
    s#Input ciphertext type must be bytesRs)Ciphertext must be at most {0} bytes longs%Additional data must be bytes or Nones-Nonce must be a {0} bytes long bytes sequences+Key must be a {0} bytes long bytes sequencesunsigned long long *sunsigned char[]isDecryption failed.N(RRR	R
RRt%_aead_chacha20poly1305_CRYPTBYTES_MAXRRRR'R(t#crypto_aead_chacha20poly1305_ABYTESRRRRt$crypto_aead_chacha20poly1305_decryptRR(R"RRRR!R RRRRR#((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyR,sP
	

	
	

			c
C`s�tt|t�ddtj�t|�}t|tkdjt�dtj�tt|t�pk|dkddtj�tt|t�o�t|�t
kdjt
�dtj�tt|t�o�t|�tkdjt�dtj�|r
|}t|�}ntj
}d}t|�}|t}tjd�}tjd	|�}	tj|	|||||tj
||�	}
t|
dkd
dtj�tj|	|d�S(s:
    Encrypt the given ``message`` using the long-nonces xchacha20poly1305
    construction.

    :param message:
    :type message: bytes
    :param aad:
    :type aad: bytes
    :param nonce:
    :type nonce: bytes
    :param key:
    :type key: bytes
    :return: authenticated ciphertext
    :rtype: bytes
    s Input message type must be bytesRs&Message must be at most {0} bytes longs%Additional data must be bytes or Nones-Nonce must be a {0} bytes long bytes sequences+Key must be a {0} bytes long bytes sequenceisunsigned long long *sunsigned char[]sEncryption failed.N(RRR	R
RRt3crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAXRRRt,crypto_aead_xchacha20poly1305_ietf_NPUBBYTESt+crypto_aead_xchacha20poly1305_ietf_KEYBYTESRRt)crypto_aead_xchacha20poly1305_ietf_ABYTESRRt*crypto_aead_xchacha20poly1305_ietf_encryptRR(RRRRRRRR R!R"R#((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyR1]sP
	

	
	
	
		c
C`s�tt|t�ddtj�t|�}t|tkdjt�dtj�tt|t�pk|dkddtj�tt|t�o�t|�t
kdjt
�dtj�tt|t�o�t|�tkdjt�dtj�|t}t
jd�}t
jd|�}|r5|}t|�}	nt
j}d	}	tj||t
j||||	||�	}
t|
d	kd
dtj�t
j||d	�S(sK
    Decrypt the given ``ciphertext`` using the long-nonces xchacha20poly1305
    construction.

    :param ciphertext: authenticated ciphertext
    :type ciphertext: bytes
    :param aad:
    :type aad: bytes
    :param nonce:
    :type nonce: bytes
    :param key:
    :type key: bytes
    :return: message
    :rtype: bytes
    s#Input ciphertext type must be bytesRs)Ciphertext must be at most {0} bytes longs%Additional data must be bytes or Nones-Nonce must be a {0} bytes long bytes sequences+Key must be a {0} bytes long bytes sequencesunsigned long long *sunsigned char[]isDecryption failed.N(RRR	R
RRt+_aead_xchacha20poly1305_ietf_CRYPTBYTES_MAXRRRR.R/R0RRRRt*crypto_aead_xchacha20poly1305_ietf_decryptRR(R"RRRR!R RRRRR#((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyR3�sP
	

	
	

			N(3t
__future__RRRtnaclRR
tnacl._sodiumRRtnacl.exceptionsRt*crypto_aead_chacha20poly1305_ietf_keybytesRt+crypto_aead_chacha20poly1305_ietf_nsecbytest+crypto_aead_chacha20poly1305_ietf_NSECBYTESt+crypto_aead_chacha20poly1305_ietf_npubbytesRt(crypto_aead_chacha20poly1305_ietf_abytesRt2crypto_aead_chacha20poly1305_ietf_messagebytes_maxR
R$t%crypto_aead_chacha20poly1305_keybytesR(t&crypto_aead_chacha20poly1305_nsecbytest&crypto_aead_chacha20poly1305_NSECBYTESt&crypto_aead_chacha20poly1305_npubbytesR't#crypto_aead_chacha20poly1305_abytesR+t-crypto_aead_chacha20poly1305_messagebytes_maxR&R*t+crypto_aead_xchacha20poly1305_ietf_keybytesR/t,crypto_aead_xchacha20poly1305_ietf_nsecbytest,crypto_aead_xchacha20poly1305_ietf_NSECBYTESt,crypto_aead_xchacha20poly1305_ietf_npubbytesR.t)crypto_aead_xchacha20poly1305_ietf_abytesR0t3crypto_aead_xchacha20poly1305_ietf_messagebytes_maxR-R2RR%R)R,R1R3(((s;/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_aead.pyt<module>s<		E	F	F	F	F

https://t.me/AnonymousX5 - 2025