관리-도구
편집 파일: test_DSA.cpython-311.pyc
� O�Dg�% � �� � d Z ddlZddlT ddlZddlmZmZmZ d� Z G d� dej � � Z G d� d ej � � Zi fd �Ze dk rd� Z ej d �� � dS dS )z(Self-test suite for Crypto.PublicKey.DSA� N)�*)�list_test_cases�a2b_hex�b2a_hexc �� � t | t � � r'd� | � � � � � S t d� � � | � � � � � S )z,Remove whitespace from a text or byte string� )� isinstance�str�join�split�b)�ss ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/PublicKey/test_DSA.py�_swsr ! sN � ��!�C��� %��w�w�q�w�w�y�y�!�!�!���u�u�z�z�!�'�'�)�)�$�$�$� c �Z � e Zd Z ed� � Z ed� � Z ed� � Z ed� � Z ed� � Z ed� � Z ed� � Z e ed� � � � Z ed � � Z ed � � Z ed� � Zd� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�DSATestz�19131871 d75b1612 a819f29d 78d1b0d7 346f7aa7 7bb62a85 9bfd6c56 75da9d21 2d3a36ef 1672ef66 0b8c7c25 5cc0ec74 858fba33 f44c0669 9630a76b 030ee333z�626d0278 39ea0a13 413163a5 5b4cb500 299d5522 956cefcb 3bff10f3 99ce2c2e 71cb9de5 fa24babf 58e5b795 21925c9c c42e9f6f 464b088c c572af53 e6d78802z�8df2a494 492276aa 3d25759b b06869cb eac0d83a fb8d0cf7 cbb8324f 0d7882e5 d0762fc5 b7210eaf c2e9adac 32ab7aac 49693dfb f83724c2 ec0736ee 31c80291z,c773218c 737ec8ee 993b4f2d ed30f48e dace915fz,2070b322 3dba372f de1c0ffc 7b2e3b49 8b260614z,358dad57 1462710f 50e254cf 1a376b2b deaadfbfz,0d516729 8202e49b 4116ac10 4fc3f415 ae52f917�abcz,a9993e36 4706816a ba3e2571 7850c26c 9cd0d89dz,8bac1ab6 6410435c b7181f95 b16ab97c 92b341c0z,41e2345f 1f56df24 58f426d1 55b4ba2d b6dcd8c8c �J � ddl ma ddlma ddlmam}ma t | _ d S )Nr )�DSA)�Random)� bytes_to_long�inverse�size) �Crypto.PublicKeyr �Cryptor �Crypto.Util.numberr r r �dsa)�selfr s r �setUpz DSATest.setUpF sO � �(�(�(�(�(�(�!�!�!�!�!�!�C�C�C�C�C�C�C�C�C�C�����r c � � | j � d� � }| � |� � |� � � }| � |� � dS )z7DSA (default implementation) generated key (1 argument)� N)r �generate�_check_private_key� public_key�_check_public_key�r �dsaObj�pubs r �test_generate_1argzDSATest.test_generate_1argN sV � ���"�"�4�(�(������'�'�'����!�!�����s�#�#�#�#�#r c �� � | j � dt � � � j � � }| � |� � |� � � }| � |� � dS )z8DSA (default implementation) generated key (2 arguments)r"