private static boolean checksumsEqual(byte[] checksum1,byte[] checksum2){
        if(checksum1.length!=checksum2.length)
            return false;
        for(int i=0;i<checksum1.length;i++)
            if(checksum1[i] != checksum2[i])
                return false;
        return true;
    }