Example #1
0
        /*************************************************************
        *************************************************************/

        private async void btnIsoCrypto_Click(object sender, EventArgs e)
        {
            cancellation = new CancellationTokenSource();
            IsoCryptoClass cryptoClass = new IsoCryptoClass();

            currentTask = cryptoClass.Process(cancellation.Token);
            await currentTask;
        }
Example #2
0
        private bool CheckIfValid()
        {
            // First, let's analyse it
            IsoCryptoClass icc = new IsoCryptoClass();

            // Only valid if the iso has been a ripped encrypted ISO, deny Builded ISO's
            IsValid = icc.AnalyseISO(_odd) && icc.IsDecrypting && !icc.IsBuildedISO;
            if (IsValid)
            {
                Regions         = icc.Regions;
                EndOfDataSector = Regions.Last().End;
                TotalSectors    = _odd.GetNumSectors() + 1;
            }
            return(IsValid);
        }
Example #3
0
        private bool CheckIfValid()
        {
            // First, let's analyse it
            IsoCryptoClass icc = new IsoCryptoClass();

            // Only valid if the iso has been a ripped encrypted ISO, deny Builded ISO's
            IsValid = icc.AnalyseISO(Path) && icc.IsDecrypting && !icc.IsBuildedISO;
            if (IsValid)
            {
                Regions = icc.Regions;
                FileInfo fi = new FileInfo(Path);
                EndOfDataSector = Regions.Last().End;
                TotalSectors    = (uint)(fi.Length / Utilities.SectorSize);
            }
            return(IsValid);
        }