Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Update nonceLen for iPhone10,x
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed Dec 27, 2017
1 parent 374beed commit 5b78a01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tsschecker/tsschecker.c
Expand Up @@ -611,8 +611,10 @@ int tss_populate_random(plist_t tssreq, int is64bit, t_devicevals *devVals){
size_t nonceLen = 20; //valid for all devices up to iPhone7
if (!devVals->deviceModel)
return error("[TSSR] internal error: devVals->deviceModel is missing\n"),-1;

if (strncasecmp(devVals->deviceModel, "iPhone9,", strlen("iPhone9,")) == 0)

// TODO how can we determine this better?
if (strncasecmp(devVals->deviceModel, "iPhone9,", strlen("iPhone9,")) == 0 ||
strncasecmp(devVals->deviceModel, "iPhone10,", strlen("iPhone10,")) == 0)
nonceLen = 32;

int n=0;
Expand Down

2 comments on commit 5b78a01

@vidnotes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also iPad Pro (10.5-inch) model needs to have 32 bytes nonce. It's related to my comment (encounter/futurerestore#3)

tsschecker_win64_v263>tsschecker.exe -B j207ap -b -s -i 11.2 -e --apnonce e529ce4dc1fbd6ced3164a02c31c7127aed7362b3be3d8f3cb567f8b6dadff4f
..
[TSSC] got firmwareurl for iOS 11.2 build 15C114
[TSSC] opening Buildmanifest for iPad7,3_11.2_15C114
[Error] [TSSR] parsed APNoncelen != requiredAPNoncelen (32 != 20)
[Error] [TSSR] failed to populate tss request
[Error] [TSSR] faild to build tssrequest

[Error] [TSSC] checking tss status failed!

@encounter
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll include that as well.

Please sign in to comment.