Revert "Hack to work around broken bullhead keymaster app."
This reverts commit 3fceedc788498733952279a97944f4ea22892577.
Change-Id: Ie17dd16f8689810af9efe071a0d006e026782af6
diff --git a/soft_keymaster_device.cpp b/soft_keymaster_device.cpp
index 6ffa6f8..9f3418e 100644
--- a/soft_keymaster_device.cpp
+++ b/soft_keymaster_device.cpp
@@ -73,14 +73,6 @@
keymaster_digest_t* digests;
size_t digests_length;
- if (algorithm == KM_ALGORITHM_RSA &&
- (purpose == KM_PURPOSE_ENCRYPT || purpose == KM_PURPOSE_DECRYPT)) {
- // Temporary hack: On bullhead there's a problem with the keymaster app. It rejects
- // requests for digests for RSA and purpose ENCRYPT or DECRYPT. Since the result is the
- // same as for SIGN or VERIFY, we just ask for SIGN in this case.
- // TODO(swillden): Remove this hack when bullhead's keymaster is fixed.
- purpose = KM_PURPOSE_SIGN;
- }
keymaster_error_t error =
dev->get_supported_digests(dev, algorithm, purpose, &digests, &digests_length);
if (error != KM_ERROR_OK) {