sru-systems / rust-kpdb

Rust library for reading and writing KeePass 2 and KeePassX databases
Apache License 2.0
13 stars 5 forks source link

Using depricated aesni crate #8

Open goDeni opened 2 years ago

goDeni commented 2 years ago

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:

mrijkeboer commented 1 year ago

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 commented 6 months ago

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