#[repr(C)]pub struct Params {
pub algorithm: usize,
pub prk: *const u8,
pub prk_len: usize,
pub info: *const u8,
pub info_len: usize,
pub okm: *mut u8,
pub okm_len: usize,
}Expand description
Parameters of hkdf_expand
Fields§
§algorithm: usizeThe hash algorithm.
prk: *const u8The pointer to the pseudo random key.
prk_len: usizeThe length of the pseudo random key.
Must be at least the length of the hash algorithm output.
info: *const u8The pointer to the info.
May be null if [info_len] is null.
info_len: usizeThe length of the info.
May be zero.
okm: *mut u8The pointer to the output key material.
okm_len: usizeThe length of the output key material.
Must be at most 255 times the output length of the hash algorithm.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl !Send for Params
impl !Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more