Fixed decryption length calculation to use multiple by blocksize