[−][src]Struct push::crypto::Crypto
Trait Implementations
impl Cryptography for Crypto
[src]
fn generate_key() -> Result<Key>
[src]
Generate a new cryptographic Key
fn test_key(priv_key: &str, pub_key: &str, auth: &str) -> Key
[src]
fn decrypt(
key: &Key,
body: &str,
encoding: &str,
salt: Option<&str>,
dh: Option<&str>
) -> Result<Decrypted>
[src]
key: &Key,
body: &str,
encoding: &str,
salt: Option<&str>,
dh: Option<&str>
) -> Result<Decrypted>
Decrypt the incoming webpush message based on the content-encoding
fn decrypt_aesgcm(
key: &Key,
content: &[u8],
salt: Option<Vec<u8>>,
crypto_key: Option<Vec<u8>>
) -> Result<Decrypted>
[src]
key: &Key,
content: &[u8],
salt: Option<Vec<u8>>,
crypto_key: Option<Vec<u8>>
) -> Result<Decrypted>
fn decrypt_aes128gcm(key: &Key, content: &[u8]) -> Result<Vec<u8>>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Crypto
impl Send for Crypto
impl Sync for Crypto
impl Unpin for Crypto
impl UnwindSafe for Crypto
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,