관리-도구
편집 파일: krb5.cpython-39.pyc
a � �g� � @ 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