Struct openssl::symm::Cipher[][src]

pub struct Cipher(_);

Represents a particular cipher algorithm.

See OpenSSL doc at EVP_EncryptInit for more information on each algorithms.

Methods

impl Cipher
[src]

Looks up the cipher for a certain nid.

This corresponds to EVP_get_cipherbynid

Requires OpenSSL 1.1.0 or newer.

Requires OpenSSL 1.1.0 or newer.

Returns the length of keys used with this cipher.

Returns the length of the IV used with this cipher, or None if the cipher does not use an IV.

Returns the block size of the cipher.

Note

Stream ciphers such as RC4 have a block size of 1.

Trait Implementations

impl Copy for Cipher
[src]

impl Clone for Cipher
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Cipher
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Cipher
[src]

impl Sync for Cipher
[src]

impl Send for Cipher
[src]