-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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.
We'll need to replace our usages of the block-modes crate with cbc: https://crates.io/crates/cbc
The 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.