ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1963

Generate ECC without additional crypto.

by sickleaks - 06-29-2020 - 03:42 PM
#1
Happy Monday. This works without the additional whitening and sram key.

Code:
private static byte[] generateECC(byte[] buffer)
{
    byte[] sram = new byte[((buffer.Length / 0x80) * 0x02)];

    for(int address = 0; address < buffer.Length; address += 0x80)
    {
        UInt16 value = 0x00;

        for (int offset = 0; offset < 0x80; offset += 0x02)
        {
            UInt16 nextValue = BitIO.ToUInt16(buffer, address + offset);
           nextValue = BitIO.RotateRight16(nextValue, (offset / 0x08) + 0x01);
            
            value ^= nextValue;
        }
        
        Buffer.BlockCopy(BitIO.GetBytes(value), 0x00, sram, ((address / 0x80) * 0x02), 0x02);
    }

    return sram;
}
Reply
#2
This alone is useless, please provide a way to use before releasing something...
This account is currently banned
Ban reason: affiliation with king/giths.
Reply
#3
It looks like we just give it the hv.bin and it creates the 2 byte ecc?
Reply

Users browsing: 5 Guest(s)