Doc improvements and minor cleanups (#281)

This commit is contained in:
Tony Arcieri (iqlusion)
2021-07-12 11:57:42 -07:00
committed by GitHub
parent 47776ebf0b
commit 5f418bbd1d
8 changed files with 20 additions and 12 deletions
-2
View File
@@ -325,7 +325,6 @@ impl MgmKey {
}
/// Encrypt with 3DES key
#[allow(clippy::trivially_copy_pass_by_ref)]
pub(crate) fn encrypt(&self, input: &[u8; DES_LEN_DES]) -> [u8; DES_LEN_DES] {
let mut output = input.to_owned();
TdesEde3::new(GenericArray::from_slice(&self.0))
@@ -334,7 +333,6 @@ impl MgmKey {
}
/// Decrypt with 3DES key
#[allow(clippy::trivially_copy_pass_by_ref)]
pub(crate) fn decrypt(&self, input: &[u8; DES_LEN_DES]) -> [u8; DES_LEN_DES] {
let mut output = input.to_owned();
TdesEde3::new(GenericArray::from_slice(&self.0))