Snap for 9470583 from d78ef2348cadeb9a707a1b87f98ef4d0b0aac7ab to tm-qpr3-release
Change-Id: I47fa517487bb4e9db912711d017f61014c81a633
diff --git a/ng/KeyMintUtils.cpp b/ng/KeyMintUtils.cpp
index 45967fd..0d9c324 100644
--- a/ng/KeyMintUtils.cpp
+++ b/ng/KeyMintUtils.cpp
@@ -108,7 +108,7 @@
vector<uint8_t> result;
if (!token.has_value()) return result;
- if (token->mac.size() < 32) return result;
+ if (token->mac.size() != 32) return result;
result.resize(sizeof(hw_auth_token_t));
auto pos = result.begin();