Searched refs:digest (Results 1 – 5 of 5) sorted by relevance
57 uint8_t digest[SHA_DIGEST_SIZE]; in ParsePatchArgs() local67 if (ParseSha1(argv[i], digest) != 0) { in ParsePatchArgs()
49 int ParseSha1(const char* str, uint8_t* digest);
536 int ParseSha1(const char* str, uint8_t* digest) { in ParseSha1() argument539 uint8_t* pd = digest; in ParseSha1()
56 char* PrintSha1(const uint8_t* digest);379 uint8_t digest[SHA_DIGEST_SIZE]; in VerifyBlocks() local385 SHA_hash(buffer, blocks * BLOCKSIZE, digest); in VerifyBlocks()386 hexdigest = PrintSha1(digest); in VerifyBlocks()737 const uint8_t* digest; in CreateStash() local753 digest = SHA_final(&ctx); in CreateStash()754 *base = PrintSha1(digest); in CreateStash()1892 const uint8_t* digest = NULL; in RangeSha1Fn() local1936 digest = SHA_final(&ctx); in RangeSha1Fn()1942 if (digest == NULL) { in RangeSha1Fn()[all …]
77 char* PrintSha1(const uint8_t* digest) { in PrintSha1() argument82 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() local1351 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()