8 items
NAME ↑ SIZE MODIFIED PERMS ACTIONS
.. / Parent Directory
__pycache__ — dir
2026-06-04 04:18 · rwxr-xr-x
2026-06-04 04:18 rwxr-xr-x
__init__.py — 715 B
2021-12-14 21:49 · rw-r--r--
715 B 2021-12-14 21:49 rw-r--r--
concatkdf.py — 3.68 KB
2021-12-14 21:49 · rw-r--r--
3.68 KB 2021-12-14 21:49 rw-r--r--
hkdf.py — 2.96 KB
2021-12-14 21:49 · rw-r--r--
2.96 KB 2021-12-14 21:49 rw-r--r--
kbkdf.py — 7.49 KB
2021-12-14 21:49 · rw-r--r--
7.49 KB 2021-12-14 21:49 rw-r--r--
pbkdf2.py — 1.98 KB
2021-12-14 21:49 · rw-r--r--
1.98 KB 2021-12-14 21:49 rw-r--r--
scrypt.py — 2.18 KB
2021-12-14 21:49 · rw-r--r--
2.18 KB 2021-12-14 21:49 rw-r--r--
x963kdf.py — 1.96 KB
2021-12-14 21:49 · rw-r--r--
1.96 KB 2021-12-14 21:49 rw-r--r--
ONLINE
kdf
8 items
00:00:45
TERMINAL FM
Edit
Preview
Download
Rename
Copy
Chmod
Delete
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import abc class KeyDerivationFunction(metaclass=abc.ABCMeta): @abc.abstractmethod def derive(self, key_material: bytes) -> bytes: """ Deterministically generates and returns a new key based on the existing key material. """ @abc.abstractmethod def verify(self, key_material: bytes, expected_key: bytes) -> None: """ Checks whether the key generated by the key material matches the expected derived key. Raises an exception if they do not match. """