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_kx.pyc
�
y�\c@`s�ddlmZmZmZddlmZddlmZm	Z	ddl
mZddddd	d
dgZe	j
�Ze	j�Ze	j�Ze	j�Zd�Zd
�Zd�Zd�ZdS(i(tabsolute_importtdivisiontprint_function(t
exceptions(tffitlib(tensuretcrypto_kx_keypairtcrypto_kx_client_session_keystcrypto_kx_server_session_keystcrypto_kx_PUBLIC_KEY_BYTEStcrypto_kx_SECRET_KEY_BYTEStcrypto_kx_SEED_BYTEStcrypto_kx_SESSION_KEY_BYTEScC`svtjdt�}tjdt�}tj||�}t|dkddtj�tj	|t�tj	|t�fS(s�
    Generate a keypair.
    This is a duplicate crypto_box_keypair, but
    is included for api consistency.
    :return: (public_key, secret_key)
    :rtype: (bytes, bytes)
    sunsigned char[]isKey generation failed.traising(
RtnewR
RRRRtexctCryptoErrortbuffer(t
public_keyt
secret_keytres((s9/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_kx.pyR&scC`s�tjdt�}tjdt�}tt|t�oEt|�tkdj	t�dt
j�tj
|||�}t|dkddt
j�tj|t�tj|t�fS(sg
    Generate a keypair with a given seed.
    This is functionally the same as crypto_box_seed_keypair, however
    it uses the blake2b hash primitive instead of sha512.
    It is included mainly for api consistency when using crypto_kx.
    :param seed: random seed
    :type seed: bytes
    :return: (public_key, secret_key)
    :rtype: (bytes, bytes)
    sunsigned char[]s+Seed must be a {0} byte long bytes sequenceRisKey generation failed.(RRR
RRt
isinstancetbytestlenRtformatRt	TypeErrorRtcrypto_kx_seed_keypairRR(tseedRRR((s9/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_kx.pyR7s	
c	C`s-tt|t�o!t|�tkdjt�dtj�tt|t�o[t|�tkdjt�dtj�tt|t�o�t|�tkdjt�dtj�t	j
dt�}t	j
dt�}tj
|||||�}t|dkddtj�t	j|t�t	j|t�fS(s+
    Generate session keys for the client.
    :param client_public_key:
    :type client_public_key: bytes
    :param client_secret_key:
    :type client_secret_key: bytes
    :param server_public_key:
    :type server_public_key: bytes
    :return: (rx_key, tx_key)
    :rtype: (bytes, bytes)
    s9Client public key must be a {0} bytes long bytes sequenceRs9Client secret key must be a {0} bytes long bytes sequences9Server public key must be a {0} bytes long bytes sequencesunsigned char[]is%Client session key generation failed.(RRRRR
RRRRRRR
RRRR(tclient_public_keytclient_secret_keytserver_public_keytrx_keyttx_keyR((s9/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_kx.pyRPs6	
	
	
		
c	C`s-tt|t�o!t|�tkdjt�dtj�tt|t�o[t|�tkdjt�dtj�tt|t�o�t|�tkdjt�dtj�t	j
dt�}t	j
dt�}tj
|||||�}t|dkddtj�t	j|t�t	j|t�fS(s+
    Generate session keys for the server.
    :param server_public_key:
    :type server_public_key: bytes
    :param server_secret_key:
    :type server_secret_key: bytes
    :param client_public_key:
    :type client_public_key: bytes
    :return: (rx_key, tx_key)
    :rtype: (bytes, bytes)
    s9Server public key must be a {0} bytes long bytes sequenceRs9Server secret key must be a {0} bytes long bytes sequences9Client public key must be a {0} bytes long bytes sequencesunsigned char[]is%Server session key generation failed.(RRRRR
RRRRRRR
RR	RR(Rtserver_secret_keyRR R!R((s9/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_kx.pyR	}s6	
	
	
		
N(t
__future__RRRtnaclRRtnacl._sodiumRRtnacl.exceptionsRt__all__tcrypto_kx_publickeybytesR
tcrypto_kx_secretkeybytesRtcrypto_kx_seedbytesRtcrypto_kx_sessionkeybytesR
RRRR	(((s9/tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_kx.pyt<module>s$				-

https://t.me/AnonymousX5 - 2025