diff --git a/README.rst b/README.rst index 550a2c1..07813aa 100644 --- a/README.rst +++ b/README.rst @@ -51,6 +51,11 @@ While bcrypt remains an acceptable choice for password storage, depending on you Changelog ========= +4.1.1 +----- + +* Fixed the type signature on the ``kdf`` method. + 4.1.0 ----- diff --git a/pyproject.toml b/pyproject.toml index 0d4dae6..67b6fad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta" [project] name = "bcrypt" # When updating this, also update lib.rs -version = "4.1.0" +version = "4.1.1" authors = [ {name = "The Python Cryptographic Authority developers", email = "cryptography-dev@python.org"} ] diff --git a/src/_bcrypt/src/lib.rs b/src/_bcrypt/src/lib.rs index 6e47475..2d4c80f 100644 --- a/src/_bcrypt/src/lib.rs +++ b/src/_bcrypt/src/lib.rs @@ -183,7 +183,7 @@ fn _bcrypt(_py: pyo3::Python<'_>, m: &pyo3::types::PyModule) -> pyo3::PyResult<( m.add("__uri__", "https://github.com/pyca/bcrypt/")?; // When updating this, also update pyproject.toml - m.add("__version__", "4.1.0")?; + m.add("__version__", "4.1.1")?; let author = "The Python Cryptographic Authority developers"; m.add("__author__", author)?; diff --git a/src/bcrypt/__init__.pyi b/src/bcrypt/__init__.pyi index 0450d19..12e4a2e 100644 --- a/src/bcrypt/__init__.pyi +++ b/src/bcrypt/__init__.pyi @@ -4,7 +4,7 @@ def checkpw(password: bytes, hashed_password: bytes) -> bool: ... def kdf( password: bytes, salt: bytes, - rounds: int, desired_key_bytes: int, + rounds: int, ignore_few_rounds: bool = False, ) -> bytes: ...