Skip to content

Commit

Permalink
Broader support for ED25519 public and private key format traits
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Aug 19, 2024
1 parent bc9f59a commit bd7d81b
Show file tree
Hide file tree
Showing 7 changed files with 292 additions and 69 deletions.
4 changes: 3 additions & 1 deletion aws-lc-rs/src/ec/key_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ impl EcdsaKeyPair {
/// `error::Unspecified` on internal error.
///
pub fn to_pkcs8v1(&self) -> Result<Document, Unspecified> {
self.evp_pkey.marshall_private_key(Version::V1)
Ok(Document::new(
self.evp_pkey.marshall_private_key(Version::V1)?,
))
}

/// Constructs an ECDSA key pair from the private key and public key bytes
Expand Down
Loading

0 comments on commit bd7d81b

Please sign in to comment.