Skip to content

Commit

Permalink
PaddingStrategy is not pub
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Apr 26, 2024
1 parent 6a8ee26 commit 4b15841
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aws-lc-rs/src/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub(crate) mod chacha;
pub(crate) mod key;
mod padded;

pub use padded::{PaddedBlockDecryptingKey, PaddedBlockEncryptingKey, PaddingStrategy};
pub use padded::{PaddedBlockDecryptingKey, PaddedBlockEncryptingKey};

use crate::buffer::Buffer;
use crate::error::Unspecified;
Expand Down
6 changes: 3 additions & 3 deletions aws-lc-rs/src/cipher/padded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use core::fmt::Debug;
/// The cipher block padding strategy.
#[non_exhaustive]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum PaddingStrategy {
pub(crate) enum PaddingStrategy {
/// PKCS#7 Padding. ([See RFC 5652](https://datatracker.ietf.org/doc/html/rfc5652#section-6.3))
PKCS7,
}
Expand Down Expand Up @@ -259,8 +259,8 @@ impl Debug for PaddedBlockDecryptingKey {
#[cfg(test)]
mod tests {
use crate::cipher::{
Algorithm, EncryptionContext, OperatingMode, PaddedBlockDecryptingKey,
PaddedBlockEncryptingKey, PaddingStrategy, UnboundCipherKey, AES_128, AES_256,
padded::PaddingStrategy, Algorithm, EncryptionContext, OperatingMode,
PaddedBlockDecryptingKey, PaddedBlockEncryptingKey, UnboundCipherKey, AES_128, AES_256,
};
use crate::iv::FixedLength;
use crate::test::from_hex;
Expand Down

0 comments on commit 4b15841

Please sign in to comment.