File: //lib/python3/dist-packages/uaclient/entitlements/__pycache__/fips.cpython-310.pyc
o
�~c0I � @ sB d dl Z d dlZd dlmZ d dlmZmZmZ d dlm Z m
Z
mZmZm
Z
mZ d dlmZmZ d dlmZ d dlmZ d dlmZ d d lmZmZ d d
lmZmZmZ e
�� Z g d�Z!dd
gZ"e!e" e!e" e!d�Z#g d�Z$g d�Z%g d�Z&e!e" e$ e!e" e% e!e& d�Z'G dd� dej(�Z)G dd� de)�Z*G dd� de)�Z+dS )� N)�groupby)�List�Optional�Tuple)�apt�event_logger�
exceptions�messages�system�util)�NoCloudTypeReason�get_cloud_type)�repo)�IncompatibleService)�ApplicationStatus)�ServicesOnceEnabledData�services_once_enabled_file)�MessagingOperations�MessagingOperationsDict�StaticAffordance)�
strongswan�strongswan-hmac�openssh-client�openssh-server�openssh-client-hmac�openssh-server-hmac)�xenial�bionic�focal)�openssl�libssl1.0.0�libssl1.0.0-hmac)r � libssl1.1�libssl1.1-hmac�libgcrypt20�libgcrypt20-hmacc s( e Zd ZdZdZdZdZdZg d�Ze dd� �Z
d&d
eee
deded
d f� fdd�
Z d'de
ded
d fdd�Zde
de
d
ef� fdd�Ze d
eedf fdd��Ze d
ee
f� fdd��Zd
eeeej f f� fdd�Zd(d d!�Zd'ded
ef� fd"d#�
Zd'ded
d f� fd$d%�
Z� ZS ))�FIPSCommonEntitlementi� zubuntu-advantage-fips.gpgz/proc/sys/crypto/fips_enabledTz/https://ubuntu.com/security/certifications#fips)zfips-initramfsr"