Clean up some of the management key code (#584)
* mgm: Move TDES weak key checking code into a submodule * piv: Extract management key algorithm into a separate enum * mgm: Check management key algorithm when fetching from Yubikey
This commit is contained in:
@@ -82,6 +82,12 @@ impl Apdu {
|
||||
self
|
||||
}
|
||||
|
||||
/// Set this APDU's second parameter only
|
||||
pub(crate) fn p2(&mut self, value: u8) -> &mut Self {
|
||||
self.p2 = value;
|
||||
self
|
||||
}
|
||||
|
||||
/// Set both parameters for this APDU
|
||||
pub fn params(&mut self, p1: u8, p2: u8) -> &mut Self {
|
||||
self.p1 = p1;
|
||||
|
||||
Reference in New Issue
Block a user