+
    ^eòjœ0  ã                   óv   € ^ RI Ht ^ RIHtHt ^ RIHtHt ^ RIH	t	H
t
HtHt R tR t ! R R]4      tRR
 ltR	# )é    )ÚInteger)ÚSHA512ÚSHAKE256)ÚbchrÚis_bytes)ÚEccKeyÚ	constructÚ_import_ed25519_public_keyÚ_import_ed448_public_keyc                óÒ   € \        V 4      ^ 8X  d   \        V 4      w  rRpM;\        V 4      ^98X  d   \        V 4      w  rRpM\        R\        V 4      ,          4      h\	        W1VR7      # )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ÚEd448zNot an EdDSA key (%d bytes))ÚcurveÚpoint_xÚpoint_y)Úlenr
   r   Ú
ValueErrorr	   )ÚencodedÚxÚyÚ
curve_names   &   Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/Crypto/Signature/eddsa.pyÚimport_public_keyr   )   s`   € ô" ˆ7ƒ|�rÔÜ)¨'Ó2‰ˆØ‰
Ü	ˆW‹˜Ô	Ü'¨Ó0‰ˆØ‰
äÐ6¼¸W»ÕEÓFÐFÜ˜:¸!Ô<Ð<ó    c                ó|   € \        V 4      ^ 8X  d   RpM\        V 4      ^98X  d   RpM\        R4      h\        WR7      # )aƒ  Create a new Ed25519 or Ed448 private key object,
starting from the key encoded as raw ``bytes``,
in the format described in RFC8032.

Args:
  encoded (bytes):
    The EdDSA private 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Úed448z8Incorrect length. Only EdDSA private keys are supported.)Úseedr   )r   r   r	   )r   r   s   & r   Úimport_private_keyr   E   s?   € ô" ˆ7ƒ|�rÔØ‰
Ü	ˆW‹˜Ô	Ø‰
äÐSÓTÐTô
 ˜'Ô4Ð4r   c                   óT   a € ] tR t^ct o RtR tR tR tR tR t	R t
R tR	 tR
tV tR# )ÚEdDSASigSchemez`An EdDSA signature object.
Do not instantiate directly.
Use :func:`Crypto.Signature.eddsa.new`.
c                ó~   € Wn         W n        VP                  4       V n        VP                  P
                  V n        R# )zmCreate a new EdDSA object.

Do not instantiate this object directly,
use `Crypto.Signature.DSS.new` instead.
N)Ú_keyÚ_contextÚ_export_eddsa_publicÚ_AÚ_curveÚorderÚ_order)ÚselfÚkeyÚcontexts   &&&r   Ú__init__ÚEdDSASigScheme.__init__i   s/   € ð Œ	ØŒØ×*Ñ*Ó,ˆŒØ—j‘j×&Ñ&ˆŽr   c                ó6   € V P                   P                  4       # )zJReturn ``True`` if this signature object can be used
for signing messages.)r#   Úhas_private)r*   s   &r   Úcan_signÚEdDSASigScheme.can_signu   s   € ð �y‰y×$Ñ$Ó&Ð&r   c                ó  € V P                   P                  4       '       g   \        R4      hV P                   P                  R8X  dL   \	        V\
        P                  4      pV'       g   \        V4      '       g   \        R4      hV P                  pMqV P                   P                  R8X  dL   \	        V\        P                  4      pV'       g   \        V4      '       g   \        R4      hV P                  pM\        R4      hV! W4      # )a  Compute the EdDSA signature of a message.

Args:
  msg_or_hash (bytes or a hash object):
    The message to sign (``bytes``, in case of *PureEdDSA*) or
    the hash that was carried out over the message (hash object, for *HashEdDSA*).

    The hash object must be :class:`Crypto.Hash.SHA512` for Ed25519,
    and :class:`Crypto.Hash.SHAKE256` object for Ed448.

:return: The signature as ``bytes``. It is always 64 bytes for Ed25519, and 114 bytes for Ed448.
:raise TypeError: if the EdDSA key has no private half
zPrivate key is needed to signr   ú-'msg_or_hash' must be bytes of a SHA-512 hashr   ú.'msg_or_hash' must be bytes of a SHAKE256 hashúIncorrect curve for EdDSA)r#   r0   Ú	TypeErrorr   Ú
isinstancer   Ú
SHA512Hashr   Ú_sign_ed25519r   ÚSHAKE256_XOFÚ_sign_ed448r   )r*   Úmsg_or_hashÚphÚeddsa_sign_methods   &&  r   ÚsignÚEdDSASigScheme.sign{   sÊ   € ð �y‰y×$Ñ$×&Ò&ÜÐ;Ó<Ð<à�9‰9�?‰?˜iÔ'Ü˜K¬×):Ñ):Ó;ˆBßœ( ;×/Ò/ÜÐ OÓPÐPØ $× 2Ñ 2Ñà�Y‰Y�_‰_ Ô'Ü˜K¬×)>Ñ)>Ó?ˆBßœ( ;×/Ò/ÜÐ PÓQÐQØ $× 0Ñ 0Ñô Ð8Ó9Ð9á  Ó1Ð1r   c                óÔ  € V P                   '       g	   V'       dS   \        V4      pR \        V4      ,           \        \        V P                   4      4      ,           V P                   ,           pMRpV'       d   VP	                  4       MTp\
        P                  ! W@P                  P                  ,           V,           4      P	                  4       p\        P                  ! VR4      V P                  ,          p\        WpP                  P                  P                  ,          R7      P                  4       p\
        P                  ! WH,           V P                   ,           V,           4      P	                  4       p	\        P                  ! V	R4      V P                  ,          p
WzV P                  P"                  ,          ,           V P                  ,          pW‹P%                  ^ R4      ,           # )ó    SigEd25519 no Ed25519 collisionsr   Úlittle©Úpoint)r$   Úintr   r   Údigestr   Únewr#   Ú_prefixr   Ú
from_bytesr)   r   r'   ÚGr%   r&   ÚdÚto_bytes)r*   r=   r>   ÚflagÚdom2ÚPHMÚr_hashÚrÚR_pkÚk_hashÚkÚss   &&&         r   r:   ÚEdDSASigScheme._sign_ed25519ž   s>  € à�=�=ˆ=ŸBÜ�r“7ˆDà6¼¸d»ÕCÜœ˜DŸM™MÓ*Ó+õ,Ø.2¯m©mõ<‰Dð ˆDç&(ˆk× Ñ Ô"¨kˆô
 —’˜D§9¡9×#4Ñ#4Õ4°sÕ:Ó;×BÑBÓDˆÜ×Ò˜v xÓ0°4·;±;Õ>ˆä˜A§	¡	× 0Ñ 0× 2Ñ 2Õ2Ô3×HÑHÓJˆä—’˜D�K¨$¯'©'Õ1°CÕ7Ó8×?Ñ?ÓAˆÜ×Ò˜v xÓ0°4·;±;Õ>ˆà�T—Y‘Y—[‘[•Õ  D§K¡KÕ/ˆà—j‘j  XÓ.Õ.Ð.r   c                ó¼  € \        V4      pR \        V4      ,           \        \        V P                  4      4      ,           V P                  ,           pV'       d    VP	                  4       P                  ^@4      MTp\        P                  ! W@P                  P                  ,           V,           4      P                  ^r4      p\        P                  ! VR4      V P                  ,          p\        WpP                  P                  P                  ,          R7      P!                  4       p\        P                  ! WH,           V P"                  ,           V,           4      P                  ^r4      p	\        P                  ! V	R4      V P                  ,          p
WzV P                  P$                  ,          ,           V P                  ,          pW‹P'                  ^9R4      ,           # )ó   SigEd448rD   rE   )rG   r   r   r$   ÚcopyÚreadr   rI   r#   rJ   r   rK   r)   r   r'   rL   r%   r&   rM   rN   )r*   r=   r>   rO   Údom4rQ   rR   rS   rT   rU   rV   rW   s   &&&         r   r<   ÚEdDSASigScheme._sign_ed448¹   s=  € ä�2‹wˆàœT $›ZÕ'Ü”C˜Ÿ™Ó&Ó'õ(Ø*.¯-©-õ8ˆ÷ .0ˆk×ÑÓ ×%Ñ% bÔ)°[ˆô
 —’˜d§Y¡Y×%6Ñ%6Õ6¸Õ<Ó=×BÑBÀ3ÓGˆÜ×Ò˜v xÓ0°4·;±;Õ>ˆä˜A§	¡	× 0Ñ 0× 2Ñ 2Õ2Ô3×HÑHÓJˆä—’˜d�k¨D¯G©GÕ3°cÕ9Ó:×?Ñ?ÀÓDˆÜ×Ò˜v xÓ0°4·;±;Õ>ˆà�T—Y‘Y—[‘[•Õ  D§K¡KÕ/ˆà—j‘j  XÓ.Õ.Ð.r   c                óÂ  € V P                   P                  R8X  dL   \        V\        P                  4      pV'       g   \        V4      '       g   \        R4      hV P                  pMqV P                   P                  R8X  dL   \        V\        P                  4      pV'       g   \        V4      '       g   \        R4      hV P                  pM\        R4      hV! WV4      # )a'  Check if an EdDSA signature is authentic.

Args:
  msg_or_hash (bytes or a hash object):
    The message to verify (``bytes``, in case of *PureEdDSA*) or
    the hash that was carried out over the message (hash object, for *HashEdDSA*).

    The hash object must be :class:`Crypto.Hash.SHA512` object for Ed25519,
    and :class:`Crypto.Hash.SHAKE256` for Ed448.

  signature (``bytes``):
    The signature that needs to be validated.
    It must be 64 bytes for Ed25519, and 114 bytes for Ed448.

:raise ValueError: if the signature is not authentic
r   r4   r   r5   r6   )r#   r   r8   r   r9   r   r7   Ú_verify_ed25519r   r;   Ú_verify_ed448r   )r*   r=   Ú	signaturer>   Úeddsa_verify_methods   &&&  r   ÚverifyÚEdDSASigScheme.verifyÑ   s­   € ð$ �9‰9�?‰?˜iÔ'Ü˜K¬×):Ñ):Ó;ˆBßœ( ;×/Ò/ÜÐ OÓPÐPØ"&×"6Ñ"6Ñà�Y‰Y�_‰_ Ô'Ü˜K¬×)>Ñ)>Ó?ˆBßœ( ;×/Ò/ÜÐ PÓQÐQØ"&×"4Ñ"4Ñô Ð8Ó9Ð9á" ;¸2Ó>Ð>r   c                óð  € \        V4      ^@8w  d   \        R4      hV P                  '       g	   V'       dS   \        V4      pR\	        V4      ,           \	        \        V P                  4      4      ,           V P                  ,           pMRpV'       d   VP                  4       MTp \        VR,          4      P                  p\        P                  ! TR,          R4      pY€P                  8”  d   \        R4      h\        P                  ! YRR,          ,           T P                  ,           T,           4      P                  4       p	\        P                  ! T	R4      T P                  ,          p
T^,          T P                  P                  P                   ,          p^T,          T
^,          T P                  P                  ,          ,           pY¼8w  d   \        R	4      hR
#   \         d    \        R4      hi ; i)é@   ú'The signature is not authentic (length)rC   r   :Né    Nú"The signature is not authentic (R):ri   NNrD   ú"The signature is not authentic (S)úThe signature is not authenticN)r   r   r$   rG   r   rH   r   ÚpointQr   rK   r)   r   rI   r&   r#   r'   rL   )r*   r=   rb   r>   rO   rP   rQ   ÚRrW   rU   rV   Úpoint1Úpoint2s   &&&&         r   r`   ÚEdDSASigScheme._verify_ed25519ô   s|  € äˆy‹>˜RÔÜÐFÓGÐGà�=�=ˆ=ŸBÜ�r“7ˆDØ6¼¸d»ÕCÜœ˜DŸM™MÓ*Ó+õ,Ø.2¯m©mõ<‰Dð ˆDç&(ˆk× Ñ Ô"¨kˆð
	CÜ! )¨C¥.Ó1×8Ñ8ˆAô ×Ò˜y¨�~¨xÓ8ˆØ�{‰{Œ?ÜÐAÓBÐBä—’˜D¨S¥>Õ1°D·G±GÕ;¸cÕAÓB×IÑIÓKˆÜ×Ò˜v xÓ0°4·;±;Õ>ˆà�Q•˜Ÿ™×)Ñ)×+Ñ+Õ+ˆð �Q•˜˜Q� §¡×!1Ñ!1Õ1Õ1ˆØÔÜÐ=Ó>Ð>ñ øô ô 	CÜÐAÓBÐBð	Cús   Â%G ÇG5c                óÖ  € \        V4      ^r8w  d   \        R4      h\        V4      pR\        V4      ,           \        \        V P                  4      4      ,           V P                  ,           pV'       d    VP                  4       P                  ^@4      MTp \        VR,          4      P                  p\        P                  ! TR,          R4      pY€P                  8”  d   \        R4      h\        P                  ! YRR,          ,           T P                  ,           T,           4      P                  ^r4      p	\        P                  ! T	R4      T P                  ,          p
T^,          T P                  P                   P"                  ,          p^T,          T
^,          T P                  P                  ,          ,           pY¼8w  d   \        R4      hR	#   \         d    \        R4      hi ; i)
ér   rh   rZ   :Né9   Nrj   :rt   NNrD   rk   rl   N)r   r   rG   r   r$   r[   r\   r   rm   r   rK   r)   r   rI   r&   r#   r'   rL   )r*   r=   rb   r>   rO   r]   rQ   rn   rW   rU   rV   ro   rp   s   &&&&         r   ra   ÚEdDSASigScheme._verify_ed448  sy  € äˆy‹>˜SÔ ÜÐFÓGÐGä�2‹wˆàœT $›ZÕ'Ü”C˜Ÿ™Ó&Ó'õ(Ø*.¯-©-õ8ˆ÷ .0ˆk×ÑÓ ×%Ñ% bÔ)°[ˆð
	CÜ! )¨C¥.Ó1×8Ñ8ˆAô ×Ò˜y¨�~¨xÓ8ˆØ�{‰{Œ?ÜÐAÓBÐBä—’˜d¨s¥^Õ3°d·g±gÕ=ÀÕCÓD×IÑIÈ#ÓNˆÜ×Ò˜v xÓ0°4·;±;Õ>ˆà�Q•˜Ÿ™×)Ñ)×+Ñ+Õ+ˆð �Q•˜˜Q� §¡×!1Ñ!1Õ1Õ1ˆØÔÜÐ=Ó>Ð>ñ øô ô 	CÜÐAÓBÐBð	Cús   ÂG ÇG()r&   r$   r#   r)   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r-   r1   r@   r:   r<   rd   r`   ra   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r!   r!   c   s:   ø‡ € ñò

'ò'ò!2òF/ò6/ò0!?òF!?÷F?ð ?r   r!   Nc                óä   € \        V \        4      '       d   V P                  R9  d   \        R4      hVR8w  d   \        R4      hVf   RpM\	        V4      ^ÿ8”  d   \        R4      h\        W4      # )aq  Create a signature object :class:`EdDSASigScheme` that
can perform or verify an EdDSA signature.

Args:
    key (:class:`Crypto.PublicKey.ECC` object):
        The key to use for computing the signature (*private* keys only)
        or for verifying one.
        The key must be on the curve ``Ed25519`` or ``Ed448``.

    mode (string):
        This parameter must be ``'rfc8032'``.

    context (bytes):
        Up to 255 bytes of `context <https://datatracker.ietf.org/doc/html/rfc8032#page-41>`_,
        which is a constant byte string to segregate different protocols or
        different applications of the same key.
z&EdDSA can only be used with EdDSA keysÚrfc8032zMode must be 'rfc8032'r   z3Context for EdDSA must not be longer than 255 bytes)r   r   )r8   r   r   r   r   r!   )r+   Úmoder,   s   &&&r   rI   rI   9  sj   € ô& �cœ6×"Ò" c§i¡iÐ7KÔ&KÜÐAÓBÐBàˆyÔÜÐ1Ó2Ð2à‚Ø‰Ü	ˆW‹˜Ô	ÜÐNÓOÐOä˜#Ó'Ð'r   )N)ÚCrypto.Math.Numbersr   ÚCrypto.Hashr   r   ÚCrypto.Util.py3compatr   r   ÚCrypto.PublicKey.ECCr   r	   r
   r   r   r   Úobjectr!   rI   © r   r   Ú<module>r‡      s8   ðõ> (ç (ß 0÷<ó <ò=ò85ô<S?�Vô S?öl(r   