o
    `qi                     @   s   d d Z dS )c                 O   s  ||d< |rG|dv rt |dkrtd|d |d< n,|dv r0t |dkr)td|d |d< n|d	kr?t |dkr>tdn|dkrGtd
d }|dd}|dkrbddlm} || fi |}n|dkruddlm} || fi |}n|dkrddlm}	 |	| fi |}n|dkrddl	m
}
 |
| fi |}n|d	krddlm} || fi |}n|dkrddlm} || fi |}n|dkrddlm} || fi |}nx|rL|dkrddlm} || fi |}nb|dkrddlm} || fi |}nO|dkrddlm} || fi |}n;|dkr%dd lm} || fi |}n'|d!kr9dd"lm} || fi |}n|d#krLdd$lm} || fi |}|d u rUtd%|S )&Nkey)   	   
            z Too many arguments for this mode    nonce)            ZIV   z%IV is not meaningful for the ECB modeZadd_aes_modesF)_create_ecb_cipherr
   )_create_cbc_cipherr   )_create_cfb_cipherr   )_create_ofb_cipher)_create_ctr_cipherr   )_create_openpgp_cipherr   )_create_eax_cipherr   )_create_ccm_cipherr   )_create_siv_cipherr   )_create_gcm_cipherr   )_create_ocb_cipher   )_create_kw_cipher   )_create_kwp_cipherzMode not supported)len	TypeErrorpopZCrypto.Cipher._mode_ecbr   ZCrypto.Cipher._mode_cbcr   ZCrypto.Cipher._mode_cfbr   ZCrypto.Cipher._mode_ofbr   ZCrypto.Cipher._mode_ctrr   ZCrypto.Cipher._mode_openpgpr   ZCrypto.Cipher._mode_eaxr   ZCrypto.Cipher._mode_ccmr   ZCrypto.Cipher._mode_sivr   ZCrypto.Cipher._mode_gcmr   ZCrypto.Cipher._mode_ocbr   ZCrypto.Cipher._mode_kwr   ZCrypto.Cipher._mode_kwpr   
ValueError)factoryr   modeargskwargsresZextra_modesr   r   r   r   r   r   r   r   r   r   r   r   r    r'   ]/home/app/PaddleOCR-VL/.venv_paddleocr/lib/python3.10/site-packages/Crypto/Cipher/__init__.py_create_cipher   sz   




r)   N)r)   r'   r'   r'   r(   <module>   s   