public IntegrityVerificationStream(IntegrityVerificationInfo info, Stream hashStream, bool enableIntegrityChecks)
     : base(info.Data, 1 << info.BlockSizePower)
 {
     HashStream            = hashStream;
     EnableIntegrityChecks = enableIntegrityChecks;
     Salt = info.Salt;
     Type = info.Type;
 }
Esempio n. 2
0
        public IntegrityVerificationStream(IntegrityVerificationInfo info, Stream hashStream, IntegrityCheckLevel integrityCheckLevel)
            : base(info.Data, info.BlockSize)
        {
            HashStream          = hashStream;
            IntegrityCheckLevel = integrityCheckLevel;
            Salt = info.Salt;
            Type = info.Type;

            BlockValidities = new Validity[SectorCount];
        }