#[repr(C)]pub struct mbedtls_cipher_info_t {
pub type_: mbedtls_cipher_type_t,
pub mode: mbedtls_cipher_mode_t,
pub key_bitlen: c_uint,
pub name: *const c_char,
pub iv_size: c_uint,
pub flags: c_int,
pub block_size: c_uint,
pub base: *const mbedtls_cipher_base_t,
}Expand description
Cipher information. Allows cipher functions to be called in a generic way.
Fields§
§type_: mbedtls_cipher_type_tFull cipher identifier (e.g. MBEDTLS_CIPHER_AES_256_CBC)
mode: mbedtls_cipher_mode_tCipher mode (e.g. MBEDTLS_MODE_CBC)
key_bitlen: c_uintCipher key length, in bits (default length for variable sized ciphers) (Includes parity bits for ciphers like DES)
name: *const c_charName of the cipher
iv_size: c_uintIV/NONCE size, in bytes. For cipher that accept many sizes: recommended size
flags: c_intFlags for variable IV size, variable key size, etc.
block_size: c_uintblock size, in bytes
base: *const mbedtls_cipher_base_tBase cipher information and functions
Trait Implementations§
Source§impl Clone for mbedtls_cipher_info_t
impl Clone for mbedtls_cipher_info_t
Source§fn clone(&self) -> mbedtls_cipher_info_t
fn clone(&self) -> mbedtls_cipher_info_t
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mbedtls_cipher_info_t
impl Debug for mbedtls_cipher_info_t
Source§impl Default for mbedtls_cipher_info_t
impl Default for mbedtls_cipher_info_t
impl Copy for mbedtls_cipher_info_t
Auto Trait Implementations§
impl Freeze for mbedtls_cipher_info_t
impl RefUnwindSafe for mbedtls_cipher_info_t
impl !Send for mbedtls_cipher_info_t
impl !Sync for mbedtls_cipher_info_t
impl Unpin for mbedtls_cipher_info_t
impl UnwindSafe for mbedtls_cipher_info_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more