| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/Cryptodome/Cipher/__pycache__/ |
Upload File : |
�
��eX � � � d Z ddlZddlmZ ddlmZmZmZmZm Z edd� Z
d� Zd� Zd Z
d
ZdZdZd
ZdZdZdZ edd� Zy)a�
Module's constants for the modes of operation supported with Blowfish:
:var MODE_ECB: :ref:`Electronic Code Book (ECB) <ecb_mode>`
:var MODE_CBC: :ref:`Cipher-Block Chaining (CBC) <cbc_mode>`
:var MODE_CFB: :ref:`Cipher FeedBack (CFB) <cfb_mode>`
:var MODE_OFB: :ref:`Output FeedBack (OFB) <ofb_mode>`
:var MODE_CTR: :ref:`CounTer Mode (CTR) <ctr_mode>`
:var MODE_OPENPGP: :ref:`OpenPGP Mode <openpgp_mode>`
:var MODE_EAX: :ref:`EAX Mode <eax_mode>`
� N)�_create_cipher)�load_pycryptodome_raw_lib�VoidPointer�SmartPointer�c_size_t�c_uint8_ptrzCryptodome.Cipher._raw_blowfishaT
int Blowfish_start_operation(const uint8_t key[],
size_t key_len,
void **pResult);
int Blowfish_encrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int Blowfish_decrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int Blowfish_stop_operation(void *state);
c � � | j d� }t |� t vrt dt |� z � �t j }t j }t � } |t |� t t |� � |j � � }|rt d|z � �t |j � |� S # t $ r t d� �w xY w)z�This method instantiates and returns a smart pointer to
a low-level base cipher. It will absorb named parameters in
the process.�keyzMissing 'key' parameterz(Incorrect Blowfish key length (%d bytes)z0Error %X while instantiating the Blowfish cipher)�pop�KeyError� TypeError�len�key_size�
ValueError�_raw_blowfish_lib�Blowfish_start_operation�Blowfish_stop_operationr r r �
address_ofr �get)�dict_parametersr
�start_operation�stop_operation�void_p�results �</usr/lib/python3/dist-packages/Cryptodome/Cipher/Blowfish.py�_create_base_cipherr <