Current File : //usr/lib/python3/dist-packages/pip/_internal/utils/__pycache__/hashes.cpython-312.pyc |
�
/�g� � � � d dl Z d dlmZmZmZmZmZmZ d dlm Z m
Z
mZ d dlm
Z
erd dl mZ d dlmZ dZg d�Z G d � d
� Z G d� de� Zy)
� N)�
TYPE_CHECKING�BinaryIO�Dict�Iterable�List�Optional)�HashMismatch�HashMissing�InstallationError)�read_chunks)�_Hash)�NoReturn�sha256)r �sha384�sha512c � � e Zd ZdZddeeeee f ddfd�Zdd�Z e
defd�� Zd ed
ede
fd�Zdee ddfd
�Zdeedf ddfd�Zdeddfd�Zdeddfd�Zdeeef de
fd�Zde
fd�Zdede
fd�Zdefd�Zy)�HasheszaA wrapper that builds multiple hashes at once and checks them against
known-good values
N�hashes�returnc �f � i }|�&|j � D ] \ }}t |� ||<