commit | b8bb4463e09c4b839b7e0eb6acfccd794a2c3a72 | [log] [tgz] |
---|---|---|
author | Yong Yao <yong.yao@intel.com> | Wed Apr 26 21:05:18 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Apr 26 21:05:18 2017 +0000 |
tree | 152f2945e9adb24f94514d01c3c45a582f20cb8c | |
parent | e531126b407b7430abed61da079efe8bbe0fe286 [diff] | |
parent | 392c4dbdc1a0220f35d5c34d5c61f8a8197d175f [diff] |
Fix keyname generation issue am: 392c4dbdc1 Change-Id: Iea048673c82dea1d5d9a13a10e1f70376955ca4b
diff --git a/Ext4Crypt.cpp b/Ext4Crypt.cpp index 88bedd0..83141d1 100644 --- a/Ext4Crypt.cpp +++ b/Ext4Crypt.cpp
@@ -137,7 +137,7 @@ static std::string keyname(const std::string& raw_ref) { std::ostringstream o; o << "ext4:"; - for (auto i : raw_ref) { + for (unsigned char i : raw_ref) { o << std::hex << std::setw(2) << std::setfill('0') << (int)i; } return o.str();