File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,30 +19,23 @@ pub trait Client<'a> {
1919/// and encryption/decryption inputs must be have a multiple of this length.
2020pub const AES_BLOCK_SIZE : usize = 16 ;
2121pub const AES128_KEY_SIZE : usize = 16 ;
22+ pub const AES192_KEY_SIZE : usize = 24 ;
2223pub 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
3129pub struct AES128 ;
32- impl sealed:: Sealed for AES128 { }
33-
3430impl AESKeySize for AES128 {
3531 const LENGTH : usize = 16 ;
3632}
3733pub struct AES192 ;
38- impl sealed:: Sealed for AES192 { }
39-
4034impl AESKeySize for AES192 {
4135 const LENGTH : usize = 24 ;
4236}
4337
4438pub struct AES256 ;
45- impl sealed:: Sealed for AES256 { }
4639impl AESKeySize for AES256 {
4740 const LENGTH : usize = 32 ;
4841}
You can’t perform that action at this time.
0 commit comments