| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/crypto-policies/python/policygenerators/__pycache__/ |
Upload File : |
a
Rz)j� � @ s d dl mZ G dd� de�ZdS )� )�ConfigGeneratorc @ sJ e Zd ZdZddhZdddd�Zdddd d
�Zedd� �Zed
d� �Z dS )�
KRB5GeneratorZkrb5Zkerberoszcamellia256-cts-cmaczcamellia128-cts-cmac)zCAMELLIA-256-CBCzCAMELLIA-128-CBCzCAMELLIA-128-CTSzaes256-cts-hmac-sha1-96zaes256-cts-hmac-sha384-192zaes128-cts-hmac-sha1-96zaes128-cts-hmac-sha256-128)zAES-256-CBC-HMAC-SHA1zAES-256-CBC-HMAC-SHA2-384zAES-128-CBC-HMAC-SHA1zAES-128-CBC-HMAC-SHA2-256c
C s� |j }d}d}|d7 }d}|d D ]F}|d D ]8}z | �|| j|d | |�}W q. tyd Y q.0 q.q"|d D ]0}z| �|| j| |�}W qr ty� Y qr0 qrd|d v r�d |d
v r�| �|d|�}||d 7 }|jd
dkr�|d7 }|S )N� z[libdefaults]
zpermitted_enctypes = � ZmacZcipher�-zRC4-128ZMD5�hashzarcfour-hmac-md5�
Zmin_dh_sizei zpkinit_dh_min_bits=4096
)Zenabled�append�cipher_mac_map�KeyError�
cipher_mapZintegers)�clsZpolicy�p�sepZcfg�s�j�i� r �:/usr/share/crypto-policies/python/policygenerators/krb5.py�generate_config s,
zKRB5Generator.generate_configc C s dS )NTr )r
Zconfigr r r �test_config? s zKRB5Generator.test_configN)
�__name__�
__module__�__qualname__ZCONFIG_NAMEZSCOPESr r
�classmethodr r r r r r r s ��
"r N)Zconfiggeneratorr r r r r r �<module> s