Skip to content

Commit

Permalink
fix ring feature
Browse files Browse the repository at this point in the history
  • Loading branch information
boxdot committed Mar 25, 2024
1 parent 93c51ac commit 2262258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ impl Secret {
fn new_ring(pem_key: &[u8]) -> Result<Self, Error> {
let der = pem::parse(pem_key).map_err(SignerError::Pem)?;
let alg = &signature::ECDSA_P256_SHA256_FIXED_SIGNING;
let signing_key = signature::EcdsaKeyPair::from_pkcs8(alg, &der.contents)?;
let rng = rand::SystemRandom::new();
let signing_key = signature::EcdsaKeyPair::from_pkcs8(alg, der.contents(), &rng)?;
Ok(Self::Ring { signing_key, rng })
}

Expand Down

0 comments on commit 2262258

Please sign in to comment.