Struct openssl::dsa::Dsa [] [src]

pub struct Dsa(_);

Methods

impl Dsa
[src]

Generate a DSA key pair.

Deserializes a PEM-formatted private key.

Deserializes a PEM-formatted private key, using the supplied password if the key is encrypted.

Panics

Panics if passphrase contains an embedded null.

Deserializes a PEM-formatted private key, using a callback to retrieve a password if the key is encrypted.

The callback should copy the password into the provided buffer and return the number of bytes written.

Deserializes a private key from DER-formatted data.

Deserializes a public key from PEM-formatted data.

Deserializes a public key from DER-formatted data.

Deprecated since 0.9.2

: use private_key_from_pem_callback

Methods from Deref<Target=DsaRef>

Serializes the private key to PEM.

Serializes the private key to PEM, encrypting it with the specified symmetric cipher and passphrase.

Serializes a public key to PEM.

Serializes the private key to DER.

Serializes the public key to DER.

Trait Implementations

impl OpenSslType for Dsa
[src]

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

impl Drop for Dsa
[src]

A method called when the value goes out of scope. Read more

impl Deref for Dsa
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for Dsa
[src]

The method called to mutably dereference a value

impl Debug for Dsa
[src]

Formats the value using the given formatter.