Sindbad~EG File Manager
�
'ٜg�% � �� � d dl mZ d dlmZ d dlZd dlZd dlZddl m
Z
ddl mZ ddl mZ ddl m
Z
ddlmZ G d � d
� Z G d� de� Zddd
�Z G d� de� Z dd�Z G d� d� Zy)� )�annotationsN� )�_base64_alphabet)�
base64_decode)�
base64_encode)�
want_bytes)�BadSignaturec � � e Zd ZdZdd�Zdd�Zy)�SigningAlgorithmzgSubclasses must implement :meth:`get_signature` to provide
signature generation functionality.
c � � t � �)z2Returns the signature for the given key and value.)�NotImplementedError��self�key�values �>/usr/local/lib/python3.12/site-packages/itsdangerous/signer.py�
get_signaturezSigningAlgorithm.get_signature s � �!�#�#� c �N � t j || j ||� � S )zMVerifies the given signature matches the expected
signature.
)�hmac�compare_digestr )r r r �sigs r �verify_signaturez!SigningAlgorithm.verify_signature s$ � � �"�"�3��(:�(:�3��(F�G�Gr N�r �bytesr r �returnr )r r r r r r r �bool)�__name__�
__module__�__qualname__�__doc__r r � r r r r s � ��$�Hr r c � � e Zd ZdZdd�Zy)�
NoneAlgorithmz`Provides an algorithm that does not perform any signing and
returns an empty signature.
c � � y)Nr r"