Use des crate for 3DES operations

This commit is contained in:
Jack Grigg
2019-11-21 00:19:34 +00:00
parent 634740d751
commit 86fde50c2d
4 changed files with 121 additions and 249 deletions
+1 -1
View File
@@ -1622,7 +1622,7 @@ pub unsafe fn ykpiv_util_set_protected_mgm(
}
}
let ykrc = ykpiv_set_mgmkey(state, mgm_key.as_mut_ptr());
let ykrc = ykpiv_set_mgmkey(state, &mgm_key);
if ykrc.is_err() {
// if set_mgmkey fails with KeyError, it means the generated key is weak