pub trait CryptProxyInterface: Send + Sync {
    type CreateKeyResponseFut: Future<Output = Result<CryptCreateKeyResult, Error>> + Send;
    type UnwrapKeyResponseFut: Future<Output = Result<CryptUnwrapKeyResult, Error>> + Send;

    // Required methods
    fn create_key(
        &self,
        owner: u64,
        purpose: KeyPurpose
    ) -> Self::CreateKeyResponseFut;
    fn unwrap_key(
        &self,
        wrapping_key_id: u64,
        owner: u64,
        key: &[u8]
    ) -> Self::UnwrapKeyResponseFut;
}

Required Associated Types§

Required Methods§

source

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

source

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

Implementors§