Skip to content

Commit

Permalink
ecdsa: fixup p384 support
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Jun 27, 2024
1 parent 011764b commit 814e0be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ecdsa/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{object, Client};
use ecdsa::{
der,
elliptic_curve::{
consts::U32,
consts::{U32, U48},
generic_array::ArrayLength,
point::PointCompression,
sec1::{self, FromEncodedPoint, ToEncodedPoint},
Expand Down Expand Up @@ -148,7 +148,7 @@ impl PrehashSigner<Signature<NistP384>> for Signer<NistP384> {

impl<D> DigestSigner<D, Signature<NistP384>> for Signer<NistP384>
where
D: Digest<OutputSize = U32> + Default,
D: Digest<OutputSize = U48> + Default,
{
/// Compute a fixed-sized P-384 ECDSA signature of the given digest
fn try_sign_digest(&self, digest: D) -> Result<Signature<NistP384>, Error> {
Expand Down

0 comments on commit 814e0be

Please sign in to comment.