File: //usr/local/CyberPanel/lib/python3.10/site-packages/ecdsa/__pycache__/keys.cpython-310.pyc
o
��h� � @ sH d Z ddlZddlmZ ddlZddlmZ ddlmZm Z ddlm
Z
mZ ddlmZ dd lm
Z
dd
lmZmZmZmZ ddlmZ ddlmZmZmZ dd
lmZmZmZ ddlmZmZmZmZmZ ddl m!Z! ddl"m#Z# ddl
m$Z$m%Z% g d�Z&G dd� de'�Z(G dd� de'�Z)dd� Z*G dd� de+�Z,G dd� de+�Z-dS )zE
Primary classes for performing signing and verification operations.
� N)�sha1)�PY2� )�ecdsa�eddsa)�der�ssh)�rfc6979)�
ellipticcurve)�NIST192p�Curve�Ed25519�Ed448)�RSZeroError)�string_to_number�number_to_string� randrange)�sigencode_string�sigdecode_string�
bit_length)�oid_ecPublicKey�encoded_oid_ecPublicKey�oid_ecDH� oid_ecMQV�MalformedSignature)�normalise_bytes)�MalformedPointError)�PointJacobi� CurveEdTw)�BadSignatureError�BadDigestError�VerifyingKey�
SigningKeyr c @ � e Zd ZdZdS )r al
Raised when verification of signature failed.
Will be raised irrespective of reason of the failure:
* the calculated or provided hash does not match the signature
* the signature does not match the curve/public key
* the encoding of the signature is malformed
* the size of the signature does not match the curve of the VerifyingKey
N��__name__�
__module__�__qualname__�__doc__� r) r) �@/usr/local/CyberPanel/lib/python3.10/site-packages/ecdsa/keys.pyr &