Struct mbedtls_sys::pk_info_t
source · [−]#[repr(C)]pub struct pk_info_t {
pub type_: pk_type_t,
pub name: *const c_char,
pub get_bitlen: Option<unsafe extern "C" fn(arg1: *const c_void) -> size_t>,
pub can_do: Option<unsafe extern "C" fn(type_: pk_type_t) -> c_int>,
pub verify_func: Option<unsafe extern "C" fn(ctx: *mut c_void, md_alg: md_type_t, hash: *const c_uchar, hash_len: size_t, sig: *const c_uchar, sig_len: size_t) -> c_int>,
pub sign_func: Option<unsafe extern "C" fn(ctx: *mut c_void, md_alg: md_type_t, hash: *const c_uchar, hash_len: size_t, sig: *mut c_uchar, sig_len: *mut size_t, f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>, p_rng: *mut c_void) -> c_int>,
pub decrypt_func: Option<unsafe extern "C" fn(ctx: *mut c_void, input: *const c_uchar, ilen: size_t, output: *mut c_uchar, olen: *mut size_t, osize: size_t, f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>, p_rng: *mut c_void) -> c_int>,
pub encrypt_func: Option<unsafe extern "C" fn(ctx: *mut c_void, input: *const c_uchar, ilen: size_t, output: *mut c_uchar, olen: *mut size_t, osize: size_t, f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>, p_rng: *mut c_void) -> c_int>,
pub check_pair_func: Option<unsafe extern "C" fn(pub_: *const c_void, prv: *const c_void) -> c_int>,
pub ctx_alloc_func: Option<unsafe extern "C" fn() -> *mut c_void>,
pub ctx_free_func: Option<unsafe extern "C" fn(ctx: *mut c_void)>,
pub debug_func: Option<unsafe extern "C" fn(ctx: *const c_void, items: *mut pk_debug_item)>,
}
Fields
type_: pk_type_t
name: *const c_char
get_bitlen: Option<unsafe extern "C" fn(arg1: *const c_void) -> size_t>
can_do: Option<unsafe extern "C" fn(type_: pk_type_t) -> c_int>
verify_func: Option<unsafe extern "C" fn(ctx: *mut c_void, md_alg: md_type_t, hash: *const c_uchar, hash_len: size_t, sig: *const c_uchar, sig_len: size_t) -> c_int>
sign_func: Option<unsafe extern "C" fn(ctx: *mut c_void, md_alg: md_type_t, hash: *const c_uchar, hash_len: size_t, sig: *mut c_uchar, sig_len: *mut size_t, f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>, p_rng: *mut c_void) -> c_int>
decrypt_func: Option<unsafe extern "C" fn(ctx: *mut c_void, input: *const c_uchar, ilen: size_t, output: *mut c_uchar, olen: *mut size_t, osize: size_t, f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>, p_rng: *mut c_void) -> c_int>
encrypt_func: Option<unsafe extern "C" fn(ctx: *mut c_void, input: *const c_uchar, ilen: size_t, output: *mut c_uchar, olen: *mut size_t, osize: size_t, f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>, p_rng: *mut c_void) -> c_int>
check_pair_func: Option<unsafe extern "C" fn(pub_: *const c_void, prv: *const c_void) -> c_int>
ctx_alloc_func: Option<unsafe extern "C" fn() -> *mut c_void>
ctx_free_func: Option<unsafe extern "C" fn(ctx: *mut c_void)>
debug_func: Option<unsafe extern "C" fn(ctx: *const c_void, items: *mut pk_debug_item)>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for pk_info_t
impl !Send for pk_info_t
impl !Sync for pk_info_t
impl Unpin for pk_info_t
impl UnwindSafe for pk_info_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more