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]

[src]

Looks up the cipher for a certain nid.

This corresponds to EVP_get_cipherbynid

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Requires OpenSSL 1.1.0 or newer.

[src]

Requires OpenSSL 1.1.0 or newer.

[src]

[src]

[src]

Returns the length of keys used with this cipher.

[src]

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

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Cipher
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Cipher
[src]

impl Sync for Cipher
[src]

impl Send for Cipher
[src]