diff --git a/Cargo.lock b/Cargo.lock index 96794a7..4db90bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -427,7 +427,7 @@ checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "zeroize" -version = "0.2.0" +version = "0.2.1" dependencies = [ "libc", "libsodium-sys", diff --git a/Cargo.toml b/Cargo.toml index d53846a..84efc53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zeroize" -version = "0.2.0" +version = "0.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index 702b0de..3211bed 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ It can work with `bytearray` and `numpy array`. > [!WARNING] > **In the case of [Copy-on-write fork](https://en.wikipedia.org/wiki/Copy-on-write) you need to zeroize the memory before forking the child process, see example below. -> Also by itself it doesn't work if memory is moved or moved to swap. You can use `zeroize.mlock()` and `zeroize.mlock()` to lock the memory, max size you can lock is 4MB, at least on Linux, see example below.** +> Also by itself it doesn't work if memory is moved or moved to swap. You can use `zeroize.mlock()` to lock the memory, max size you can lock is 4MB, at least on Linux, see example below.** # Examples