From c64c8ec0ff6edf489a3d71692126f955453c9493 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Tue, 17 Dec 2024 12:46:51 +0100 Subject: [PATCH] core error --- src/pkcs1v15/signature.rs | 2 +- src/pss/signature.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkcs1v15/signature.rs b/src/pkcs1v15/signature.rs index 4a69512..0d274d5 100644 --- a/src/pkcs1v15/signature.rs +++ b/src/pkcs1v15/signature.rs @@ -36,7 +36,7 @@ impl TryFrom<&[u8]> for Signature { fn try_from(bytes: &[u8]) -> signature::Result { let len = bytes.len(); let inner = BoxedUint::from_be_slice(bytes, len as u32 * 8) - .map_err(|e| Box::new(e) as Box)?; + .map_err(|e| Box::new(e) as Box)?; Ok(Self { inner }) } diff --git a/src/pss/signature.rs b/src/pss/signature.rs index 665e8d9..5e986cd 100644 --- a/src/pss/signature.rs +++ b/src/pss/signature.rs @@ -36,7 +36,7 @@ impl TryFrom<&[u8]> for Signature { fn try_from(bytes: &[u8]) -> signature::Result { let len = bytes.len(); let inner = BoxedUint::from_be_slice(bytes, len as u32 * 8) - .map_err(|e| Box::new(e) as Box)?; + .map_err(|e| Box::new(e) as Box)?; Ok(Self { inner }) }