Skip to content

Commit

Permalink
Fixed key derivation for PwriEncryptor in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bkstein committed Dec 7, 2023
1 parent 572d2d0 commit 7cd04da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cms/tests/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,10 @@ fn test_create_password_recipient_info() {
fn key_derivation_algorithm(
&self,
) -> Result<Option<AlgorithmIdentifierOwned>, cms::builder::Error> {
let key_derivation_params_der = self.key_derivation_params.to_der()?;
Ok(Some(AlgorithmIdentifierOwned {
oid: const_oid::db::rfc5911::ID_PBKDF_2,
parameters: Some(Any::new(
der::Tag::Sequence,
self.key_derivation_params.to_der()?,
)?),
parameters: Some(Any::from_der(key_derivation_params_der.as_slice())?),
}))
}

Expand Down

0 comments on commit 7cd04da

Please sign in to comment.