Current File : //proc/353637/root/lib/python3/dist-packages/twisted/conch/ssh/__pycache__/_kex.cpython-312.pyc |
�
Ϫ�fw! � �r � d Z ddlmZmZmZmZ ddlmZmZm Z ddl
mZ G d� de� Z G d� de� Z
G d � d
e� Z G d� de� Z e e� G d
� d� � Z e e� G d� d� � Z e e� G d� d� � Z e e� G d� d� � Z e e� G d� d� � Z e e� G d� d� � Z e e� G d� d� � Z e e
� G d� d� � Z e� e� e� e� e� e� e� e� d�Zd� Zd� Zd � Zd!� Zd"� Zd#� Zy$)%z
SSH key exchange handling.
� )�sha1�sha256�sha384�sha512)� Attribute� Interface�implementer)�errorc �0 � e Zd ZdZ ed� Z ed� Zy)�_IKexAlgorithmzB
An L{_IKexAlgorithm} describes a key exchange algorithm.
z�An L{int} giving the preference of the algorithm when negotiating key exchange. Algorithms with lower precedence values are more preferred.zqA callable hash algorithm constructor (e.g. C{hashlib.sha256}) suitable for use with this key exchange algorithm.N)�__name__�
__module__�__qualname__�__doc__r �
preference�
hashProcessor� � �8/usr/lib/python3/dist-packages/twisted/conch/ssh/_kex.pyr r s) � �� � ��J� � =��Mr r c �0 � e Zd ZdZ ed� Z ed� Zy)�_IFixedGroupKexAlgorithmzu
An L{_IFixedGroupKexAlgorithm} describes a key exchange algorithm with a
fixed prime / generator group.
zdAn L{int} giving the prime number used in Diffie-Hellman key exchange, or L{None} if not applicable.z�An L{int} giving the generator number used in Diffie-Hellman key exchange, or L{None} if not applicable. (This is not related to Python generator functions.)N)r
r r r r �prime� generatorr r r r r "