Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/Cryptodome/Hash/__pycache__/SHA384.cpython-39.pyc
Ðазад
a b�h� � @ sl d dl mZ d dlmZmZmZmZmZmZm Z edd�Z G dd� de�Zddd �Z ejZejZd d� ZdS ) � ��bord)�load_pycryptodome_raw_lib�VoidPointer�SmartPointer�create_string_buffer�get_raw_buffer�c_size_t�c_uint8_ptrzCryptodome.Hash._SHA384a� int SHA384_init(void **shaState); int SHA384_destroy(void *shaState); int SHA384_update(void *hs, const uint8_t *buf, size_t len); int SHA384_digest(const void *shaState, uint8_t *digest, size_t digest_size); int SHA384_copy(const void *src, void *dst); int SHA384_pbkdf2_hmac_assist(const void *inner, const void *outer, const uint8_t *first_digest, uint8_t *final_digest, size_t iterations, size_t digest_size); c @ sP e Zd ZdZdZdZdZddd�Zdd � Zd d� Z dd � Z dd� Zddd�ZdS )� SHA384Hasha� A SHA-384 hash object. Do not instantiate directly. Use the :func:`new` function. :ivar oid: ASN.1 Object ID :vartype oid: string :ivar block_size: the size in bytes of the internal message block, input to the compression function :vartype block_size: integer :ivar digest_size: the size in bytes of the resulting hash :vartype digest_size: integer �0 � z2.16.840.1.101.3.4.2.2Nc C sH t � }t�|�� �}|r$td| ��t|�� tj�| _|rD| � |� d S )Nz#Error %d while instantiating SHA384) r �_raw_sha384_libZSHA384_initZ address_of� ValueErrorr �getZSHA384_destroy�_state�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/SHA384.py�__init__G s ��zSHA384Hash.__init__c C s4 t �| j�� t|�tt|���}|r0td| ��dS )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'Error %d while hashing data with SHA384N)r Z SHA384_updater r r r �lenr )r r r r r r r R s ��zSHA384Hash.updatec C s<