#[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_tname: *const c_charget_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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.