Skip to content

Commit

Permalink
testing mlock
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed Jun 23, 2024
1 parent 92173bb commit 0b50efd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 105 deletions.
100 changes: 0 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ zeroize_rs = { version = "1.8.1", package = "zeroize"}
numpy = "0.21"
memsec = "0.7.0"
region = "3.0.2"
sodiumoxide = "0.2.7"

[profile.release]
panic = "abort"
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use zeroize_rs::Zeroize;
#[pymodule]
fn zeroize(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_function(wrap_pyfunction!(zeroize1, m)?)?;
// m.add_function(wrap_pyfunction!(zeroize_mv, m)?)?;
m.add_function(wrap_pyfunction!(mlock, m)?)?;
m.add_function(wrap_pyfunction!(munlock, m)?)?;
Ok(())
Expand All @@ -32,9 +31,6 @@ fn mlock(arr: &Bound<'_, PyAny>, py: Python<'_>) -> PyResult<()> {
));
}
}
// sodiumoxide::utils::mlock(arr).map_err(|_|PyErr::new::<pyo3::exceptions::PyTypeError, _>(
// "mlock failed",
// ))?;
Ok(())
}

Expand Down

0 comments on commit 0b50efd

Please sign in to comment.