Re: LB7 Duramax E54 ECU
Posted: Wed Jul 15, 2020 7:38 am
Intel AB28F400B
Electronic Fuel Injection - Developement & Tuning
https://pcmhacking.net/forums/
Gampy wrote:Does anyone have a valid seed/key pair for these units??
Just need one valid GM pair.
Code: Select all
private LB7KeyCalculation(uint16 Seed)
{
uint16 key = 0x805C;
int cnt1 = 0;
int cnt2 = 0;
int cnt3 = 0;
for (uint16 i = 0; i <= Seed; i++)
{
if (i == 0x1)key -= 0x4;
if (i == 0xA)key += 0x3;
if (i == 0x1A)key -= 0x1;
if (i == 0x5C9)key += 3;
if (i == 0x5CA)key -= 3;
if (i == 0x5D9)cnt3 += 1;
if (i == 0x609)cnt2 += 1;
if (i > 0x1) cnt1 += 0x1;
if (i > 0xA) cnt2 += 0x1;
if (i > 0x1A) cnt3 += 1;
if (i > 1) key -= 0x1000;
if (cnt1 == 0x40)
{
key -= 4;
cnt1 = 0;
}
if (cnt2 == 0x40)
{
key += 3;
cnt2 = 0;
cnt3 = 0;
}
if (cnt3 == 0x10)
{
key -= 1;
cnt3 = 0;
}
}
}
Tazzi wrote:And a nice accompanying algorithm which works with those seed/keys..
Code: Select all
private LB7KeyCalculation(uint16 Seed) { uint16 key = 0x805C; int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; for (uint16 i = 0; i <= Seed; i++) { if (i == 0x1)key -= 0x4; if (i == 0xA)key += 0x3; if (i == 0x1A)key -= 0x1; if (i == 0x5C9)key += 3; if (i == 0x5CA)key -= 3; if (i == 0x5D9)cnt3 += 1; if (i == 0x609)cnt2 += 1; if (i > 0x1) cnt1 += 0x1; if (i > 0xA) cnt2 += 0x1; if (i > 0x1A) cnt3 += 1; if (i > 1) key -= 0x1000; if (cnt1 == 0x40) { key -= 4; cnt1 = 0; } if (cnt2 == 0x40) { key += 3; cnt2 = 0; cnt3 = 0; } if (cnt3 == 0x10) { key -= 1; cnt3 = 0; } } }