
    ([f1                     @    d dl Z ddlmZmZ  G d de          Zd ZdS )    N   )JWEZipAlgorithmJsonWebEncryptionc                   "    e Zd ZdZdZd Zd ZdS )DeflateZipAlgorithmDEFDEFLATEc                 >    t          j        |          }|dd         S )z+Compress bytes data with DEFLATE algorithm.r   )zlibcompress)selfsdatas      Q/var/www/piapp/venv/lib/python3.11/site-packages/authlib/jose/rfc7518/jwe_zips.pyr   zDeflateZipAlgorithm.compress	   s    }QAbDz    c                 B    t          j        |t           j                   S )zDecompress DEFLATE bytes data.)r   
decompress	MAX_WBITS)r   r   s     r   r   zDeflateZipAlgorithm.decompress   s    q4>/222r   N)__name__
__module____qualname__namedescriptionr   r    r   r   r   r      s<        DK  3 3 3 3 3r   r   c                  F    t          j        t                                 d S )N)r   register_algorithmr   r   r   r   register_jwe_rfc7518r      s     ()<)>)>?????r   )r   rfc7516r   r   r   r   r   r   r   <module>r       sn     8 8 8 8 8 8 8 83 3 3 3 3/ 3 3 3@ @ @ @ @r   