Add getKeyCharacteristics stub to KeyMint remote.
Add a stub implementation of getKeyCharacteristics which simply returns
UNIMPLEMENTED. A future change will replace this with a real
implementation.
Bug: 186685601
Test: Treehugger
Change-Id: I0f0a451c232f5a497f629751b180508f2d74d3c3
diff --git a/guest/hals/keymint/remote/remote_keymint_device.cpp b/guest/hals/keymint/remote/remote_keymint_device.cpp
index a98f490..b9fbbe0 100644
--- a/guest/hals/keymint/remote/remote_keymint_device.cpp
+++ b/guest/hals/keymint/remote/remote_keymint_device.cpp
@@ -412,4 +412,11 @@
return kmError2ScopedAStatus(KM_ERROR_UNIMPLEMENTED);
}
+ScopedAStatus RemoteKeyMintDevice::getKeyCharacteristics(
+ const std::vector<uint8_t>& /* storageKeyBlob */,
+ const std::vector<uint8_t>& /* appId */,
+ const std::vector<uint8_t>& /* appData */,
+ std::vector<KeyCharacteristics>* /* keyCharacteristics */) {
+ return kmError2ScopedAStatus(KM_ERROR_UNIMPLEMENTED);
+}
} // namespace aidl::android::hardware::security::keymint
diff --git a/guest/hals/keymint/remote/remote_keymint_device.h b/guest/hals/keymint/remote/remote_keymint_device.h
index c4fdc63..c3ebad1 100644
--- a/guest/hals/keymint/remote/remote_keymint_device.h
+++ b/guest/hals/keymint/remote/remote_keymint_device.h
@@ -77,6 +77,11 @@
const std::vector<uint8_t>& storageKeyBlob,
std::vector<uint8_t>* ephemeralKeyBlob) override;
+ ScopedAStatus getKeyCharacteristics(
+ const std::vector<uint8_t>& storageKeyBlob,
+ const std::vector<uint8_t>& appId, const std::vector<uint8_t>& appData,
+ std::vector<KeyCharacteristics>* keyCharacteristics) override;
+
protected:
::keymaster::RemoteKeymaster& impl_;
SecurityLevel securityLevel_;