pub struct CipherRef(_);
Expand description

A reference to a Cipher.

Implementations

Returns the cipher’s Nid.

This corresponds to EVP_CIPHER_nid.

Returns the length of keys used with this cipher.

This corresponds to EVP_CIPHER_key_length.

Returns the length of the IV used with this cipher.

Note

Ciphers that do not use an IV have an IV length of 0.

This corresponds to EVP_CIPHER_iv_length.

Returns the block size of the cipher.

Note

Stream ciphers have a block size of 1.

This corresponds to EVP_CIPHER_block_size.

Trait Implementations

The raw C type.

Constructs a shared instance of this type from its raw type.

Constructs a mutable reference of this type from its raw type.

Returns a raw pointer to the wrapped value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.