Skip to content

Commit

Permalink
Fix tagging mode on EncryptedValue structure (#1354)
Browse files Browse the repository at this point in the history
* fix CertRequest (should have used OptionalValidity, not Validity)
* remove unused Validity reference
* change tagging on EncryptedValue
  • Loading branch information
carl-wallace authored Feb 19, 2024
1 parent 435f102 commit b5e7395
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crmf/src/controls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,35 +179,35 @@ pub enum EncryptedKey {
pub struct EncryptedValue {
#[asn1(
context_specific = "0",
tag_mode = "EXPLICIT",
tag_mode = "IMPLICIT",
constructed = "true",
optional = "true"
)]
pub intended_alg: Option<AlgorithmIdentifierOwned>,
#[asn1(
context_specific = "1",
tag_mode = "EXPLICIT",
tag_mode = "IMPLICIT",
constructed = "true",
optional = "true"
)]
pub sym_alg: Option<AlgorithmIdentifierOwned>,
#[asn1(
context_specific = "2",
tag_mode = "EXPLICIT",
tag_mode = "IMPLICIT",
constructed = "false",
optional = "true"
)]
pub enc_sym_key: Option<BitString>,
#[asn1(
context_specific = "3",
tag_mode = "EXPLICIT",
tag_mode = "IMPLICIT",
constructed = "true",
optional = "true"
)]
pub key_alg: Option<AlgorithmIdentifierOwned>,
#[asn1(
context_specific = "4",
tag_mode = "EXPLICIT",
tag_mode = "IMPLICIT",
constructed = "false",
optional = "true"
)]
Expand Down

0 comments on commit b5e7395

Please sign in to comment.