Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 4 of 4) 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.h50 int ParseSha1(const char* str, uint8_t* digest);
Dapplypatch.c447 int ParseSha1(const char* str, uint8_t* digest) { in ParseSha1() argument
450 uint8_t* pd = digest; in ParseSha1()
/bootable/recovery/updater/
Dinstall.c1029 static char* PrintSha1(uint8_t* digest) { in PrintSha1() argument
1034 buffer[i*2] = alphabet[(digest[i] >> 4) & 0xf]; in PrintSha1()
1035 buffer[i*2+1] = alphabet[digest[i] & 0xf]; in PrintSha1()
1063 uint8_t digest[SHA_DIGEST_SIZE]; in Sha1CheckFn() local
1064 SHA(args[0]->data, args[0]->size, digest); in Sha1CheckFn()
1068 return StringValue(PrintSha1(digest)); in Sha1CheckFn()
1081 } else if (memcmp(digest, arg_digest, SHA_DIGEST_SIZE) == 0) { in Sha1CheckFn()