관리-도구
편집 파일: test_OFB.cpython-311.pyc
� O�Dg�$ � �� � d dl Z d dlmZ d dlmZ d dlmZ d dlmZm Z m Z d dlmZ d dl mZ d� Zd d lmZ G d � de� � Zd dlmZ G d � de� � ZdZdZeD ]Zefd�Z eedez e� � �eD ]Zefd�Z eedez e� � �[[dZeD ]Zefd�Z eedez e� � � G d� de j � � Zi fd�Zedk rd� Z e j d�� � dS dS )� N)� unhexlify)�list_test_cases)�tobytes)�AES�DES3�DES)�SHAKE128)�load_test_vectors_wycheproofc �l � t j t | � � �� � � |� � S )N)�data)r �newr �read)�tag�lengths ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Cipher/test_OFB.py�get_tag_randomr ( s) � ��<�W�S�\�\�*�*�*�/�/��7�7�7� )�BlockChainingTestsc �6 � e Zd Zej Zej Zd� Zd� Z dS )�OfbTestsc �� �� dgdz }t j | j t j | j d�� � ��fd�|D � � }t j | j t j | j d�� � �| � d� |� � �� d� |� � � � � � t j | j t j | j d�� � ��fd�|D � � }t j | j t j | j d�� � �| � d� |� � �� d� |� � � � � � d S ) N� 7777777�d � ��segment_sizec �: �� g | ]}�� |� � ��S � ��encrypt��.0�x�ciphers �r � <listcomp>z4OfbTests.test_unaligned_data_128.<locals>.<listcomp>8 �% �� �?�?�?�a����q�)�)�?�?�?r r � c �: �� g | ]}�� |� � ��S r r r! s �r r% z4OfbTests.test_unaligned_data_128.<locals>.<listcomp>= r&