File manager - Edit - /usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/ed25519.cpython-310.pyc
Back
o �)%a� � @ sX d dl Z d dlmZmZ d dlmZ dZdZG dd� de jd�Z G d d � d e jd�Z dS )� N)�UnsupportedAlgorithm�_Reasons)�_serialization� �@ c @ s^ e Zd Zededd fdd��Zejdej dej defdd��Zejd ededd fdd��Zd S ) �Ed25519PublicKey�data�returnc C �* ddl m} |�� stdtj��|�|�S �Nr )�backendz4ed25519 is not supported by this version of OpenSSL.)�,cryptography.hazmat.backends.openssl.backendr �ed25519_supportedr r � UNSUPPORTED_PUBLIC_KEY_ALGORITHM�ed25519_load_public_bytes��clsr r � r �S/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py�from_public_bytes � � z"Ed25519PublicKey.from_public_bytes�encoding�formatc C � dS )z9 The serialized bytes of the public key. Nr )�selfr r r r r �public_bytes � zEd25519PublicKey.public_bytes� signatureNc C r )z' Verify the signature. Nr )r r r r r r �verify'