Skip to content

Commit

Permalink
feat(picky-asn1-x509): make AesAuthEncParams fields private again;
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestTvarynka committed Nov 14, 2024
1 parent 5550736 commit 96979d4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions picky-asn1-x509/src/algorithm_identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,18 +754,8 @@ pub enum AesParameters {

#[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq, Eq, Clone)]
pub struct AesAuthEncParams {
pub(crate) nonce: OctetStringAsn1,
pub(crate) icv_len: IntegerAsn1,
}

impl AesAuthEncParams {
pub fn nonce(&self) -> &[u8] {
&self.nonce.0
}

pub fn icv_len(&self) -> &[u8] {
&self.icv_len.0
}
nonce: OctetStringAsn1,
icv_len: IntegerAsn1,
}

impl AesMode {
Expand Down

0 comments on commit 96979d4

Please sign in to comment.