Skip to content

Commit

Permalink
Fixed invalid encoding of rsaEncryption AlgorithmIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
bkstein committed Dec 19, 2023
1 parent 32fd0e1 commit f56f075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use cipher::{Key, KeyIvInit, KeySizeUser};
use const_oid::ObjectIdentifier;
use core::cmp::Ordering;
use core::fmt;
use der::asn1::{BitString, OctetString, OctetStringRef, SetOfVec};
use der::asn1::{BitString, Null, OctetString, OctetStringRef, SetOfVec};
use der::oid::db::DB;
use der::{Any, AnyRef, DateTime, Decode, Encode, ErrorKind, Tag};
use digest::Digest;
Expand Down Expand Up @@ -599,7 +599,7 @@ where
.map_err(|_| Error::Builder(String::from("Could not encrypt key")))?,
AlgorithmIdentifierOwned {
oid: const_oid::db::rfc5912::RSA_ENCRYPTION,
parameters: None,
parameters: Some(Any::from(Null)),
},
),
};
Expand Down

0 comments on commit f56f075

Please sign in to comment.