Skip to content

Commit

Permalink
Added DER serialization for DSAPrivateKey
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 28, 2023
1 parent c9ce286 commit b3cdda0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openssl/src/dsa.rs
Expand Up @@ -127,6 +127,13 @@ where
ffi::PEM_write_bio_DSAPrivateKey
}

to_der! {
/// Serializes the private_key to a DER-encoded `DSAPrivateKey` structure.
#[corresponds(i2d_DSAPrivateKey)]
private_key_to_der,
ffi::i2d_DSAPrivateKey
}

/// Returns a reference to the private key component of `self`.
#[corresponds(DSA_get0_key)]
pub fn priv_key(&self) -> &BigNumRef {
Expand Down

0 comments on commit b3cdda0

Please sign in to comment.