ok
Direktori : /opt/alt/python36/lib64/python3.6/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/__pycache__/hmac.cpython-36.opt-2.pyc |
3 ��2a� � @ sh d dl Zd dlmZ d dlZedd� ed�D ��Z edd� ed�D ��Z dZG dd� d�Zdd d �Z dS )� N)�_compare_digestc c s | ]}|d A V qdS )�\ N� )�.0�xr r �)/opt/alt/python36/lib64/python3.6/hmac.py� <genexpr> s r � c c s | ]}|d A V qdS )�6 Nr )r r r r r r s c @ sN e Zd ZdZddd�Zedd� �Zdd� Zd d � Zdd� Z d d� Z dd� ZdS )�HMAC�@ Nc sV t |ttf�s tdt|�j ��� d kr<tjdtd� t j � t� �rL� | _n,t � t �rhd � fdd� | _nd� fdd� | _| j� | _| j� | _| jj| _t| jd�r�| jj}|d k r�tjd || jf td� | j}ntjd| j td� | j}|| _t|�|k�r| j|�j� }|j|d�}| jj|jt�� | jj|jt�� |d k �rR| j|� d S )Nz,key: expected bytes or bytearray, but got %rz<HMAC() without an explicit digestmod argument is deprecated.� � c s t j� | �S )N)�_hashlib�new)�d)� digestmodr r �<lambda>4 s zHMAC.__init__.<locals>.<lambda>c s � j | �S )N)r )r )r r r r 6 s � block_size� z:block_size of %d seems too small; using our default of %d.z<No block_size attribute on given digest object; Assuming %d.� )r )r )� isinstance�bytes� bytearray� TypeError�type�__name__� _warnings�warn�PendingDeprecationWarningr Zmd5�callable�digest_cons�str�outer�inner�digest_size�hasattrr � blocksize�RuntimeWarning�len�digest�ljust�update� translate�trans_5C�trans_36)�self�key�msgr r'