Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/applypatch/
Dmain.c57 uint8_t digest[SHA_DIGEST_SIZE]; in ParsePatchArgs() local
67 if (ParseSha1(argv[i], digest) != 0) { in ParsePatchArgs()
Dapplypatch.h49 int ParseSha1(const char* str, uint8_t* digest);
Dapplypatch.c536 int ParseSha1(const char* str, uint8_t* digest) { in ParseSha1() argument
539 uint8_t* pd = digest; in ParseSha1()
/bootable/recovery/updater/
Dblockimg.c56 char* PrintSha1(const uint8_t* digest);
379 uint8_t digest[SHA_DIGEST_SIZE]; in VerifyBlocks() local
385 SHA_hash(buffer, blocks * BLOCKSIZE, digest); in VerifyBlocks()
386 hexdigest = PrintSha1(digest); in VerifyBlocks()
737 const uint8_t* digest; in CreateStash() local
753 digest = SHA_final(&ctx); in CreateStash()
754 *base = PrintSha1(digest); in CreateStash()
1892 const uint8_t* digest = NULL; in RangeSha1Fn() local
1936 digest = SHA_final(&ctx); in RangeSha1Fn()
1942 if (digest == NULL) { in RangeSha1Fn()
[all …]
Dinstall.c77 char* PrintSha1(const uint8_t* digest) { in PrintSha1() argument
82 buffer[i*2] = alphabet[(digest[i] >> 4) & 0xf]; in PrintSha1()
83 buffer[i*2+1] = alphabet[digest[i] & 0xf]; in PrintSha1()
1350 uint8_t digest[SHA_DIGEST_SIZE]; in Sha1CheckFn() local
1351 SHA_hash(args[0]->data, args[0]->size, digest); in Sha1CheckFn()
1355 return StringValue(PrintSha1(digest)); in Sha1CheckFn()
1368 } else if (memcmp(digest, arg_digest, SHA_DIGEST_SIZE) == 0) { in Sha1CheckFn()