summaryrefslogtreecommitdiffstats
path: root/otautil/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-09-29 23:39:33 +0200
committerTao Bao <tbao@google.com>2017-10-11 00:52:11 +0200
commit09e468f84cc245fba61d69165b4af8f1ec4cdfd5 (patch)
tree415073930d2bb71cae132e38a57cea3f2c15d7e1 /otautil/include
parentMerge "otautil: Fix mac build." (diff)
downloadandroid_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.tar
android_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.tar.gz
android_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.tar.bz2
android_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.tar.lz
android_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.tar.xz
android_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.tar.zst
android_bootable_recovery-09e468f84cc245fba61d69165b4af8f1ec4cdfd5.zip
Diffstat (limited to '')
-rw-r--r--otautil/include/otautil/print_sha1.h (renamed from print_sha1.h)20
-rw-r--r--otautil/include/otautil/rangeset.h (renamed from rangeset.h)0
2 files changed, 10 insertions, 10 deletions
diff --git a/print_sha1.h b/otautil/include/otautil/print_sha1.h
index d0c18b355..03a8d292a 100644
--- a/print_sha1.h
+++ b/otautil/include/otautil/print_sha1.h
@@ -23,25 +23,25 @@
#include <openssl/sha.h>
static std::string print_sha1(const uint8_t* sha1, size_t len) {
- const char* hex = "0123456789abcdef";
- std::string result = "";
- for (size_t i = 0; i < len; ++i) {
- result.push_back(hex[(sha1[i]>>4) & 0xf]);
- result.push_back(hex[sha1[i] & 0xf]);
- }
- return result;
+ const char* hex = "0123456789abcdef";
+ std::string result = "";
+ for (size_t i = 0; i < len; ++i) {
+ result.push_back(hex[(sha1[i] >> 4) & 0xf]);
+ result.push_back(hex[sha1[i] & 0xf]);
+ }
+ return result;
}
[[maybe_unused]] static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) {
- return print_sha1(sha1, SHA_DIGEST_LENGTH);
+ return print_sha1(sha1, SHA_DIGEST_LENGTH);
}
[[maybe_unused]] static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) {
- return print_sha1(sha1, 4);
+ return print_sha1(sha1, 4);
}
[[maybe_unused]] static std::string print_hex(const uint8_t* bytes, size_t len) {
- return print_sha1(bytes, len);
+ return print_sha1(bytes, len);
}
#endif // RECOVERY_PRINT_SHA1_H
diff --git a/rangeset.h b/otautil/include/otautil/rangeset.h
index f224a08be..f224a08be 100644
--- a/rangeset.h
+++ b/otautil/include/otautil/rangeset.h