summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-10 00:27:47 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-10 00:27:47 +0000
commitad8717c8fe0f9cd76b45b053779e5ba06e0f8daa (patch)
tree1bbc2a3964e8e8350f97b9fdfaaba1220529ed20
parent3fc6c4ba987c442afd7bafe63b1736ed55f748e1 (diff)
parentd78ef2348cadeb9a707a1b87f98ef4d0b0aac7ab (diff)
downloadkeymaster-android13-qpr3-s1-release.tar.gz
Change-Id: I47fa517487bb4e9db912711d017f61014c81a633
-rw-r--r--ng/KeyMintUtils.cpp2
1 files changed, 1 insertions, 1 deletions
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> authToken2AidlVec(const std::optional<HardwareAuthToken>& token)
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();