|
|||||||||||||||||||||||||||||||||||||||||||
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.
NOTE: iRiver E30, E40, E50 based on Sigmatel STMP3770.
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
r6 - 02 Apr 2021 - 20:46:06 - UnknownUser
Copyright © by the contributing authors.
|