Struct wolfssl_sys::WOLFSSL_RAND_METHOD
source · #[repr(C)]pub struct WOLFSSL_RAND_METHOD {
pub seed: Option<unsafe extern "C" fn(seed: *const c_void, len: c_int) -> c_int>,
pub bytes: Option<unsafe extern "C" fn(buf: *mut c_uchar, len: c_int) -> c_int>,
pub cleanup: Option<unsafe extern "C" fn()>,
pub add: Option<unsafe extern "C" fn(add: *const c_void, len: c_int, entropy: f64) -> c_int>,
pub pseudorand: Option<unsafe extern "C" fn(buf: *mut c_uchar, len: c_int) -> c_int>,
pub status: Option<unsafe extern "C" fn() -> c_int>,
}Fields§
§seed: Option<unsafe extern "C" fn(seed: *const c_void, len: c_int) -> c_int>§bytes: Option<unsafe extern "C" fn(buf: *mut c_uchar, len: c_int) -> c_int>§cleanup: Option<unsafe extern "C" fn()>§add: Option<unsafe extern "C" fn(add: *const c_void, len: c_int, entropy: f64) -> c_int>§pseudorand: Option<unsafe extern "C" fn(buf: *mut c_uchar, len: c_int) -> c_int>§status: Option<unsafe extern "C" fn() -> c_int>Trait Implementations§
source§impl Clone for WOLFSSL_RAND_METHOD
impl Clone for WOLFSSL_RAND_METHOD
source§fn clone(&self) -> WOLFSSL_RAND_METHOD
fn clone(&self) -> WOLFSSL_RAND_METHOD
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more