+
    ^eòj=  ã                   ór   € ^ RI Ht ^ RIHtHtHt ^ RIHt ^RIH	t	H
t
 ^RI	HtHtHt  ! R R]4      tR tR	# )
é    )Ú	unhexlify)ÚbordÚtobytesÚis_bytes)Úget_random_bytes)Ú	cSHAKE128ÚSHA3_256)Ú_bytepadÚ_encode_strÚ_right_encodec                   óN   a € ] tR t^(t o RtR tR tR tR tR t	R t
R tR	tV tR
# )Ú	KMAC_HashzOA KMAC hash object.
Do not instantiate directly.
Use the :func:`new` function.
c                óð   € R V,           V n         W0n        RV n        \        \	        \        V4      4      V4      pVP                  W„R4      V n        V'       d   V P                  P                  V4       R# R# )z2.16.840.1.101.3.4.2.Ns   KMAC)	ÚoidÚdigest_sizeÚ_macr
   r   r   Ú_newÚ_cshakeÚupdate)	ÚselfÚdataÚkeyÚmac_lenÚcustomÚoid_variantÚcshakeÚrateÚpartial_newXs	   &&&&&&&& ÚŠ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/Crypto/Hash/KMAC128.pyÚ__init__ÚKMAC_Hash.__init__.   s^   € ð +¨[Õ8ˆŒØ"ÔàˆŒ	ä¤¬G°C«LÓ 9¸4Ó@ˆØ—{‘{ <¸ÓAˆŒçØ�L‰L×Ñ Ö%ñ ó    c                óv   € V P                   '       d   \        R4      hV P                  P                  V4       V # )z‰Authenticate the next chunk of message.

Args:
    data (bytes/bytearray/memoryview): The next chunk of the message to
    authenticate.
z8You can only call 'digest' or 'hexdigest' on this object)r   Ú	TypeErrorr   r   )r   r   s   &&r   r   ÚKMAC_Hash.update=   s0   € ð �9�9ˆ9ÜÐVÓWÐWà�‰×Ñ˜DÔ!Øˆr"   c                óü   € V P                   '       g`   V P                  P                  \        V P                  ^,          4      4       V P                  P                  V P                  4      V n         V P                   # )zvReturn the **binary** (non-printable) MAC tag of the message.

:return: The MAC tag. Binary form.
:rtype: byte string
)r   r   r   r   r   Úread)r   s   &r   ÚdigestÚKMAC_Hash.digestK   sU   € ð �y�yˆyØ�L‰L×Ñ¤¨d×.>Ñ.>ÀÕ.BÓ CÔDØŸ™×)Ñ)¨$×*:Ñ*:Ó;ˆDŒIà�y‰yÐr"   c           	     óœ   € RP                  \        V P                  4       4       Uu. uF  pR\        V4      ,          NK  	  up4      # u upi )zlReturn the **printable** MAC tag of the message.

:return: The MAC tag. Hexadecimal encoded.
:rtype: string
Ú z%02x)ÚjoinÚtupler(   r   )r   Úxs   & r   Ú	hexdigestÚKMAC_Hash.hexdigestX   s>   € ð �w‰w´%¸¿¹»Ô2FÓGÑ2F¨Q˜¤ a£×(Ð(Ñ2FÑGÓHÐHùÒGs   §A	c                ó  € \        ^4      p\        P                  ! W!,           4      p\        P                  ! W P                  4       ,           4      pVP                  4       VP                  4       8w  d   \	        R4      hR# )a(  Verify that a given **binary** MAC (computed by another party)
is valid.

Args:
  mac_tag (bytes/bytearray/memoryview): the expected MAC of the message.

Raises:
    ValueError: if the MAC does not match. It means that the message
        has been tampered with or that the MAC key is incorrect.
zMAC check failedN)r   r	   Únewr(   Ú
ValueError)r   Úmac_tagÚsecretÚmac1Úmac2s   &&   r   ÚverifyÚKMAC_Hash.verifya   s[   € ô " "Ó%ˆä�|Š|˜FÕ,Ó-ˆÜ�|Š|˜F§[¡[£]Õ2Ó3ˆà�;‰;‹=˜DŸK™K›MÔ)ÜÐ/Ó0Ð0ñ *r"   c                óL   € V P                  \        \        V4      4      4       R# )a6  Verify that a given **printable** MAC (computed by another party)
is valid.

Args:
    hex_mac_tag (string): the expected MAC of the message, as a hexadecimal string.

Raises:
    ValueError: if the MAC does not match. It means that the message
        has been tampered with or that the MAC key is incorrect.
N)r8   r   r   )r   Úhex_mac_tags   &&r   Ú	hexverifyÚKMAC_Hash.hexverifyu   s   € ð 	�‰”Iœg kÓ2Ó3Ö4r"   c                óD   € RV9  d   V P                   VR&   \        R/ VB # )z>Return a new instance of a KMAC hash object.
See :func:`new`.
r   © )r   r2   )r   Úkwargss   &,r   r2   ÚKMAC_Hash.newƒ   s(   € ð
 ˜FÔ"Ø $× 0Ñ 0ˆF�9Ñä‰}�V‰}Ðr"   )r   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r    r   r(   r/   r8   r<   r2   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r   (   s3   ø‡ € ñò
&òòòIò1ò(5÷ð r"   r   c            	     ó�  € V P                  RR4      p\        V4      '       g   \        R4      h\        V4      ^8  d   \	        R4      hV P                  RR4      pV P                  R^@4      pV^8  d   \	        R4      hV P                  RR	4      pV '       d   \        R
\        V 4      ,           4      h\        W!W4R\        ^¨4      # )ay  Create a new KMAC128 object.

Args:
    key (bytes/bytearray/memoryview):
        The key to use to compute the MAC.
        It must be at least 128 bits long (16 bytes).
    data (bytes/bytearray/memoryview):
        Optional. The very first chunk of the message to authenticate.
        It is equivalent to an early call to :meth:`KMAC_Hash.update`.
    mac_len (integer):
        Optional. The size of the authentication tag, in bytes.
        Default is 64. Minimum is 8.
    custom (bytes/bytearray/memoryview):
        Optional. A customization byte string (``S`` in SP 800-185).

Returns:
    A :class:`KMAC_Hash` hash object
r   NzYou must pass a key to KMAC128z1The key must be at least 128 bits long (16 bytes)r   r   z!'mac_len' must be 8 bytes or morer   r"   zUnknown parameters: Ú19)Úpopr   r$   Úlenr3   Ústrr   r   )r@   r   r   r   r   s   ,    r   r2   r2   Ž   s®   € ð( �*‰*�U˜DÓ
!€CÜ�C�=Š=ÜÐ8Ó9Ð9Ü
ˆ3ƒx�"„}ÜÐLÓMÐMà�:‰:�f˜dÓ#€Dà�j‰j˜ BÓ'€GØ�„{ÜÐ<Ó=Ð=à�Z‰Z˜ #Ó&€FçÜÐ.´°V³Õ<Ó=Ð=ä�T °´yÀ#ÓFÐFr"   N)Úbinasciir   ÚCrypto.Util.py3compatr   r   r   ÚCrypto.Randomr   r+   r   r	   r
   r   r   Úobjectr   r2   r?   r"   r   Ú<module>rS      s1   ðõ> ç 9Ñ 9Ý *ç !ß ;Ñ ;ôc�ô côL%Gr"   