Struct openssl::dsa::DsaRef [−][src]
pub struct DsaRef<T>(_, _);
Expand description
Reference to Dsa
.
Implementations
Serialies the public key into a PEM-encoded SubjectPublicKeyInfo structure.
The output will have a header of -----BEGIN PUBLIC KEY-----
.
This corresponds to PEM_write_bio_DSA_PUBKEY
.
Serializes the public key into a DER-encoded SubjectPublicKeyInfo structure.
This corresponds to i2d_DSA_PUBKEY
.
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
.
pub fn private_key_to_pem_passphrase(
&self,
cipher: Cipher,
passphrase: &[u8]
) -> Result<Vec<u8>, ErrorStack>
pub fn private_key_to_pem_passphrase(
&self,
cipher: Cipher,
passphrase: &[u8]
) -> Result<Vec<u8>, ErrorStack>
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
.
Returns the maximum size of the signature output by self
in bytes.
OpenSSL documentation at DSA_size
Trait Implementations
Constructs a shared instance of this type from its raw type.
Constructs a mutable reference of this type from its raw type.