From ebd5229e4637ffb4ad5e8e38412defe5eca64d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 30 Mar 2023 16:07:31 +0200 Subject: [PATCH] Fix wrong public key deletion This was introduced by rebasing on top of the rsa-backend migration This should not be done since public keys are expected to be stored in persistent storage since they can't be lazily derived from the private part that is encrypted --- src/command/gen.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/command/gen.rs b/src/command/gen.rs index 8089e3d..f64d825 100644 --- a/src/command/gen.rs +++ b/src/command/gen.rs @@ -304,7 +304,6 @@ fn read_rsa_key( let parsed_pubkey_data: RsaPublicParts = trussed::postcard_deserialize(&pubkey_data).map_err(|_err| { error!("Failed to deserialize public key"); - syscall!(client.delete(public_key)); Status::UnspecifiedNonpersistentExecutionError })?; ctx.reply.expand(&[0x81])?;