:py:mod:`pylibressl.kdf` ======================== .. py:module:: pylibressl.kdf .. autoapi-nested-parse:: Key derivation functions. Usage example: >>> from pylibressl.kdf import PBKDF_HMAC_SHA256 >>> >>> password = b'qwerty123' >>> salt = b'salty salt' >>> iteration_number = 16384 >>> key_length = 64 >>> >>> deriv_key = PBKDF_HMAC_SHA256(salt, iteration_number, key_length).derivate(password) Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 pbkdf/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: pylibressl.kdf.PBKDF_HMAC Attributes ~~~~~~~~~~ .. autoapisummary:: pylibressl.kdf.PBKDF_HMAC_SHA256 pylibressl.kdf.PBKDF_HMAC_Streebog512 .. py:class:: PBKDF_HMAC(salt, iteration_number, key_length) Bases: :py:obj:`object` .. py:method:: new(cls, hash_type, name='NewPBKDF') :classmethod: Create new PBKDF object. .. py:method:: derivate(self, password) Derivate key from a password. .. py:data:: PBKDF_HMAC_SHA256 .. py:data:: PBKDF_HMAC_Streebog512