Skip to content

Commit

Permalink
dice-cert-check: Use 'from_slice' to create ed25519 verifiers.
Browse files Browse the repository at this point in the history
The ring-compat crate has deprecated the 'new' function.
  • Loading branch information
flihp committed Aug 4, 2023
1 parent 18f384c commit c15adeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice-cert-check/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl TryFrom<&SubjectPublicKeyInfoOwned> for Ed25519Verifier {
None => return Err(Error::UnalignedPublicKey),
};

let verifying_key = VerifyingKey::new(key_bytes)?;
let verifying_key = VerifyingKey::from_slice(key_bytes)?;
Ok(Self { verifying_key })
}
}
Expand Down

0 comments on commit c15adeb

Please sign in to comment.