Lines Matching refs:keyBlob

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
379 CAPTURE_MOVE(keyBlob), CAPTURE_MOVE(charBlob), pruneable, purpose, in begin()
399 std::tie(error, characteristics, keyBlob, charBlob) = createKeyCharacteristicsCache( in begin()
400 lockedEntry, clientId, appData, std::move(keyBlob), std::move(charBlob)); in begin()
428 auto keyid = KeymasterEnforcement::CreateKeyId(blob2hidlVec(keyBlob)); in begin()
472 rc = KS_HANDLE_HIDL_ERROR(dev, dev->begin(purpose, blob2hidlVec(keyBlob), in begin()
480 std::tie(rc, keyBlob) = upgradeKeyBlob(lockedEntry, opParams); in begin()
485 rc = KS_HANDLE_HIDL_ERROR(dev, dev->begin(purpose, blob2hidlVec(keyBlob), in begin()
818 Blob keyBlob(&hidlKeyBlob[0], hidlKeyBlob.size(), nullptr, 0, ::TYPE_KEYMASTER_10); in generateKey() local
819 keyBlob.setSecurityLevel(securityLevel); in generateKey()
820 keyBlob.setCriticalToDeviceEncryption(flags & in generateKey()
822 if (isAuthenticationBound(keyParams) && !keyBlob.isCriticalToDeviceEncryption()) { in generateKey()
823 keyBlob.setSuperEncrypted(true); in generateKey()
825 keyBlob.setEncrypted(flags & KEYSTORE_FLAG_ENCRYPTED); in generateKey()
839 error = keyStore_->put(lockedEntry, std::move(keyBlob), std::move(keyCharBlob)); in generateKey()
885 Blob keyBlob, Blob charBlob, in getKeyCharacteristics() argument
888 CAPTURE_MOVE(appData), CAPTURE_MOVE(keyBlob), CAPTURE_MOVE(charBlob), in getKeyCharacteristics()
891 std::move(keyBlob), std::move(charBlob)); in getKeyCharacteristics()
923 Blob keyBlob(&hidlKeyBlob[0], hidlKeyBlob.size(), nullptr, 0, ::TYPE_KEYMASTER_10); in importKey() local
924 keyBlob.setSecurityLevel(securityLevel); in importKey()
925 keyBlob.setCriticalToDeviceEncryption(flags & in importKey()
927 if (isAuthenticationBound(keyParams) && !keyBlob.isCriticalToDeviceEncryption()) { in importKey()
928 keyBlob.setSuperEncrypted(true); in importKey()
930 keyBlob.setEncrypted(flags & KEYSTORE_FLAG_ENCRYPTED); in importKey()
944 error = keyStore_->put(lockedEntry, std::move(keyBlob), std::move(keyCharBlob)); in importKey()
1012 Blob keyBlob(hidlKeyBlob.data(), hidlKeyBlob.size(), nullptr, 0, ::TYPE_KEYMASTER_10); in importWrappedKey() local
1013 keyBlob.setSecurityLevel(securityLevel); in importWrappedKey()
1015 keyBlob.setSuperEncrypted(true); in importWrappedKey()
1026 error = keyStore_->put(wrapppedLockedEntry, std::move(keyBlob), std::move(keyCharBlob)); in importWrappedKey()
1060 hidl_vec<uint8_t> clientId, hidl_vec<uint8_t> appData, Blob keyBlob, in exportKey() argument
1063 CAPTURE_MOVE(appData), CAPTURE_MOVE(keyBlob), CAPTURE_MOVE(charBlob), in exportKey()
1065 auto key = blob2hidlVec(keyBlob); in exportKey()
1098 std::tie(rc, keyBlob) = upgradeKeyBlob(lockedEntry, upgradeParams); in exportKey()
1103 auto upgradedHidlKeyBlob = blob2hidlVec(keyBlob); in exportKey()
1121 void KeymasterWorker::deleteKey(hidl_vec<uint8_t> keyBlob, deleteKey_cb _hidl_cb) { in deleteKey() argument
1122 addRequest(&Keymaster::deleteKey, std::move(_hidl_cb), std::move(keyBlob)); in deleteKey()