Keystore 2.0: Respect Keymint hardware info timestampTokenRequired.
Bug: 178222844
Test: N/A
Change-Id: I0cde84791b0d3a060da3619f9b18b81cb9bb5822
diff --git a/keystore2/src/security_level.rs b/keystore2/src/security_level.rs
index 641b77a..255e92f 100644
--- a/keystore2/src/security_level.rs
+++ b/keystore2/src/security_level.rs
@@ -270,10 +270,7 @@
purpose,
key_properties.as_ref(),
operation_parameters.as_ref(),
- // TODO b/178222844 Replace this with the configuration returned by
- // KeyMintDevice::getHardwareInfo.
- // For now we assume that strongbox implementations need secure timestamps.
- self.security_level == SecurityLevel::STRONGBOX,
+ self.hw_info.timestampTokenRequired,
)
.context("In create_operation.")?;