pub struct Decoded {
pub algorithm: Algorithm,
pub version: Version,
pub params: Params,
pub salt: Vec<u8>,
pub hash: Vec<u8>,
pub ad: Vec<u8>,
}Expand description
The fields a PHC string yields.
Fields§
§algorithm: AlgorithmThe algorithm named by the string.
decode_string requires the caller to pass this type and fails on a
mismatch. decode_phc reads it from the $argon2* prefix.
version: VersionThe version. 0x10 when the $v= field is absent.
params: Paramsm_cost, t_cost, lanes, threads == lanes, and
output_len == hash.len().
salt: Vec<u8>The decoded salt.
hash: Vec<u8>The decoded tag.
ad: Vec<u8>Associated data from a data= parameter, if the string had one.
The C decode_string has no such field; decode_string always
leaves this empty. decode_phc fills it for @phc/format /
node-argon2 strings.
Trait Implementations§
impl Eq for Decoded
impl StructuralPartialEq for Decoded
Auto Trait Implementations§
impl Freeze for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnsafeUnpin for Decoded
impl UnwindSafe for Decoded
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