Skip to content

Commit

Permalink
fix refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Jun 4, 2024
1 parent 3f1f9e6 commit 0ad0ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod encryptor;
// on benchmarks that seem to be the case.
// We performed 10.000 encryption operations for each size varying from 64KB to 1GB,
// after 8MB it tops up to similar values.
// const FILE_BLOCK_LEN: usize = 256 * 1024;
// Const FILE_BLOCK_LEN: usize = 256 * 1024;

#[pyclass]
#[derive(Debug, Clone, Copy)]
Expand Down Expand Up @@ -458,7 +458,7 @@ impl Cipher {

/// A Python module implemented in Rust.
#[pymodule]
fn Cipher<'py>(_py: Python, m: &Bound<'py, PyModule>) -> PyResult<()> {
fn REncrypt<'py>(_py: Python, m: &Bound<'py, PyModule>) -> PyResult<()> {
m.add_class::<Cipher>()?;
m.add_class::<RingAlgorithm>()?;
m.add_class::<CipherMeta>()?;
Expand Down

0 comments on commit 0ad0ca3

Please sign in to comment.