[][src]Struct hactool_sys::mbedtls_cipher_info_t

#[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, }

Cipher information. Allows cipher functions to be called in a generic way.

Fields

type_: mbedtls_cipher_type_t

Full cipher identifier (e.g. MBEDTLS_CIPHER_AES_256_CBC)

mode: mbedtls_cipher_mode_t

Cipher mode (e.g. MBEDTLS_MODE_CBC)

key_bitlen: c_uint

Cipher key length, in bits (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/NONCE size, in bytes. For cipher that accept many sizes: recommended size

flags: c_int

Flags for variable IV size, variable key size, etc.

block_size: c_uint

block size, in bytes

base: *const mbedtls_cipher_base_t

Base cipher information and functions

Trait Implementations

impl Copy for mbedtls_cipher_info_t[src]

impl Default for mbedtls_cipher_info_t[src]

impl Clone for mbedtls_cipher_info_t[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for mbedtls_cipher_info_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]