[−][src]Trait wasi_crypto_preview::wasi_ephemeral_crypto_kx::WasiEphemeralCryptoKx
Required methods
fn kx_dh(
&self,
pk: Publickey,
sk: Secretkey
) -> Result<ArrayOutput, CryptoErrno>
&self,
pk: Publickey,
sk: Secretkey
) -> Result<ArrayOutput, CryptoErrno>
fn kx_encapsulate(
&self,
pk: Publickey
) -> Result<(ArrayOutput, ArrayOutput), CryptoErrno>
&self,
pk: Publickey
) -> Result<(ArrayOutput, ArrayOutput), CryptoErrno>
fn kx_decapsulate<'a>(
&self,
sk: Secretkey,
encapsulated_secret: &GuestPtr<'a, u8>,
encapsulated_secret_len: Size
) -> Result<ArrayOutput, CryptoErrno>
&self,
sk: Secretkey,
encapsulated_secret: &GuestPtr<'a, u8>,
encapsulated_secret_len: Size
) -> Result<ArrayOutput, CryptoErrno>
Implementors
impl WasiEphemeralCryptoKx for WasiCryptoCtx
[src]
fn kx_dh(
&self,
pk_handle: Publickey,
sk_handle: Secretkey
) -> Result<ArrayOutput, CryptoErrno>
[src]
&self,
pk_handle: Publickey,
sk_handle: Secretkey
) -> Result<ArrayOutput, CryptoErrno>
fn kx_encapsulate(
&self,
pk_handle: Publickey
) -> Result<(ArrayOutput, ArrayOutput), CryptoErrno>
[src]
&self,
pk_handle: Publickey
) -> Result<(ArrayOutput, ArrayOutput), CryptoErrno>
fn kx_decapsulate(
&self,
sk_handle: Secretkey,
encapsulated_secret_ptr: &GuestPtr<'_, u8>,
encapsulated_secret_len: Size
) -> Result<ArrayOutput, CryptoErrno>
[src]
&self,
sk_handle: Secretkey,
encapsulated_secret_ptr: &GuestPtr<'_, u8>,
encapsulated_secret_len: Size
) -> Result<ArrayOutput, CryptoErrno>