|
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 : |
�
y�\c @` s� d d l m Z m Z m Z d d l m Z d d l m Z m Z d d l
m Z d d d d d d
d g Z e j
� Z e j � Z e j � Z e j � Z d � Z d
� Z d � Z d � Z d S( i ( t absolute_importt divisiont print_function( t
exceptions( t ffit lib( t ensuret crypto_kx_keypairt crypto_kx_client_session_keyst crypto_kx_server_session_keyst crypto_kx_PUBLIC_KEY_BYTESt crypto_kx_SECRET_KEY_BYTESt crypto_kx_SEED_BYTESt crypto_kx_SESSION_KEY_BYTESc C` sv t j d t � } t j d t � } t j | | � } t | d k d d t j �t j | t � t j | t � f S( 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)
s unsigned char[]i s Key generation failed.t raising(
R t newR
R R R R t exct CryptoErrort buffer( t
public_keyt
secret_keyt res( ( s9 /tmp/pip-install-A1qMVe/pynacl/nacl/bindings/crypto_kx.pyR &