Skip to content

Commit

Permalink
Match codesign's sha256 cdhash output
Browse files Browse the repository at this point in the history
  • Loading branch information
sbingner committed Dec 7, 2019
1 parent 733a30f commit 5420cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,7 @@ int main(int argc, char *argv[]) {
} else if (directory->hashType == 2) {
uint8_t cdhash_sha256[LDID_SHA256_DIGEST_LENGTH];
LDID_SHA256((const unsigned char*)cdblob, Swap(cdblob->length), cdhash_sha256);
print_hash(cdhash_sha256_str, cdhash_sha256, LDID_SHA256_DIGEST_LENGTH);
print_hash(cdhash_sha256_str, cdhash_sha256, LDID_SHA1_DIGEST_LENGTH);
printf("CandidateCDHash sha256=%s\n", cdhash_sha256_str);
cdhash_sha256_str[LDID_SHA1_DIGEST_LENGTH*2] = '\0';
if (*hash_choices) strcat(hash_choices, ",");
Expand Down

0 comments on commit 5420cb5

Please sign in to comment.