/opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Cipher/__pycache__
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Cipher/__pycache__/DES3.cpython-311.pyc (7622B)
§
hÖ8ËlÌ/bã óœ — d Z ddlZddlmZ ddlmZmZmZmZ ddl m
Z
mZmZm
Z
e
dd¦ « Zd„ Zd „ Zd
„ ZdZdZd
ZdZdZdZdZdZdZdS )aÇ
Module's constants for the modes of operation supported with Triple DES:
:var MODE_ECB: :ref:`Electronic Code Book (ECB)
`
:var MODE_CBC: :ref:`Cipher-Block Chaining (CBC) `
:var MODE_CFB: :ref:`Cipher FeedBack (CFB) `
:var MODE_OFB: :ref:`Output FeedBack (OFB) `
:var MODE_CTR: :ref:`CounTer Mode (CTR) `
:var MODE_OPENPGP: :ref:`OpenPGP Mode `
:var MODE_EAX: :ref:`EAX Mode `
é N)Ú_create_cipher)Úbyte_stringÚbchrÚbordÚbstr)Úload_pycryptodome_raw_libÚVoidPointerÚSmartPointerÚc_size_tzCrypto.Cipher._raw_des3aÀ
int DES3_start_operation(const uint8_t key[],
size_t key_len,
void **pResult);
int DES3_encrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int DES3_decrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int DES3_stop_operation(void *state);
c ó ‡— d„ Št | ¦ « t vrt d¦ « ‚d ˆfd„| D ¦ « ¦ « }|dd… |dd… k s|dd … |d d… k rt d
¦ « ‚|S )am Set the parity bits in a TDES key.
:param key_in: the TDES key whose bits need to be adjusted
:type key_in: byte string
:returns: a copy of ``key_in``, with the parity bits correctly set
:rtype: byte string
:raises ValueError: if the TDES key is not 16 or 24 bytes long
:raises ValueError: if the TDES key degenerates into Single DES
c óR — d}t dd¦ « D ]
}|| |z dz z }Œ| dz |z S )Né é éþ )Úrange)Úkey_byteÚparityÚis út/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/DES3.pyÚparity_bytez&adjust_key_parity..parity_byteI sB € ؈Ý�q˜!‘”ð *ð *ˆAØ�x 1‘}¨Ñ)Ñ)ˆFˆFؘ4‘ 6Ñ)Ð)ó zNot a valid TDES keyr c óZ •— g | ]'}t ‰t |¦ « ¦ « ¦ « ‘Œ(S © )r r )Ú.0Úxr s €r ú
z%adjust_key_parity..R s1 ø€ ÐEÐEÐE¸�˜k˜k$¨q©'¬'Ñ2Ô2Ñ3Ô3ÐEÐEÐEr Nr é iðÿÿÿiøÿÿÿz(Triple DES key degenerates to single DES)ÚlenÚkey_sizeÚ
ValueErrorÚjoin)Úkey_inÚkey_outr s @r Úadjust_key_parityr$ <