Skip to content

Replace deprecated block-modes crate #69

@NotGyro

Description

@NotGyro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions