fixed padding issue in cipher decryption