[−][src]Struct rc_crypto::ece_crypto::RcCryptoCryptographer
Trait Implementations
impl Cryptographer for RcCryptoCryptographer
[src]
fn generate_ephemeral_keypair(&self) -> Result<Box<dyn LocalKeyPair>, Error>
[src]
fn import_key_pair(
&self,
components: &EcKeyComponents
) -> Result<Box<dyn LocalKeyPair>, Error>
[src]
&self,
components: &EcKeyComponents
) -> Result<Box<dyn LocalKeyPair>, Error>
fn import_public_key(
&self,
raw: &[u8]
) -> Result<Box<dyn RemotePublicKey>, Error>
[src]
&self,
raw: &[u8]
) -> Result<Box<dyn RemotePublicKey>, Error>
fn compute_ecdh_secret(
&self,
remote: &dyn RemotePublicKey,
local: &dyn LocalKeyPair
) -> Result<Vec<u8>, Error>
[src]
&self,
remote: &dyn RemotePublicKey,
local: &dyn LocalKeyPair
) -> Result<Vec<u8>, Error>
fn hkdf_sha256(
&self,
salt: &[u8],
secret: &[u8],
info: &[u8],
len: usize
) -> Result<Vec<u8>, Error>
[src]
&self,
salt: &[u8],
secret: &[u8],
info: &[u8],
len: usize
) -> Result<Vec<u8>, Error>
fn aes_gcm_128_encrypt(
&self,
key: &[u8],
iv: &[u8],
data: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
key: &[u8],
iv: &[u8],
data: &[u8]
) -> Result<Vec<u8>, Error>
fn aes_gcm_128_decrypt(
&self,
key: &[u8],
iv: &[u8],
ciphertext_and_tag: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
key: &[u8],
iv: &[u8],
ciphertext_and_tag: &[u8]
) -> Result<Vec<u8>, Error>
fn random_bytes(&self, dest: &mut [u8]) -> Result<(), Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for RcCryptoCryptographer
impl Send for RcCryptoCryptographer
impl Sync for RcCryptoCryptographer
impl Unpin for RcCryptoCryptographer
impl UnwindSafe for RcCryptoCryptographer
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>,