Struct openssl::rsa::Rsa []

pub struct Rsa(_);

Methods

impl Rsa
[src]

[src]

only useful for associating the key material directly with the key, it's safer to use the supplied load and save methods for DER formatted keys.

[src]

[src]

Generates a public/private key pair with the specified size.

The public exponent will be 65537.

[src]

Deserializes a PEM-formatted private key.

[src]

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

Panics

Panics if passphrase contains an embedded null.

[src]

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.

[src]

Deserializes a private key from DER-formatted data.

[src]

Deserializes a public key from PEM-formatted data.

[src]

Deserializes a public key from DER-formatted data.

[src]

Deserializes a public key from DER-encoded PKCS#1 data.

[src]

Deprecated since 0.9.2

: use private_key_from_pem_callback

Methods from Deref<Target = RsaRef>

[src]

Serializes the private key to PEM.

[src]

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

[src]

Serializes a public key to PEM.

[src]

Serializes the private key to DER.

[src]

Serializes the public key to DER.

[src]

Serializes the public key to DER-encoded PKCS#1.

[src]

[src]

Decrypts data using the private key, returning the number of decrypted bytes.

Panics

Panics if self has no private components, or if to is smaller than self.size().

[src]

Encrypts data using the private key, returning the number of encrypted bytes.

Panics

Panics if self has no private components, or if to is smaller than self.size().

[src]

Decrypts data using the public key, returning the number of decrypted bytes.

Panics

Panics if to is smaller than self.size().

[src]

Encrypts data using the public key, returning the number of encrypted bytes.

Panics

Panics if to is smaller than self.size().

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl ForeignType for Rsa

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl Drop for Rsa

Executes the destructor for this type. Read more

impl Deref for Rsa

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Rsa

Mutably dereferences the value.

impl Borrow<RsaRef> for Rsa

Immutably borrows from an owned value. Read more

impl AsRef<RsaRef> for Rsa

Performs the conversion.

impl Send for Rsa
[src]

impl Sync for Rsa
[src]

impl Debug for Rsa
[src]

[src]

Formats the value using the given formatter.