File: //opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/__pycache__/hashalgo.cpython-37.pyc
B
Bd\R� � @ s d dl mZ G dd� d�ZdS )� )�hexlifyc @ sL e Zd ZdZdZdZddd�Zdd� Zdd� Zd d
� Z dd� Z
dd
d�ZdS )�HashAlgozeA generic class for an abstract cryptographic hash algorithm.
:undocumented: block_size
Nc C s0 t |d�r|�� | _n|� | _|r,| �|� dS )a� Initialize the hash object.
:Parameters:
hashFactory : callable
An object that will generate the actual hash implementation.
*hashFactory* must have a *new()* method, or must be directly
callable.
data : byte string
The very first chunk of the message to hash.
It is equivalent to an early call to `update()`.
�newN)�hasattrr �_hash�update)�selfZhashFactory�data� r
�G/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/hashalgo.py�__init__"