Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
kbkdf.py27 linesDownload Raw Back to kdf
1# This file is dual licensed under the terms of the Apache License, Version2# 2.0, and the BSD License. See the LICENSE file in the root of this repository3# for complete details.4 5from __future__ import annotations6 7from cryptography import utils8from cryptography.hazmat.bindings._rust import openssl as rust_openssl9from cryptography.hazmat.primitives.kdf import KeyDerivationFunction10 11 12class Mode(utils.Enum):13    CounterMode = "ctr"14 15 16class CounterLocation(utils.Enum):17    BeforeFixed = "before_fixed"18    AfterFixed = "after_fixed"19    MiddleFixed = "middle_fixed"20 21 22KBKDFHMAC = rust_openssl.kdf.KBKDFHMAC23KeyDerivationFunction.register(KBKDFHMAC)24 25KBKDFCMAC = rust_openssl.kdf.KBKDFCMAC26KeyDerivationFunction.register(KBKDFCMAC)27 
codekingpro/portable-devtools · Team Ai