pub struct Hash { /* private fields */ }Expand description
The hash fields represent different bitwise hash algorithms and their values.
Field names for common hashes (e.g. MD5, SHA1) are predefined. Add fields for other hashes by lowercasing the hash algorithm name and using underscore separators as appropriate (snake case, e.g. sha3_512).
Note that this fieldset is used for common hashes that may be computed over a range of generic bytes. Entity-specific hashes such as ja3 or imphash are placed in the fieldsets to which they relate (tls and pe, respectively).
Implementations§
Source§impl Hash
impl Hash
Sourcepub fn get_sha256(&self) -> Option<&String>
pub fn get_sha256(&self) -> Option<&String>
SHA256 hash.
Sourcepub fn set_sha256(&mut self, sha256_arg: String)
pub fn set_sha256(&mut self, sha256_arg: String)
SHA256 hash.
Sourcepub fn get_sha384(&self) -> Option<&String>
pub fn get_sha384(&self) -> Option<&String>
SHA384 hash.
Sourcepub fn set_sha384(&mut self, sha384_arg: String)
pub fn set_sha384(&mut self, sha384_arg: String)
SHA384 hash.
Sourcepub fn get_sha512(&self) -> Option<&String>
pub fn get_sha512(&self) -> Option<&String>
SHA512 hash.
Sourcepub fn set_sha512(&mut self, sha512_arg: String)
pub fn set_sha512(&mut self, sha512_arg: String)
SHA512 hash.
Sourcepub fn get_ssdeep(&self) -> Option<&String>
pub fn get_ssdeep(&self) -> Option<&String>
SSDEEP hash.
Sourcepub fn set_ssdeep(&mut self, ssdeep_arg: String)
pub fn set_ssdeep(&mut self, ssdeep_arg: String)
SSDEEP hash.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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