????

Your IP : 3.12.41.32


Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/KMAC256.cpython-311.pyc

�

;�QgZ��0�ddlmZddlmZddlmZd�ZdS)�)�is_bytes�)�	KMAC_Hash)�	cSHAKE256c	���|�dd��}t|��std���t|��dkrt	d���|�dd��}|�dd��}|d	krt	d
���|�dd��}|rtd
t|��z���t
||||dtd��S)a�Create a new KMAC256 object.

    Args:
        key (bytes/bytearray/memoryview):
            The key to use to compute the MAC.
            It must be at least 256 bits long (32 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
    �keyNzYou must pass a key to KMAC256� z1The key must be at least 256 bits long (32 bytes)�data�mac_len�@�z!'mac_len' must be 8 bytes or more�custom�zUnknown parameters: �20�)�popr�	TypeError�len�
ValueError�strrr)�kwargsrr
rrs     �u/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Hash/KMAC256.py�newr%s���(�*�*�U�D�
!�
!�C��C�=�=�:��8�9�9�9�
�3�x�x�"�}�}��L�M�M�M��:�:�f�d�#�#�D��j�j��B�'�'�G���{�{��<�=�=�=�
�Z�Z��#�
&�
&�F�
�>��.��V���<�=�=�=��T�3����y�#�F�F�FrN)�Crypto.Util.py3compatr�KMAC128r�rr�rr�<module>rs[��>+�*�*�*�*�*�������������%G�%G�%G�%G�%Gr