pub struct CryptoNative;Trait Implementations§
Source§impl Clone for CryptoNative
impl Clone for CryptoNative
Source§fn clone(&self) -> CryptoNative
fn clone(&self) -> CryptoNative
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 CryptoTrait for CryptoNative
impl CryptoTrait for CryptoNative
fn encrypt_rsa( &self, data: Vec<u8>, public_key: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CryptoError>> + 'static>>
fn decrypt_rsa( &self, data: Vec<u8>, private_key: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CryptoError>> + 'static>>
fn sign_rsa( &self, data: Vec<u8>, private_key: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CryptoError>>>>
fn verify_rsa( &self, data: Vec<u8>, signature: Vec<u8>, public_key: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<bool, CryptoError>>>>
fn create_uuid(&self) -> String
fn random_bytes(&self, length: usize) -> Vec<u8> ⓘ
fn new_encryption_key_pair( &self, ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Vec<u8>), CryptoError>>>>
fn new_sign_key_pair( &self, ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Vec<u8>), CryptoError>>>>
Source§impl Debug for CryptoNative
impl Debug for CryptoNative
Source§impl PartialEq for CryptoNative
impl PartialEq for CryptoNative
impl StructuralPartialEq for CryptoNative
Auto Trait Implementations§
impl Freeze for CryptoNative
impl RefUnwindSafe for CryptoNative
impl Send for CryptoNative
impl Sync for CryptoNative
impl Unpin for CryptoNative
impl UnwindSafe for CryptoNative
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more