관리-도구
편집 파일: poly1305.cpython-36.pyc
3 l�_� � @ sH d dl mZmZmZ d dlmZ d dlmZmZm Z G dd� de �ZdS )� )�absolute_import�division�print_function)�utils)�AlreadyFinalized�UnsupportedAlgorithm�_Reasonsc @ sD e Zd Zdd� Zdd� Zdd� Zdd� Zed d � �Zedd� �Z d S )�Poly1305c C s0 ddl m} |j� s tdtj��|j|�| _d S )Nr )�backendz5poly1305 is not supported by this version of OpenSSL.)Z,cryptography.hazmat.backends.openssl.backendr Zpoly1305_supportedr r ZUNSUPPORTED_MACZcreate_poly1305_ctx�_ctx)�self�keyr � r � /usr/lib64/python3.6/poly1305.py�__init__ s zPoly1305.__init__c C s. | j d krtd��tjd|� | j j|� d S )NzContext was already finalized.�data)r r r Z_check_byteslike�update)r r r r r r s zPoly1305.updatec C s&