[−][src]Trait wasi_crypto_preview::wasi_ephemeral_crypto_asymmetric_common::WasiEphemeralCryptoAsymmetricCommon
Required methods
fn keypair_generate<'a>(
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
options: &OptOptions
) -> Result<Keypair, CryptoErrno>
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
options: &OptOptions
) -> Result<Keypair, CryptoErrno>
fn keypair_import<'a>(
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
encoded: &GuestPtr<'a, u8>,
encoded_len: Size,
encoding: KeypairEncoding
) -> Result<Keypair, CryptoErrno>
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
encoded: &GuestPtr<'a, u8>,
encoded_len: Size,
encoding: KeypairEncoding
) -> Result<Keypair, CryptoErrno>
fn keypair_generate_managed<'a>(
&self,
key_manager: KeyManager,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
options: &OptOptions
) -> Result<Keypair, CryptoErrno>
&self,
key_manager: KeyManager,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
options: &OptOptions
) -> Result<Keypair, CryptoErrno>
fn keypair_replace_managed(
&self,
key_manager: KeyManager,
kp_old: Keypair,
kp_new: Keypair
) -> Result<Version, CryptoErrno>
&self,
key_manager: KeyManager,
kp_old: Keypair,
kp_new: Keypair
) -> Result<Version, CryptoErrno>
fn keypair_id<'a>(
&self,
kp: Keypair,
kp_id: &GuestPtr<'a, u8>,
kp_id_max_len: Size
) -> Result<(Size, Version), CryptoErrno>
&self,
kp: Keypair,
kp_id: &GuestPtr<'a, u8>,
kp_id_max_len: Size
) -> Result<(Size, Version), CryptoErrno>
fn keypair_from_id<'a>(
&self,
key_manager: KeyManager,
kp_id: &GuestPtr<'a, u8>,
kp_id_len: Size,
kp_version: Version
) -> Result<Keypair, CryptoErrno>
&self,
key_manager: KeyManager,
kp_id: &GuestPtr<'a, u8>,
kp_id_len: Size,
kp_version: Version
) -> Result<Keypair, CryptoErrno>
fn keypair_from_pk_and_sk(
&self,
publickey: Publickey,
secretkey: Secretkey
) -> Result<Keypair, CryptoErrno>
&self,
publickey: Publickey,
secretkey: Secretkey
) -> Result<Keypair, CryptoErrno>
fn keypair_export(
&self,
kp: Keypair,
encoding: KeypairEncoding
) -> Result<ArrayOutput, CryptoErrno>
&self,
kp: Keypair,
encoding: KeypairEncoding
) -> Result<ArrayOutput, CryptoErrno>
fn keypair_publickey(&self, kp: Keypair) -> Result<Publickey, CryptoErrno>
fn keypair_secretkey(&self, kp: Keypair) -> Result<Secretkey, CryptoErrno>
fn keypair_close(&self, kp: Keypair) -> Result<(), CryptoErrno>
fn publickey_import<'a>(
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
encoded: &GuestPtr<'a, u8>,
encoded_len: Size,
encoding: PublickeyEncoding
) -> Result<Publickey, CryptoErrno>
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
encoded: &GuestPtr<'a, u8>,
encoded_len: Size,
encoding: PublickeyEncoding
) -> Result<Publickey, CryptoErrno>
fn publickey_export(
&self,
pk: Publickey,
encoding: PublickeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
&self,
pk: Publickey,
encoding: PublickeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
fn publickey_verify(&self, pk: Publickey) -> Result<(), CryptoErrno>
fn publickey_from_secretkey(
&self,
sk: Secretkey
) -> Result<Publickey, CryptoErrno>
&self,
sk: Secretkey
) -> Result<Publickey, CryptoErrno>
fn publickey_close(&self, pk: Publickey) -> Result<(), CryptoErrno>
fn secretkey_import<'a>(
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
encoded: &GuestPtr<'a, u8>,
encoded_len: Size,
encoding: SecretkeyEncoding
) -> Result<Secretkey, CryptoErrno>
&self,
algorithm_type: AlgorithmType,
algorithm: &GuestPtr<'a, str>,
encoded: &GuestPtr<'a, u8>,
encoded_len: Size,
encoding: SecretkeyEncoding
) -> Result<Secretkey, CryptoErrno>
fn secretkey_export(
&self,
sk: Secretkey,
encoding: SecretkeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
&self,
sk: Secretkey,
encoding: SecretkeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
fn secretkey_close(&self, sk: Secretkey) -> Result<(), CryptoErrno>
Implementors
impl WasiEphemeralCryptoAsymmetricCommon for WasiCryptoCtx
[src]
fn keypair_generate_managed(
&self,
key_manager_handle: KeyManager,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
options_handle: &OptOptions
) -> Result<Keypair, CryptoErrno>
[src]
&self,
key_manager_handle: KeyManager,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
options_handle: &OptOptions
) -> Result<Keypair, CryptoErrno>
fn keypair_replace_managed(
&self,
key_manager_handle: KeyManager,
kp_old_handle: Keypair,
kp_new_handle: Keypair
) -> Result<Version, CryptoErrno>
[src]
&self,
key_manager_handle: KeyManager,
kp_old_handle: Keypair,
kp_new_handle: Keypair
) -> Result<Version, CryptoErrno>
fn keypair_from_id(
&self,
key_manager_handle: KeyManager,
kp_id_ptr: &GuestPtr<'_, u8>,
kp_id_len: Size,
kp_version: Version
) -> Result<Keypair, CryptoErrno>
[src]
&self,
key_manager_handle: KeyManager,
kp_id_ptr: &GuestPtr<'_, u8>,
kp_id_len: Size,
kp_version: Version
) -> Result<Keypair, CryptoErrno>
fn keypair_generate(
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
options_handle: &OptOptions
) -> Result<Keypair, CryptoErrno>
[src]
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
options_handle: &OptOptions
) -> Result<Keypair, CryptoErrno>
fn keypair_import(
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
encoded_ptr: &GuestPtr<'_, u8>,
encoded_len: Size,
encoding: KeypairEncoding
) -> Result<Keypair, CryptoErrno>
[src]
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
encoded_ptr: &GuestPtr<'_, u8>,
encoded_len: Size,
encoding: KeypairEncoding
) -> Result<Keypair, CryptoErrno>
fn keypair_id(
&self,
kp_handle: Keypair,
kp_id_ptr: &GuestPtr<'_, u8>,
kp_id_max_len: Size
) -> Result<(Size, Version), CryptoErrno>
[src]
&self,
kp_handle: Keypair,
kp_id_ptr: &GuestPtr<'_, u8>,
kp_id_max_len: Size
) -> Result<(Size, Version), CryptoErrno>
fn keypair_export(
&self,
kp_handle: Keypair,
encoding: KeypairEncoding
) -> Result<ArrayOutput, CryptoErrno>
[src]
&self,
kp_handle: Keypair,
encoding: KeypairEncoding
) -> Result<ArrayOutput, CryptoErrno>
fn keypair_publickey(
&self,
kp_handle: Keypair
) -> Result<Publickey, CryptoErrno>
[src]
&self,
kp_handle: Keypair
) -> Result<Publickey, CryptoErrno>
fn keypair_close(&self, kp_handle: Keypair) -> Result<(), CryptoErrno>
[src]
fn publickey_import(
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
encoded_ptr: &GuestPtr<'_, u8>,
encoded_len: Size,
encoding: PublickeyEncoding
) -> Result<Publickey, CryptoErrno>
[src]
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
encoded_ptr: &GuestPtr<'_, u8>,
encoded_len: Size,
encoding: PublickeyEncoding
) -> Result<Publickey, CryptoErrno>
fn publickey_export(
&self,
pk_handle: Publickey,
encoding: PublickeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
[src]
&self,
pk_handle: Publickey,
encoding: PublickeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
fn publickey_from_secretkey(
&self,
sk_handle: Secretkey
) -> Result<Publickey, CryptoErrno>
[src]
&self,
sk_handle: Secretkey
) -> Result<Publickey, CryptoErrno>
fn publickey_verify(&self, pk_handle: Publickey) -> Result<(), CryptoErrno>
[src]
fn publickey_close(&self, pk_handle: Publickey) -> Result<(), CryptoErrno>
[src]
fn secretkey_import(
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
encoded_ptr: &GuestPtr<'_, u8>,
encoded_len: Size,
encoding: SecretkeyEncoding
) -> Result<Secretkey, CryptoErrno>
[src]
&self,
alg_type: AlgorithmType,
alg_str: &GuestPtr<'_, str>,
encoded_ptr: &GuestPtr<'_, u8>,
encoded_len: Size,
encoding: SecretkeyEncoding
) -> Result<Secretkey, CryptoErrno>
fn secretkey_export(
&self,
sk_handle: Secretkey,
encoding: SecretkeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
[src]
&self,
sk_handle: Secretkey,
encoding: SecretkeyEncoding
) -> Result<ArrayOutput, CryptoErrno>
fn secretkey_close(&self, sk_handle: Secretkey) -> Result<(), CryptoErrno>
[src]
fn keypair_from_pk_and_sk(
&self,
pk_handle: Publickey,
sk_handle: Secretkey
) -> Result<Keypair, CryptoErrno>
[src]
&self,
pk_handle: Publickey,
sk_handle: Secretkey
) -> Result<Keypair, CryptoErrno>
fn keypair_secretkey(
&self,
kp_handle: Keypair
) -> Result<Secretkey, CryptoErrno>
[src]
&self,
kp_handle: Keypair
) -> Result<Secretkey, CryptoErrno>