diff --git a/src/core_api.rs b/src/core_api.rs index bee4197..095d41f 100644 --- a/src/core_api.rs +++ b/src/core_api.rs @@ -1796,6 +1796,9 @@ impl> Se050Backend { signature.extend(signature_der.to_bytes(field_byte_size)); signature } + _ => { + return Err(Error::InvalidSignatureSerialization); + } }; if let Some(key_id) = volatile_key_id {