관리-도구
편집 파일: dh.cpython-36.opt-1.pyc
3 l�_ � @ s� d dl mZmZmZ d dlZd dlZd dlmZ d dlm Z ddd�Z G dd� de�ZG d d � d e�Z G dd� de�Zejej�G d d� de��ZeZejej�G dd� de��Zejej�G dd� de��Zejej�G dd� de��ZeZdS )� )�absolute_import�division�print_functionN)�utils)�_get_backendc C s t |�}|j| |�S )N)r Zgenerate_dh_parameters)� generator�key_size�backend� r �/usr/lib64/python3.6/dh.py�generate_parameters s r c @ sB e Zd Zdd� Zdd� Zdd� Zddd �Zejd �Z ejd�Z dS ) �DHPrivateNumbersc C s6 t |tj�std��t |t�s&td��|| _|| _d S )Nzx must be an integer.z6public_numbers must be an instance of DHPublicNumbers.)� isinstance�six� integer_types� TypeError�DHPublicNumbers�_x�_public_numbers)�self�x�public_numbersr r r �__init__ s zDHPrivateNumbers.__init__c C s&