Trait btlib::crypto::Op

source ·
pub trait Op {
    // Required methods
    fn update(&mut self, data: &[u8]) -> Result<()>;
    fn finish_into(&mut self, buf: &mut [u8]) -> Result<usize>;
}
Expand description

An ongoing Init-Update-Finish operation.

Required Methods§

source

fn update(&mut self, data: &[u8]) -> Result<()>

Update this operation using the given data.

source

fn finish_into(&mut self, buf: &mut [u8]) -> Result<usize>

Finish this operation and write the result into the given buffer. If the given buffer is not large enough the implementation must return Error::IncorrectSize.

Implementors§

source§

impl Op for VarHashOp

source§

impl<'a> Op for OsslSignOp<'a>

source§

impl<'a> Op for TpmSignOp<'a>

source§

impl<H> Op for OsslHashOp<H>

source§

impl<T: ?Sized + Op, P: DerefMut<Target = T>> Op for P