Struct r_core::r_crypto_plugin_t[][src]

#[repr(C)]
pub struct r_crypto_plugin_t { pub name: *const c_char, pub license: *const c_char, pub get_key_size: Option<unsafe extern "C" fn(cry: *mut RCrypto) -> c_int>, pub set_iv: Option<unsafe extern "C" fn(cry: *mut RCrypto, iv: *const c_uchar, ivlen: c_int) -> bool>, pub set_key: Option<unsafe extern "C" fn(cry: *mut RCrypto, key: *const c_uchar, keylen: c_int, mode: c_int, direction: c_int) -> bool>, pub update: Option<unsafe extern "C" fn(cry: *mut RCrypto, buf: *const c_uchar, len: c_int) -> bool>, pub final_: Option<unsafe extern "C" fn(cry: *mut RCrypto, buf: *const c_uchar, len: c_int) -> bool>, pub use_: Option<unsafe extern "C" fn(algo: *const c_char) -> bool>, pub fini: Option<unsafe extern "C" fn(cry: *mut RCrypto) -> c_int>, }

Fields

name: *const c_charlicense: *const c_charget_key_size: Option<unsafe extern "C" fn(cry: *mut RCrypto) -> c_int>set_iv: Option<unsafe extern "C" fn(cry: *mut RCrypto, iv: *const c_uchar, ivlen: c_int) -> bool>set_key: Option<unsafe extern "C" fn(cry: *mut RCrypto, key: *const c_uchar, keylen: c_int, mode: c_int, direction: c_int) -> bool>update: Option<unsafe extern "C" fn(cry: *mut RCrypto, buf: *const c_uchar, len: c_int) -> bool>final_: Option<unsafe extern "C" fn(cry: *mut RCrypto, buf: *const c_uchar, len: c_int) -> bool>use_: Option<unsafe extern "C" fn(algo: *const c_char) -> bool>fini: Option<unsafe extern "C" fn(cry: *mut RCrypto) -> c_int>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.