Home
last modified time | relevance | path

Searched refs:keyEntryResponse (Results 1 – 3 of 3) sorted by relevance

/system/security/keystore/
Dkeystore_cli_v2.cpp231 ks2::KeyEntryResponse keyEntryResponse; in loadOrCreateAndVerifyEncryptionKey() local
234 auto rc = keystore->getKeyEntry(keyDescriptor(name), &keyEntryResponse); in loadOrCreateAndVerifyEncryptionKey()
263 rc = keystore->getKeyEntry(keyDescriptor(name), &keyEntryResponse); in loadOrCreateAndVerifyEncryptionKey()
271 if (!verifyEncryptionKeyAttributes(keyEntryResponse.metadata.authorizations)) { in loadOrCreateAndVerifyEncryptionKey()
276 return keyEntryResponse; in loadOrCreateAndVerifyEncryptionKey()
284 ks2::KeyEntryResponse keyEntryResponse; in loadOrCreateAndVerifyAuthenticationKey() local
287 auto rc = keystore->getKeyEntry(keyDescriptor(name), &keyEntryResponse); in loadOrCreateAndVerifyAuthenticationKey()
316 rc = keystore->getKeyEntry(keyDescriptor(name), &keyEntryResponse); in loadOrCreateAndVerifyAuthenticationKey()
324 if (!verifyAuthenticationKeyAttributes(keyEntryResponse.metadata.authorizations)) { in loadOrCreateAndVerifyAuthenticationKey()
329 return keyEntryResponse; in loadOrCreateAndVerifyAuthenticationKey()
[all …]
/system/security/ondevice-signing/
DKeystoreKey.cpp185 KeyEntryResponse keyEntryResponse; in verifyExistingKey() local
187 auto status = mService->getKeyEntry(mDescriptor, &keyEntryResponse); in verifyExistingKey()
197 if (keyEntryResponse.metadata.keySecurityLevel != SecurityLevel::TRUSTED_ENVIRONMENT) { in verifyExistingKey()
200 keyEntryResponse.metadata.keySecurityLevel); in verifyExistingKey()
205 for (const auto& auth : keyEntryResponse.metadata.authorizations) { in verifyExistingKey()
222 auto cert = keyEntryResponse.metadata.certificate; in verifyExistingKey()
DKeystoreHmacKey.cpp127 KeyEntryResponse keyEntryResponse; in initialize() local
129 auto status = mService->getKeyEntry(mDescriptor, &keyEntryResponse); in initialize()
134 for (const auto& auth : keyEntryResponse.metadata.authorizations) { in initialize()