PHP WebShell

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

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

o

�)%a�
�@sXddlZddlmZmZddlmZdZdZGdd�dejd�Z	Gd	d
�d
ejd�Z
dS)�N)�UnsupportedAlgorithm�_Reasons)�_serialization� �@c@s^eZdZededdfdd��Zejdej	dej
defdd��Zejd	ededd
fdd��Zd
S)
�Ed25519PublicKey�data�returncC�*ddlm}|��stdtj��|�|�S�Nr)�backendz4ed25519 is not supported by this version of OpenSSL.)�,cryptography.hazmat.backends.openssl.backendr�ed25519_supportedrr� UNSUPPORTED_PUBLIC_KEY_ALGORITHM�ed25519_load_public_bytes��clsrr�r�S/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py�from_public_bytes��
z"Ed25519PublicKey.from_public_bytes�encoding�formatcC�dS)z9
        The serialized bytes of the public key.
        Nr)�selfrrrrr�public_bytes�zEd25519PublicKey.public_bytes�	signatureNcCr)z'
        Verify the signature.
        Nr)rrrrrr�verify'rzEd25519PublicKey.verify)
�__name__�
__module__�__qualname__�classmethod�bytesr�abc�abstractmethodr�Encoding�PublicFormatrrrrrrrs���	r)�	metaclassc@s~eZdZeddd��Zededdfdd��Zejde	fdd��Z
ejd	ejd
ej
dejfdd
��Zejdedefdd��ZdS)�Ed25519PrivateKeyr	cCs(ddlm}|��stdtj��|��Sr)r
rrrrr�ed25519_generate_key)rrrrr�generate/s�zEd25519PrivateKey.generatercCr
r)r
rrrrr�ed25519_load_private_bytesrrrr�from_private_bytes;rz$Ed25519PrivateKey.from_private_bytescCr)zD
        The Ed25519PublicKey derived from the private key.
        Nr)rrrr�
public_keyGrzEd25519PrivateKey.public_keyrr�encryption_algorithmcCr)z:
        The serialized bytes of the private key.
        Nr)rrrr/rrr�
private_bytesMrzEd25519PrivateKey.private_bytescCr)z!
        Signs the data.
        Nr)rrrrr�signXrzEd25519PrivateKey.signN)r	r))rr r!r"r+r#r-r$r%rr.rr&�
PrivateFormat�KeySerializationEncryptionr0r1rrrrr).s"���
r))r$�cryptography.exceptionsrr�cryptography.hazmat.primitivesr�_ED25519_KEY_SIZE�_ED25519_SIG_SIZE�ABCMetarr)rrrr�<module>s

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


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