Skip to content

Commit 41aa587

Browse files
removed sealed: Sealed
1 parent 46503ac commit 41aa587

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

kernel/src/hil/symmetric_encryption.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,23 @@ pub trait Client<'a> {
1919
/// and encryption/decryption inputs must be have a multiple of this length.
2020
pub const AES_BLOCK_SIZE: usize = 16;
2121
pub const AES128_KEY_SIZE: usize = 16;
22+
pub const AES192_KEY_SIZE: usize = 24;
2223
pub const AES256_KEY_SIZE: usize = 32;
2324

24-
mod sealed {
25-
pub trait Sealed {}
26-
}
27-
pub trait AESKeySize: sealed::Sealed {
25+
pub trait AESKeySize {
2826
const LENGTH: usize;
2927
}
3028

3129
pub struct AES128;
32-
impl sealed::Sealed for AES128 {}
33-
3430
impl AESKeySize for AES128 {
3531
const LENGTH: usize = 16;
3632
}
3733
pub struct AES192;
38-
impl sealed::Sealed for AES192 {}
39-
4034
impl AESKeySize for AES192 {
4135
const LENGTH: usize = 24;
4236
}
4337

4438
pub struct AES256;
45-
impl sealed::Sealed for AES256 {}
4639
impl AESKeySize for AES256 {
4740
const LENGTH: usize = 32;
4841
}

0 commit comments

Comments
 (0)