Skip to content

Commit

Permalink
core error
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 17, 2024
1 parent cd99409 commit c64c8ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pkcs1v15/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl TryFrom<&[u8]> for Signature {
fn try_from(bytes: &[u8]) -> signature::Result<Self> {
let len = bytes.len();
let inner = BoxedUint::from_be_slice(bytes, len as u32 * 8)
.map_err(|e| Box::new(e) as Box<dyn std::error::Error + Send + Sync + 'static>)?;
.map_err(|e| Box::new(e) as Box<dyn core::error::Error + Send + Sync + 'static>)?;

Ok(Self { inner })
}
Expand Down
2 changes: 1 addition & 1 deletion src/pss/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl TryFrom<&[u8]> for Signature {
fn try_from(bytes: &[u8]) -> signature::Result<Self> {
let len = bytes.len();
let inner = BoxedUint::from_be_slice(bytes, len as u32 * 8)
.map_err(|e| Box::new(e) as Box<dyn std::error::Error + Send + Sync + 'static>)?;
.map_err(|e| Box::new(e) as Box<dyn core::error::Error + Send + Sync + 'static>)?;

Ok(Self { inner })
}
Expand Down

0 comments on commit c64c8ec

Please sign in to comment.