관리-도구
편집 파일: hkdf.cpython-311.pyc
� �܋f� � � � d dl mZ d dlZd dlmZ d dlmZmZ d dlm Z m Z mZ d dlm Z G d� de � � Z G d � d e � � ZdS )� )�annotationsN)�utils)�AlreadyFinalized� InvalidKey)� constant_time�hashes�hmac)�KeyDerivationFunctionc �2 � e Zd Z ddd�Zdd�Zdd�Zdd�ZdS )�HKDFN� algorithm�hashes.HashAlgorithm�length�int�salt�typing.Optional[bytes]�info�backend� typing.Anyc � � || _ |�d| j j z }nt j d|� � || _ t | j ||� � | _ d S )N� r )� _algorithm�digest_sizer �_check_bytes�_salt� HKDFExpand�_hkdf_expand)�selfr r r r r s �z/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py�__init__z HKDF.__init__ sW � � $����<��T�_�8�8�D�D���v�t�,�,�,��� �&�t����E�E����� �key_material�bytes�returnc � � t j | j | j � � }|� |� � |� � � S �N)r �HMACr r �update�finalize)r r"