Searched refs:digest (Results 1 – 6 of 6) sorted by relevance
/bootable/recovery/applypatch/ |
D | main.cpp | 54 uint8_t digest[SHA_DIGEST_LENGTH]; in ParsePatchArgs() local 64 if (ParseSha1(argv[i], digest) != 0) { in ParsePatchArgs()
|
D | applypatch.h | 46 int ParseSha1(const char* str, uint8_t* digest);
|
D | applypatch.cpp | 484 int ParseSha1(const char* str, uint8_t* digest) { in ParseSha1() argument 486 uint8_t* pd = digest; in ParseSha1()
|
/bootable/recovery/tests/component/ |
D | applypatch_test.cpp | 42 uint8_t digest[SHA_DIGEST_LENGTH]; in sha1sum() local 46 SHA1((const uint8_t*)data.c_str(), data.size(), digest); in sha1sum() 47 return print_sha1(digest); in sha1sum()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 445 uint8_t digest[SHA_DIGEST_LENGTH]; in VerifyBlocks() local 448 SHA1(data, blocks * BLOCKSIZE, digest); in VerifyBlocks() 450 std::string hexdigest = print_sha1(digest); in VerifyBlocks() 723 uint8_t digest[SHA_DIGEST_LENGTH]; in CreateStash() local 724 SHA1(reinterpret_cast<const uint8_t*>(blockdev), strlen(blockdev), digest); in CreateStash() 725 base = print_sha1(digest); in CreateStash() 1774 uint8_t digest[SHA_DIGEST_LENGTH]; in RangeSha1Fn() local 1775 SHA1_Final(digest, &ctx); in RangeSha1Fn() 1777 return StringValue(strdup(print_sha1(digest).c_str())); in RangeSha1Fn()
|
D | install.cpp | 98 char* PrintSha1(const uint8_t* digest) { in PrintSha1() argument 103 buffer[i*2] = alphabet[(digest[i] >> 4) & 0xf]; in PrintSha1() 104 buffer[i*2+1] = alphabet[digest[i] & 0xf]; in PrintSha1() 1373 uint8_t digest[SHA_DIGEST_LENGTH]; in Sha1CheckFn() local 1374 SHA1(reinterpret_cast<uint8_t*>(args[0]->data), args[0]->size, digest); in Sha1CheckFn() 1377 return StringValue(PrintSha1(digest)); in Sha1CheckFn() 1390 } else if (memcmp(digest, arg_digest, SHA_DIGEST_LENGTH) == 0) { in Sha1CheckFn()
|