Which algorithm is applicable for hashing iOS binaries

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

Which algorithm is applicable for hashing iOS binaries

Postby Morena2K » Mon Apr 15, 2019 11:19 am

What algorithm does codesign use to compute the CDs hashes? CD is a collection of hashes for different part of the binary. Which is the signed binary hash. The signature lives in the binary under the field CDHas
Morena2K
 
Posts: 1
Joined: Thu Apr 11, 2019 11:02 am

Re: Which algorithm is applicable for hashing iOS binaries

Postby csftech » Tue Apr 16, 2019 2:44 am

codesign uses SHA-1 before iOS 11, and uses SHA-256 after that.
I suggest you to view the xerub's ldid2 source code.
csftech
 
Posts: 1
Joined: Mon Apr 15, 2019 5:14 pm

Re: Which algorithm is applicable for hashing iOS binaries

Postby morpheus » Tue Apr 16, 2019 11:04 am

more accurately,

SHA-1 (default)
SHA-256 (newer)
SHA-384 (emerging)


http://newosxbook.com/images/figure5-4.png
morpheus
Site Admin
 
Posts: 723
Joined: Thu Apr 11, 2013 6:24 pm


Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 2 guests