[][src]Trait wasi_crypto_preview::wasi_ephemeral_crypto_kx::WasiEphemeralCryptoKx

pub trait WasiEphemeralCryptoKx {
    fn kx_dh(
        &self,
        pk: Publickey,
        sk: Secretkey
    ) -> Result<ArrayOutput, CryptoErrno>;
fn kx_encapsulate(
        &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>; }

Required methods

fn kx_dh(
    &self,
    pk: Publickey,
    sk: Secretkey
) -> Result<ArrayOutput, CryptoErrno>

fn kx_encapsulate(
    &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>

Loading content...

Implementors

impl WasiEphemeralCryptoKx for WasiCryptoCtx[src]

Loading content...