관리-도구
편집 파일: eddsa.cpython-311.pyc
� O�Dg0 � �z � d dl mZ d dlmZmZ d dlmZmZ d dlm Z m Z mZmZ d� Z d� Z G d� de� � Zdd �Zd S )� )�Integer)�SHA512�SHAKE256)�bchr�is_bytes)�EccKey� construct�_import_ed25519_public_key�_import_ed448_public_keyc � � t | � � dk rt | � � \ }}d}nGt | � � dk rt | � � \ }}d}nt dt | � � z � � �t |||�� � S )a� Create a new Ed25519 or Ed448 public key object, starting from the key encoded as raw ``bytes``, in the format described in RFC8032. Args: encoded (bytes): The EdDSA public key to import. It must be 32 bytes for Ed25519, and 57 bytes for Ed448. Returns: :class:`Crypto.PublicKey.EccKey` : a new ECC key object. Raises: ValueError: when the given key cannot be parsed. � �Ed25519�9 �Ed448zNot an EdDSA key (%d bytes))�curve�point_x�point_y)�lenr r � ValueErrorr )�encoded�x�y� curve_names �x/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Signature/eddsa.py�import_public_keyr ) s� � �"