관리-도구
편집 파일: eddsa.cpython-38.pyc
U /?�fz � @ s� d dl mZ d dlmZ d dlmZmZ d dlmZm Z d dl mZ d dlm Z G dd� de �ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZdS )� )�Type)� serialization)�ed448�ed25519)�CryptographyPrivateKey�CryptographyPublicKey)� Algorithm)�DNSKEYc @ s@ e Zd Zeedd�dd�Zed�dd�Zeed d�d d ��ZdS )�PublicEDDSAN)� signature�data�returnc C s | j �||� d S )N)�key�verify)�selfr r � r �B/opt/hc_python/lib/python3.8/site-packages/dns/dnssecalgs/eddsa.pyr s zPublicEDDSA.verify�r c C s | j jtjjtjjd�S )z,Encode a public key per RFC 8080, section 3.)�encoding�format)r Zpublic_bytesr ZEncodingZRawZPublicFormat)r r r r �encode_key_bytes s �zPublicEDDSA.encode_key_bytes)r r c C s | � |� | | j�|j�d�S �N)r )Z!_ensure_algorithm_key_combination�key_clsZfrom_public_bytesr )�clsr r r r �from_dnskey s �zPublicEDDSA.from_dnskey) �__name__� __module__�__qualname__�bytesr r �classmethodr r r r r r r s r c @ s@ e Zd ZU ee ed<