Enum gpgrv::Digestable
source · pub enum Digestable {
Sha1(Sha1),
Sha256(Sha256),
Sha512(Sha512),
}
Variants§
Implementations§
source§impl Digestable
impl Digestable
pub fn sha1() -> Digestable
pub fn sha256() -> Digestable
pub fn sha512() -> Digestable
pub fn process(&mut self, data: &[u8])
pub fn hash(self) -> Vec<u8>
pub fn emsa_pkcs1_v1_5(&self, hash: &[u8], output_len: usize) -> Option<Vec<u8>>
pub fn asn1_prefix(&self) -> &'static [u8] ⓘ
Trait Implementations§
source§impl Clone for Digestable
impl Clone for Digestable
source§fn clone(&self) -> Digestable
fn clone(&self) -> Digestable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Digestable
impl RefUnwindSafe for Digestable
impl Send for Digestable
impl Sync for Digestable
impl Unpin for Digestable
impl UnwindSafe for Digestable
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