|
|
@ -74,6 +74,7 @@ impl Context
|
|
|
|
CContext{
|
|
|
|
CContext{
|
|
|
|
algo: u8::from(self.algo),
|
|
|
|
algo: u8::from(self.algo),
|
|
|
|
salt: salt::into_raw(self.salt),
|
|
|
|
salt: salt::into_raw(self.salt),
|
|
|
|
|
|
|
|
flags: Default::default(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -121,6 +122,7 @@ pub const ALGO_SHA256_TRUNCATED: u8 = 4;
|
|
|
|
pub struct CContext
|
|
|
|
pub struct CContext
|
|
|
|
{
|
|
|
|
{
|
|
|
|
algo: u8,
|
|
|
|
algo: u8,
|
|
|
|
|
|
|
|
flags: u64, //nothing yet, might be flags later idk
|
|
|
|
salt: salt::FFI,
|
|
|
|
salt: salt::FFI,
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|