Calculate error checking bytes in dll_send()