o
    ©D®f1  ã                   @   s4   d dl Z ddlmZmZ G dd„ deƒZdd„ ZdS )é    Né   )ÚJWEZipAlgorithmÚJsonWebEncryptionc                   @   s$   e Zd ZdZdZdd„ Zdd„ ZdS )ÚDeflateZipAlgorithmÚDEFÚDEFLATEc                 C   s   t  |¡}|dd… S )z+Compress bytes data with DEFLATE algorithm.r   éüÿÿÿ)ÚzlibÚcompress)ÚselfÚsÚdata© r   úV/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/jose/rfc7518/jwe_zips.pyr
   	   s   
zDeflateZipAlgorithm.compressc                 C   s   t  |t j ¡S )zDecompress DEFLATE bytes data.)r	   Ú
decompressÚ	MAX_WBITS)r   r   r   r   r   r      s   zDeflateZipAlgorithm.decompressN)Ú__name__Ú
__module__Ú__qualname__ÚnameÚdescriptionr
   r   r   r   r   r   r      s
    r   c                   C   s   t  tƒ ¡ d S )N)r   Úregister_algorithmr   r   r   r   r   Úregister_jwe_rfc7518   s   r   )r	   Úrfc7516r   r   r   r   r   r   r   r   Ú<module>   s    