/var/opt/nydus/ops/cryptography/hazmat/primitives/kdf/__pycache__
Edit: /var/opt/nydus/ops/cryptography/hazmat/primitives/kdf/__pycache__/kbkdf.cpython-312.pyc (11818B)
Oj# d dl Z d dlmZ d dlmZmZmZmZ d dlm Z m
Z
mZmZm
Z
d dlmZ G d dej Z G d d ej Z G d
d Z G d d
e Z G d de Zy) N)utils)AlreadyFinalized
InvalidKeyUnsupportedAlgorithm_Reasons)cipherscmac
constant_timehasheshmac)KeyDerivationFunctionc e Zd ZdZy)ModectrN)__name__
__module____qualname__CounterMode Y/opt/nydus/tmp/pip-target-a90h98xg/lib/python/cryptography/hazmat/primitives/kdf/kbkdf.pyr r s Kr r c e Zd ZdZdZdZy)CounterLocationbefore_fixedafter_fixedmiddle_fixedN)r r r BeforeFixed
AfterFixedMiddleFixedr r r r r s KJ Kr r c e Zd Zdej dedededej e dedej e dej e d ej e d
ej e fdZ
eded
efd Z
de ded
e fdZd
e fdZy)
_KBKDFDeriverprfmodelengthrlenllenlocationbreak_locationlabelcontextfixedc t | sJ t |t st d t |t st d ||t j
u rt
d ||t j
k7 rt
d |t |t st d ||dk rt
d |s| r
|
rt
d || j | st
d |
|
t
d
|t |t st d |d}| d} t j d
| t j d| || _ || _ || _
|| _ || _ || _ || _ || _ | | _ d| _ |
| _ y )Nzmode must be of type Modez(location must be of type CounterLocationzPlease specify a break_locationzJbreak_location is ignored when location is not CounterLocation.MiddleFixedz!break_location must be an integerr z)break_location must be a positive integerz9When supplying fixed data, label and context are ignored.zrlen must be between 1 and 4zPlease specify an llenzllen must be an integerr r) r* F)callable
isinstancer TypeErrorr r
ValueErrorint_valid_byte_lengthr _check_bytes_prf_mode_length_rlen_llen _location_break_location_label_context_used_fixed_data)selfr" r# r$ r% r&