| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.9/site-packages/ipaplatform/test_fedora_legacy/ |
Upload File : |
#
# Copyright (C) 2025 FreeIPA Contributors see COPYING for license
#
"""Fedora AES HMAC-SHA1 master key tasks
"""
from ipaplatform.fedora.tasks import FedoraTaskNamespace
from re import compile
def add_aes_sha1(enctypes):
return tuple({*enctypes,
'aes256-cts:special', 'aes128-cts:special',
'aes256-cts:normal', 'aes128-cts:normal'})
class TestFedoraLegacyTaskNamespace(FedoraTaskNamespace):
def get_masterkey_enctype(self):
return 'aes256-cts'
def get_supported_enctypes(self):
aes_sha2_pattern = compile('^aes[0-9]+-sha2:')
return tuple(e for e in super().get_supported_enctypes()
if not aes_sha2_pattern.match(e))
def get_removed_supported_enctypes(self):
return add_aes_sha1(super().get_removed_supported_enctypes())
def get_removed_default_enctypes(self):
return add_aes_sha1(super().get_removed_default_enctypes())
tasks = TestFedoraLegacyTaskNamespace()