Your IP : 3.144.117.52
3
�Pf2 � @ sz d dl mZ d dlZd dlmZmZmZ d dlmZ d dl m
Z
mZmZ dZ
dddgZG d d
� d
e�ZG dd� de�ZdS )
� )�absolute_importN)�HashMismatch�HashMissing�InstallationError)�read_chunks)� iteritems�iterkeys�
itervaluesZsha256Zsha384Zsha512c @ sJ e Zd ZdZddd�Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dS )�HasheszaA wrapper that builds multiple hashes at once and checks them against
known-good values
Nc C s |dkri n|| _ dS )zo
:param hashes: A dict of algorithm names pointing to lists of allowed
hex digests
N)�_allowed)�self�hashes� r �/usr/lib/python3.6/hashes.py�__init__ s zHashes.__init__c
C s� i }xJt | j�D ]<}ytj|�||<