name : krb5.cpython-39.opt-1.pyc
a

�
�g��@s ddlmZGdd�de�ZdS)�)�ConfigGeneratorc@sJeZdZdZddhZdddd�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
Cs�|j}d}d}|d7}d}|dD]F}|dD]8}z |�||j|d||�}Wq.tydYq.0q.q"|dD]0}z|�||j||�}Wqrty�Yqr0qrd|dvr�d	|d
vr�|�|d|�}||d7}|jd
dkr�|d7}|S)N� z[libdefaults]
zpermitted_enctypes = �ZmacZcipher�-zRC4-128ZMD5�hashzarcfour-hmac-md5�
Zmin_dh_sizeizpkinit_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_configs, 
zKRB5Generator.generate_configcCsdS)NTr)r
Zconfigrrr�test_config?szKRB5Generator.test_configN)
�__name__�
__module__�__qualname__ZCONFIG_NAMEZSCOPESrr
�classmethodrrrrrrr	s��
"rN)Zconfiggeneratorrrrrrr�<module>s

© 2025 Cubjrnet7