Struct openssl::symm::Cipher [−][src]
pub struct Cipher(_);
Expand description
Represents a particular cipher algorithm.
See OpenSSL doc at EVP_EncryptInit
for more information on each algorithms.
Implementations
Looks up the cipher for a certain nid.
This corresponds to EVP_get_cipherbynid
Returns the cipher’s Nid.
This corresponds to EVP_CIPHER_nid
Requires OpenSSL 1.1.0 or newer.
Requires OpenSSL 1.1.0 or newer.
Requires OpenSSL 1.1.0 or newer.
Requires OpenSSL 1.1.0 or newer.
Creates a Cipher
from a raw pointer to its OpenSSL type.
Safety
The caller must ensure the pointer is valid for the 'static
lifetime.
Returns the length of the IV used with this cipher, or None
if the
cipher does not use an IV.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more