PHP WebShell

Текущая директория: /usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/__pycache__

Просмотр файла: x25519.cpython-310.pyc

o

-&%a
�@sPddlZddlmZmZddlmZGdd�dejd�ZGdd�dejd�ZdS)	�N)�UnsupportedAlgorithm�_Reasons)�_serializationc@sBeZdZededdfdd��Zejdej	dej
defdd��Zd	S)
�X25519PublicKey�data�returncC�*ddlm}|��stdtj��|�|�S�Nr)�backendz3X25519 is not supported by this version of OpenSSL.)�,cryptography.hazmat.backends.openssl.backendr
�x25519_supportedrr�UNSUPPORTED_EXCHANGE_ALGORITHM�x25519_load_public_bytes��clsrr
�r�R/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/x25519.py�from_public_bytes
��
z!X25519PublicKey.from_public_bytes�encoding�formatcC�dS�z9
        The serialized bytes of the public key.
        Nr)�selfrrrrr�public_bytes�zX25519PublicKey.public_bytesN)�__name__�
__module__�__qualname__�classmethod�bytesr�abc�abstractmethodr�Encoding�PublicFormatrrrrrrs���r)�	metaclassc	@s�eZdZeddd��Zededdfdd��Zejde	fdd��Z
ejd	ejd
ej
dejdefdd
��Zejde	defdd��ZdS)�X25519PrivateKeyrcCs(ddlm}|��stdtj��|��Sr	)rr
rrrr
�x25519_generate_key)rr
rrr�generate%s�zX25519PrivateKey.generatercCrr	)rr
rrrr
�x25519_load_private_bytesrrrr�from_private_bytes0rz#X25519PrivateKey.from_private_bytescCrrr)rrrr�
public_key<rzX25519PrivateKey.public_keyrr�encryption_algorithmcCr)z:
        The serialized bytes of the private key.
        Nr)rrrr,rrr�
private_bytesBrzX25519PrivateKey.private_bytes�peer_public_keycCr)zY
        Performs a key exchange operation using the provided peer's public key.
        Nr)rr.rrr�exchangeMrzX25519PrivateKey.exchangeN)rr&)rrrrr(r r*r!r"rr+rr#�
PrivateFormat�KeySerializationEncryptionr-r/rrrrr&$s&
����
r&)	r!�cryptography.exceptionsrr�cryptography.hazmat.primitivesr�ABCMetarr&rrrr�<module>s


Выполнить команду


Для локальной разработки. Не используйте в интернете!