Hi,
Got bored, so did the old school EMK -> PMK calc on iPhone 5 in 0.000025 seconds
Basically the made up sample HMK 11 11 11 11 11 11 11 11 11 11 and EMK 22 22 22 22 22 22 22 22
decrypt to PMK B7 C3 93 B2 DB A0 F6 E7.
Crux of the app not including hash tables, MK index tables or functions to rotate arrays or check parity.
Code:
if (trigx == 129) {spdstart = [NSDate timeIntervalSinceReferenceDate];}
while (trigx > 1) {
trigx--;
if (trigx == 128) {mktableindex = 0; hmkindex = 9;}
hmkindex++;
if (hmkindex == 10) { hmkindex = 0; shiftr(HMK, sizeof HMK);}
hashindex = MK[mkindextable1[mktableindex]] ^ HMK[hmkindex];
parity = HMK[hmkindex]; findparity();
if (parity == 1) {
MK[mkindextable2[mktableindex]] = MK[mkindextable2[mktableindex]] ^ hasha[hashindex];
} else {
MK[mkindextable2[mktableindex]] = MK[mkindextable2[mktableindex]] ^ hashb[hashindex];
} // parity
mktableindex++;
if (mktableindex > 15) {mktableindex = 0;}
}
if (trigx == 1) { trigx--; spdend = [NSDate timeIntervalSinceReferenceDate]; testresult = spdend - spdstart;}
}
PMK decrypt app for iPhone exists! Never to be seen in App Store
Cheers, Art.
Bookmarks