Luks2TokenHandlerRaw

Trait Luks2TokenHandlerRaw 

Source
pub trait Luks2TokenHandlerRaw: Luks2TokenHandler {
    // Provided methods
    extern "C" fn raw_open_func(
        cd: *mut crypt_device,
        token: c_int,
        buffer: *mut *mut c_char,
        buffer_len: *mut size_t,
        _usrptr: *mut c_void,
    ) -> c_int { ... }
    extern "C" fn raw_free_func(
        buffer: *mut c_void,
        buffer_len: size_t,
    ) { ... }
    extern "C" fn raw_dump_func(
        cd: *mut crypt_device,
        token_json: *const c_char,
    ) { ... }
    extern "C" fn raw_validate_func(
        cd: *mut crypt_device,
        token_json: *const c_char,
    ) -> c_int { ... }
}
Expand description

Companion trait to Luks2TokenHandler which contains the raw FFI implementation. Users should implement this trait but not override the implementation.

Provided Methods§

Source

extern "C" fn raw_open_func( cd: *mut crypt_device, token: c_int, buffer: *mut *mut c_char, buffer_len: *mut size_t, _usrptr: *mut c_void, ) -> c_int

Source

extern "C" fn raw_free_func(buffer: *mut c_void, buffer_len: size_t)

Source

extern "C" fn raw_dump_func( cd: *mut crypt_device, token_json: *const c_char, )

Source

extern "C" fn raw_validate_func( cd: *mut crypt_device, token_json: *const c_char, ) -> c_int

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§