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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DefaultCrypto
Source§impl Crypto for DefaultCrypto
Available on crate feature crypto-native only.
impl Crypto for DefaultCrypto
Available on crate feature
crypto-native only.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
Available on crate feature crypto-native only.
impl Default for DefaultCrypto
Available on crate feature
crypto-native only.Source§impl PartialEq for DefaultCrypto
impl PartialEq for DefaultCrypto
Source§fn eq(&self, other: &DefaultCrypto) -> bool
fn eq(&self, other: &DefaultCrypto) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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