Struct buildchain::Sha384
[−]
[src]
pub struct Sha384(_);
A serializable representation of a Sha384 hash
Methods
impl Sha384
[src]
fn new<R: Read>(input: R) -> Result<Sha384>
[src]
Create a new Sha384 by reading the provided input
Arguments
input
- Astd::io::Read
object that will be used as input to the Sha384 algorithm
Return
The Sha384 of the provided input data
Errors
Errors that are encountered while reading will be returned
Example
use buildchain::Sha384; let data = "Input"; let sha = Sha384::new(data.as_bytes()).unwrap();
Trait Implementations
impl Clone for Sha384
[src]
fn clone(&self) -> Sha384
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more