fidl_fuchsia_fxfs

Trait 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;
}

Required Associated Types§

Required Methods§

Source

fn create_key( &self, owner: u64, purpose: KeyPurpose, ) -> Self::CreateKeyResponseFut

Source

fn create_key_with_id( &self, owner: u64, wrapping_key_id: &[u8; 16], ) -> Self::CreateKeyWithIdResponseFut

Source

fn unwrap_key( &self, wrapping_key_id: &[u8; 16], owner: u64, key: &[u8], ) -> Self::UnwrapKeyResponseFut

Implementors§