|
|
|||||||||||||||||||||||||||||||||||||||||||
|
This is the line of the players based on ATJ213x SoC from actions. Up to day there are E100, E150, E200 and E300 in this family.
void data_decrypt_xor(uint8_t *data, int32_t len)
{
const uint8_t key = 0x76; /* lbu $t4, xxxx */
uint8_t tmp;
while(len--)
{
tmp = *data; /* lbu $t0, 9($a0) */
tmp -= key; /* subu $t1, $t0, $t4 */
tmp ^= key; /* xor $t2, $t1, $t4 */
tmp += 0x7f; /* addiu $t0, $t2, 0x7f */
*data = tmp; /* sb $t0, 0($a0) */
data++; /* addi $a0, 1 */
}
}
-- MarcinBukat - 21 Nov 2012
Edit | Attach | Print version | History: r4 < r3 < r2 < r1 | Backlinks | View wiki text | More topic actions r4 - 01 Dec 2012 - 16:44:15 - MarcinBukat
Copyright © by the contributing authors.
|