관리-도구
편집 파일: ed25519.cpython-39.opt-1.pyc
a �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 @ sT e Zd Zeed d�dd��Zejej ej ed�dd��Zejeedd�d d ��ZdS )�Ed25519PublicKey��data�returnc C s* ddl m} |�� s tdtj��|�|�S �Nr )�backendz4ed25519 is not supported by this version of OpenSSL.)�,cryptography.hazmat.backends.openssl.backendr �ed25519_supportedr r � UNSUPPORTED_PUBLIC_KEY_ALGORITHMZed25519_load_public_bytes��clsr r � r �W/usr/lib64/python3.9/site-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py�from_public_bytes s �z"Ed25519PublicKey.from_public_bytes)�encoding�formatr c C s dS )z9 The serialized bytes of the public key. Nr )�selfr r r r r �public_bytes s zEd25519PublicKey.public_bytesN)� signaturer r c C s dS )z' Verify the signature. Nr )r r r r r r �verify'