| 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� � �b � d dl mZ d dlmZmZmZmZmZmZm Z m
Z
d dlmZ G d� de
� Zdd�Zy) � )�bord)�load_pycryptodome_raw_lib�VoidPointer�SmartPointer�create_string_buffer�get_raw_buffer�c_size_t�c_uint8_ptr�c_ubyte)�_raw_keccak_libc �0 � e Zd ZdZdZdd�Zd� Zd� Zdd�Zy) �SHAKE256_XOFz�A SHAKE256 hash object.
Do not instantiate directly.
Use the :func:`new` function.
:ivar oid: ASN.1 Object ID
:vartype oid: string
z2.16.840.1.101.3.4.2.12Nc �D � t � }t j |j � t d� t d� � }|rt
d|z � �t |j � t j � | _
d| _ d| _ |r| j |� y y )N�@ � z%Error %d while instantiating SHAKE256F� )r r �keccak_init�
address_ofr r �
ValueErrorr �get�keccak_destroy�_state�
_is_squeezing�_padding�update)�self�data�state�results �:/usr/lib/python3/dist-packages/Cryptodome/Hash/SHAKE256.py�__init__zSHAKE256_XOF.__init__5 s� � ��
�� �,�,�U�-=�-=�-?�-5�b�\�-4�R�[�:�� ��D�%�&� '�
'�"�5�9�9�;�#2�#A�#A�C���"�����
���K�K��� � c �� � | j rt d� �t j | j j � t
|� t t |� � � }|rt d|z � �| S )z�Continue hashing of a message by consuming the next chunk of data.
Args:
data (byte string/byte array/memoryview): The next chunk of the message being hashed.
z/You cannot call 'update' after the first 'read'z&Error %d while updating SHAKE256 state)
r � TypeErrorr �
keccak_absorbr r r
r �lenr )r r r s r r zSHAKE256_XOF.updateE sm � � ����M�N�N� �.�.�t�{�{���/@�/:�4�/@�/7��D� �/B�D�� ��E�%�&� '�
'��r"