Alert|.packet encrypt_packet(.packet packet, int version)
Encrypts a packet (including deflating and MAC-generation).