Home
last modified time | relevance | path

Searched refs:xor (Results 1 – 1 of 1) sorted by relevance

/device/asus/fugu/recovery/
Drecovery_updater.c107 uint32_t xor = 0; in xor_compute() local
111 xor = xor ^ *(uint32_t *)(ptr + i); in xor_compute()
113 return xor; in xor_compute()
116 static uint8_t xor_factorize(uint32_t xor) in xor_factorize() argument
118 return (uint8_t)((xor & 0xff) ^ ((xor >> 8) & 0xff) ^ ((xor >> 16) & 0xff) ^ ((xor >> 24) & 0xff)); in xor_factorize()
124 uint32_t xor; in xor_update() local
128 xor = xor_compute(ptr + i * BOOT_UMIP_SECTOR_SIZE, BOOT_UMIP_SECTOR_SIZE); in xor_update()
129 *(uint32_t *)(ptr + 4 * i) = xor; in xor_update()
134 xor = xor_compute(ptr, BOOT_UMIP_SIZE); in xor_update()
135 *(ptr + BOOT_UMIP_XOR_OFFSET) = xor_factorize(xor); in xor_update()
[all …]