Motivation: We should limit the size of the allocated outbound buffer to MAX_ENCRYPTED_PACKET_LENGTH to ensure we not cause an OOME when the user tries to encrypt a very big buffer. Modifications: Limit the size of the allocated outbound buffer to MAX_ENCRYPTED_PACKET_LENGTH Result: Fixes [#6564]