working code for the reception side of the encrypted zipped tun frame