+
    ^eòjô  ã                   óN   € ^ RI Ht ^ RIHtHtHtHt R tR tR t	R t
R tR tR	# )
é    )Úlong_to_bytes)ÚEccKeyÚ	constructÚ_import_curve25519_public_keyÚ_import_curve448_public_keyc                 ó®  € VP                   V P                  ,          pVP                  4       '       d   \        R 4      hV P                  R8X  d)   \        VP                  P                  ^ RR7      4      pV# V P                  R8X  d)   \        VP                  P                  ^8RR7      4      pV# \        VP                  VP                  4       4      pV# )zInvalid ECDH pointÚ
Curve25519Úlittle)Ú	byteorderÚCurve448)
ÚpointQÚdÚis_point_at_infinityÚ
ValueErrorÚcurveÚ	bytearrayÚxÚto_bytesr   Úsize_in_bytes)Úkey_privÚkey_pubÚpointPÚzs   &&  Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/Crypto/Protocol/DH.pyÚ_compute_ecdhr      s³   € Ø�^‰^˜hŸj™jÕ(€FØ×"Ñ"×$Ò$ÜÐ.Ó/Ð	/à‡~�~˜Ô%Ü�f—h‘h×'Ñ'¨°hÐ'Ó?Ó@ˆð €Hð 
�‰˜:Ô	%Ü�f—h‘h×'Ñ'¨°hÐ'Ó?Ó@ˆð €Hô ˜&Ÿ(™( F×$8Ñ$8Ó$:Ó;ˆØ€Hó    c                ó2   € \        V 4      p\        RVR7      # )aT  Create a new X25519 public key object,
starting from the key encoded as raw ``bytes``,
in the format described in RFC7748.

Args:
  encoded (bytes):
    The x25519 public key to import.
    It must be 32 bytes.

Returns:
  :class:`Crypto.PublicKey.EccKey` : a new ECC key object.

Raises:
  ValueError: when the given key cannot be parsed.
r	   ©r   Úpoint_x)r   r   ©Úencodedr   s   & r   Úimport_x25519_public_keyr"      s   € ô" 	& gÓ.€AÜ˜<°Ô3Ð3r   c                ó   € \        V RR7      # )aV  Create a new X25519 private key object,
starting from the key encoded as raw ``bytes``,
in the format described in RFC7748.

Args:
  encoded (bytes):
    The X25519 private key to import.
    It must be 32 bytes.

Returns:
  :class:`Crypto.PublicKey.EccKey` : a new ECC key object.

Raises:
  ValueError: when the given key cannot be parsed.
r	   ©Úseedr   ©r   ©r!   s   &r   Úimport_x25519_private_keyr(   ,   s   € ô" ˜'¨Ô6Ð6r   c                ó2   € \        V 4      p\        RVR7      # )aP  Create a new X448 public key object,
starting from the key encoded as raw ``bytes``,
in the format described in RFC7748.

Args:
  encoded (bytes):
    The x448 public key to import.
    It must be 56 bytes.

Returns:
  :class:`Crypto.PublicKey.EccKey` : a new ECC key object.

Raises:
  ValueError: when the given key cannot be parsed.
r   r   )r   r   r    s   & r   Úimport_x448_public_keyr*   @   s   € ô" 	$ GÓ,€AÜ˜:¨qÔ1Ð1r   c                ó   € \        V RR7      # )aR  Create a new X448 private key object,
starting from the key encoded as raw ``bytes``,
in the format described in RFC7748.

Args:
  encoded (bytes):
    The X448 private key to import.
    It must be 56 bytes.

Returns:
  :class:`Crypto.PublicKey.EccKey` : a new ECC key object.

Raises:
  ValueError: when the given key cannot be parsed.
r   r$   r&   r'   s   &r   Úimport_x448_private_keyr,   U   s   € ô" ˜'¨Ô4Ð4r   c                 ó6  € V P                  RR4      pV P                  RR4      pV P                  RR4      pV P                  RR4      pV P                  RR4      pVf   \        R4      h^ p^ pRpR p	Ve   V	! W�RR	4      pV^,          pVe   V	! W‚RR
4      pV^,          pVe   V	! WƒRR	4      pV^,          pVe   V	! W„RR
4      pV^,          pWg,           ^8  g   V^ 8X  g   V^ 8X  d   \        R4      hRp
RpV'       d   V'       d   \        W4      p
V'       d9   V'       d1   \        V4      \        V4      8w  d   \        R4      h\        W44      pM7V'       d   V'       d   \        W24      pMV'       d   V'       d   \        W4      pWº,           pV! V4      # )aˆ  Perform a Diffie-Hellman key agreement.

Keywords:
  kdf (callable):
    A key derivation function that accepts ``bytes`` as input and returns
    ``bytes``.
  static_priv (EccKey):
    The local static private key. Optional.
  static_pub (EccKey):
    The static public key that belongs to the peer. Optional.
  eph_priv (EccKey):
    The local ephemeral private key, generated for this session. Optional.
  eph_pub (EccKey):
    The ephemeral public key, received from the peer for this session. Optional.

At least two keys must be passed, of which one is a private key and one
a public key.

Returns (bytes):
  The derived secret key material.
Ústatic_privNÚ
static_pubÚeph_privÚeph_pubÚkdfz'kdf' is mandatoryc                 ó  € \        V\        4      '       g   \        R V,          4      hV'       d)   VP                  4       '       g   \        RV,          4      hV f   VP                  p V # WP                  8w  d   \        RV,          4      hV # )z'%s' must be an ECC keyz'%s' must be a private ECC keyz('%s' is defined on an incompatible curve)Ú
isinstancer   Ú	TypeErrorÚhas_privater   )r   ÚkeyÚnameÚprivates   &&&&r   Úcheck_curveÚ"key_agreement.<locals>.check_curve�   sw   € Ü˜#œv×&Ò&ÜÐ5¸Õ<Ó=Ð=ß˜3Ÿ?™?×,Ò,ÜÐ<¸tÕCÓDÐDØŠ=Ø—I‘IˆEð ˆð —i‘iÔÜÐFÈÕMÓNÐNØˆr   TFz'Too few keys for the ECDH key agreementr   z"DH mode C(2e, 1s) is not supported)Úgetr   r   Úbool)Úkwargsr.   r/   r0   r1   r2   Ú
count_privÚ	count_pubr   r:   ÚZsÚZeÚZs   ,            r   Úkey_agreementrD   i   s†  € ð. —*‘*˜]¨DÓ1€KØ—‘˜L¨$Ó/€JØ�z‰z˜* dÓ+€HØ�j‰j˜ DÓ)€GØ
�*‰*�U˜DÓ
!€Cà
‚{ÜÐ-Ó.Ð.à€JØ€IØ€Eò	ð ÒÙ˜E°¸tÓDˆØ�a�ˆ
àÒÙ˜E¨|¸UÓCˆØ�Q�ˆ	àÒÙ˜E¨Z¸Ó>ˆØ�a�ˆ
àÒÙ˜E¨I°uÓ=ˆØ�Q�ˆ	àÕ !Ô# z°Q¤¸)Àq¼.ÜÐBÓCÐCà	€BØ	€Bç—zä˜;Ó3ˆç—Gä�Ó¤ ZÓ 0Ô0ÜÐAÓBÐBÜ˜8Ó-‰ß	—jä˜8Ó0‰ß	—[ä˜;Ó0ˆà
�€Aáˆq‹6€Mr   N)ÚCrypto.Util.numberr   ÚCrypto.PublicKey.ECCr   r   r   r   r   r"   r(   r*   r,   rD   © r   r   Ú<module>rH      s1   ðÝ ,÷?ó ?òò4ò*7ò(2ò*5ô(Wr   