fidl_fuchsia_fxfsTrait CryptProxyInterface
Source pub trait CryptProxyInterface: Send + Sync {
type CreateKeyResponseFut: Future<Output = Result<CryptCreateKeyResult, Error>> + Send;
type CreateKeyWithIdResponseFut: Future<Output = Result<CryptCreateKeyWithIdResult, Error>> + Send;
type UnwrapKeyResponseFut: Future<Output = Result<CryptUnwrapKeyResult, Error>> + Send;
// Required methods
fn create_key(
&self,
owner: u64,
purpose: KeyPurpose,
) -> Self::CreateKeyResponseFut;
fn create_key_with_id(
&self,
owner: u64,
wrapping_key_id: &[u8; 16],
) -> Self::CreateKeyWithIdResponseFut;
fn unwrap_key(
&self,
wrapping_key_id: &[u8; 16],
owner: u64,
key: &[u8],
) -> Self::UnwrapKeyResponseFut;
}