Skip to content

Commit 36a0a82

Browse files
Refactor: Move common module imports to explicit_nonce for clarity and organization
1 parent 98ae4cf commit 36a0a82

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/tls12/aead.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ pub mod gcm;
77
#[cfg(feature = "ccm")]
88
pub mod ccm;
99

10-
pub(crate) mod common;
10+
#[cfg(any(feature = "aes-gcm", feature = "aes-ccm"))]
11+
pub(crate) mod explicit_nonce;

src/tls12/aead/ccm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::common::Tls12AeadAlgorithmWithExplicitNonce;
1+
use super::explicit_nonce::Tls12AeadAlgorithmWithExplicitNonce;
22

33
pub const AES_128_CCM: &Tls12AeadAlgorithmWithExplicitNonce<crate::aead::aes::Aes128Ccm> =
44
&Tls12AeadAlgorithmWithExplicitNonce::DEFAULT;
File renamed without changes.

src/tls12/aead/gcm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use rustls::ConnectionTrafficSecrets;
22
use rustls::crypto::cipher::{self, AeadKey, Iv};
33

4-
use super::common::{Extractor, Tls12AeadAlgorithmWithExplicitNonce};
4+
use super::explicit_nonce::{Extractor, Tls12AeadAlgorithmWithExplicitNonce};
55

66
pub struct Aes128Extractor;
77
impl Extractor for Aes128Extractor {

0 commit comments

Comments
 (0)