DeviceProxyInterface

Trait DeviceProxyInterface 

Source
pub trait DeviceProxyInterface: Send + Sync {
    type ProgramKeyResponseFut: Future<Output = Result<DeviceProgramKeyResult, Error>> + Send;
    type DeriveRawSecretResponseFut: Future<Output = Result<DeviceDeriveRawSecretResult, Error>> + Send;

    // Required methods
    fn program_key(
        &self,
        wrapped_key: &[u8],
        data_unit_size: u32,
    ) -> Self::ProgramKeyResponseFut;
    fn derive_raw_secret(
        &self,
        wrapped_key: &[u8],
    ) -> Self::DeriveRawSecretResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn program_key( &self, wrapped_key: &[u8], data_unit_size: u32, ) -> Self::ProgramKeyResponseFut

Source

fn derive_raw_secret( &self, wrapped_key: &[u8], ) -> Self::DeriveRawSecretResponseFut

Implementors§