/var/opt/nydus/ops/oscrypto/_openssl/__pycache__
Edit: /var/opt/nydus/ops/oscrypto/_openssl/__pycache__/util.cpython-312.pyc (7231B)
Nj d dl mZmZmZmZ ddlmZ ddlmZm Z ddl
mZmZm
Z
ddlmZ ddlmZmZmZ g d Zed
k r
ddlmZ d Zyd Zd
e_ d Zy) )unicode_literalsdivisionabsolute_importprint_function )pretty_message)buffer_from_bytesbytes_from_buffer ) libcryptolibcrypto_version_infohandle_openssl_error)
rand_bytes) type_namebyte_cls int_types)pbkdf2
pkcs12_kdfr )r )r c
V t |t st t dt | t |t st t dt | t |t
st t dt | |dk rt
d t |t
st t dt | |dk rt
d | t g d vrt
t d t | t j t j t j t j t j d| }t | }t j |t# | |t# | |||| }t% | t' | S )
a
PBKDF2 from PKCS#5
:param hash_algorithm:
The string name of the hash algorithm to use: "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
:raises:
ValueError - when any of the parameters contain an invalid value
TypeError - when any of the parameters are of the wrong type
:return:
The derived key as a byte string
zH
password must be a byte string, not %s
zD
salt must be a byte string, not %s
zG
iterations must be an integer, not %s
r z!iterations must be greater than 0zG
key_length must be an integer, not %s
z!key_length must be greater than 0)sha1sha224sha256sha384sha512z
hash_algorithm must be one of "sha1", "sha224", "sha256", "sha384",
"sha512", not %s
)
isinstancer TypeErrorr r r
ValueErrorsetreprr EVP_sha1
EVP_sha224
EVP_sha256
EVP_sha384
EVP_sha512r PKCS5_PBKDF2_HMAClenr r
)hash_algorithmpasswordsalt
iterations
key_lengthevp_md
output_bufferresults G/opt/nydus/tmp/pip-target-a90h98xg/lib/python/oscrypto/_openssl/util.pyr r s 6 (H-N (#
$)N $
*i0N *%
>@AA*i0N *%
>@AA%U!VV^ ^$
&&********
**5
,,MI
V$ // Fc b t |t st t dt | t |t st t dt | t |t
st t dt | |dk rt
t dt | t |t
st t dt | |dk rt
t dt | | t g d vrt
t d t | |t g d
vrt
t dt | |j d j d
dz } t j t j t j t j t j t j" d| }t% | }t j&