Server IP : 192.158.238.246 / Your IP : 18.191.89.16 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/ |
Upload File : |
� �� hZ � �0 � d dl mZ ddlmZ ddlmZ d� ZdS )� )�is_bytes� )� KMAC_Hash)� cSHAKE256c �� � | � dd� � }t |� � st d� � �t |� � dk rt d� � �| � dd� � }| � dd� � }|d k rt d � � �| � dd� � }| rt d t | � � z � � �t ||||dt d� � 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�strr r )�kwargsr r r r s �u/builddir/build/BUILD/imunify360-venv-2.5.2/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�Fr N)�Crypto.Util.py3compatr �KMAC128r � r r � r r �<module>r s[ ��>