/system/security/keystore/ |
D | keymaster_worker.cpp | 96 void KeymasterWorker::deleteOldKeyOnUpgrade(const LockedKeyBlobEntry& blobfile, Blob keyBlob) { in deleteOldKeyOnUpgrade() argument 102 if (keyBlob.getType() == ::TYPE_KEYMASTER_10) { in deleteOldKeyOnUpgrade() 103 auto ret = KS_HANDLE_HIDL_ERROR(dev, dev->deleteKey(blob2hidlVec(keyBlob))); in deleteOldKeyOnUpgrade() 182 const hidl_vec<uint8_t>& appData, Blob keyBlob, in createKeyCharacteristicsCache() argument 196 if (!keyBlob) return result; in createKeyCharacteristicsCache() 197 auto hidlKeyBlob = blob2hidlVec(keyBlob); in createKeyCharacteristicsCache() 264 std::tie(rc, keyBlob) = upgradeKeyBlob(lockedEntry, upgradeParams); in createKeyCharacteristicsCache() 269 auto upgradedHidlKeyBlob = blob2hidlVec(keyBlob); in createKeyCharacteristicsCache() 282 outBlob = std::move(keyBlob); in createKeyCharacteristicsCache() 373 void KeymasterWorker::begin(LockedKeyBlobEntry lockedEntry, sp<IBinder> appToken, Blob keyBlob, in begin() argument [all …]
|
D | KeyStore.cpp | 246 Blob& keyBlob = std::get<1>(result); in get() local 263 type = keyBlob.getType(); in get() 265 const uint8_t version = keyBlob.getVersion(); in get() 271 if (upgradeBlob(&keyBlob, version)) { in get() 272 if ((rc = this->put(blobfile, keyBlob, {})) != ResponseCode::NO_ERROR || in get() 283 ResponseCode KeyStore::put(const LockedKeyBlobEntry& blobfile, Blob keyBlob, in put() argument 286 return blobfile.writeBlobs(std::move(keyBlob), std::move(characteristicsBlob), in put() 291 Blob keyBlob; in del() local 297 std::tie(rc, keyBlob, charactaristicsBlob) = get(blobfile); in del() 309 auto dev = getDevice(keyBlob); in del() [all …]
|
D | legacy_keymaster_device_wrapper.h | 54 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 60 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, 69 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
|
D | key_store_service.cpp | 166 Blob keyBlob; in get() local 170 std::tie(rc, keyBlob, charBlob, lockedEntry) = in get() 178 auto resultBlob = blob2hidlVec(keyBlob); in get() 180 if (item) *item = static_cast<const hidl_vec<uint8_t>&>(blob2hidlVec(keyBlob)); in get() 203 Blob keyBlob(&item[0], item.size(), nullptr, 0, ::TYPE_GENERIC); in insert() local 204 keyBlob.setEncrypted(flags & KEYSTORE_FLAG_ENCRYPTED); in insert() 206 *aidl_return = static_cast<int32_t>(mKeyStore->put(lockedEntry, keyBlob, {})); in insert() 587 Blob keyBlob; in clear_uid() local 589 std::tie(rc, keyBlob, charBlob) = mKeyStore->get(lockedEntry); in clear_uid() 590 if (rc == ResponseCode::NO_ERROR && keyBlob.isCriticalToDeviceEncryption()) { in clear_uid() [all …]
|
D | legacy_keymaster_device_wrapper.cpp | 250 const hidl_vec<uint8_t>& keyBlob, const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics() argument 258 auto kmKeyBlob = hidlVec2KmKeyBlob(keyBlob); in getKeyCharacteristics() 263 keymaster_device_, keyBlob.size() ? &kmKeyBlob : nullptr, in getKeyCharacteristics() 315 const hidl_vec<uint8_t>& keyBlob, in exportKey() argument 326 auto kmKeyBlob = hidlVec2KmKeyBlob(keyBlob); in exportKey() 331 keyBlob.size() ? &kmKeyBlob : nullptr, in exportKey() 422 Return<ErrorCode> LegacyKeymasterDeviceWrapper::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() argument 423 auto kmKeyBlob = hidlVec2KmKeyBlob(keyBlob); in deleteKey()
|
D | keymaster_worker.h | 172 void deleteOldKeyOnUpgrade(const LockedKeyBlobEntry& blobfile, Blob keyBlob); 178 const hidl_vec<uint8_t>& appData, Blob keyBlob, Blob charBlob); 208 void begin(LockedKeyBlobEntry, sp<IBinder> appToken, Blob keyBlob, Blob charBlob, 253 hidl_vec<uint8_t> appData, Blob keyBlob, Blob charBlob, 272 hidl_vec<uint8_t> clientId, hidl_vec<uint8_t> appData, Blob keyBlob, 280 void deleteKey(hidl_vec<uint8_t> keyBlob, deleteKey_cb _hidl_cb);
|
D | blob.cpp | 367 ResponseCode LockedKeyBlobEntry::writeBlobs(Blob keyBlob, Blob characteristicsBlob, in writeBlobs() argument 374 if (keyBlob) { in writeBlobs() 375 blobv3* rawBlob = keyBlob.mBlob.get(); in writeBlobs() 376 rc = writeBlob(entry_->getKeyBlobPath(), std::move(keyBlob), rawBlob, aes_key, state); in writeBlobs() 498 auto& [rc, keyBlob, characteristicsBlob] = result; in readBlobs() 501 rc = keyBlob.readBlob(entry_->getKeyBlobPath(), aes_key, state); in readBlobs()
|
D | KeyStore.h | 124 ResponseCode put(const LockedKeyBlobEntry& blobfile, Blob keyBlob, Blob characteristicsBlob);
|
D | blob.h | 270 ResponseCode writeBlobs(Blob keyBlob, Blob characteristicsBlob,
|
/system/keymaster/ng/include/ |
D | AndroidKeymaster41Device.h | 101 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics() argument 105 return super::getKeyCharacteristics(keyBlob, clientId, appData, _hidl_cb); in getKeyCharacteristics() 124 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, in exportKey() argument 127 return super::exportKey(exportFormat, keyBlob, clientId, appData, _hidl_cb); in exportKey() 142 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override { in deleteKey() argument 143 return super::deleteKey(keyBlob); in deleteKey()
|
D | AndroidKeymaster3Device.h | 66 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 72 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, 81 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
|
D | AndroidKeymaster4Device.h | 66 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 78 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, 87 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster3Device.h | 51 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 57 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, 66 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
|
D | TrustyKeymaster4Device.h | 62 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 74 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, 83 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
|
/system/core/trusty/keymaster/3.0/ |
D | TrustyKeymaster3Device.cpp | 252 Return<void> TrustyKeymaster3Device::getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics() argument 257 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in getKeyCharacteristics() 296 const hidl_vec<uint8_t>& keyBlob, in exportKey() argument 302 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in exportKey() 352 Return<ErrorCode> TrustyKeymaster3Device::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() argument 354 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in deleteKey()
|
/system/keymaster/ng/ |
D | AndroidKeymaster3Device.cpp | 295 Return<void> AndroidKeymaster3Device::getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics() argument 300 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in getKeyCharacteristics() 338 const hidl_vec<uint8_t>& keyBlob, in exportKey() argument 344 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in exportKey() 396 Return<ErrorCode> AndroidKeymaster3Device::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() argument 399 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in deleteKey()
|
D | AndroidKeymaster4Device.cpp | 339 Return<void> AndroidKeymaster4Device::getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics() argument 344 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in getKeyCharacteristics() 410 const hidl_vec<uint8_t>& keyBlob, in exportKey() argument 416 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in exportKey() 468 Return<ErrorCode> AndroidKeymaster4Device::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() argument 471 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in deleteKey()
|
/system/vold/ |
D | Keymaster.cpp | 122 auto hidlCb = [&](km::ErrorCode ret, const hidl_vec<uint8_t>& keyBlob, in generateKey() 126 if (key) key->assign(reinterpret_cast<const char*>(&keyBlob[0]), keyBlob.size()); in generateKey() 163 auto keyBlob = km::support::blob2hidlVec(key); in deleteKey() local 164 auto error = mDevice->deleteKey(keyBlob); in deleteKey() 203 auto keyBlob = km::support::blob2hidlVec(key); in begin() local 215 auto error = mDevice->begin(purpose, keyBlob, inParams.hidl_data(), authToken, hidlCb); in begin()
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 367 Return<void> TrustyKeymaster4Device::getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics() argument 372 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in getKeyCharacteristics() 437 const hidl_vec<uint8_t>& keyBlob, in exportKey() argument 443 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in exportKey() 493 Return<ErrorCode> TrustyKeymaster4Device::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() argument 495 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in deleteKey()
|
/system/security/identity/ |
D | CredentialData.h | 57 vector<uint8_t> keyBlob; member
|
D | CredentialData.cpp | 123 array.add(data.keyBlob); in saveToDisk() 188 authKeyData.keyBlob = itemKeyBlob->value(); in parseAuthKeyData() 550 data.keyBlob = data.pendingKeyBlob; in storeStaticAuthenticationData()
|
D | Credential.cpp | 344 signingKeyBlob = authKey->keyBlob; in getEntries()
|