uB J d Z dgZddlmZ ddlmZ G d de Zd ZdS )z OpenPGP mode. OpenPgpMode )_copy_bytes)get_random_bytesc $ e Zd ZdZd Zd Zd ZdS )r az OpenPGP mode. This mode is a variant of CFB, and it is only used in PGP and OpenPGP_ applications. If in doubt, use another mode. An Initialization Vector (*IV*) is required. Unlike CFB, the *encrypted* IV (not the IV itself) is transmitted to the receiver. The IV is a random data block. For legacy reasons, two of its bytes are duplicated to act as a checksum for the correctness of the key, which is now known to be insecure and is ignored. The encrypted IV is therefore 2 bytes longer than the clean IV. .. _OpenPGP: http://tools.ietf.org/html/rfc4880 :undocumented: __init__ c d |j | _ d| _ |j ||j fd| j z | j dz d|}t d d | }t | | j k r&| ||dd z | _ nat | | j dz k r%|| _ | | d d }n!t d| j | j dz fz |x| _ | _ |j ||j f| j | j d | j dz d|| _ d S )NF )IVsegment_size z4Length of IV must be %d or %d bytes for MODE_OPENPGP) block_size_done_first_blocknewMODE_CFBr lenencrypt _encrypted_IVdecrypt ValueErrorivr _cipher)selffactorykeyr cipher_params IV_ciphers }/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/_mode_openpgp.py__init__zOpenPgpMode.__init__= s ",!& GK() #T_4%)_q%8 ) ) () ) tR ( ( r77do%%!*!2!22233