pub fn parse_set_puk(
payload: &[u8],
) -> Result<([u8; 8], [u8; 8], [u8; 32]), PayloadError>Expand description
Parse the payload of CommandOpcode::SetPuk.
Layout: old_puk (8) || new_puk (8) || io_key (32). Authentication
is via the PIN session (the caller proved knowledge of the current
PIN earlier); old_puk is kept in the payload for forward
compatibility with a defence-in-depth pass that would re-verify the
old PUK on the chip before accepting the new one.
Returns (old_puk, new_puk, io_key).
ยงErrors
See PayloadError.