Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/Cryptodome/Hash/__pycache__/SHAKE128.cpython-39.pyc
Ðазад
a b�h0 � @ sZ d dl mZ d dlmZmZmZmZmZmZm Z d dl mZ G dd� de�Z d dd�ZdS ) � )�bord)�load_pycryptodome_raw_lib�VoidPointer�SmartPointer�create_string_buffer�get_raw_buffer�c_size_t�c_uint8_ptr)�_raw_keccak_libc @ s8 e Zd ZdZdZddd�Zdd� Zdd � Zd d d�ZdS )�SHAKE128_XOFz�A SHAKE128 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.11Nc C sV t � }t�|�� td�d�}|r,td| ��t|�� tj�| _ d| _ |rR| �|� d S )N� � z%Error %d while instantiating SHAKE128F)r r Zkeccak_initZ address_ofr � ValueErrorr �getZkeccak_destroy�_state� _is_squeezing�update)�self�data�state�result� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/Cryptodome/Hash/SHAKE128.py�__init__5 s ���zSHAKE128_XOF.__init__c C sB | j rtd��t�| j�� t|�tt|���}|r>t d| ��| 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 SHAKE128 state) r � TypeErrorr Z keccak_absorbr r r r �lenr )r r r r r r r C s ��zSHAKE128_XOF.updatec C s>