§
[Ö\òv~€3ã ó¢ — d Z ddlZddlmZ ddlmZ ddlmZmZm Z m
Z
mZ edd¦ « Zd„ Z
d „ Zd
ZdZdZd
ZdZdZdZdZ ed
d¦ « ZdS )aÁ
Module's constants for the modes of operation supported with CAST:
: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)Úload_pycryptodome_raw_libÚVoidPointerÚSmartPointerÚc_size_tÚc_uint8_ptrzCrypto.Cipher._raw_castaÀ
int CAST_start_operation(const uint8_t key[],
size_t key_len,
void **pResult);
int CAST_encrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int CAST_decrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int CAST_stop_operation(void *state);
c ó — | d¦ « }n# t $ r t d¦ « ‚w xY wt |¦ « t vrt dt |¦ « z ¦ « ‚t j }t j }t ¦ « } |t |¦ « t t |¦ « ¦ « | ¦ « ¦ « }|rt d|z ¦ « ‚t | ¦ « |¦ « S )z}This method instantiates and returns a handle to a low-level
base cipher. It will absorb named parameters in the process.ÚkeyzMissing 'key' parameterz$Incorrect CAST key length (%d bytes)z,Error %X while instantiating the CAST cipher)ÚpopÚKeyErrorÚ TypeErrorÚlenÚkey_sizeÚ
ValueErrorÚ
_raw_cast_libÚCAST_start_operationÚCAST_stop_operationr r r Ú
address_ofr Úget)Údict_parametersr Ústart_operationÚstop_operationÚcipherÚresults út/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/CAST.pyÚ_create_base_cipherr <