Dashboard
PHP:
8.1.34
OS:
Linux
User:
uid288609
/
/
usr
/
lib
/
python3
/
dist-packages
/
cryptography
/
hazmat
/
primitives
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: cmac.cpython-39.pyc
a � `R � @ sl d dl mZmZmZ d dlmZ d dlmZmZm Z d dl mZ d dlm Z d dlmZ G dd� de�Zd S ) � )�absolute_import�division�print_function)�utils)�AlreadyFinalized�UnsupportedAlgorithm�_Reasons)�_get_backend)�CMACBackend)�ciphersc @ s6 e Zd Zddd�Zdd� Zdd� Zdd � Zd d� ZdS ) �CMACNc C sb t |�}t|t�stdtj��t|tj�s2td��|| _ || _ |d u rX| j �| j �| _n|| _d S )Nz.Backend object does not implement CMACBackend.z*Expected instance of BlockCipherAlgorithm.) r � isinstancer r r ZBACKEND_MISSING_INTERFACEr ZBlockCipherAlgorithm� TypeError� _algorithm�_backendZcreate_cmac_ctx�_ctx)�self� algorithm�backend�ctx� r �E/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/cmac.py�__init__ s �z CMAC.__init__c C s. | j d u rtd��t�d|� | j �|� d S )N�Context was already finalized.�data)r r r �_check_bytes�update)r r r r r r % s zCMAC.updatec C s&