Skip to content

Commit b3cdda0

Browse files
committed
Added DER serialization for DSAPrivateKey
1 parent c9ce286 commit b3cdda0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

openssl/src/dsa.rs

+7
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ where
127127
ffi::PEM_write_bio_DSAPrivateKey
128128
}
129129

130+
to_der! {
131+
/// Serializes the private_key to a DER-encoded `DSAPrivateKey` structure.
132+
#[corresponds(i2d_DSAPrivateKey)]
133+
private_key_to_der,
134+
ffi::i2d_DSAPrivateKey
135+
}
136+
130137
/// Returns a reference to the private key component of `self`.
131138
#[corresponds(DSA_get0_key)]
132139
pub fn priv_key(&self) -> &BigNumRef {

0 commit comments

Comments
 (0)