Skip to content

Commit 0b05fad

Browse files
committed
PaddingStrategy is not pub
1 parent be1eb14 commit 0b05fad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aws-lc-rs/src/cipher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub(crate) mod chacha;
143143
pub(crate) mod key;
144144
mod padded;
145145

146-
pub use padded::{PaddedBlockDecryptingKey, PaddedBlockEncryptingKey, PaddingStrategy};
146+
pub use padded::{PaddedBlockDecryptingKey, PaddedBlockEncryptingKey};
147147

148148
use crate::buffer::Buffer;
149149
use crate::error::Unspecified;

aws-lc-rs/src/cipher/padded.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use core::fmt::Debug;
1010
/// The cipher block padding strategy.
1111
#[non_exhaustive]
1212
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
13-
pub enum PaddingStrategy {
13+
pub(crate) enum PaddingStrategy {
1414
/// PKCS#7 Padding. ([See RFC 5652](https://datatracker.ietf.org/doc/html/rfc5652#section-6.3))
1515
PKCS7,
1616
}
@@ -259,8 +259,8 @@ impl Debug for PaddedBlockDecryptingKey {
259259
#[cfg(test)]
260260
mod tests {
261261
use crate::cipher::{
262-
Algorithm, EncryptionContext, OperatingMode, PaddedBlockDecryptingKey,
263-
PaddedBlockEncryptingKey, PaddingStrategy, UnboundCipherKey, AES_128, AES_256,
262+
padded::PaddingStrategy, Algorithm, EncryptionContext, OperatingMode,
263+
PaddedBlockDecryptingKey, PaddedBlockEncryptingKey, UnboundCipherKey, AES_128, AES_256,
264264
};
265265
use crate::iv::FixedLength;
266266
use crate::test::from_hex;

0 commit comments

Comments
 (0)