403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/Cryptodome/Hash/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/Cryptodome/Hash/__pycache__/cSHAKE128.cpython-311.pyc
�

8�tc.��t�ddlmZddlmZmZmZmZmZmZddl	m
Z
d�Zd�Zd�Z
Gd�de��Zdd�Zd	S)
�)�bchr)�VoidPointer�SmartPointer�create_string_buffer�get_raw_buffer�c_size_t�c_uint8_ptr)�_raw_keccak_libc��|ddzkr|dksJ�|dkrdn|���dzdz}t|��t|dz��z}|dz}|dkr |t|dz��z}|dz}|dk� |S)z2Left encode function as defined in NIST SP 800-185��r���)�
bit_lengthr)�x�num�encs   �;/usr/lib/python3/dist-packages/Cryptodome/Hash/cSHAKE128.py�_left_encoder)s���
��d��O�O��Q������A�v�v�!�!�A�L�L�N�N�Q�.�1�4�C�
�s�)�)�d�1�t�8�n�n�
$�C��!�G�A�
�a�%�%��D��T��N�N�"��	�a����a�%�%��J�c�z�t|��dz}|ddzkrtd���t|��|zS)z4Encode string function as defined in NIST SP 800-185rrr
z$String too large to encode in cSHAKE)�len�
ValueErrorr)r�bitlens  r�_encode_strr;sD����V�V�a�Z�F�
�!�t�)����?�@�@�@�����!�#�#rc�f�t|��|z}|t|��|zz
|z}|d|zzS)z2Zero pad byte string as defined in NIST SP 800-185�)rr)r�length�to_pad�npads    r�_bytepadr"EsA���&�
!�
!�A�
%�F�
�S��[�[�6�)�)�V�3�D��G�d�N�"�"rc�$�eZdZdZd�Zd�Zd�ZdS)�
cSHAKE_XOFz]A cSHAKE hash object.
    Do not instantiate directly.
    Use the :func:`new` function.
    c��t��}|r8td��t|��z}t|d|z
dz��}d}nd}d}tj|���t
|dz��|��}|rtd|z���t|�	��tj
��|_d|_|r|�
|��|r|�
|��dSdS)Nri@r��z#Error %d while instantiating cSHAKEF)rrr"r
�keccak_init�
address_ofrrr�get�keccak_destroy�_state�
_is_squeezing�update)	�self�data�custom�capacity�state�prefix_unpad�prefix�pad�results	         r�__init__zcSHAKE_XOF.__init__Ws���
�
���	�&�s�+�+�k�&�.A�.A�A�L��l�T�H�_�q�,@�A�A�F��C�C��F��C� �,�U�-=�-=�-?�-?�-5�h��k�-B�-B�-0�2�2���	'��B�%�&�'�'�
'�"�5�9�9�;�;�#2�#A�C�C���"����	 ��K�K������	��K�K�������	�	rc	��|jrtd���tj|j���t
|��tt|������}|rtd||j
fz���|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 %s state)r-�	TypeErrorr
�
keccak_absorbr,r*r	rrr�name)r/r0r7s   rr.zcSHAKE_XOF.updaters�����	O��M�N�N�N� �.�t�{���/@�/@�/:�4�/@�/@�/7��D�	�	�/B�/B�D�D���	4��?� &��	�2�3�4�4�
4��rc��d|_t|��}tj|j���|t
|����}|rtd||jfz���t|��S)ah
        Compute the next piece of XOF output.

        .. note::
            You cannot use :meth:`update` anymore after the first call to
            :meth:`read`.

        Args:
            length (integer): the amount of bytes this method must return

        :return: the next piece of XOF output (of the given length)
        :rtype: byte string
        Tz!Error %d while extracting from %s)
r-rr
�keccak_squeezer,r*rrr<r)r/r�bfrr7s    r�readzcSHAKE_XOF.read�s���"���"�6�*�*�� �/�����0A�0A�03�08��0@�0@�B�B���	4��@� &��	�2�3�4�4�
4��c�"�"�"rN)�__name__�
__module__�__qualname__�__doc__r8r.r@�rrr$r$QsK��������
���6���$#�#�#�#�#rr$Nrc�$�t||d��S)azReturn a fresh instance of a cSHAKE128 object.

    Args:
       data (bytes/bytearray/memoryview):
        Optional.
        The very first chunk of the message to hash.
        It is equivalent to an early call to :meth:`update`.
       custom (bytes):
        Optional.
        A customization bytestring (``S`` in SP 800-185).

    :Return: A :class:`cSHAKE_XOF` object
    �)r$)r0r1s  r�newrH�s�� �d�F�C�(�(�(r)Nr)�Cryptodome.Util.py3compatr�Cryptodome.Util._raw_apirrrrrr	�Cryptodome.Hash.keccakr
rrr"�objectr$rHrErr�<module>rMs���>+�*�*�*�*�*�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�
3�2�2�2�2�2����$$�$�$�	#�	#�	#�K#�K#�K#�K#�K#��K#�K#�K#�\)�)�)�)�)�)r

Youez - 2016 - github.com/yon3zu
LinuXploit