/var/opt/nydus/ops/cryptography/hazmat/primitives/kdf/__pycache__
NameSizeModeActions
concatkdf.cpython-312.pyc60000644editdlrm
hkdf.cpython-312.pyc51010644editdlrm
kbkdf.cpython-312.pyc118180644editdlrm
pbkdf2.cpython-312.pyc27720644editdlrm
scrypt.cpython-312.pyc29790644editdlrm
x963kdf.cpython-312.pyc31960644editdlrm
__init__.cpython-312.pyc12050644editdlrm
Edit: /var/opt/nydus/ops/cryptography/hazmat/primitives/kdf/__pycache__/scrypt.cpython-312.pyc (2979B)
O jddlZddlZddlmZddlmZmZmZddlm Z ddl m Z ejdzZ Gdde Zy) N)utils)AlreadyFinalized InvalidKeyUnsupportedAlgorithm) constant_time)KeyDerivationFunctionc heZdZ ddedededededej f dZd ed efd Zd ed ed dfd Z y)ScryptNsaltlengthnrpbackendc<ddlm}|js td||_t j d||dks ||dz zdk7r td|dkr td|dkr td d |_||_ ||_ ||_ ||_ y) Nrrz/This version of OpenSSL does not support scryptr r z-n must be greater than 1 and be a power of 2.z%r must be greater than or equal to 1.z%p must be greater than or equal to 1.F) ,cryptography.hazmat.backends.openssl.backendrscrypt_supportedr_lengthr _check_bytes ValueError_used_salt_n_r_p)selfr r rrrrossls Z/opt/nydus/tmp/pip-target-a90h98xg/lib/python/cryptography/hazmat/primitives/kdf/scrypt.py__init__zScrypt.__init__s $$&&A   64( q5Q!a%[Q&LM M q5DE E q5DE E   key_materialreturnc|jr tdd|_tjd|ddlm}|j ||j|j|j|j|jS)Nz'Scrypt instances can only be used once.Tr$rr) rrr_check_byteslikerr derive_scryptrrrrr)rr$rs r!derivez Scrypt.derive:sc ::"#LM M  ~|<H$$ $**dllDGGTWWdgg  r# expected_keych|j|}tj||s tdy)NzKeys do not match.)r)rbytes_eqr)rr$r* derived_keys r!verifyz Scrypt.verifyFs2kk,/ %%k<@12 2Ar#)N) __name__ __module__ __qualname__bytesinttypingAnyr"r)r.r#r!r r sx#          D  5  U  3533$3r#r )sysr4 cryptographyrcryptography.exceptionsrrrcryptography.hazmat.primitivesr"cryptography.hazmat.primitives.kdfrmaxsize _MEM_LIMITr r6r#r!r>s?   9D[[A  23 "23r#