I am using the Node.js crypto library to encrypt larger files using AES-256-ctr. One problem that I am having right now is verifying if the decryption was successful or not.