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&