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§
Sourcefn get_derived_key(
&self,
policy: KeyDerivationPolicy,
) -> Result<[u8; 32], Error>
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.