관리-도구
편집 파일: ed25519.cpython-36.pyc
3 l�_a � @ sx d dl mZmZmZ d dlZd dlZd dlmZmZ dZ dZ ejej�G dd� de ��Zejej�G dd � d e ��ZdS ) � )�absolute_import�division�print_functionN)�UnsupportedAlgorithm�_Reasons� �@ c @ s4 e Zd Zedd� �Zejdd� �Zejdd� �ZdS )�Ed25519PublicKeyc C s* ddl m} |j� s tdtj��|j|�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)�cls�datar � r �/usr/lib64/python3.6/ed25519.py�from_public_bytes s z"Ed25519PublicKey.from_public_bytesc C s dS )z9 The serialized bytes of the public key. Nr )�self�encoding�formatr r r �public_bytes s zEd25519PublicKey.public_bytesc C s dS )z' Verify the signature. Nr )r Z signaturer r r r �verify&