/var/opt/nydus/ops/oscrypto/__pycache__
NameSizeModeActions
asymmetric.cpython-312.pyc117610644editdlrm
errors.cpython-312.pyc34960644editdlrm
kdf.cpython-312.pyc83310644editdlrm
keys.cpython-312.pyc7080644editdlrm
symmetric.cpython-312.pyc10880644editdlrm
tls.cpython-312.pyc6220644editdlrm
trust_list.cpython-312.pyc134620644editdlrm
util.cpython-312.pyc19390644editdlrm
version.cpython-312.pyc3650644editdlrm
_asn1.cpython-312.pyc21380644editdlrm
_asymmetric.cpython-312.pyc320300644editdlrm
_cipher_suites.cpython-312.pyc222960644editdlrm
_ecdsa.cpython-312.pyc222560644editdlrm
_errors.cpython-312.pyc12870644editdlrm
_ffi.cpython-312.pyc170820644editdlrm
_int.cpython-312.pyc9780644editdlrm
_pkcs1.cpython-312.pyc210960644editdlrm
_pkcs5.cpython-312.pyc41870644editdlrm
_pkcs12.cpython-312.pyc57770644editdlrm
_rand.cpython-312.pyc14390644editdlrm
_tls.cpython-312.pyc173070644editdlrm
_types.cpython-312.pyc14140644editdlrm
__init__.cpython-312.pyc99950644editdlrm
Edit: /var/opt/nydus/ops/oscrypto/__pycache__/_pkcs5.cpython-312.pyc (4187B)
N jU ddlmZmZmZmZddlZddlZddlZddlZddl m Z m Z ddl m Z ddlmZmZmZej$dkreZndZd gZd Zd e_y) )unicode_literalsdivisionabsolute_importprint_functionN)int_from_bytes int_to_bytes)pretty_message) type_namebyte_cls int_types)ct|gS)N)bytes)nums @/opt/nydus/tmp/pip-target-a90h98xg/lib/python/oscrypto/_pkcs5.pychr_clsrscU|pbkdf2c~t|tsttdt |t|tsttdt |t|t sttdt ||dkrt tdt|t|t sttdt ||dkrt tdt||tgdvrt td t|tt|}d d d d ddd|}tj|d|}d}d} t| |kr|j} | j|t!j"d|z| j%} t'| } t)|dz D]A} |j} | j| | j%} | t'| z} C| t+| |z } |dz }t| |kr| d|S)a4 Implements PBKDF2 from PKCS#5 v2.2 in pure Python :param hash_algorithm: The string name of the hash algorithm to use: "md5", "sha1", "sha224", "sha256", "sha384", "sha512" :param password: A byte string of the password to use an input to the KDF :param salt: A cryptographic random byte string :param iterations: The numbers of iterations to use when deriving the key :param key_length: The length of the desired key in bytes :return: The derived key as a byte string z@ password must be a byte string, not %s z< salt must be a byte string, not %s z? iterations must be an integer, not %s rzC iterations must be greater than 0 - is %s z? key_length must be an integer, not %s zC key_length must be greater than 0 - is %s )md5sha1sha224sha256sha384sha512z hash_algorithm must be one of "md5", "sha1", "sha224", "sha256", "sha384", "sha512", not %s  0@Nrs>I)widthr) isinstancer TypeErrorr r r ValueErrorreprsetgetattrhashlibhmacnewlencopyupdatestructpackdigestrranger )hash_algorithmpasswordsalt iterations key_lengthalgo hash_length original_hmacblockoutputprflastu_s rrrsd0 h )  h      dH %  dO     j) ,  j !    A~        j) ,  j !    A~       S!XYY       7N +D KHHXtT2M E F f+ "  " 4&++eU334zz| 4 z!|$A$$&C JJt ::rLsXRR  /#22dG    q hr