Check the size of the message before decrypting it.