관리-도구
편집 파일: dsa.cpython-36.pyc
3 l�_ � @ s$ d dl mZmZmZ d dlZd dlZd dlmZ d dlm Z ej ej�G dd� de��Z ej ej�G dd� de ��Zej ej�G d d � d e��Zej ej�G dd� de��Zej ej�G d d� de��ZeZddd�Zddd�Zdd� Zdd� ZG dd� de�ZG dd� de�ZG dd� de�ZdS )� )�absolute_import�division�print_functionN)�utils)�_get_backendc @ s e Zd Zejdd� �ZdS )� DSAParametersc C s dS )z8 Generates and returns a DSAPrivateKey. N� )�selfr r �/usr/lib64/python3.6/dsa.py�generate_private_key s z"DSAParameters.generate_private_keyN)�__name__� __module__�__qualname__�abc�abstractmethodr r r r r r s r c @ s e Zd Zejdd� �ZdS )�DSAParametersWithNumbersc C s dS )z0 Returns a DSAParameterNumbers. Nr )r r r r �parameter_numbers s z*DSAParametersWithNumbers.parameter_numbersN)r r r r r r r r r r r s r c @ sR e Zd Zejdd� �Zejdd� �Zejdd� �Zejdd� �Z ejd d � �Z dS )� DSAPrivateKeyc C s dS )z6 The bit length of the prime modulus. Nr )r r r r �key_size# s zDSAPrivateKey.key_sizec C s dS )zD The DSAPublicKey associated with this private key. Nr )r r r r � public_key) s zDSAPrivateKey.public_keyc C s dS )zL The DSAParameters object associated with this private key. Nr )r r r r � parameters/ s zDSAPrivateKey.parametersc C s dS )zN Returns an AsymmetricSignatureContext used for signing data. Nr )r �signature_algorithmr r r �signer5 s zDSAPrivateKey.signerc C s dS )z Signs the data Nr )r �data� algorithmr r r �sign; s zDSAPrivateKey.signN)r r r r �abstractpropertyr r r r r r r r r r r ! s r c @ s( e Zd Zejdd� �Zejdd� �ZdS )�DSAPrivateKeyWithSerializationc C s dS )z. Returns a DSAPrivateNumbers. Nr )r r r r �private_numbersD s z.DSAPrivateKeyWithSerialization.private_numbersc C s dS )z6 Returns the key serialized as bytes. Nr )r �encoding�formatZencryption_algorithmr r r � private_bytesJ s z,DSAPrivateKeyWithSerialization.private_bytesN)r r r r r r r! r r r r r B s r c @ s` e Zd Zejdd� �Zejdd� �Zejdd� �Zejdd� �Z ejd d � �Z ejdd� �Zd S )�DSAPublicKeyc C s dS )z6 The bit length of the prime modulus. Nr )r r r r r S s zDSAPublicKey.key_sizec C s dS )zK The DSAParameters object associated with this public key. Nr )r r r r r Y s zDSAPublicKey.parametersc C s dS )zQ Returns an AsymmetricVerificationContext used for signing data. Nr )r � signaturer r r r �verifier_ s zDSAPublicKey.verifierc C s dS )z- Returns a DSAPublicNumbers. Nr )r r r r �public_numberse s zDSAPublicKey.public_numbersc C s dS )z6 Returns the key serialized as bytes. Nr )r r r r r r �public_bytesk s zDSAPublicKey.public_bytesc C s dS )z5 Verifies the signature of the data. Nr )r r# r r r r r �verifyq s zDSAPublicKey.verifyN)r r r r r r r r r$ r% r&