Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using depricated aesni crate #8

Open
goDeni opened this issue Mar 7, 2022 · 2 comments
Open

Using depricated aesni crate #8

goDeni opened this issue Mar 7, 2022 · 2 comments

Comments

@goDeni
Copy link

goDeni commented Mar 7, 2022

Aesni crate is depricated - https://crates.io/crates/aesni

Compiling rust-kpdb v0.4.2
error[E0433]: failed to resolve: use of undeclared crate or module `aesni`
  --> /Users/denis/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-kpdb-0.4.2/src/types/transformed_key.rs:39:26
   |
39 |             let cipher = aesni::AesNiEncryptor::new(aes::KeySize::KeySize256, &seed.0);
   |                          ^^^^^ use of undeclared crate or module `aesni`

error[E0425]: cannot find function `supports_aesni` in module `util`
  --> /Users/denis/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-kpdb-0.4.2/src/types/transformed_key.rs:38:18
   |
38 |         if util::supports_aesni() {
   |                  ^^^^^^^^^^^^^^ not found in `util`

Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `rust-kpdb` due to 2 previous errors

Sytem info:

  • cargo 1.59.0 (49d8809dc 2022-02-10)
  • Darwin MacBook 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64
@goDeni goDeni changed the title Using depricated crate Using aesni depricated crate Mar 7, 2022
@goDeni goDeni changed the title Using aesni depricated crate Using depricated aesni crate Mar 7, 2022
@mrijkeboer
Copy link
Member

Hi @goDeni,

Thanks for raising this issue. This crate doesn't depend directly on aesni. Maybe the issue is caused by a dependency of one of the crates that rust-kpdb depends on. In version 0.5.0 I updated all the dependencies to their latest versions. Would you mind trying it again with version 0.5.0?

@riking
Copy link

riking commented Feb 27, 2024

Are you looking for this advisory?

https://github.com/rustsec/advisory-db/blob/main/crates/rust-crypto/RUSTSEC-2022-0011.md

The rust-crypto crate should not be used for anything created past 2016: https://github.com/rustsec/advisory-db/blob/main/crates/rust-crypto/RUSTSEC-2016-0005.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants