Skip to content

pkcs8 uses wrong pkcs5 feature #2310

@Yamakaky

Description

@Yamakaky

In pkcs8 dependencies, I think pkcs5 should be listed with feature getrandom instead of rand_core, related to #2297 I think.

Reproduction:

cargo new --lib testbuild
cd testbuild
cargo add pkcs8@0.11.0-rc.11 -F encryption
cargo check
error[E0599]: no function or associated item named `recommended` found for struct `pkcs5::pbes2::Parameters` in the current scope                                                                                   
   --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pkcs8-0.11.0-rc.11/src/encrypted_private_key_info.rs:72:47                                                                                    
    |                                                                                                                                                                                                               
 72 |         let pbes2_params = pbes2::Parameters::recommended(rng);                                                                                                                                               
    |                                               ^^^^^^^^^^^ function or associated item not found in `pkcs5::pbes2::Parameters`

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