�
J�gp � � � d Z ddlZddlmZ ddlmZ ddlmZmZ ddlm Z
ddlmZ G d � d
� � Z
d� Zd� Zd
Z ed� � ZdS )z�
Module dedicated to document signature generation.
The contents of this module are internal to fpdf2, and not part of the public API.
They may change at any time without prior warning or any deprecation period,
in non-backward-compatible ways.
� N)�timezone)�patch� )�build_obj_dict�Name)�create_dictionary_string)�buffer_substc � � e Zd Zdd�Zdd�ZdS )� SignatureNc �� � t d� � | _ t d� � | _ t d� � | _ || _ || _ || _ || _ t | _ dt z dz | _ d S )N�Sigz
Adobe.PPKLitezadbe.pkcs7.detached�<�>)r �type�filter�
sub_filter�contact_info�location�m�reason� _SIGNATURE_BYTERANGE_PLACEHOLDER�
byte_range�_SIGNATURE_CONTENTS_PLACEHOLDER�contents)�selfr r r r s �Y/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/sign.py�__init__zSignature.__init__ st � ���K�K�� ��?�+�+����4�5�5���(���p� ��
�?��������$�:����=�=��C��
�
�
� c �x � � t � fd�t � � � D � � ||�� � }t |� � S )Nc �2 �� i | ]}|t �|� � ��S � )�getattr)�.0�keyr s �r �
<dictcomp>z'Signature.serialize.<locals>.<dictcomp>$ s% �� �:�:�:��S�'�$��$�$�:�:�:r )�_security_handler�_obj_id)r �dir�pdf_dict)r r&