관리-도구
편집 파일: hashes.cpython-39.pyc
a �aD � @ s� d dl Z d dlZd dlmZ d dlmZ G dd� de jd�ZG dd� de jd�ZG d d � d e jd�Z G dd� de�Z G d d� de�ZG dd� de�ZG dd� de�Z G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$ee �ZG d%d&� d&ee �ZG d'd(� d(e�ZG d)d*� d*e�ZG d+d,� d,e�ZG d-d.� d.e�ZdS )/� N)�utils)�AlreadyFinalizedc @ sN e Zd Zejed�dd��Zejed�dd��Zeje j e d�dd��ZdS ) � HashAlgorithm��returnc C s dS )zH A string naming this algorithm (e.g. "sha256", "md5"). N� ��selfr r �K/usr/lib64/python3.9/site-packages/cryptography/hazmat/primitives/hashes.py�name s zHashAlgorithm.namec C s dS )z< The size of the resulting digest in bytes. Nr r r r r �digest_size s zHashAlgorithm.digest_sizec C s dS )z� The internal block size of the hash function, or None if the hash function does not use blocks internally (e.g. SHA3). Nr r r r r � block_size s zHashAlgorithm.block_sizeN)�__name__� __module__�__qualname__�abc�abstractproperty�strr �intr �typing�Optionalr r r r r r s r )� metaclassc @ s^ e Zd Zejed�dd��Zejedd�dd��Z ejed�dd ��Z ejd d�d d��ZdS )�HashContextr c C s dS )zD A HashAlgorithm that will be used by this context. Nr r r r r � algorithm$ s zHashContext.algorithmN��datar c C s dS )z@ Processes the provided bytes through the hash. Nr �r r r r r �update* s zHashContext.updatec C s dS )zR Finalizes the hash context and returns the hash digest as bytes. Nr r r r r �finalize0 s zHashContext.finalizec C s dS )zM Return a HashContext that is a copy of the current context. Nr r r r r �copy6 s zHashContext.copy)r r r r r r r �abstractmethod�bytesr r r r r r r r # s r c @ s e Zd ZdZdS )�ExtendableOutputFunctionz7 An interface for extendable output functions. N)r r r �__doc__r r r r r"