Keystore 2.0: Implement convertStorageKeyToEphemeral() in AndroidKeyMintDevice
Add the convertStorageKeyToEphemeral() function introduced into
IKeymintDevice for vold to get ephemeral per-boot keys from wrapped
storage keys. The function simply returns KM_ERROR_UNIMPLEMENTED.
Bug: 181806377
Bug: 181910578
Change-Id: I5c9f4cfaf05c768c0f768e4dca71c674a5d08aff
diff --git a/ng/AndroidKeyMintDevice.cpp b/ng/AndroidKeyMintDevice.cpp
index 07490de..d4f2659 100644
--- a/ng/AndroidKeyMintDevice.cpp
+++ b/ng/AndroidKeyMintDevice.cpp
@@ -403,6 +403,12 @@
return kmError2ScopedAStatus(response.error);
}
+ScopedAStatus
+AndroidKeyMintDevice::convertStorageKeyToEphemeral(const std::vector<uint8_t>& /* storageKeyBlob */,
+ std::vector<uint8_t>* /* ephemeralKeyBlob */) {
+ return kmError2ScopedAStatus(KM_ERROR_UNIMPLEMENTED);
+}
+
ScopedAStatus AndroidKeyMintDevice::performOperation(const vector<uint8_t>& /* request */,
vector<uint8_t>* /* response */) {
return kmError2ScopedAStatus(KM_ERROR_UNIMPLEMENTED);