Expose pem serialize function for DSA private key
Expose private_key_to_pem() & private_key_to_pem_passphrase() for DsaRef
This commit is contained in:
parent
9ba802ad43
commit
a02a962f7d
|
|
@ -80,6 +80,26 @@ impl<T> DsaRef<T>
|
||||||
where
|
where
|
||||||
T: HasPublic,
|
T: HasPublic,
|
||||||
{
|
{
|
||||||
|
private_key_to_pem! {
|
||||||
|
/// Serializes the private key to a PEM-encoded DSAPrivateKey structure.
|
||||||
|
///
|
||||||
|
/// The output will have a header of `-----BEGIN DSA PRIVATE KEY-----`.
|
||||||
|
///
|
||||||
|
/// This corresponds to [`PEM_write_bio_DSAPrivateKey`].
|
||||||
|
///
|
||||||
|
/// [`PEM_write_bio_DSAPrivateKey`]: https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSAPrivateKey.html
|
||||||
|
private_key_to_pem,
|
||||||
|
/// Serializes the private key to a PEM-encoded encrypted DSAPrivateKey structure.
|
||||||
|
///
|
||||||
|
/// The output will have a header of `-----BEGIN DSA PRIVATE KEY-----`.
|
||||||
|
///
|
||||||
|
/// This corresponds to [`PEM_write_bio_DSAPrivateKey`].
|
||||||
|
///
|
||||||
|
/// [`PEM_write_bio_DSAPrivateKey`]: https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSAPrivateKey.html
|
||||||
|
private_key_to_pem_passphrase,
|
||||||
|
ffi::PEM_write_bio_DSAPrivateKey
|
||||||
|
}
|
||||||
|
|
||||||
to_pem! {
|
to_pem! {
|
||||||
/// Serialies the public key into a PEM-encoded SubjectPublicKeyInfo structure.
|
/// Serialies the public key into a PEM-encoded SubjectPublicKeyInfo structure.
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue