You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As spotted in #35, block-modes is deprecated in favor of a collection of individual crates supporting each block mode. lib.rs, the only rust source file in block-modes in version 0.9.1, contains a comment stating //! This crate is deprecated. Use crates from https://github.com/RustCrypto/block-modes instead. and nothing else.
The reason this does not generate a compile error is that the only function we use block-modes in is decrypt_rc2(), which is under a feature-flag for pkcs12_rc2.
As spotted in #35,
block-modes
is deprecated in favor of a collection of individual crates supporting each block mode.lib.rs
, the only rust source file in block-modes in version 0.9.1, contains a comment stating//! This crate is deprecated. Use crates from https://github.com/RustCrypto/block-modes instead.
and nothing else.The reason this does not generate a compile error is that the only function we use block-modes in is
decrypt_rc2()
, which is under a feature-flag forpkcs12_rc2
.We'll need to replace our usages of the
block-modes
crate withcbc
: https://crates.io/crates/cbcThe code which needs to be changed is here: https://github.com/mobilecoinfoundation/rust-mbedtls/blob/mc-develop/mbedtls/src/pkcs12/mod.rs#L605
It should be a simple one-line change, although the API may have changed somewhat.
The text was updated successfully, but these errors were encountered: