diff options
author | Tao Bao <tbao@google.com> | 2016-02-04 20:22:39 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-02-04 20:22:39 +0100 |
commit | 7b6027dde49e5f14e9cde6de4fa542b146f41a2f (patch) | |
tree | d9d9b43a46b67a65a702c1b3142a3455f1fef386 /print_sha1.h | |
parent | Merge "uncrypt: add options to setup bcb and clear bcb." (diff) | |
parent | Merge "Switch from mincrypt to BoringSSL in applypatch and updater." (diff) | |
download | android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.gz android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.bz2 android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.lz android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.xz android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.tar.zst android_bootable_recovery-7b6027dde49e5f14e9cde6de4fa542b146f41a2f.zip |
Diffstat (limited to 'print_sha1.h')
-rw-r--r-- | print_sha1.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print_sha1.h b/print_sha1.h index 9e37c5fe3..fa3d7e009 100644 --- a/print_sha1.h +++ b/print_sha1.h @@ -20,9 +20,9 @@ #include <stdint.h> #include <string> -#include "mincrypt/sha.h" +#include "openssl/sha.h" -static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_SIZE], size_t len) { +static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH], size_t len) { const char* hex = "0123456789abcdef"; std::string result = ""; for (size_t i = 0; i < len; ++i) { @@ -32,11 +32,11 @@ static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_SIZE], size_t len) { return result; } -static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_SIZE]) { - return print_sha1(sha1, SHA_DIGEST_SIZE); +static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { + return print_sha1(sha1, SHA_DIGEST_LENGTH); } -static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_SIZE]) { +static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { return print_sha1(sha1, 4); } |