Bugfix for decryption validation failure and message header generation when dealing with large cipher text sizes.