Skip to content

Commit

Permalink
Handle non-exhaustive SignatureSerialization enum
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Dec 19, 2024
1 parent d8de0e3 commit 186db45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,9 @@ impl<Twi: I2CForT1, D: DelayUs<u32>> Se050Backend<Twi, D> {
signature.extend(signature_der.to_bytes(field_byte_size));
signature
}
_ => {
return Err(Error::InvalidSignatureSerialization);
}
};

if let Some(key_id) = volatile_key_id {
Expand Down

0 comments on commit 186db45

Please sign in to comment.