pub struct DefaultProvider;Implementations§
Trait Implementations§
Source§impl Clone for DefaultProvider
impl Clone for DefaultProvider
Source§fn clone(&self) -> DefaultProvider
fn clone(&self) -> DefaultProvider
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 DefaultProvider
Source§impl CryptoProvider for DefaultProvider
impl CryptoProvider for DefaultProvider
fn hash(&self, alg: HashAlgorithm, data: &[u8]) -> Digest
fn sign(&self, sk: &SigningKey, msg: &[u8]) -> [u8; 64]
fn verify(&self, pk: &[u8; 32], msg: &[u8], sig: &[u8; 64]) -> Result<()>
fn aead_encrypt( &self, key: &[u8; 32], nonce: &[u8; 12], aad: &[u8], pt: &[u8], ) -> Result<Vec<u8>>
fn aead_decrypt( &self, key: &[u8; 32], nonce: &[u8; 12], aad: &[u8], ct: &[u8], ) -> Result<Vec<u8>>
Source§impl Debug for DefaultProvider
impl Debug for DefaultProvider
Source§impl Default for DefaultProvider
impl Default for DefaultProvider
Source§fn default() -> DefaultProvider
fn default() -> DefaultProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultProvider
impl RefUnwindSafe for DefaultProvider
impl Send for DefaultProvider
impl Sync for DefaultProvider
impl Unpin for DefaultProvider
impl UnsafeUnpin for DefaultProvider
impl UnwindSafe for DefaultProvider
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