Struct esp_idf_sys::mbedtls_cipher_info_t
source · [−]#[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 calling cipher functions in a generic way.
Fields
type_: mbedtls_cipher_type_t
Full cipher identifier. For example, MBEDTLS_CIPHER_AES_256_CBC.
mode: mbedtls_cipher_mode_t
The cipher mode. For example, MBEDTLS_MODE_CBC.
key_bitlen: c_uint
The cipher key length, in bits. This is the default length for variable sized ciphers. Includes parity bits for ciphers like DES.
name: *const c_char
Name of the cipher.
iv_size: c_uint
IV or nonce size, in Bytes. For ciphers that accept variable IV sizes, this is the recommended size.
flags: c_int
Bitflag comprised of MBEDTLS_CIPHER_VARIABLE_IV_LEN and MBEDTLS_CIPHER_VARIABLE_KEY_LEN indicating whether the cipher supports variable IV or variable key sizes, respectively.
block_size: c_uint
The block size, in Bytes.
base: *const mbedtls_cipher_base_t
Struct for base cipher information and functions.
Trait Implementations
sourceimpl Clone for mbedtls_cipher_info_t
impl Clone for mbedtls_cipher_info_t
sourcefn clone(&self) -> mbedtls_cipher_info_t
fn clone(&self) -> mbedtls_cipher_info_t
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for mbedtls_cipher_info_t
impl Debug for mbedtls_cipher_info_t
sourceimpl Default for mbedtls_cipher_info_t
impl Default for mbedtls_cipher_info_t
impl Copy for mbedtls_cipher_info_t
Auto Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more