Merge "Request rollback resistance for FBE keys."
am: aae52f4816
Change-Id: Ie2143da9b9b1d2e76faa958d1a04d2be6b0045e7
This commit is contained in:
commit
0b895c13bc
1 changed files with 7 additions and 1 deletions
|
@ -126,7 +126,13 @@ static bool generateKeymasterKey(Keymaster& keymaster, const KeyAuthentication&
|
|||
paramBuilder.Authorization(km::TAG_USER_AUTH_TYPE, km::HardwareAuthenticatorType::PASSWORD);
|
||||
paramBuilder.Authorization(km::TAG_AUTH_TIMEOUT, AUTH_TIMEOUT);
|
||||
}
|
||||
return keymaster.generateKey(paramBuilder, key);
|
||||
|
||||
auto paramsWithRollback = paramBuilder;
|
||||
paramsWithRollback.Authorization(km::TAG_ROLLBACK_RESISTANCE);
|
||||
|
||||
// Generate rollback-resistant key if possible.
|
||||
return keymaster.generateKey(paramsWithRollback, key) ||
|
||||
keymaster.generateKey(paramBuilder, key);
|
||||
}
|
||||
|
||||
static std::pair<km::AuthorizationSet, km::HardwareAuthToken> beginParams(
|
||||
|
|
Loading…
Reference in a new issue