| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/Cryptodome/Hash/__pycache__/ |
Upload File : |
�
��e^ � �. � d dl mZ ddlmZ ddlmZ d� Zy)� )�is_bytes� )� KMAC_Hash)� cSHAKE256c �l � | j dd� }t |� st d� �t |� dk rt d� �| j dd� }| j dd� }|d k rt d
� �| j 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 �9/usr/lib/python3/dist-packages/Cryptodome/Hash/KMAC256.py�newr % 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�3����y�#�F�Fr N)�Cryptodome.Util.py3compatr �KMAC128r � r r � r r �<module>r s ��>