codekingpro/portable-devtools
114k
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 7import sys8 9from cryptography.hazmat.bindings._rust import openssl as rust_openssl10from cryptography.hazmat.primitives.kdf import KeyDerivationFunction11 12# This is used by the scrypt tests to skip tests that require more memory13# than the MEM_LIMIT14_MEM_LIMIT = sys.maxsize // 215 16Scrypt = rust_openssl.kdf.Scrypt17KeyDerivationFunction.register(Scrypt)18 19__all__ = ["Scrypt"]20 