Skip to main content

TeeCallGetDerivedKey

Trait TeeCallGetDerivedKey 

Source
pub trait TeeCallGetDerivedKey: TeeCall {
    // Required method
    fn get_derived_key(
        &self,
        policy: KeyDerivationPolicy,
    ) -> Result<[u8; 32], Error>;
}
Expand description

Optional sub-trait that defines the get-derived-key interface for a TEE.

Required Methods§

Source

fn get_derived_key( &self, policy: KeyDerivationPolicy, ) -> Result<[u8; 32], Error>

Get the derived key that should be deterministic based on the hardware and software configurations.

§Arguments
  • policy - The key derivation policy to use.

Returns the derived key.

Implementors§