summaryrefslogtreecommitdiff
path: root/hmac_operation.cpp
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2015-03-11 21:51:38 -0600
committerShawn Willden <swillden@google.com>2015-03-23 11:22:41 -0600
commitf01329d8692edde9a9ffb88f29f5d684eab481e2 (patch)
tree5c3a46de07e0286d3a307a7d0ab9d6715d020ce1 /hmac_operation.cpp
parent2399df41360717017e06928c5d3f5857c94bb08c (diff)
downloadkeymaster-f01329d8692edde9a9ffb88f29f5d684eab481e2.tar.gz
Improve error reporting and logging.
Bug: 19603049 Bug: 19509317 Change-Id: I041c973802e6c567adc5b1f280fc5bac27ba28d6
Diffstat (limited to 'hmac_operation.cpp')
-rw-r--r--hmac_operation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/hmac_operation.cpp b/hmac_operation.cpp
index b4b46e8..b773920 100644
--- a/hmac_operation.cpp
+++ b/hmac_operation.cpp
@@ -60,11 +60,6 @@ Operation* HmacOperationFactory::CreateOperation(const Key& key, keymaster_error
return NULL;
const SymmetricKey* symmetric_key = static_cast<const SymmetricKey*>(&key);
- if (!symmetric_key) {
- *error = KM_ERROR_UNKNOWN_ERROR;
- return NULL;
- }
-
Operation* op = new HmacOperation(purpose(), symmetric_key->key_data(),
symmetric_key->key_data_size(), digest, tag_length);
if (!op)