[−][src]Struct sequoia_openpgp::crypto::hash::Context
State of a hash function.
Methods
impl Context
[src]
pub fn algo(&self) -> HashAlgorithm
[src]
Returns the algorithm.
pub fn digest_size(&self) -> usize
[src]
Size of the digest in bytes
pub fn update<D: AsRef<[u8]>>(&mut self, data: D)
[src]
Writes data into the hash function.
pub fn digest<D: AsMut<[u8]>>(&mut self, digest: D)
[src]
Finalizes the hash function and writes the digest into the provided slice.
Resets the hash function contexts.
digest
must be at least self.digest_size()
bytes large,
otherwise the digest will be truncated.
Trait Implementations
impl Clone for Context
[src]
ⓘImportant traits for Contextfn clone(&self) -> Context
[src]
ⓘImportant traits for Context
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<Context> for MDC
[src]
impl Write for Context
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize, Error>
1.36.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,