1 ~ d dl Z d dlmZ d dlmZmZmZmZmZm Z edd Z
d Zd ZdZ
d Z ed d
ZdS ) N)_create_cipher)load_pycryptodome_raw_libVoidPointerSmartPointerc_size_tc_uint8_ptrc_uintzCrypto.Cipher._raw_eksblowfishaa
int EKSBlowfish_start_operation(const uint8_t key[],
size_t key_len,
const uint8_t salt[16],
size_t salt_len,
unsigned cost,
unsigned invert,
void **pResult);
int EKSBlowfish_encrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int EKSBlowfish_decrypt(const void *state,
const uint8_t *in,
uint8_t *out,
size_t data_len);
int EKSBlowfish_stop_operation(void *state);
c d | d }| d }| d }n1# t $ r$}t dt | z d}~ww xY w| dd }t | t
vrt
dt | z t j }t j }t } |t | t t | t | t t | t | t t | | } | rt
d | z t! | | S )
zThis method instantiates and returns a smart pointer to
a low-level base cipher. It will absorb named parameters in
the process.keysaltcostzMissing EKSBlowfish parameter: NinvertTz+Incorrect EKSBlowfish key length (%d bytes)z3Error %X while instantiating the EKSBlowfish cipher)popKeyError TypeErrorstrlenkey_size
ValueError_raw_blowfish_libEKSBlowfish_start_operationEKSBlowfish_stop_operationr r r r int
address_ofr get)
dict_parametersr r r
er start_operationstop_operationvoid_presults
|/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/_EKSBlowfish.py_create_base_cipherr# = s
D!!%((""6**""6** D D D9CFFBCCCD
4
0
0F
3xxxFSQRRR'CO&AN
]]F
_[--%c#hh//(..%c$ii00#D\\#CKK00#..00
2 2F #N!" # # #
n555s ?A
A0A++A0c V |||d}t t j t | |fi |S )a Create a new EKSBlowfish cipher
Args:
key (bytes, bytearray, memoryview):
The secret key to use in the symmetric cipher.
Its length can vary from 0 to 72 bytes.
mode (one of the supported ``MODE_*`` constants):
The chaining mode to use for encryption or decryption.
salt (bytes, bytearray, memoryview):
The salt that bcrypt uses to thwart rainbow table attacks
cost (integer):
The complexity factor in bcrypt
invert (bool):
If ``False``, in the inner loop use ``ExpandKey`` first over the salt
and then over the key, as defined in
the `original bcrypt specification