관리-도구
편집 파일: ed448.cpython-36.pyc
3 l�_ � @ sp d dl mZmZmZ d dlZd dlZd dlmZmZ ej ej �G dd� de��Zej ej �G dd� de��Z dS )� )�absolute_import�division�print_functionN)�UnsupportedAlgorithm�_Reasonsc @ s4 e Zd Zedd� �Zejdd� �Zejdd� �ZdS )�Ed448PublicKeyc C s* ddl m} |j� s tdtj��|j|�S )Nr )�backendz2ed448 is not supported by this version of OpenSSL.)�,cryptography.hazmat.backends.openssl.backendr �ed448_supportedr r � UNSUPPORTED_PUBLIC_KEY_ALGORITHMZed448_load_public_bytes)�cls�datar � r �/usr/lib64/python3.6/ed448.py�from_public_bytes s z Ed448PublicKey.from_public_bytesc C s dS )z9 The serialized bytes of the public key. Nr )�self�encoding�formatr r r �public_bytes s zEd448PublicKey.public_bytesc C s dS )z' Verify the signature. Nr )r Z signaturer r r r �verify"