static void *tf_decrypt_inplace(void *p, size_t len) { int i; tf_init(tf_key, 128); for (i = 0; i < len/16; i++) { tf_decrypt(p, p); p += 16; } return p; }
static void *tf_decrypt_inplace(void *p, size_t len) { int i; /* If encryption is disabled, we've got nothing to do */ if (!flag_encryption_enabled) return p + len; tf_init(tf_key, 128); for (i = 0; i < len/16; i++) { tf_decrypt(p, p); p += 16; } return p; }