pub struct DefaultCrypto;
Expand description
Cryptography routines using native Rust crates.
Trait Implementations§
Source§impl Clone for DefaultCrypto
impl Clone for DefaultCrypto
Source§fn clone(&self) -> DefaultCrypto
fn clone(&self) -> DefaultCrypto
Returns a duplicate 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 moreSource§impl Crypto for DefaultCrypto
impl Crypto for DefaultCrypto
Source§fn fill_random(&self, buffer: &mut [u8]) -> Result<(), InternalError>
fn fill_random(&self, buffer: &mut [u8]) -> Result<(), InternalError>
Fill the provided buffer with some random bytes.
Source§fn hmac_sha256(&self, key: &[u8]) -> Result<Box<dyn Sha256Hmac>, InternalError>
fn hmac_sha256(&self, key: &[u8]) -> Result<Box<dyn Sha256Hmac>, InternalError>
Start to calculate a SHA-256 HMAC using the provided key.
Source§fn sha512_digest(&self) -> Result<Box<dyn Sha512Digest>, InternalError>
fn sha512_digest(&self) -> Result<Box<dyn Sha512Digest>, InternalError>
Start to generate a SHA-512 digest.
Source§impl Debug for DefaultCrypto
impl Debug for DefaultCrypto
Source§impl Default for DefaultCrypto
impl Default for DefaultCrypto
Source§impl PartialEq for DefaultCrypto
impl PartialEq for DefaultCrypto
impl Copy for DefaultCrypto
impl StructuralPartialEq for DefaultCrypto
Auto Trait Implementations§
impl Freeze for DefaultCrypto
impl RefUnwindSafe for DefaultCrypto
impl Send for DefaultCrypto
impl Sync for DefaultCrypto
impl Unpin for DefaultCrypto
impl UnwindSafe for DefaultCrypto
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