Finished decryption implementation in packet.c