Beispiel #1
0
        public void ComputeHash(IO.EndianStream blockStream, Security.Cryptography.TigerHashBase hasher)
        {
            Contract.Requires(blockStream != null);
            Contract.Requires(hasher != null);

            hasher.Initialize();
            hasher.ComputeHash(blockStream.BaseStream,
                               (long)DataOffset, DataSize);
        }
Beispiel #2
0
        protected void UpdateDecompressedDataTigerHash(System.IO.Stream source, Security.Cryptography.TigerHashBase hasher)
        {
            hasher.ComputeHash(source, 0, (int)source.Length,
                               restorePosition: true);

            ulong tiger64;

            hasher.TryGetAsTiger64(out tiger64);
            DecompressedDataTiger64 = tiger64;
        }